/* style.css — 登山装备 · 首页/内页共用布局与组件（环节 4 初版，环节 5 再拆分） */
@import url("tokens.css");

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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; }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-body);
  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.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4 { margin: 0; color: var(--c-ink); line-height: 1.25; font-weight: 700; letter-spacing: -0.2px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, select { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--c-navy-deep);
  color: var(--c-on-dark);
  padding: 10px 16px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── 页头 ───────────────────────────────────────────── */
.site-header {
  background: var(--c-navy);
  color: var(--c-on-dark);
  height: var(--header-h);
  position: relative;
  z-index: 20;
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--c-on-dark);
  white-space: nowrap;
}
.brand svg { width: 26px; height: 20px; color: var(--c-accent); }
.site-nav { display: flex; align-items: center; gap: 17px; margin-left: 8px; flex-wrap: nowrap; }
.site-nav a {
  font-size: 13px;
  color: var(--c-on-dark-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--c-on-dark); border-color: var(--c-accent); }
.index-link {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--c-on-dark);
  border: 1px solid rgba(243, 239, 233, 0.42);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(243, 239, 233, 0.42);
  color: var(--c-on-dark);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12.5px;
}

/* ── 首屏 ───────────────────────────────────────────── */
.hero {
  position: relative;
  height: var(--hero-h);
  background: var(--c-navy-deep);
  color: var(--c-on-dark);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 41, 63, 0.97) 0%, rgba(23, 45, 68, 0.9) 42%, rgba(24, 47, 70, 0.42) 68%, rgba(24, 47, 70, 0.08) 100%);
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 46px;
}
.hero-copy { max-width: 620px; }
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 2.4px;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.hero h1 {
  font-size: var(--fs-display);
  color: var(--c-on-dark);
  line-height: 1.16;
  letter-spacing: -0.5px;
}
.hero-lead {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.85;
  color: #dbe4ec;
  max-width: 520px;
}
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 20px;
  background: var(--c-accent);
  color: #fff;
  border: 1px solid var(--c-accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s var(--ease);
}
.btn:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: rgba(243, 239, 233, 0.45);
  color: var(--c-on-dark);
}
.btn-ghost:hover { background: rgba(243, 239, 233, 0.12); border-color: var(--c-on-dark); color: var(--c-on-dark); }
.hero-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  border-top: 1px solid rgba(243, 239, 233, 0.2);
  background: linear-gradient(180deg, rgba(19, 38, 58, 0.18), rgba(19, 38, 58, 0.55));
}
.hero-stats ul { display: flex; align-items: center; gap: 44px; height: 66px; }
.hero-stats li { display: flex; align-items: baseline; gap: 9px; font-size: 12.5px; color: var(--c-on-dark-muted); }
.hero-stats strong { font-size: 21px; color: var(--c-on-dark); font-weight: 700; line-height: 1; }
.hero-stats svg { width: 22px; height: 22px; color: var(--c-accent); align-self: center; }

/* ── 区块通用 ────────────────────────────────────────── */
.section { padding: 22px 0 24px; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 26px;
  flex-wrap: wrap;
}
.section-head .kicker {
  font-size: 11.5px;
  letter-spacing: 1.6px;
  color: var(--c-accent);
  font-weight: 700;
  white-space: nowrap;
}
.section-head h2 { font-size: var(--fs-h2); }
.section-head .section-lead { font-size: 13px; color: var(--c-muted); flex: 1 1 320px; line-height: 1.7; }

/* ── 阅读路径 ────────────────────────────────────────── */
.paths { padding-top: 24px; padding-bottom: 34px; }
.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 22px;
}
.path {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding-top: 19px;
  border-top: 1px solid var(--c-line);
}
.path-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--c-surface-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-navy);
}
.path-icon svg { width: 24px; height: 24px; }
.path .num { font-size: 11px; letter-spacing: 1.2px; color: var(--c-accent); font-weight: 700; }
.path h3 { font-size: 17px; margin-top: 2px; }
.path p { font-size: 13px; line-height: 1.75; color: var(--c-muted); margin-top: 6px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-navy);
  border-bottom: 1px solid var(--c-accent);
  padding-bottom: 2px;
}
.text-link svg { width: 14px; height: 14px; }

/* ── 分类索引 ────────────────────────────────────────── */
.categories { background: var(--c-surface-alt); border-block: 1px solid var(--c-line); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.cat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 14px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 118px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cat-card:hover { transform: translateY(-2px); border-color: var(--c-accent); color: inherit; }
.cat-card svg { width: 27px; height: 27px; color: var(--c-navy); }
.cat-card .num { font-size: 10.5px; letter-spacing: 1px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.cat-card .name { font-size: 13.5px; font-weight: 700; color: var(--c-ink); line-height: 1.45; }
.cat-card .count { font-size: 11px; color: var(--c-muted); margin-top: auto; }

/* ── 装备系统表 ──────────────────────────────────────── */
.system-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12px; }
.system-table caption { text-align: left; font-size: 12px; color: var(--c-muted); padding-bottom: 8px; }
.system-table thead th {
  background: var(--c-navy);
  color: var(--c-on-dark);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 5px 12px;
  white-space: nowrap;
}
.system-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--c-ink);
  padding: 5px 12px;
  white-space: nowrap;
}
.system-table tbody td { padding: 5px 12px; color: var(--c-body); line-height: 1.4; }
.system-table tbody tr:nth-child(odd) { background: var(--c-surface-alt); }
.system-table tbody tr:nth-child(even) { background: var(--c-surface); }
.system-table tbody tr:hover { background: #e4e0d5; }

/* ── 本期精读 ────────────────────────────────────────── */
.feature {
  position: relative;
  background: var(--c-navy-deep);
  color: var(--c-on-dark);
  overflow: hidden;
}
.feature-media {
  position: absolute;
  inset: 0 0 0 52%;
  width: 48%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 46, 72, 0.99) 0%, rgba(24, 46, 72, 0.95) 48%, rgba(24, 46, 72, 0.55) 70%, rgba(24, 46, 72, 0.15) 100%);
  z-index: 1;
}
.feature .container { position: relative; z-index: 2; padding-block: 20px; }
.feature .section-head { gap: 22px; }
.feature .section-head h2 { color: var(--c-on-dark); }
.feature .section-head .section-lead { color: var(--c-on-dark-muted); }
.feature-main { max-width: 560px; margin-top: 8px; }
.feature-main h3 { color: var(--c-on-dark); font-size: 21px; line-height: 1.3; }
.feature-main p { color: #d3dde6; font-size: 12.5px; line-height: 1.65; margin-top: 6px; }
.feature-main .btn { margin-top: 10px; min-height: 32px; padding: 5px 14px; font-size: 12px; }
.brief-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 620px;
  margin-top: 11px;
  padding-top: 8px;
  border-top: 1px solid rgba(243, 239, 233, 0.22);
}
.brief-list h4 { color: var(--c-on-dark); font-size: 12.5px; line-height: 1.5; }
.brief-list p { color: var(--c-on-dark-muted); font-size: 10.8px; line-height: 1.5; margin-top: 3px; }

/* ── 场景卡 ──────────────────────────────────────────── */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.scene {
  position: relative;
  min-height: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--c-on-dark);
  display: flex;
  align-items: flex-end;
}
.scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.scene:hover img { transform: scale(1.04); }
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 36, 55, 0.05) 24%, rgba(18, 36, 55, 0.86) 100%);
}
.scene figcaption { position: relative; z-index: 2; padding: 14px 16px; }
.scene .num { font-size: 10.5px; letter-spacing: 1.4px; color: var(--c-accent); font-weight: 700; }
.scene h3 { color: var(--c-on-dark); font-size: 17px; margin-top: 2px; }
.scene p { font-size: 11.5px; color: #d7e0e8; line-height: 1.65; margin-top: 4px; }

/* ── 误区 + 内容说明 ─────────────────────────────────── */
.myths { padding-top: 18px; padding-bottom: 14px; }
.system { padding: 17px 0 19px; }
.myth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.05fr);
  gap: 30px;
  margin-top: 12px;
  align-items: stretch;
}
.myth-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.myth { border-top: 2px solid var(--c-navy); padding-top: 12px; }
.myth .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--c-muted);
  background: var(--c-surface-alt);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}
.myth h3 { font-size: 15.5px; margin-top: 8px; }
.myth p { font-size: 12px; color: var(--c-muted); line-height: 1.6; margin-top: 4px; }
.myth .fact { color: var(--c-body); font-weight: 600; font-size: 12px; margin-top: 6px; display: block; }
.notice {
  background: var(--c-surface-alt);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-navy);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.notice svg { width: 26px; height: 26px; color: var(--c-navy); }
.notice p { font-size: 12.5px; line-height: 1.85; color: var(--c-body); }

/* ── 页脚 ────────────────────────────────────────────── */
.site-footer {
  background: var(--c-navy-deep);
  color: var(--c-on-dark-muted);
  padding: 24px 0 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.35fr 1fr 1.15fr;
  gap: 36px;
}
.footer-brand .brand { color: var(--c-on-dark); }
.footer-brand p { font-size: 12.5px; line-height: 1.8; margin-top: 10px; max-width: 270px; }
.footer-col h3 { color: var(--c-on-dark); font-size: 12.5px; letter-spacing: 0.8px; margin-bottom: 10px; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col a { font-size: 12px; color: var(--c-on-dark-muted); }
.footer-col a:hover { color: var(--c-on-dark); }
.footer-col.two-col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.copyright {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(243, 239, 233, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11.5px;
  color: #8d9dab;
}

/* ── 响应式 ──────────────────────────────────────────── */
@media (max-width: 1180px) {
  :root { --gutter: 24px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 12px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-card { min-height: 116px; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1.3fr 1fr; }
  .copyright { flex-direction: column; gap: 4px; }
}

@media (max-width: 960px) {
  .site-header { height: auto; }
  .site-header .container { height: auto; flex-wrap: wrap; gap: 6px 16px; padding: 10px 0 8px; }
  .site-nav { display: flex; flex-wrap: wrap; width: 100%; margin-left: 0; gap: 2px 14px; }
  .site-nav a { font-size: 12.5px; padding: 4px 0; }
  .index-link { margin-left: 0; }
  .hero { height: auto; min-height: 480px; }
  .hero .container { padding-bottom: 100px; }
  .hero-lead { max-width: 100%; }
  .hero-stats ul { gap: 26px; flex-wrap: wrap; height: auto; padding: 12px 0; }
  .paths-grid { grid-template-columns: 1fr; gap: 18px; }
  .system-table { display: block; overflow-x: auto; white-space: nowrap; }
  .feature { display: flex; flex-direction: column; }
  .feature-media { position: static; order: 2; width: 100%; height: 220px; }
  .feature .container { order: 1; }
  .feature::before { display: none; }
  .feature .container { padding-block: 30px; }
  .feature-main, .brief-list { max-width: 100%; }
  .myth-wrap { grid-template-columns: 1fr; }
  .myth-list { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; --fs-display: 32px; --fs-h2: 23px; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 31px; }
  .hero-actions { flex-wrap: wrap; gap: 12px; }
  .hero-stats ul { gap: 18px; }
  .hero-stats li { font-size: 11.5px; }
  .hero-stats strong { font-size: 18px; }
  .section-head { gap: 8px 14px; }
  .section-head .section-lead { flex-basis: 100%; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-grid { grid-template-columns: 1fr; }
  .scene { min-height: 170px; }
  .brief-list { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col.two-col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 首页底部全部条目入口 */
.home-all { padding-bottom: 30px; }
