/* style.css — 户外背包全站基础样式 + 首页（环节 4）
 *
 * 视觉基准：03-ui/home-ui-desktop.png（1440×2160）
 * 结构：M0 header / M1 hero / M2 category / M3 capacity / M4 featured /
 *       M5 fit / M6 material / M7 editorial / M8 footer
 * 颜色、字号、间距一律 var(--…)，见 tokens.css。
 */
@import url("tokens.css");

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

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

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink-soft);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
strong { font-weight: 700; color: var(--ink); }

.wrap {
  width: min(92.6%, var(--wrap));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg-page);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* ------------------------------------------------------------- header */

/* 首页：页头透明压在首屏照片上，滚动后转实底 */
.home .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.home .site-header.is-scrolled {
  background: rgba(246, 249, 250, 0.97);
  border-bottom-color: rgba(22, 38, 29, 0.06);
  backdrop-filter: blur(8px);
}

.home .hero {
  margin-top: calc(-1 * var(--header-h));
  height: calc(408px + var(--header-h));
}

.home .hero-inner { padding-top: 110px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 249, 250, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(22, 38, 29, 0.06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 33px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  color: var(--ink);
}

.brand-mark {
  width: 114px;
  height: 36px;
  color: #26402f;
  flex: none;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand.is-active .brand-name {
  padding-bottom: 5px;
  border-bottom: 2px solid var(--accent);
}

.primary-nav {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 18.5px;
  white-space: nowrap;
}

.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 17px 0;
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease);
}

.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--accent); }

.primary-nav a.is-active { color: var(--accent); font-weight: 600; }

.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--accent-strong); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--accent-line);
  color: var(--ink);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* ----------------------------------------------------------- section head */
.section-head h2 {
  position: relative;
  font-size: var(--fs-h2);
  padding-left: 14px;
  letter-spacing: 0.03em;
}

.category-index .section-sub,
.featured .section-sub,
.capacity-copy .section-sub { font-size: var(--fs-body-sm); }

.featured .section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.featured .section-head .section-sub { margin-top: 0; }

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.section-sub {
  margin-top: 4px;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--muted);
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  height: 408px;
  overflow: hidden;
  background: #b9c9d3;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scaleX(-1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(247, 247, 244, 0.9) 0%,
    rgba(247, 247, 244, 0.7) 26%,
    rgba(247, 247, 244, 0.26) 48%,
    rgba(247, 247, 244, 0) 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 53px;
}

.eyebrow {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 3px;
  background: rgba(46, 107, 79, 0.1);
  color: var(--accent);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 2px 0 10px;
  font-size: 68px;
  line-height: 1.05;
  letter-spacing: 0.05em;
}

.hero-sub {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.hero-desc {
  max-width: 560px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #35463b;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 38px;
  margin-top: 18px;
}

.hero-stats .stat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #35463b;
}

.hero-stats svg {
  width: 26px;
  height: 26px;
  color: var(--ink);
  opacity: 0.85;
}

.hero-stats b {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-right: 2px;
}

/* ------------------------------------------------------- category index */
.category-index {
  padding: 18px 0 20px;
  background: var(--bg-page);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: 16px;
}

.cat-card {
  background: var(--bg-surface);
  border: 1px solid rgba(22, 38, 29, 0.05);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.cat-card:hover,
.cat-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cat-card > a {
  display: flex;
  flex-direction: column;
  height: 271px;
  padding: 0 12px 12px;
}

.cat-media {
  margin: 0 -12px;
  height: 132px;
  background: #f1f1ef;
  overflow: hidden;
}

.cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cat-card h3 {
  margin-top: 9px;
  font-size: var(--fs-body-lg);
  text-align: center;
  letter-spacing: 0.03em;
}

.cat-card p {
  margin-top: 4px;
  font-size: var(--fs-meta);
  line-height: 1.72;
  color: var(--muted);
  text-align: center;
}

.cat-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: auto;
  padding-top: 8px;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--accent);
}

.cat-meta .arrow {
  width: 12px;
  height: 12px;
  transition: transform var(--dur-fast) var(--ease);
}

.cat-card:hover .arrow { transform: translateX(3px); }

/* ---------------------------------------------------------- capacity guide */
.capacity-guide {
  background: var(--bg-sunken);
  padding: 6px 0 8px;
}

.capacity-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  width: 100%;
  padding-left: max(calc((100% - var(--wrap)) / 2), 3.7%);
  align-items: stretch;
}

.capacity-copy { padding: 6px 0 4px; }

.capacity-copy .section-sub { color: #4c5c50; }

.cap-table {
  margin-top: 12px;
  font-size: var(--fs-label);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

.cap-table th {
  padding: 4px 10px;
  background: #3e6b4f;
  color: #fff;
  font-size: var(--fs-label);
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.03em;
}

.cap-table td {
  padding: 4px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  color: #30443a;
}

.cap-table tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, 0.38); }
.cap-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.16); }

.cap-table td:first-child { width: 92px; }
.cap-table td:nth-child(2) { width: 34%; }
.cap-table td:last-child { width: 31%; }

.table-note {
  margin-top: 3px;
  font-size: var(--fs-caption);
  color: #56675b;
}

.capacity-media {
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.capacity-media img {
  width: 100%;
  height: 100%;
  min-height: 283px;
  object-fit: cover;
  object-position: center;
}

/* --------------------------------------------------------- featured cards */
.featured {
  padding: 22px 0 26px;
  background: var(--bg-surface-2);
}

.featured > .wrap {
  width: min(95%, 1369px);
}

.guides-grid {
  width: min(95%, 1369px);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: 6px;
}

.entry-card {
  background: var(--bg-surface);
  border: 1px solid rgba(22, 38, 29, 0.05);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.entry-card:hover,
.entry-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.entry-card > a {
  display: flex;
  flex-direction: column;
  height: 234px;
}

.entry-media {
  position: relative;
  height: 122px;
  background: #f1f1ef;
  overflow: hidden;
}

.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-wash);
  color: var(--accent);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.entry-body {
  display: flex;
  flex-direction: column;
  padding: 9px 11px 11px;
}

.entry-body h3 {
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.entry-body p {
  margin-top: 4px;
  font-size: var(--fs-caption);
  line-height: 1.68;
  color: var(--muted);
}

/* --------------------------------------------------- fit + material guides */
.guides {
  padding: 16px 0 37px;
  background: var(--bg-surface-2);
}

.guides-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.fit-guide {
  padding: 16px 18px 18px;
  background: var(--bg-surface);
  border: 1px solid rgba(22, 38, 29, 0.05);
  border-radius: var(--radius-card);
}

.fit-guide .section-head h2,
.material-notes .section-head h2 { font-size: var(--fs-h3-lg); }

.fit-steps {
  margin-top: 2px;
  display: grid;
  gap: 20px;
}

.fit-steps li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.fit-steps li:nth-child(1) .step-no::before { content: "1"; }
.fit-steps li:nth-child(2) .step-no::before { content: "2"; }
.fit-steps li:nth-child(3) .step-no::before { content: "3"; }

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: var(--radius-circle);
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-meta);
  font-weight: 700;
}

.step-body h3 {
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
}

.step-body p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.material-notes { padding: 12px 0 8px; }

.note-grid {
  margin-top: 2px;
  display: grid;
  gap: 16px;
}

.note-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.note-icon svg { width: 22px; height: 22px; }

.note-card h3 {
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
}

.note-card p {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* -------------------------------------------------------------- editorial */
.editorial {
  background: var(--editorial-bg);
  padding: 26px 0;
}

.editorial-inner {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.editorial-icon {
  display: inline-flex;
  color: var(--ink);
  width: 30px;
  height: 36px;
}

.editorial-icon svg { width: 100%; height: 100%; }

.editorial-body h2 {
  font-size: var(--fs-h4);
  letter-spacing: 0.04em;
}

.editorial-body p {
  font-size: 11.5px;
  line-height: 1.9;
  color: #3f4b41;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: 26px;
  background: var(--footer-bg);
  color: var(--on-dark-mid);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 141px;
  padding: 18px 0;
}

.footer-brand { flex: none; }

.brand--footer {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--on-dark-strong);
}

.brand--footer .brand-mark {
  width: 52px;
  height: 30px;
  color: #f3f5ef;
}

.brand--footer .brand-name {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--on-dark-mid);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.footer-label {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--on-dark-strong);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 34px;
}

.footer-nav a {
  font-size: var(--fs-body);
  color: var(--on-dark-mid);
  transition: color var(--dur-fast) var(--ease);
}

.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--on-dark-strong); }

.footer-note {
  flex: none;
  width: 378px;
  padding-left: 26px;
  border-left: 1px solid var(--on-dark-line);
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--on-dark-soft);
}

.footer-credit {
  margin-top: 4px;
  color: var(--on-dark-mid);
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  :root { --fs-h1: 56px; }
  .brand-mark { width: 82px; }
  .primary-nav { gap: 24px; font-size: 14px; }
  .footer-nav ul { gap: 18px; }
  .footer-note { width: 290px; }
}

@media (max-width: 1024px) {
  .cat-grid,
  .entry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-card > a { height: auto; min-height: 250px; }
  .entry-card > a { height: auto; min-height: 250px; }
  .capacity-inner { grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; }
  .guides-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-inner { flex-wrap: wrap; gap: 20px; }
  .footer-note { width: 100%; border-left: 0; padding-left: 0; border-top: 1px solid var(--on-dark-line); padding-top: 12px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .brand-mark { width: 70px; height: 24px; }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 4.7% 16px;
    background: rgba(252, 252, 250, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(22, 38, 29, 0.12);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a {
    padding: 11px 2px;
    border-bottom: 1px solid rgba(22, 38, 29, 0.06);
    font-size: var(--fs-body);
  }
  .primary-nav a.is-active::after { display: none; }

  .hero { height: auto; min-height: 430px; }
  .hero::after { background: linear-gradient(180deg, rgba(247, 247, 244, 0.94), rgba(247, 247, 244, 0.7) 55%, rgba(247, 247, 244, 0.2)); }
  .hero-inner { padding: 34px 0 30px; }
  .hero h1 { font-size: 46px; }
  .hero-sub { font-size: var(--fs-h4); }

  .category-index,
  .featured { padding: 18px 0; }

  .capacity-inner { grid-template-columns: minmax(0, 1fr); padding-left: 0; padding-right: 0; }
  .capacity-copy { padding-left: 3.7%; padding-right: 3.7%; }
  .capacity-media { order: -1; height: 170px; }
  .capacity-media img { height: 170px; min-height: 0; }
  .cap-table { font-size: var(--fs-meta); }

  .guides-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fit-guide { padding: 14px 14px 16px; }

  .editorial-inner { grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
  .footer-inner { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .footer-nav { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-nav ul { gap: 14px 20px; }
  .site-footer { margin-top: 20px; }
}

@media (max-width: 620px) {
  :root { --fs-h1: 40px; --fs-h2: 20px; }
  .home .hero { height: auto; min-height: 0; }
  .home .hero-inner { padding-top: 78px; padding-bottom: 24px; }
  .hero-stats { row-gap: 8px; }
  .cat-grid,
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-card > a { min-height: 238px; }
  .entry-card > a { min-height: 246px; }
  .cat-media { height: 112px; }
  .entry-media { height: 122px; }
  .hero-stats { gap: 20px; }
  .hero-stats svg { width: 18px; height: 18px; }
  .hero-actions { gap: 8px; }
  .btn { padding: 7px 14px; }
  .cap-table th,
  .cap-table td { padding: 6px 8px; }
  .cap-table td:first-child { width: 64px; }
  .cap-table td:nth-child(2),
  .cap-table td:last-child { width: auto; }
  .footer-nav ul { gap: 12px 16px; }
}

/* =================================================================
   site61 / 户外背包 对接覆盖层（追加于末尾，按需覆盖上方规则）
   ================================================================= */

/* ---- 文字 logo ---- */
.brand { gap: 0; }
.site-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.site-footer .site-logo-text {
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--on-dark-strong);
}

/* ---- 导航（一级分类 + 下拉子分类）---- */
.primary-nav { gap: 22px; font-size: 15px; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-item .caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.5;
  transition: transform var(--dur-fast) var(--ease);
}

.nav-item:hover .caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  min-width: 186px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(22, 38, 29, 0.14);
  z-index: 60;
}

.nav-item:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--ink-soft);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--accent-wash);
  color: var(--accent);
}

/* ---- 首页分类卡：7 个一级分类 ---- */
.cat-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }

/* ---- 页脚四栏 ---- */
.footer-inner {
  display: block;
  min-height: 0;
  padding: 30px 0 16px;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 26px;
}

.footer-col {
  flex: 1 1 170px;
  min-width: 160px;
}

.footer-brand { flex: 1.5 1 265px; }

.footer-label { display: block; }

.footer-desc {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--on-dark-soft);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.footer-col ul a {
  font-size: var(--fs-label);
  color: var(--on-dark-mid);
  transition: color var(--dur-fast) var(--ease);
}

.footer-col ul a:hover,
.footer-col ul a:focus-visible { color: var(--on-dark-strong); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 22px;
  padding-top: 13px;
  border-top: 1px solid var(--on-dark-line);
  font-size: var(--fs-meta);
  color: var(--on-dark-soft);
}

.footer-bottom a { color: var(--on-dark-mid); }
.footer-bottom a:hover { color: var(--on-dark-strong); }

@media (max-width: 1200px) {
  .primary-nav { gap: 16px; font-size: 14px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  /* 汉堡按钮已移除 → 导航常显并横向滚动 */
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding: 7px 0 5px;
    gap: 0;
  }
  .brand { width: 100%; }
  .home .site-header { background: rgba(246, 249, 250, 0.97); }
  .primary-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 0 0 3px;
    background: none;
    border: 0;
    box-shadow: none;
    font-size: 14px;
    gap: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav a { padding: 6px 0; border-bottom: 0; }
  .dropdown-menu { display: none !important; }

  .home .hero { margin-top: 0; height: auto; min-height: 0; }
  .home .hero-inner { padding-top: 32px; }

  .footer-cols { gap: 20px; }
  .footer-col { flex: 1 1 140px; }
}

@media (max-width: 620px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { flex-direction: column; gap: 18px; }
}
