/* ============================================================
   厨房清洁用具大全 · 首页与内页样式
   版式基线：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: 60px;
  background: var(--bg);
  position: relative;
  z-index: 20;
}
.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand .logo { width: 30px; height: 30px; 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: 26px;
  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);
}

/* ---------------------------------------------------------- 首屏 */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  min-height: 415px;
  display: flex;
  align-items: flex-start;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 47%;
  padding: 26px 0 30px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-12);
  line-height: 1.16;
  letter-spacing: .01em;
}
.hero-lead {
  margin: 22px 0 0;
  max-width: 560px;
  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 26px;
  margin-top: 74px;
  font-size: var(--fs-5);
  color: var(--accent-dark);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-meta svg { width: 17px; height: 17px; flex: 0 0 auto; }
.hero-meta .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.hero-art {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 60%;
  margin-right: min(0px, calc((100% - 1440px) / 2));
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 46%;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(251, 245, 233, .92) 12%, rgba(251, 245, 233, 0) 30%);
  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: 20px 0 18px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 10px 12px 12px;
  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-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--band);
}
.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: 2px;
  font-family: var(--font-serif);
  font-size: var(--fs-7);
  color: var(--ink);
}
.cat-desc {
  display: block;
  margin-top: 7px;
  font-size: var(--fs-1);
  line-height: 1.68;
  color: var(--muted);
}

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

/* ---------------------------------------------------------- M4 四步 */
.path { padding: 16px 0 28px; }
.path-panel {
  background: var(--band);
  border: 1px solid var(--band-line);
  border-radius: var(--radius-lg);
  padding: 24px 30px 28px;
}
.path-panel .section-title { font-size: var(--fs-9); }
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 30px;
  margin-top: 18px;
}
.step {
  position: relative;
  padding-left: 0;
}
.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: 10px 0 0;
  font-size: var(--fs-2);
  line-height: 1.75;
  color: var(--ink-2);
}

/* ---------------------------------------------------------- M5+M6 双栏 */
.duo {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 0 34px;
  padding: 12px 0 40px;
}
.materials .section-title,
.cycle .section-title { font-size: var(--fs-9); }
.materials-body {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 26px;
  margin-top: 24px;
  align-items: start;
}
.materials-body img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.mat-rows { margin: 0; padding: 0; list-style: none; }
.mat-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 9px 0;
  align-items: baseline;
  font-size: var(--fs-1);
  line-height: 1.7;
  color: var(--muted);
}
.mat-name {
  position: relative;
  padding-left: 15px;
  font-size: var(--fs-3);
  font-weight: 700;
  color: var(--ink-2);
}
.mat-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.cycle {
  border-left: 1px solid var(--band-line);
  padding-left: 34px;
}
.cycle-rows { margin: 20px 0 0; padding: 0; list-style: none; }
.cycle-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
}
.cycle-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
}
.cycle-ico svg { width: 22px; height: 22px; }
.cycle-name {
  font-size: var(--fs-5);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}
.cycle-text {
  margin: 2px 0 0;
  font-size: var(--fs-1);
  line-height: 1.75;
  color: var(--muted);
}

/* ---------------------------------------------------------- M7+M8 */
.duo-end {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 0 34px;
  align-items: start;
  padding: 12px 0 26px;
}
.scope .section-title { font-size: var(--fs-9); }
.scope-text {
  margin: 16px 0 0;
  font-size: var(--fs-4);
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 640px;
}
.cta-band {
  margin-top: 26px;
  background: var(--accent-dark);
  border-radius: var(--radius-lg);
  padding: 22px 30px 24px;
  color: var(--on-dark);
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-11);
  color: var(--on-dark);
  line-height: 1.3;
}
.cta-band p {
  margin: 10px 0 0;
  font-size: var(--fs-2);
  line-height: 1.9;
  color: var(--on-dark-muted);
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}
.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(--on-dark);
  color: var(--accent-dark);
  border: 1px solid var(--on-dark);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(246, 236, 220, .55);
}
.btn-ghost:hover { background: rgba(246, 236, 220, .12); }
.btn svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------- 页脚 */
.site-footer {
  background: var(--footer);
  color: var(--on-dark-muted);
  padding: 26px 0 27px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 40px;
}
.footer-col { flex: 1 1 180px; min-width: 160px; }
.footer-brand-col { flex: 1.6 1 260px; }
.footer-about { flex: 1.4 1 240px; }
.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: left; }
.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: flex-start;
  gap: 6px 18px;
  font-size: var(--fs-3);
}
.footer-links--col { flex-direction: column; gap: 7px; }
.footer-links a { color: var(--on-dark); }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-about { text-align: left; }
.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(216, 196, 172, .22);
  padding-top: 14px;
}

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1180px) {
  .hero-copy { width: 54%; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-row { grid-template-columns: repeat(4, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 30px; }
  .duo, .duo-end { grid-template-columns: 1fr; gap: 26px; }
  .cycle { border-left: 0; padding-left: 0; border-top: 1px solid var(--band-line); padding-top: 22px; }
  .footer-inner { flex-direction: column; }
  .footer-col { flex: 1 1 auto; width: 100%; min-width: 0; }
  .footer-about { text-align: left; }
  .footer-mid { text-align: left; }
  .footer-links { justify-content: flex-start; }
}

@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: 22px; gap: 8px 18px; }
  .hero-art {
    position: relative;
    width: 100%;
    height: 240px;
    margin: 24px 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; }
  .materials-body { grid-template-columns: 1fr; }
  .materials-body img { aspect-ratio: 16 / 9; width: 100%; }
  .footer-tagline { margin-top: 18px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .gallery { column-count: 1; }
}

/* ---------------------------------------------------------- 内页：分类页 */
.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; }

.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: minmax(0, 1fr);
  gap: 0;
  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 {
  margin: 20px 0 0;
}
.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: minmax(0, 1fr); gap: 0; }
  .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: minmax(0, 1fr); gap: 0; }
  .article-head h1 { font-size: 32px; }
  .article-head h1, .article-sub, .article-lead { padding-right: 0; }
  .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; }
}

/* 无汉堡按钮：中等屏以下导航横向滚动，不折行断字 */
@media (max-width: 960px) {
  .header-inner { gap: 16px; }
  .main-nav {
    flex: 1 1 auto;
    margin-left: auto;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 6px 0; }
}

@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;
  cursor: pointer;
  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; }

/* 页脚备案号 */
.footer-icp {
  margin: 18px 0 0;
  font-size: var(--fs-1);
  color: var(--on-dark-muted);
  text-align: center;
  border-top: 1px solid rgba(216, 196, 172, .22);
  padding-top: 14px;
}

/* 无图占位（首页条目卡、列表卡、相关条目） */
.item-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  background: var(--band);
  font-size: 40px;
  line-height: 1;
}
.item-emoji--card {
  border-radius: var(--radius-sm);
  font-size: 34px;
}
.list-card .item-emoji--card {
  width: 108px;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
}
.related-card .item-emoji--card {
  width: 100%;
  aspect-ratio: 16 / 10;
}

/* 首页分类内容模块 */
.cat-mod { padding: 10px 0 30px; }
.cat-mod .list-head { margin-top: 0; }
.cat-mod__more {
  margin: 22px 0 0;
  text-align: center;
}
.btn-more {
  min-height: 40px;
  padding: 0 20px;
  background: var(--accent-dark);
  color: var(--on-dark);
  border: 1px solid var(--accent-dark);
}
.btn-more:hover {
  background: var(--footer);
  border-color: var(--footer);
  color: var(--on-dark);
  text-decoration: none;
}

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

@media (max-width: 720px) {
  .list-card .item-emoji--card { width: 92px; }
  .pager-info { margin-left: 0; }
}
