/* 宠物玩具 · 公共组件 */

/* ---------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff9f1; box-shadow: 0 6px 16px rgba(201, 102, 42, 0.22); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-tint); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------------------------------------------------------- 区块与标题 */
.section { padding: var(--section-py) 0; border-top: 1px solid var(--line); }
.section--flush { border-top: 0; }
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.sec-title {
  position: relative;
  padding-left: 16px;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}
.sec-sub { font-size: 14px; color: var(--ink-3); }

/* ---------------------------------------------------------- 首屏 */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 40px;
  align-items: center;
  min-height: 360px;
  padding: 22px 0 20px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-dark);
  text-transform: uppercase;
}
.hero-eyebrow span { display: inline-block; width: 22px; height: 1px; background: var(--accent); }
.hero-title {
  margin-top: 10px;
  max-width: 520px;
  font-size: 40px;
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--ink);
}
.hero-lead {
  margin-top: 13px;
  max-width: 520px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.9;
}
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.hero-link { font-size: 14px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.hero-link:hover { color: var(--accent-dark); border-color: var(--accent); }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-2);
}
.hero-stat { display: inline-flex; align-items: center; gap: 7px; }
.hero-stat svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 auto; }
.hero-stat-div { width: 1px; height: 15px; background: var(--line-strong); }
.hero-media { position: relative; height: 360px; margin: 0; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; border-radius: 22px; }

/* ---------------------------------------------------------- 品类索引 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px 12px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-card:hover { border-color: var(--accent-soft); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.cat-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
  margin-bottom: 4px;
}
.cat-icon svg { width: 30px; height: 30px; }
.cat-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.cat-desc { font-size: 12px; line-height: 1.65; color: var(--ink-3); }

/* ---------------------------------------------------------- 编辑推荐 */
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pick-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 12px 9px 9px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pick-card:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-card); }
.pick-thumb { width: 80px; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--surface-warm); }
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pick-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pick-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.pick-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.pick-tag {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 11px;
  line-height: 1.7;
}

/* ---------------------------------------------------------- 挑选四条线 */
.rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rule-card {
  padding: 16px 16px 14px;
  background: var(--surface-warm);
  border-radius: 14px;
  border: 1px solid rgba(229, 129, 60, 0.1);
}
.rule-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rule-head svg { width: 20px; height: 20px; color: var(--accent-dark); flex: 0 0 auto; }
.rule-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.rule-desc { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }

/* ---------------------------------------------------------- 尺寸表 + 玩法 */
.split-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 38px; align-items: start; }
.col-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.col-head .sec-title { font-size: 22px; }
.col-head .sec-sub { font-size: 12.5px; }

.size-table-wrap {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 6px;
}
.size-table th {
  padding: 11px 10px;
  background: var(--band);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid rgba(229, 129, 60, 0.18);
}
.size-table th:first-child { border-radius: 8px 0 0 8px; }
.size-table th:last-child { border-radius: 0 8px 8px 0; }
.size-table td {
  padding: 16px 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.size-table tbody tr:last-child td { border-bottom: 0; }
.size-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.size-table td:nth-child(2),
.size-table td:nth-child(3) { white-space: nowrap; }

.step-list { display: flex; flex-direction: column; gap: 17px; counter-reset: step; }
.step-item { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.step-item { counter-increment: step; }
.step-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff9f1;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}
.step-num::before { content: counter(step); }
.step-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.step-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.step-foot { margin-top: 4px; font-size: 12.5px; }
.step-foot a { color: var(--accent-dark); font-weight: 600; border-bottom: 1px solid var(--accent-soft); }

/* ---------------------------------------------------------- FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.faq-item {
  background: var(--surface-warm);
  border: 1px solid rgba(229, 129, 60, 0.12);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-size: 17px;
  line-height: 1;
  color: var(--accent-dark);
  flex: 0 0 auto;
  margin-top: 2px;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 14px 14px; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }

/* ---------------------------------------------------------- CTA 带 */
.cta-band {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 16px 30px;
  background: var(--band);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.cta-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 251, 244, 0.72);
  color: var(--accent);
}
.cta-icon svg { width: 38px; height: 38px; }
.cta-body { display: flex; flex-direction: column; gap: 6px; }
.cta-title { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.cta-title span { color: var(--accent-dark); }
.cta-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; max-width: 660px; }
.cta-paw { position: absolute; right: 150px; bottom: -18px; width: 96px; height: 96px; color: rgba(229, 129, 60, 0.18); }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------------------------------------------------------- 内页面头 */
.page-hero { padding: 30px 0 24px; border-bottom: 1px solid var(--line); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { color: var(--line-strong); }
.page-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-title { font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.page-lead { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); max-width: 760px; line-height: 1.85; }
.page-count {
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  white-space: nowrap;
}

/* ---------------------------------------------------------- 筛选工具条 */
.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-size: 12px; color: var(--ink-3); letter-spacing: 1px; margin-right: 2px; }
.filter-chip {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  font-size: 12.5px;
  color: var(--ink-2);
  transition: all 0.16s ease;
}
.filter-chip:hover { border-color: var(--accent-soft); color: var(--accent-dark); }
.filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff9f1; font-weight: 600; }
.filter-sort { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sort-select {
  padding: 8px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.filter-result { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.filter-result strong { color: var(--accent-dark); font-weight: 700; }

/* ---------------------------------------------------------- 条目卡片 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px 0 6px;
}
.item-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.item-card:hover { border-color: var(--accent-soft); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.item-thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-warm); }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.item-card:hover .item-thumb img { transform: scale(1.03); }
.item-body { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px 16px; }
.item-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.item-summary {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag {
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 11px;
  line-height: 1.7;
}
.tag--plain { background: rgba(93, 68, 50, 0.07); color: var(--ink-3); }
.empty-state {
  display: none;
  padding: 46px 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
}
.empty-state.is-visible { display: block; }
.card-grid.is-empty { display: none; }

/* ---------------------------------------------------------- 列表说明 */
.list-description {
  margin-top: 26px;
  padding: 24px 26px;
  background: var(--surface-warm);
  border-radius: 16px;
  border: 1px solid rgba(229, 129, 60, 0.1);
}
.list-description h2 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.list-description p { font-size: 13px; color: var(--ink-2); line-height: 1.95; }

/* ---------------------------------------------------------- 品类短链 */
.cat-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 26px; }
.cat-links a {
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--bg-soft);
  transition: all 0.16s ease;
}
.cat-links a:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-tint); }

/* ---------------------------------------------------------- 详情页 */
.article-head { padding: 26px 0 22px; border-bottom: 1px solid var(--line); }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.article-title { font-size: 36px; font-weight: 700; line-height: 1.34; color: var(--ink); letter-spacing: 0.3px; }
.article-lead {
  margin-top: 14px;
  max-width: 860px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.9;
}
.article-layout {
  display: grid;
  grid-template-columns: 226px 1fr;
  gap: 44px;
  align-items: start;
  padding: 28px 0 10px;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 12px;
}
.toc-title { font-size: 12px; letter-spacing: 1.5px; color: var(--ink-3); margin-bottom: 10px; }
.toc ol { display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.toc a {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  border-left: 2px solid transparent;
  transition: all 0.16s ease;
}
.toc a:hover { background: var(--accent-tint); color: var(--accent-dark); }
.toc a.is-current { color: var(--accent-dark); font-weight: 600; background: var(--accent-tint); border-left-color: var(--accent); }
.article-body { max-width: 790px; }
.article-body h2 {
  margin: 30px 0 10px;
  padding-left: 14px;
  position: relative;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.article-body p { margin-bottom: 12px; font-size: 14.5px; line-height: 2; color: var(--ink-2); }
.article-body p:last-child { margin-bottom: 0; }

.related { padding: 28px 0 0; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.related-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.related-card:hover { border-color: var(--accent-soft); }
.related-thumb { width: 78px; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--surface-warm); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.related-desc { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; margin-top: 3px; }

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid > :nth-child(7) { grid-column: span 2; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .split-grid { grid-template-columns: 1fr; gap: 26px; }
  .article-layout { grid-template-columns: 200px 1fr; gap: 28px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-media { height: 230px; }
  .hero-media img { border-radius: 16px; }
  .pick-grid { grid-template-columns: 1fr; }
  .rule-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 64px 1fr; gap: 18px; padding: 22px; }
  .cta-icon { width: 64px; height: 64px; }
  .cta-icon svg { width: 34px; height: 34px; }
  .cta-band .btn { grid-column: 1 / -1; justify-self: start; }
  .cta-paw { display: none; }
  .article-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; }
  .toc ol { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc a { border-left: 0; border: 1px solid var(--line); }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid > :nth-child(7) { grid-column: span 1; }
  .rule-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: var(--fs-h1); }
  .hero-stats { flex-wrap: wrap; gap: 10px 14px; }
  .filter-toolbar { gap: 12px; }
  .filter-sort { margin-left: 0; width: 100%; justify-content: space-between; }
  .article-title { font-size: 26px; }
  .page-title { font-size: 26px; }
  .pick-card { grid-template-columns: 76px 1fr; }
  .pick-thumb { width: 76px; }
  .size-table th:nth-child(4),
  .size-table td:nth-child(4) { display: none; }
}

/* ---------------------------------------------------------- 细节补充 */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.breadcrumb .sep::before { content: "/"; }
.page-hero-meta { margin-top: 12px; }
.page-hero-meta .page-count { display: inline-block; }
.grid-title { margin: 22px 0 0; font-size: 17px; }
.grid-title::before { top: 3px; bottom: 3px; }
.cat-links-section { padding-top: 4px; }
.cat-links-section .sec-title { font-size: 17px; }
.item-link { display: block; height: 100%; }
.related .sec-title { font-size: 17px; }
.article-tags .tag { font-size: 12px; padding: 3px 11px; }
.item-card[hidden] { display: none; }

/* ---------------------------------------------------------- 分页 */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px 0 6px;
}
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  font-size: 13px;
  color: var(--ink-2);
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.page-num:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-tint); }
.page-num.is-current {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.page-gap {
  padding: 0 4px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------------------------------------------------------- 正文配图 */
.article-figure {
  margin: 22px 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-warm);
  border: 1px solid var(--line);
}
.article-figure img { width: 100%; height: auto; display: block; }

/* 无目录时正文占满整行 */
.article-layout--single { grid-template-columns: 1fr; }
.article-layout--single .article-body { max-width: 860px; }

@media (max-width: 640px) {
  .page-num { min-width: 34px; height: 34px; padding: 0 9px; font-size: 12.5px; }
}
