/* 页面级样式：首页 / 分类页 / 详情页 */

/* ── 首页 hero ──────────────────────────────────────── */
.hero {
  background: linear-gradient(100deg, #f7f2ec 0%, #f9f6f2 52%, #f4ece2 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 42px;
  min-height: 556px;
}
.hero-copy { padding: 24px 0 26px; }
.hero h1 { margin: 0; font-size: 58px; line-height: 1.06; letter-spacing: 0.02em; color: var(--deep-2); }
.hero-sub { margin: 10px 0 0; font-family: var(--font-serif); font-size: 28px; font-weight: 700; line-height: 1.3; color: #3b3026; }
.hero-lede { margin: 18px 0 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.hero-desc { margin: 10px 0 0; max-width: 560px; font-size: 14.5px; line-height: 1.88; color: var(--ink-2); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 18px 0 0; padding: 0; list-style: none; }
.hero-stats li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.hero-stats li::before {
  content: ""; width: 14px; height: 14px; border: 1px solid var(--tan); border-radius: 3px; flex: none;
}
.hero-stats b { font-family: var(--font-serif); font-size: 15px; color: var(--deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn-arrow::after { content: "→"; font-size: 13px; margin-left: 6px; }

.hero-media { position: relative; align-self: center; height: 556px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(247, 242, 236, 0.55), rgba(247, 242, 236, 0) 30%);
  pointer-events: none;
}

/* ── 首页分类索引 ───────────────────────────────────── */
.categories { padding: 26px 0 28px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.cat-card {
  display: flex; gap: 11px; padding: 11px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 112px; box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.cat-thumb { width: 80px; height: 64px; flex: none; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-3); }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-body { min-width: 0; display: flex; flex-direction: column; }
.cat-title { display: flex; align-items: baseline; gap: 6px; }
.cat-num { font-family: var(--font-serif); font-size: 12px; color: var(--accent); }
.cat-body h3 { margin: 0; font-size: 15px; line-height: 1.4; }
.cat-body p { margin: 3px 0 0; font-size: 12px; line-height: 1.58; color: var(--ink-2); }
.cat-count { margin-top: auto; padding-top: 6px; font-size: 10.5px; color: var(--muted); }

/* ── 尺寸速查 ───────────────────────────────────────── */
.size { background: var(--paper-2); padding: 14px 0; }
.size-grid { display: grid; grid-template-columns: 316px minmax(0, 1fr); gap: 34px; align-items: stretch; }
.size-intro { display: flex; flex-direction: column; }
.size-intro h2 { margin: 0; font-size: 25px; line-height: 1.3; }
.size-intro p { margin: 8px 0 12px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.size-photo { margin-top: auto; border-radius: var(--radius-sm); overflow: hidden; height: 76px; }
.size-photo img { width: 100%; height: 100%; object-fit: cover; }
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.size-table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.size-table th, .size-table td { padding: 5px 12px; text-align: left; }
.size-table thead th { background: var(--tan); color: #33251a; font-weight: 600; font-size: 12.5px; padding: 8px 12px; }
.size-table tbody td { border-bottom: 1px solid var(--paper-3); color: var(--ink-2); }
.size-table tbody tr:nth-child(even) td { background: #fbf7f1; }
.size-table tbody tr:last-child td { border-bottom: 0; }
.size-table tbody th { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--paper-3); }
.size-table tbody tr:nth-child(even) th { background: #fbf7f1; }

/* ── 精选条目 ───────────────────────────────────────── */
.featured { padding: 16px 0 18px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat-card {
  display: flex; gap: 11px; padding: 9px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.feat-card img { width: 112px; height: 68px; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.feat-text h3 { margin: 0 0 4px; font-size: 14px; line-height: 1.4; }
.feat-text p { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-2); }

/* ── 选购四步 + 保养三原则 ─────────────────────────── */
.split { padding: 58px 0 62px; }
.split-inner { display: grid; grid-template-columns: 1.55fr 1fr; gap: 44px; }
.steps { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; align-items: start;
  padding: 10px 13px; background: var(--paper-2); border: 1px solid #ece2d6; border-radius: var(--radius-sm);
}
.step-num {
  display: grid; place-items: center; width: 34px; height: 24px;
  background: #b98b5e; color: #fff; border-radius: var(--radius-sm);
  font-family: var(--font-serif); font-size: 12px; letter-spacing: 0.04em;
}
.steps h3 { margin: 0 0 2px; font-size: 14px; line-height: 1.4; }
.steps p { margin: 0; font-size: 12.3px; line-height: 1.62; color: var(--ink-2); }

.care-list { display: grid; gap: 9px; }
.care-card {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; align-items: start;
  padding: 11px 13px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.care-icon { width: 26px; height: 26px; color: var(--accent); }
.care-card h3 { margin: 0 0 3px; font-size: 13.8px; line-height: 1.4; }
.care-card p { margin: 0; font-size: 12.2px; line-height: 1.6; color: var(--ink-2); }

/* ── 收录说明 ───────────────────────────────────────── */
.editorial {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 20px; background: var(--paper-2); border: 1px solid #e8dccd; border-radius: var(--radius);
}
.editorial svg { width: 24px; height: 24px; color: var(--accent); flex: none; margin-top: 2px; }
.editorial h2 { margin: 0 0 4px; font-size: 15px; }
.editorial p { margin: 0; font-size: 12.3px; line-height: 1.7; color: var(--ink-2); }
.editorial p + p { margin-top: 2px; }

/* ── 分类页 ─────────────────────────────────────────── */
.page-hero { padding: 32px 0 22px; background: linear-gradient(180deg, #f6f1ea 0%, var(--paper) 100%); }
.page-hero h1 { margin: 10px 0 0; font-size: 44px; line-height: 1.18; color: var(--deep-2); }
.page-hero .lede { margin: 12px 0 0; max-width: 780px; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.page-hero .hero-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 0 8px; }
.entry-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.entry-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.entry-card-link { display: flex; flex-direction: column; color: inherit; }
.section-head--grid { margin-top: 26px; }
.entry-media { position: relative; aspect-ratio: 16 / 10; background: var(--paper-3); overflow: hidden; }
.entry-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.entry-card:hover .entry-media img { transform: scale(1.03); }
.entry-tag {
  position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px;
  background: rgba(250, 246, 240, 0.92); color: var(--deep); font-size: 11px; letter-spacing: 0.03em;
}
.entry-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.entry-body h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.entry-body p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.entry-spec { margin-top: auto; padding-top: 4px; font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; }
.empty-state { margin: 18px 0; padding: 20px; background: var(--paper-2); border-radius: var(--radius); font-size: 14px; color: var(--ink-2); text-align: center; }

.list-description { padding: 30px 0 6px; }
.list-description-inner {
  display: grid; grid-template-columns: 210px minmax(0, 780px); gap: 46px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.list-description h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.35; }
.keyword-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.keyword-list li { padding: 3px 9px; background: var(--paper-2); border-radius: 999px; font-size: 11.5px; color: var(--ink-2); }
.list-description-body p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.95; color: var(--ink-2); }
.list-description-body p:first-child { font-size: 15px; color: var(--ink); }

.related-strip { padding: 24px 0 8px; border-top: 1px solid var(--line); margin-top: 28px; }
.related-strip h2 { margin: 0 0 12px; font-size: 17px; }
.related-links { display: flex; flex-wrap: wrap; gap: 9px; }
.related-links a {
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; color: var(--ink-2);
}
.related-links a:hover { border-color: var(--accent); color: var(--accent-2); }

/* ── 详情页 ─────────────────────────────────────────── */
.article-head { padding: 30px 0 18px; background: linear-gradient(180deg, #f6f1ea 0%, var(--paper) 100%); }
.article-head h1 { margin: 10px 0 0; font-size: 46px; line-height: 1.16; color: var(--deep-2); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; font-size: 13px; color: var(--accent-2); }
.article-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.article-toc { position: sticky; top: var(--header-h); z-index: 15; background: rgba(249, 247, 244, 0.97); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.article-toc-inner { display: flex; align-items: center; gap: 14px; min-height: 56px; overflow-x: auto; }
.article-toc strong { font-family: var(--font-serif); font-size: 12.5px; color: var(--deep); white-space: nowrap; }
.article-toc ol { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; }
.article-toc a { display: block; padding: 4px 0; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; border-bottom: 1px solid transparent; }
.article-toc a:hover { color: var(--accent-2); }
.article-toc a.is-active { color: var(--deep); border-bottom-color: var(--accent); }

.article-layout { display: grid; grid-template-columns: minmax(0, 780px) 300px; gap: 52px; padding: 28px 0 10px; }
.article-body { min-width: 0; }
.article-lede { margin: 0 0 6px; padding: 14px 18px; background: var(--paper-2); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 16px; line-height: 1.85; color: var(--ink); }
.article-lede strong { font-family: var(--font-serif); font-size: 17px; margin-right: 6px; }
.article-body h2 { margin: 34px 0 12px; font-size: 24px; line-height: 1.4; scroll-margin-top: calc(var(--header-h) + 64px); }
.article-body h2::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; background: var(--tan); border-radius: 2px; vertical-align: 4px; }
.article-body p { margin: 0 0 14px; font-size: 14.8px; line-height: 2.0; color: var(--ink-2); }
.article-body p:first-of-type { color: var(--ink); }

.article-aside { min-width: 0; }
.aside-box { position: sticky; top: calc(var(--header-h) + 76px); display: grid; gap: 20px; }
.spec-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-card h2 { margin: 0; padding: 13px 16px; background: var(--paper-2); font-size: 15px; }
.spec-card p { margin: 0; padding: 10px 16px 0; font-size: 11.5px; color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.spec-table th, .spec-table td { padding: 8px 16px; text-align: left; border-bottom: 1px solid var(--paper-3); }
.spec-table th { width: 42%; color: var(--muted); font-weight: 400; }
.spec-table td { color: var(--ink); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.related-entries { padding: 30px 0 8px; border-top: 1px solid var(--line); margin-top: 34px; }
.related-entries h2 { margin: 0 0 14px; font-size: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.related-card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.related-card div { padding: 11px 13px 13px; }
.related-card h3 { margin: 0 0 4px; font-size: 14.5px; }
.related-card p { margin: 0; font-size: 12px; line-height: 1.65; color: var(--ink-2); }
.related-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }

/* ── 正文插图 ───────────────────────────────────────── */
.article-body figure { margin: 22px 0 24px; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); }
.article-body figure img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; }
.article-body figure figcaption { padding: 8px 14px; font-size: 12px; color: var(--muted); }

/* ── 分页 ───────────────────────────────────────────── */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 26px 0 6px; }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 34px; padding: 0 11px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--ink-2); background: var(--card);
}
.pager a:hover { border-color: var(--accent); color: var(--accent-2); }
.pager .is-current { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.pager .is-disabled { color: var(--line-strong); background: var(--paper-2); }
.pager .pager-info { margin-left: auto; border: 0; background: transparent; font-size: 12.5px; color: var(--muted); }

/* ── 服务端筛选 chip ───────────────────────────────── */
.chips a.chip { display: inline-block; line-height: 1.5; }
.chips a.chip.is-active { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }

/* ── 响应式 ─────────────────────────────────────────── */
@media (max-width: 1180px) {
  .hero h1 { font-size: 54px; }
  .hero-sub { font-size: 27px; }
  .hero-inner { min-height: 500px; }
  .hero-media { height: 500px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .split-inner { grid-template-columns: 1fr; gap: 30px; }
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .article-aside .aside-box { position: static; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero-copy { padding: 34px 0 26px; }
  .hero-media { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .hero-media::after { background: linear-gradient(180deg, rgba(247, 242, 236, 0.4), rgba(247, 242, 236, 0)); }
  .size-grid { grid-template-columns: 1fr; gap: 18px; }
  .size-photo { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .list-description-inner { grid-template-columns: 1fr; gap: 10px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .article-head h1 { font-size: 38px; }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 42px; }
  .hero-sub { font-size: 23px; }
  .hero-lede { font-size: 16px; }
  .hero-desc { font-size: 14px; }
  .cat-grid { grid-template-columns: 1fr; gap: 10px; }
  .cat-card { min-height: 0; }
  .cat-thumb { width: 74px; height: 60px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-card img { width: 104px; height: 70px; }
  .size-table { min-width: 620px; }
  .table-wrap { overflow-x: auto; }
  .page-hero h1 { font-size: 32px; }
  .card-grid { grid-template-columns: 1fr; }
  .entry-media { aspect-ratio: 16 / 9; }
  .related-grid { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 31px; }
  .article-body h2 { font-size: 21px; }
  .article-body p { font-size: 14.2px; line-height: 1.95; }
  .article-toc-inner { min-height: 48px; }
  .article-toc strong { display: none; }
}

/* 动效偏好：尊重系统减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
