/* ============================================================
   家电清洁用品 · 首页与内页样式
   版式基线：03-ui/home-ui-desktop.png（1440×2160）
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-4);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------------------------------------------------- 页头 */
.site-header {
  height: 68px;
  background: var(--bg);
  position: relative;
  z-index: 20;
}
.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand .logo { width: 31px; height: 31px; color: var(--accent-dark); }
.brand-name {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.main-nav a {
  white-space: nowrap;
  font-size: var(--fs-5);
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.main-nav a:hover { color: var(--accent-dark); }
.main-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-item > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  z-index: 20;
  min-width: 168px;
  max-height: 360px;
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.nav-item:hover .nav-sub { display: block; }
.nav-sub li { margin: 0; }
.nav-sub a {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-bottom: 0;
  border-radius: var(--radius-sm);
  font-size: var(--fs-3);
  line-height: 1.5;
  color: var(--ink-2);
}
.nav-sub a:hover { background: var(--band); color: var(--accent-dark); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent-dark);
  cursor: pointer;
}

/* ---------------------------------------------------------- 首屏 */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  min-height: 354px;
  display: flex;
  align-items: flex-start;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 47%;
  padding: 26px 0 26px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-12);
  line-height: 1.16;
  letter-spacing: .01em;
}
.hero-lead {
  margin: 20px 0 0;
  max-width: 550px;
  font-size: var(--fs-8);
  line-height: 1.9;
  color: var(--ink-2);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 44px;
  font-size: var(--fs-5);
  color: var(--accent);
}
.hero-meta a,
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-meta a {
  padding: 7px 14px;
  border: 1px solid var(--band-line);
  border-radius: 999px;
  background: var(--card);
  font-size: var(--fs-3);
  font-weight: 700;
  color: var(--accent-dark);
}
.hero-meta a:hover { border-color: var(--accent); background: var(--band); }
.hero-meta svg { width: 16px; height: 16px; flex: 0 0 auto; }
.hero-meta .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
}
.hero-art {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 56%;
  margin-right: min(0px, calc((100% - 1440px) / 2));
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 52%;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(251, 246, 236, .94) 13%, rgba(251, 246, 236, 0) 32%);
  z-index: 1;
}

/* ---------------------------------------------------------- 区块标题 */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: var(--fs-10);
  line-height: 1.3;
}
.section-title::before {
  content: "";
  width: 5px;
  height: 22px;
  border-radius: 2px;
  background: var(--accent);
  flex: 0 0 auto;
}

/* ---------------------------------------------------------- M2 分类索引 */
.categories { padding: 24px 0 22px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  min-height: 246px;
  padding: 12px 13px 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--band-line);
}
.cat-ico {
  width: 100%;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--accent-dark);
}
.cat-ico svg { width: 46px; height: 46px; }
.cat-num {
  display: block;
  margin-top: 11px;
  font-size: var(--fs-2);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
}
.cat-name {
  display: block;
  margin-top: 1px;
  font-family: var(--font-serif);
  font-size: var(--fs-7);
  color: var(--ink);
  line-height: 1.4;
}
.cat-desc {
  display: block;
  margin-top: 7px;
  font-size: var(--fs-1);
  line-height: 1.68;
  color: var(--muted);
}

/* ---------------------------------------------------------- M3 条目速览 */
.items { padding: 6px 0 16px; }
.item-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.item-card {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 6px 6px 8px;
  transition: background .18s ease, border-color .18s ease;
}
.item-card:hover { background: var(--card); border-color: var(--band-line); }
.item-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 7px;
  background: var(--band);
}
.item-name {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-3);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.item-spec {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-1);
  color: var(--muted);
  line-height: 1.5;
}

/* ---------------------------------------------------------- M4 四步 */
.path { padding: 12px 0 24px; }
.path-panel {
  background: var(--band);
  border: 1px solid var(--band-line);
  border-radius: var(--radius-lg);
  padding: 22px 28px 24px;
}
.path-panel .section-title { font-size: var(--fs-9); }
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 28px;
  margin-top: 16px;
}
.step { position: relative; }
.step-head { display: flex; align-items: center; gap: 10px; }
.step-num {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-2);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-name {
  font-size: var(--fs-5);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.step-text {
  margin: 9px 0 0;
  font-size: var(--fs-2);
  line-height: 1.72;
  color: var(--ink-2);
}

/* ---------------------------------------------------------- M5 成分对照 */
.materials { padding: 10px 0 18px; }
.materials-panel {
  background: var(--band);
  border: 1px solid var(--band-line);
  border-radius: var(--radius-lg);
  padding: 16px 30px 18px;
}
.materials-panel .section-title { font-size: var(--fs-9); }
.mat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
  margin-top: 15px;
}
.mat-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 5px 0;
  align-items: baseline;
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--ink-2);
  border-top: 1px solid rgba(39, 76, 53, .1);
}
.mat-row:nth-child(1),
.mat-row:nth-child(2) { border-top: 0; }
.mat-name {
  position: relative;
  padding-left: 14px;
  font-size: var(--fs-3);
  font-weight: 700;
  color: var(--accent-dark);
}
.mat-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------------------------------------------------- M6 安全限制 */
.safety { padding: 8px 0 18px; }
.safety-panel {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 18px 30px 20px;
  box-shadow: var(--shadow-sm);
}
.safety-ico {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.safety-ico svg { width: 30px; height: 30px; }
.safety-body .section-title { font-size: var(--fs-9); }
.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 44px;
  margin-top: 12px;
}
.safety-row {
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
}
.safety-row:nth-child(1),
.safety-row:nth-child(2) { border-top: 0; }
.safety-name {
  display: block;
  font-size: var(--fs-5);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}
.safety-row p {
  margin: 2px 0 0;
  font-size: var(--fs-1);
  line-height: 1.72;
  color: var(--muted);
}

/* ---------------------------------------------------------- M7 收录说明 */
.scope { padding: 8px 0 14px; }
.scope .section-title { font-size: var(--fs-9); }
.scope-text {
  margin: 14px 0 0;
  max-width: 1120px;
  font-size: var(--fs-4);
  line-height: 1.95;
  color: var(--ink-2);
}

/* ---------------------------------------------------------- M8 CTA */
.cta-block { padding: 6px 0 30px; }
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(100deg, var(--band) 0%, var(--band-2) 100%);
  border: 1px solid var(--band-line);
  border-radius: var(--radius-lg);
  padding: 40px 38px 42px;
}
.cta-copy { max-width: 720px; }
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-11);
  color: var(--accent-dark);
  line-height: 1.3;
}
.cta-band p {
  margin: 8px 0 0;
  font-size: var(--fs-2);
  line-height: 1.85;
  color: var(--ink-2);
}
.cta-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: var(--fs-3);
  font-weight: 700;
  background: var(--accent-dark);
  color: var(--on-dark);
  border: 1px solid var(--accent-dark);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border-color: rgba(39, 76, 53, .45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .5); color: var(--accent-dark); border-color: var(--accent-dark); }
.btn svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------- 页脚 */
.site-footer {
  background: var(--footer);
  color: var(--on-dark-muted);
  padding: 36px 0 34px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 40px;
  align-items: flex-start;
}
.footer-col { flex: 1 1 200px; min-width: 180px; }
.footer-col-brand { flex: 1 1 260px; min-width: 240px; }
.footer-col-about { flex: 1 1 240px; min-width: 220px; }
.footer-label {
  display: block;
  font-size: var(--fs-2);
  color: var(--on-dark-muted);
  margin-bottom: 10px;
}
.footer-col-brand .footer-tagline {
  border-top: 0;
  padding-top: 0;
  margin-top: 12px;
  max-width: 330px;
}
.footer-col-about p {
  margin: 0;
  font-size: var(--fs-1);
  line-height: 1.85;
  color: var(--on-dark-muted);
}
.footer-icp { margin: 10px 0 0; }
.footer-icp a { color: var(--on-dark-muted); }
.footer-icp a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 211, 192, .22);
  font-size: var(--fs-1);
  color: var(--on-dark-muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
}
.footer-brand .logo { width: 30px; height: 30px; }
.footer-brand span {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
}
.footer-mid { text-align: center; }
.footer-mid .footer-label {
  display: block;
  font-size: var(--fs-2);
  color: var(--on-dark-muted);
  margin-bottom: 6px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: var(--fs-3);
}
.footer-links a { color: var(--on-dark); }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-about { text-align: right; }
.footer-about .footer-label {
  display: block;
  font-size: var(--fs-2);
  color: var(--on-dark-muted);
  margin-bottom: 6px;
}
.footer-about p {
  margin: 0;
  font-size: var(--fs-1);
  line-height: 1.85;
  color: var(--on-dark-muted);
}
.footer-tagline {
  margin: 16px 0 0;
  font-size: var(--fs-1);
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(201, 211, 192, .22);
  padding-top: 14px;
}

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1180px) {
  .hero-copy { width: 54%; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .item-row { grid-template-columns: repeat(4, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 30px; }
  .footer-inner { flex-direction: column; }
  .footer-col,
  .footer-col-brand,
  .footer-col-about { flex: none; width: 100%; min-width: 0; }
  .footer-about { text-align: left; }
  .footer-mid { text-align: left; }
  .footer-links { justify-content: flex-start; }
  .footer-col-brand .footer-tagline { max-width: none; }
}

@media (max-width: 900px) {
  .hero-inner { flex-direction: column; min-height: 0; }
  .hero-copy { width: 100%; padding: 20px 0 0; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: var(--fs-6); margin-top: 14px; }
  .hero-meta { margin-top: 20px; gap: 8px 14px; }
  .hero-art {
    position: relative;
    width: 100%;
    height: 240px;
    margin: 22px 0 0;
  }
  .hero-art::before { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .item-row { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: 1fr; }
  .mat-grid { grid-template-columns: 1fr; gap: 0; }
  .mat-row:nth-child(2) { border-top: 1px solid rgba(39, 76, 53, .1); }
  .safety-grid { grid-template-columns: 1fr; }
  .safety-row:nth-child(2) { border-top: 1px solid var(--line-soft); }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-tagline { margin-top: 18px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .safety-panel { grid-template-columns: 1fr; gap: 12px; }
  .cta-actions { width: 100%; }
  .btn { flex: 1; justify-content: center; }
}

/* ---------------------------------------------------------- 内页：分类页 */
.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 20px 0 30px;
}
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-2);
  color: var(--muted);
  padding: 0;
  margin: 0;
  list-style: none;
}
.crumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--band-line);
}
.crumb a:hover { color: var(--accent-dark); text-decoration: underline; }
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1.25;
  margin-top: 14px;
}
.page-hero .page-count {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-3);
  color: var(--accent);
  font-weight: 700;
}
.page-hero .page-lead {
  margin: 12px 0 0;
  max-width: 780px;
  font-size: var(--fs-4);
  line-height: 1.9;
  color: var(--ink-2);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line-soft);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font-size: var(--fs-3);
  cursor: pointer;
  font-family: inherit;
}
.chip[aria-pressed="true"] {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--on-dark);
  font-weight: 700;
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: var(--fs-3);
  color: var(--muted);
}
.sort-wrap label { cursor: pointer; }
.sort-wrap select {
  min-height: 34px;
  padding: 0 30px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font-family: inherit;
  font-size: var(--fs-3);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 49%, var(--accent) 50%), linear-gradient(-45deg, transparent 49%, var(--accent) 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.result-count { font-size: var(--fs-2); color: var(--muted); }
.result-count strong { color: var(--ink); }

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 26px 0 8px;
}
.list-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.list-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--band-line);
}
.list-card .list-link {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: inherit;
}
.list-card[hidden] { display: none; }
.list-card img {
  width: 108px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
  background: var(--band);
}
.list-card h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-7);
  line-height: 1.4;
}
.list-card .card-cat {
  display: inline-block;
  margin-bottom: 5px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--band);
  color: var(--accent-dark);
  font-size: 11px;
  letter-spacing: .04em;
}
.list-card p {
  margin: 6px 0 0;
  font-size: var(--fs-2);
  line-height: 1.72;
  color: var(--muted);
}
.list-card .card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: var(--fs-1);
  font-weight: 700;
  color: var(--accent);
}
.list-card .card-more::after { content: "›"; font-size: 15px; line-height: 1; }
.empty-state {
  display: none;
  padding: 40px 0 60px;
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-4);
}
.empty-state.is-visible { display: block; }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-3);
}
.pager a,
.pager-current,
.pager-step {
  min-width: 34px;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
}
.pager a:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--band); }
.pager-current {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--on-dark);
  font-weight: 700;
}
.pager-step { font-weight: 700; color: var(--accent-dark); }
.pager-gap { color: var(--muted); padding: 0 2px; }
.pager-info { margin-left: auto; color: var(--muted); font-size: var(--fs-2); }

.list-description {
  border-top: 1px solid var(--line-soft);
  margin-top: 22px;
  padding: 28px 0 6px;
}
.list-description h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-9);
  display: flex;
  align-items: center;
  gap: 12px;
}
.list-description h2::before {
  content: "";
  width: 5px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent);
}
.list-description p {
  margin: 14px 0 0;
  font-size: var(--fs-4);
  line-height: 2;
  color: var(--ink-2);
}

/* ---------------------------------------------------------- 内页：详情页 */
.article-head {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0 34px;
}
.article-head .crumb { margin-bottom: 14px; }
.article-head h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.2;
}
.article-sub {
  margin: 12px 0 0;
  font-size: var(--fs-3);
  font-weight: 700;
  color: var(--accent);
}
.article-lead {
  margin: 12px 0 0;
  font-size: var(--fs-4);
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 640px;
}
.article-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--band);
}

.article-body-wrap {
  display: grid;
  grid-template-columns: 280px minmax(0, 800px);
  justify-content: center;
  gap: 56px;
  align-items: start;
  padding: 34px 0 20px;
}
.article-side { position: sticky; top: 24px; }
.spec-table {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 18px 12px;
  box-shadow: var(--shadow-sm);
}
.spec-table h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-6);
  margin-bottom: 10px;
}
.spec-table dl { margin: 0; }
.spec-table .spec-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-2);
  line-height: 1.6;
}
.spec-table .spec-row:first-child { border-top: 0; }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; color: var(--ink-2); }

.article-toc {
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 18px 12px;
}
.article-toc h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-6);
  margin-bottom: 8px;
}
.article-toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: var(--fs-2);
  line-height: 1.9;
  color: var(--muted);
}
.article-toc a { color: var(--ink-2); }
.article-toc a:hover { color: var(--accent-dark); }
.article-toc a.is-active { color: var(--accent-dark); font-weight: 700; }

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.45;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.article-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article-content p {
  margin: 14px 0 0;
  font-size: var(--fs-6);
  line-height: 2.05;
  color: var(--ink-2);
}

.related {
  padding: 30px 0 40px;
  border-top: 1px solid var(--line-soft);
  margin-top: 34px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.related-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.related-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--band);
}
.related-card h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-6);
  margin-top: 10px;
}
.related-card p {
  margin: 4px 0 0;
  font-size: var(--fs-1);
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  .article-head { grid-template-columns: 1fr 340px; gap: 28px; }
  .article-body-wrap { grid-template-columns: 1fr; gap: 24px; }
  .article-side { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .page-hero h1 { font-size: 30px; }
  .list-grid { grid-template-columns: 1fr; }
  .list-card img { width: 92px; }
  .article-head { grid-template-columns: 1fr; gap: 20px; }
  .article-head h1 { font-size: 32px; }
  .article-content h2 { font-size: 21px; }
  .article-content p { font-size: var(--fs-5); }
  .related-grid { grid-template-columns: 1fr; }
  .sort-wrap { margin-left: 0; }
}

/* 768–960 之间品牌 + 8 项导航放不下，提前切抽屉，避免导航折行断字 */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 8px 18px 12px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line-soft); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------- 内页补充组件（分类页） */
.toolbar-label {
  font-size: var(--fs-3);
  font-weight: 700;
  color: var(--ink);
  padding-right: 2px;
}
.list-block { padding: 4px 0 6px; }
.list-head { margin-top: 18px; }
.list-sub {
  margin: 10px 0 0;
  font-size: var(--fs-3);
  line-height: 1.8;
  color: var(--muted);
}
.list-count {
  display: inline-block;
  margin-right: 4px;
  color: var(--accent);
  font-weight: 700;
}
.cta-inline {
  margin: 30px 0 34px;
  padding: 26px 30px 28px;
}
.cta-inline h2 { font-size: 26px; }

/* 详情页：标题区外层与目录折叠 */
.article-head-wrap {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}
.article-head { background: transparent; border-bottom: 0; padding: 18px 0 30px; }
.article-toc summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary h2 { margin: 0; }
.article-toc summary::after {
  content: "▾";
  color: var(--accent);
  font-size: 12px;
  transition: transform .2s ease;
}
.article-toc[open] summary::after { transform: rotate(180deg); }
.article-toc ol { margin-top: 6px; padding-left: 18px; }

/* ---------------------------------------------------------- 详情页标题区单栏（删除封面大图后不留空列） */
.article-head--solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1180px) {
  .article-head--solo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .article-head--solo { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------- 抽屉内的二级导航静态展开 */
@media (max-width: 960px) {
  .main-nav .nav-item { display: block; width: 100%; }
  .main-nav .nav-item > a {
    width: 100%;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .main-nav .nav-sub {
    display: block;
    position: static;
    min-width: 0;
    max-height: none;
    overflow: visible;
    margin: 0 0 6px;
    padding: 0 0 0 14px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .main-nav .nav-sub a {
    padding: 7px 0;
    font-size: var(--fs-3);
    color: var(--muted);
  }
  .main-nav .nav-sub a:hover { background: transparent; color: var(--accent-dark); }
}
