/* PawPress 前台样式 —— 依据 Figma「宠物资讯网站」1440 桌面稿还原
   容器 1000px（原设计稿 800px，上真页偏窄后放宽），字号/行高按设计稿实测值
   品牌色 #FF6A00，主圆角 16，栏目条色块高 76 居中于 114 */

:root {
  --o: #FF6A00;
  --o-soft: rgba(255, 106, 0, .12);
  --ink: #000;
  --gray: #ADADAD;
  --line: #D8D8D8;
  --dark: #171738;
  --ph: #D9D9D9;
  --brown: #580000;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --script: Caveat, "Segoe Script", cursive;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 内容不足一屏时，把页脚推到视口最底部 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; padding-bottom: 64px; }

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font: inherit; }
svg { display: block; }

/* 容器：内容宽 1000px（原设计稿 800px，上真页后偏窄，整体放宽）。
   窄屏靠 padding 撑开 */
.wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 1080px) {
  .wrap { max-width: none; padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 480px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
}

/* 文章详情页：列表页放宽到 1000 后，正文跟着变宽会难读，
   所以详情页单独收回到 800（封面图也跟着一起收） */
.wrap.post-page { max-width: 800px; }

/* ============ 头部 ============ */
.site-head { padding-top: 48px; padding-bottom: 38px; }

.head-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.socials { display: flex; gap: 8px; }

.social {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #373840;
  display: grid; place-items: center;
  transition: background .18s ease, transform .18s ease;
}
.social svg { width: 13px; height: 13px; fill: #fff; display: block; }
.social:hover { background: var(--o); transform: translateY(-1px); }

.brand {
  display: flex; align-items: center; gap: 10px;
  justify-self: center;
}
/* 页头/页脚统一用导出的品牌组合图（圆形猫头 + 字标），不再用文本拼 */
.brand .brand-lockup {
  height: 44px;
  width: auto;
  display: block;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--script);
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: .5px;
  margin-top: 2px;
}
.brand-tag {
  font-size: 10px;
  line-height: 14px;
  color: #000;
  white-space: nowrap;
  margin-top: 2px;
}

.head-actions {
  display: flex; align-items: center; gap: 22px;
  justify-self: end;
}

.btn-sub {
  height: 29px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--o);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: filter .18s ease, transform .18s ease;
}
/* 铃铛 16px：比 12px 文字略大一圈，视觉重量接近；flex 居中保证跟文字同一条水平线 */
.btn-sub svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #fff; stroke-width: 1.8; }
/* 铃铛在 24 画布里视觉重心偏上，文字按数学居中会显低，往上提 1px 做光学对齐 */
.btn-sub .label-text { display: inline-block; transform: translateY(-1px); }
.btn-sub:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-sub.is-on { background: #53B13B; }

.search-btn { width: 20px; height: 20px; display: grid; place-items: center; }
.search-btn svg { width: 20px; height: 20px; stroke: #000; stroke-width: 2; fill: none; }

/* 手机端汉堡按钮：桌面隐藏，尺寸和搜索图标一致 */
.menu-btn { display: none; width: 20px; height: 20px; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; stroke: #000; stroke-width: 2; fill: none; }

/* 导航 */
.nav {
  display: flex;
  justify-content: center;
  gap: 47px;
  margin-top: 48px;
}
.nav a {
  position: relative;
  font-size: 14px;
  line-height: 17px;
  font-weight: 700;
  padding-bottom: 6px;
  transition: color .18s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 13px; height: 2px;
  background: var(--o);
  transform: translateX(-50%) scaleX(0);
  transition: transform .2s ease;
}
.nav a:hover { color: var(--o); }
.nav a:hover::after,
.nav a.active::after { transform: translateX(-50%) scaleX(1); }
.nav a.active { color: var(--o); }

/* 滚动到原导航移出视口后，顶部浮出一条常驻导航 */
.nav-sticky {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #ECE9E4;
  transform: translateY(-100%);
  transition: transform .22s ease, box-shadow .22s ease;
}
.nav-sticky.is-on {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}
/* 滚动过程中整条收起，手停下来再落回来 */
.nav-sticky.is-scrolling { transform: translateY(-100%); box-shadow: none; }
.sticky-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 56px;
}
.nav-sticky .nav { margin: 0; flex: 1; gap: 40px; }
/* 搜索图标：放在最右，和页头顺序一致 */
.nav-sticky .sticky-search { flex: none; }

/* ============ 首页大图区 ============ */
.hero {
  display: grid;
  /* 1fr 的最小宽度是内容宽度，封面图带 420 的固有宽度会把栅格撑出容器，
     所以用 minmax(0,1fr) 强制可以压缩 */
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 29px;
}

/* 首页推荐轮播：多篇叠在同一格，靠透明度渐隐渐显切换 */
.hero-slide {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 440px 1fr;
  align-items: center;
  gap: 36px;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.hero-slide.is-on { opacity: 1; pointer-events: auto; cursor: pointer; }
/* 栅格子项默认 min-width:auto，会被内部图片的固有宽度顶开，统一放开 */
.hero-slide > * { min-width: 0; }

.hero-dots {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.hero-dot {
  width: 8px; height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--o);
  background: transparent;
  cursor: pointer;
  transition: background .25s ease;
}
.hero-dot.is-on { background: var(--o); }
.hero-dot:hover { background: rgba(245, 100, 31, .35); }

.kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; line-height: 17px; font-weight: 700;
  color: var(--o);
  margin-bottom: 12px;
}
.kicker svg { width: 14px; height: 14px; fill: var(--o); }

.hero h1 {
  font-size: 24px;
  line-height: 29px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -.2px;
}
.hero h1 a:hover { color: var(--o); }

.hero .dek {
  font-size: 14px;
  line-height: 17px;
  color: #000;
  margin: 0;
  /* 固定 3 行高度裁切（不用 -webkit-box，否则那一层不绘制下划线） */
  max-height: 51px;
  overflow: hidden;
}

/* 推荐区悬停：和卡片一致，标题 + 摘要一起出下划线，封面轻微放大 */
.hero-slide h1 a,
.hero-slide .dek {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-underline-position: from-font;
  transition: text-decoration-color .18s ease;
}
.hero-slide:hover h1 a,
.hero-slide:hover .dek { text-decoration-color: #000; }
/* 鼠标落在这一块的任何地方（含摘要、封面图），标题都变橙色 */
.hero-slide:hover h1 a { color: var(--o); text-decoration-color: var(--o); }

.hero-media {
  margin-left: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ph);
  aspect-ratio: 420 / 225;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.hero-slide:hover .hero-media img { transform: scale(1.08); }

/* 作者行 */
.byline {
  display: flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-size: 12px; line-height: 15px;
}
.byline img {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover; flex: none;
}
.byline b { font-weight: 700; }
.byline .ago { color: #6E6E6E; }

/* ============ 区块标题 ============ */
.sec-head { margin-bottom: 16px; }
.sec-head h2 {
  font-size: 16px; line-height: 19px; font-weight: 700;
  margin: 0 0 3px;
}
/* 描述文字垫一块淡紫圆角色块：文字本身位置不动（左边缘和标题对齐），
   色块用伪元素往左、往右、往上各溢出一点，做出设计里那块“记号笔”的效果 */
.sec-head p {
  position: relative;
  z-index: 0;
  display: inline-block;
  font-size: 12px; line-height: 15px; color: #000; margin: 0;
}
.sec-head p::before {
  content: "";
  position: absolute;
  top: -8px; bottom: -9px;
  left: -5px; right: -16px;
  background: #F1F4FF;
  border-radius: 999px;
  z-index: -1;
}

/* 新版区块标题：不要描述文字，标题装进一条通栏淡紫圆角块 */
.sec-head.bar {
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 28px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: #F1F4FF;
}
.sec-head.bar h2 {
  font-size: 24px; line-height: 28px; font-weight: 800;
  letter-spacing: -.3px;
  color: var(--brown);
  margin: 0;
}

/* ============ 卡片网格 ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.card { display: flex; flex-direction: column; cursor: pointer; }

.card .thumb {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ph);
  aspect-ratio: 250 / 153;
}
.card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.card .thumb:hover img { transform: scale(1.08); }
/* 悬停卡片任意位置（含标题、摘要），封面一起放大 */
.card:hover .thumb img { transform: scale(1.08); }

.card h3 {
  font-size: 16px;
  line-height: 19px;
  font-weight: 700;
  margin: 12px 0 0;
}
/* 卡片文字：默认没有下划线，鼠标悬停整卡时标题和摘要一起出现
   （摘要外层是 -webkit-box 做 4 行截断，那一层不画 text-decoration，
     所以下划线挂在里面的 span 上） */
.card h3 a,
.card .dek span {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-underline-position: from-font;
  transition: text-decoration-color .18s ease;
}
.card:hover h3 a,
.card:hover .dek span { text-decoration-color: #000; }
/* 悬停整卡任意位置，标题都变橙色 */
.card:hover h3 a { color: var(--o); text-decoration-color: var(--o); }

.card .dek {
  font-size: 14px;
  line-height: 17px;
  color: #000;
  margin: 8px 0 0;
  /* 用固定 4 行高度裁切，而不是 -webkit-box + line-clamp：
     那一层是 -webkit-box 时 Chrome 不绘制 text-decoration，摘要下划线会消失 */
  max-height: 68px;
  overflow: hidden;
}

.card .byline { margin-top: auto; padding-top: 16px; }

/* ============ 栏目条 ============ */
.catbar {
  position: relative;
  height: 114px;
  margin: 32px 0 24px;
  border-radius: 24px;
}
.catbar .band {
  position: absolute;
  left: 0; right: 0; top: 38px;
  height: 76px;
  border-radius: 24px;
  overflow: hidden;
}
.catbar .band::before {
  content: "";
  position: absolute; inset: 0;
  /* 小白点原来 0.62 太抢眼，压到 0.34，点也收小一点让色块本身更干净 */
  background-image: radial-gradient(rgba(255, 255, 255, .34) 1px, transparent 1.2px);
  background-size: 10px 10px;
}
.catbar.dogs .band   { background: #FFC870; }
.catbar.cats .band   { background: #FFA69E; }
.catbar.health .band { background: #9EDFFF; }
.catbar.guides .band { background: #9EC8FF; }

/* 宠物图按底边对齐色块：宽度定死、高度按原图比例算，避免 object-fit
   在比原图更扁的框里上下各留一条透明边，看着像悬浮在色块上面 */
.catbar .pets {
  position: absolute;
  left: 0; bottom: 0;
  width: 179px; height: auto;
  pointer-events: none;
}
.catbar .pets img { width: 100%; height: auto; object-fit: contain; }
/* 手机端用单只宠物图，桌面/平板用原来的双宠图 */
.catbar .pets .pets-one { display: none; }

/* 手机端栏目底部的橙字 See More，桌面/平板不显示 */
.see-more { display: none; }

.catbar .label {
  position: absolute;
  left: 199px; top: 54px;
  max-width: 620px;
}
.catbar .label h2 {
  font-size: 20px; line-height: 24px; font-weight: 900;
  color: var(--brown);
  margin: 0 0 4px;
}
.catbar .label h2 a:hover { color: #000; }
.catbar .label p {
  font-size: 12px; line-height: 15px; color: #000; margin: 0;
}

.catbar .more {
  position: absolute;
  right: 16px; top: 61px;
  height: 29px; padding: 0 14px;
  border-radius: 32px;
  background: #fff;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.catbar .more svg { width: 13px; height: 13px; stroke: #000; stroke-width: 2.2; fill: none; flex: none; }
.catbar .more:hover { transform: translateX(2px); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

/* ============ 文章详情 ============ */
.crumb {
  font-size: 14px; line-height: 17px;
  margin: 0 0 24px;
  color: #000;
}
.crumb .sep, .crumb .last { color: var(--gray); }

.post h1 {
  font-size: 36px;
  line-height: 44px;
  font-weight: 900;
  letter-spacing: -.6px;
  margin: 0 0 24px;
  max-width: 900px;
}

.post-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.post-meta .byline { margin: 0; font-size: 14px; line-height: 17px; }
.post-meta .byline .ago { color: #6E6E6E; }

.share {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700;
}
.share .ico {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .18s ease;
}
.share .ico svg { width: 13px; height: 13px; fill: #fff; display: block; }
.share .ico:hover { transform: translateY(-2px); }
.share .fb { background: #1877F2; }
.share .x  { background: #000; }
.share .wa { background: #25D366; }
.share .li { background: #0166FF; }
/* 复制链接：纯图标按钮，点完图标短暂变成对勾，不出文字 */
.share .copy {
  border: 0; padding: 0; cursor: pointer;
  background: #6E6E6E;
  color: #fff;
}
.share .copy svg { fill: #fff; }
.share .copy .i-check { display: none; }
.share .copy.is-copied { background: #1FA91F; }
.share .copy.is-copied .i-link { display: none; }
.share .copy.is-copied .i-check { display: block; }

.cover {
  margin: 0 0 32px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ph);
  aspect-ratio: 800 / 450;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }

.sum-head {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 12px;
}
.sum-head h2 { font-size: 24px; line-height: 36px; font-weight: 700; margin: 0; }
.sum-head svg { width: 20px; height: 20px; fill: var(--o); }

.rule-soft {
  height: 12px;
  border-radius: 6px;
  background: var(--o-soft);
  margin: 40px 0;
}

.prose {
  font-size: 16px;
  line-height: 24px;
}
.prose p { margin: 0 0 14px; }
.prose h2 {
  font-size: 24px; line-height: 29px; font-weight: 700;
  margin: 32px 0 16px;
  letter-spacing: -.2px;
}
.prose h3 { font-size: 20px; line-height: 26px; font-weight: 700; margin: 24px 0 12px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--o); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--o);
  color: #333;
}
.prose img {
  border-radius: 16px;
  margin: 24px 0;
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}
.prose iframe { max-width: 100%; border-radius: 16px; }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose code {
  background: #F4F4F4; padding: 2px 6px; border-radius: 6px;
  font-size: 14px; font-family: ui-monospace, Menlo, monospace;
}

.embed { margin: 32px 0; }
.embed iframe { width: 100%; border-radius: 16px; }

/* 相关文章 */
.related-rule {
  border: 0; border-top: 1px solid #000;
  margin: 56px 0 32px;
}
.related-title {
  font-size: 24px; line-height: 29px; font-weight: 700;
  margin: 0 0 32px -6px;
  display: inline-block;
  padding: 0 6px;
  background-image: linear-gradient(transparent 55%, rgba(255, 106, 0, .28) 55%);
  background-repeat: no-repeat;
}

/* ============ 页脚 ============ */
.site-foot {
  background: var(--dark);
  color: #fff;
  margin-top: auto;
  padding-top: 48px;
}
.foot-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.foot-brand { display: flex; flex-direction: column; gap: 18px; }
.foot-brand .brand .brand-lockup { height: 40px; }
.foot-tag { margin: 0; color: rgba(255, 255, 255, .72); font-size: 12px; line-height: 18px; max-width: 320px; }
.foot-social-row { display: flex; align-items: center; gap: 8px; }
.foot-social-row .social { background: #fff; }
.foot-social-row .social svg { fill: var(--dark); }
.foot-social-row .social:hover { background: var(--o); }
.foot-social-row .social:hover svg { fill: #fff; }
.foot-social-row .btn-sub { margin-left: 6px; }

.foot-links {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 6px;
}
.foot-links a {
  font-size: 14px; line-height: 17px; font-weight: 700;
  color: #fff;
  transition: color .18s ease;
}
.foot-links a:hover { color: #FFC870; }

.foot-copy {
  margin: 0;
  padding: 34px 0 28px;
  text-align: center;
  font-size: 10px; line-height: 12px;
  color: rgba(255, 255, 255, .55);
}

/* ============ 订阅弹窗 ============ */
.modal {
  position: fixed; inset: 0;
  background: rgba(9, 12, 22, .72);
  display: none;
  place-items: center;
  z-index: 70;
  padding: 24px;
}
.modal.open { display: grid; }

.dialog {
  position: relative;
  width: 560px;
  max-width: 100%;
  min-height: 300px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  animation: pop .22s ease;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.dialog .art {
  background: #D6ECFB;
  overflow: hidden;
}
.dialog .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

.dialog .form {
  padding: 34px 36px 30px;
  display: flex; flex-direction: column;
}
.dialog .form h2 {
  font-size: 24px; line-height: 29px; font-weight: 900;
  margin: 0 0 6px;
}
.dialog .form p {
  font-size: 12px; line-height: 15px; color: #000; margin: 0 0 22px;
}
.dialog .form input[type=email] {
  height: 44px;
  border: 1px solid #C7C7C7;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 12px;
  outline: none;
  transition: border-color .18s ease;
}
.dialog .form input[type=email]:focus { border-color: var(--o); }
.dialog .form button[type=submit] {
  height: 40px; margin-top: 14px;
  border-radius: 999px;
  background: var(--o);
  color: #fff;
  font-size: 12px; font-weight: 700;
  transition: filter .18s ease;
}
.dialog .form button[type=submit]:hover { filter: brightness(1.06); }
.dialog .form button[type=submit][disabled] { opacity: .6; cursor: default; }
.dialog .cancel {
  margin-top: 16px;
  font-size: 12px; font-weight: 700;
  text-align: center;
  width: 100%;
}
.dialog .cancel:hover { color: var(--o); }
.dialog .close {
  position: absolute; right: 12px; top: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #EFEFEF;
  display: grid; place-items: center;
  z-index: 2;
}
.dialog .close svg { width: 10px; height: 10px; stroke: #666; stroke-width: 2; fill: none; }
.dialog .close:hover { background: #E2E2E2; }
.dialog .done {
  display: none;
  padding: 0 0 8px;
  font-size: 13px;
  color: #53B13B;
  font-weight: 700;
}
.dialog .done.show { display: block; }

/* ============ 搜索浮层 ============ */
.search-pop {
  position: fixed; inset: 0;
  background: rgba(9, 12, 22, .4);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  z-index: 75;
}
.search-pop.open { display: flex; }
.search-pop .box {
  width: 560px; max-width: calc(100% - 40px);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.search-pop input {
  width: 100%; height: 44px;
  border: 1px solid #C7C7C7; border-radius: 8px;
  padding: 0 16px; font-size: 14px; outline: none;
}
.search-pop input:focus { border-color: var(--o); }
.search-pop .results {
  margin-top: 12px;
  max-height: 46vh;
  overflow: auto;
}
.search-pop .results a {
  display: block;
  padding: 10px 4px;
  border-bottom: 1px solid #F1F1F1;
  font-size: 14px; line-height: 18px;
}
.search-pop .results a:hover { color: var(--o); }
.search-pop .hint {
  font-size: 12px; color: var(--gray); padding: 10px 4px;
}

/* ============ About / Contact 简单页 ============ */
.page-head h1 {
  font-size: 36px; line-height: 44px; font-weight: 900;
  margin: 0 0 24px;
}
.page-body { font-size: 16px; line-height: 24px; }
.page-body p { margin: 0 0 16px; }
.page-body a { color: var(--o); text-decoration: underline; }

/* 无障碍隐藏标题 / 列表末尾提示 */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.list-end {
  text-align: center;
  font-size: 14px; line-height: 17px;
  color: var(--gray);
  margin: 64px 0 8px;
}
.list-end::before {
  content: "";
  display: block;
  width: 40px; height: 1px;
  background: var(--line);
  margin: 0 auto 18px;
}
.summary .prose { margin: 0; }
.summary .prose p { margin: 0; }

/* ============ 手机端导航抽屉 ============ */
/* 用 visibility 而不是 display 关掉，这样开合都能走过渡动画 */
.nav-drawer {
  position: fixed; inset: 0;
  z-index: 65;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .28s;
}
.nav-drawer.open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}
.nav-drawer-mask {
  position: fixed; inset: 0;
  z-index: 65;
  background: rgba(20, 16, 12, .42);
  opacity: 0;
  transition: opacity .24s ease;
}
.nav-drawer.open .nav-drawer-mask { opacity: 1; }

.nav-drawer-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 66;
  width: 78%;
  max-width: 330px;
  background: #fff;
  padding: 18px 24px 28px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
  box-shadow: -14px 0 44px rgba(0, 0, 0, .16);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }

.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #EFEBE5;
}
.nav-drawer-title {
  font-size: 11px; line-height: 14px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #8A8177;
}
.nav-drawer-x { width: 24px; height: 24px; display: grid; place-items: center; }
.nav-drawer-x svg { width: 16px; height: 16px; stroke: #000; stroke-width: 2; fill: none; }

.nav-drawer-links { display: flex; flex-direction: column; margin-top: 6px; }
.nav-drawer-links a {
  font-size: 16px; line-height: 20px; font-weight: 700;
  padding: 15px 0;
  border-bottom: 1px solid #F1EDE7;
}
.nav-drawer-links a.active { color: var(--o); }

.nav-drawer-foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav-drawer-foot .socials { display: flex; gap: 8px; }

html.nav-locked, html.nav-locked body { overflow: hidden; }

/* ============ 响应式 ============ */

/* ---- 平板横屏 / 小笔记本（≤1024）：推荐区仍保持图文并排，只按比例收图 ---- */
@media (max-width: 1024px) {
  /* 平板上 24px 贴边太紧，左右留 48（导航、内容、页脚共用 .wrap，一起生效） */
  .wrap { padding-left: 48px; padding-right: 48px; }
  .hero-slide { grid-template-columns: 272px 1fr; gap: 24px; }
  .hero-media { aspect-ratio: 16 / 9; }
  /* 推荐区支持左右拖动切换：横向手势归脚本，纵向仍交给页面滚动 */
  .hero { touch-action: pan-y; }
  .hero-slide.is-on { cursor: grab; }
  .hero-slide.is-on:active { cursor: grabbing; }
  .hero.is-dragging, .hero.is-dragging * {
    -webkit-user-select: none; user-select: none;
  }
  .hero.is-dragging .hero-media img { -webkit-user-drag: none; }
  .hero h1 { font-size: 22px; line-height: 27px; margin-bottom: 12px; }
  .hero .dek { font-size: 13px; line-height: 16px; max-height: 48px; }
  .hero .byline { margin-top: 14px; }

  .catbar { height: 106px; margin: 28px 0 20px; }
  .catbar .band { top: 32px; height: 74px; }
  .catbar .pets { width: 150px; }
  .catbar .label { left: 164px; top: 44px; right: 104px; max-width: none; }
  .catbar .more { top: 53px; }
}

/* ---- 平板竖屏（≤880）：两栏网格，图再收一档 ---- */
@media (max-width: 880px) {
  .site-head { padding-top: 32px; padding-bottom: 28px; }
  .nav { gap: 28px; margin-top: 32px; }
  .nav a { font-size: 13px; }

  .hero-slide { grid-template-columns: 232px 1fr; gap: 20px; }
  .hero h1 { font-size: 21px; line-height: 26px; }
  .hero-media { aspect-ratio: 16 / 9; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }

  .post h1 { font-size: 30px; line-height: 37px; }
  .foot-inner { gap: 24px; }
}

/* ---- 大屏手机 / 竖握平板（≤720）：图文并排已经挤不下，改成图在上、文在下 ---- */
@media (max-width: 720px) {
  /* 手机上 48 太宽了，收回到 24 */
  .wrap { padding-left: 24px; padding-right: 24px; }
  .hero-slide { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero-media { order: -1; aspect-ratio: 16 / 9; }
  .hero h1 { font-size: 22px; line-height: 27px; }
  .hero .dek { font-size: 13.5px; line-height: 17px; max-height: 51px; }
}

@media (max-width: 640px) {
  .head-row { grid-template-columns: auto 1fr auto; }
  .site-head .socials { display: none; }
  .head-actions { gap: 16px; }
  .menu-btn { display: grid; }
  /* 手机端图标放大到 22：20 的框 + 字形只占 70% 时，看上去就像 14 */
  .search-btn, .menu-btn { width: 22px; height: 22px; }
  .search-btn svg, .menu-btn svg { width: 22px; height: 22px; stroke-width: 2.2; }
  .brand .brand-lockup { height: 36px; }
  .btn-sub { width: 29px; padding: 0; justify-content: center; }
  .btn-sub .label-text { display: none; }

  /* 手机端不再横向滚动导航条：页头导航收进抽屉，置顶条只留搜索 + 汉堡 */
  .site-head .nav { display: none; }
  .sticky-inner { height: 48px; gap: 14px; }
  .nav-sticky .nav { display: none; }
  .nav-sticky .sticky-search { margin-left: auto; }

  .cards { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .card { min-width: 0; }
  .card .thumb { aspect-ratio: 16 / 10; }

  /* 栏目条（手机）：只留一只宠物、放大压在左边，标题+描述塞进右侧；
     More 从条内挪到整栏最底部，变成橙色文字 See More */
  .catbar { height: auto; margin: 26px 0 18px; }
  .catbar .band {
    position: absolute;
    top: 0; bottom: 0;
    height: auto;
    border-radius: 20px;
  }
  /* 宠物图按色块高度裁：高度定死、宽度随原图比例，头顶只露出一点点，
     不能像之前那样按宽度算高（178 宽的猫裁图会高出色块 30px，压到上一张卡）。
     底部贴齐色块底边，左下角按色块的 20px 圆角一起裁掉，避免图片直角盖住色块圆角 */
  .catbar .pets {
    width: auto; height: 96px; bottom: 0; top: auto; left: 0;
    clip-path: inset(0 0 0 0 round 0 0 0 20px);
  }
  .catbar .pets img { width: auto; height: 100%; }
  .catbar .pets .pets-two { display: none; }
  .catbar .pets .pets-one { display: block; }
  .catbar .label {
    position: relative;
    left: auto; top: auto; right: auto;
    max-width: none;
    display: flex; flex-direction: column; justify-content: center;
    min-height: 88px;
    padding: 14px 16px 14px 104px;
  }
  .catbar .label h2 { font-size: 19px; line-height: 23px; margin: 0 0 4px; padding-right: 0; }
  .catbar .label p {
    display: block;
    font-size: 12px; line-height: 16px;
    max-height: 32px; overflow: hidden;
  }
  .catbar .more { display: none; }

  .see-more {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin: 20px 0 0;
    font-size: 13px; font-weight: 800;
    color: #F97316;
  }
  .see-more svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.4; fill: none; }
  /* 手机端栏目之间用一条细线断开，See More 正好落在线上方 */
  .cat-sec + .cat-sec { margin-top: 26px; padding-top: 26px; border-top: 1px solid #EFEFEF; }

  .sec-head.bar { height: 56px; padding: 0 20px; margin-bottom: 18px; border-radius: 12px; }
  .sec-head.bar h2 { font-size: 19px; line-height: 23px; }

  .post-meta { flex-direction: column; align-items: flex-start; gap: 14px; }
  .post h1 { font-size: 26px; line-height: 33px; }
  .prose { font-size: 15px; line-height: 23px; }
  .prose h2 { font-size: 20px; line-height: 26px; }
  .related-title { font-size: 20px; }

  .dialog { grid-template-columns: 1fr; }
  .dialog .art { height: 150px; }
  .dialog .form { padding: 24px; }

  .foot-inner { flex-direction: column; gap: 32px; }
  .foot-links { padding-top: 0; }
}

/* 小屏手机：内边距再收一档到 18 */
@media (max-width: 480px) {
  .nav-drawer-panel { padding-left: 20px; padding-right: 20px; }
}

/* ============ 404 ============ */
.lost { padding: 92px 0 112px; text-align: center; }
.lost .kicker { margin-bottom: 10px; letter-spacing: .08em; }
.lost h1 { font-size: 40px; line-height: 1.15; font-weight: 800; color: var(--brown); margin: 0 0 14px; }
.lost .dek { max-width: 520px; margin: 0 auto 28px; font-size: 16px; line-height: 24px; color: #6B7280; }
.lost .btn-home {
  display: inline-flex; align-items: center; height: 46px; padding: 0 26px;
  border-radius: 999px; background: var(--o); color: #fff;
  font-size: 15px; font-weight: 700;
}
.lost .btn-home:hover { filter: brightness(1.06); }

@media (max-width: 640px) {
  .lost { padding: 64px 0 80px; }
  .lost h1 { font-size: 28px; }
  .lost .dek { font-size: 15px; }
}
