/* ============================================================
   摩托车探险 · 首页样式
   设计基准：1440 宽，内容栏 1372；视觉以 03-ui/home-ui-desktop.png 为准
   分区预算（1440）：header 56 / hero 422 / categories 478 / starter 253
   split 478 / checklist 134 / myths 91 / safety 82 / footer 165 = 2159
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink-on-gold); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  padding: 10px 16px; background: var(--gold); color: var(--ink-on-gold);
  font-size: 13px; transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn-solid { background: var(--gold); color: var(--ink-on-gold); }
.btn-solid:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn-outline { border-color: var(--line); color: var(--ink); background: rgba(10, 20, 31, .28); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(16, 29, 44, .72); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 12px; }

/* ---------- M0 顶部导航 ---------- */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 50;
  padding: 13px 0;
  border-bottom: 1px solid rgba(212, 170, 107, .16);
  background: linear-gradient(180deg, rgba(7, 15, 24, .55), rgba(7, 15, 24, 0));
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { color: var(--gold); flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 700 19px/1.1 var(--font-serif); letter-spacing: .04em; white-space: nowrap; }
.brand-sub { margin-top: 3px; font-size: 9px; letter-spacing: .16em; color: var(--muted); white-space: nowrap; }
.site-nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: clamp(10px, 1.4vw, 22px); min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  position: relative; padding: 6px 0; font-size: 12.5px; color: #d7dee5; white-space: nowrap;
  transition: color .16s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.site-nav a:hover { color: var(--gold-2); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.site-header.is-scrolled { position: fixed; background: rgba(10, 20, 32, .96); box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }

/* ---------- M1 hero（422px） ---------- */
.hero { position: relative; height: 478px; overflow: hidden; background: var(--bg-deep); }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 63%; height: 100%; object-fit: cover; object-position: left center; }
.hero-shade::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 42%;
  background: linear-gradient(90deg, var(--bg-deep) 0%, rgba(11, 22, 34, .94) 58%, rgba(11, 22, 34, 0) 100%);
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 26, .95) 0%, rgba(7, 16, 26, .78) 34%, rgba(7, 16, 26, .18) 62%, rgba(7, 16, 26, .1) 100%),
    linear-gradient(180deg, rgba(7, 16, 26, .58) 0%, rgba(7, 16, 26, 0) 26%, rgba(7, 16, 26, .38) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 82px; }
.hero-copy { max-width: 700px; }
.eyebrow {
  font: 500 11px/1 var(--mono); letter-spacing: .22em; color: var(--gold-2); text-transform: uppercase;
}
.hero h1 {
  margin: 10px 0 6px; font: 700 64px/.98 var(--font-serif);
  letter-spacing: .04em; color: var(--gold);
  text-shadow: 0 3px 22px rgba(0, 0, 0, .38);
}
.hero-lead { font: 500 21px/1.35 var(--font-serif); color: var(--ink); letter-spacing: .02em; }
.hero-text { max-width: 640px; margin-top: 9px; font-size: 13px; line-height: 1.62; color: #cfd8e1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-actions .btn { height: 40px; padding: 0 18px; }
.hero-order { display: inline-flex; align-items: center; font: 500 10px/1 var(--mono); letter-spacing: .12em; color: var(--gold-2); }
.hero-order::before { content: ""; width: 18px; height: 1px; margin-right: 8px; background: var(--gold); }

/* ---------- 通用区块标题 ---------- */
.section { position: relative; scroll-margin-top: 64px; }
.section-head { text-align: left; }
.section-head-center { text-align: center; }
.section-kicker { font: 500 10px/1 var(--mono); letter-spacing: .22em; color: var(--gold); }
.section-head-center .section-kicker { display: flex; align-items: center; justify-content: center; gap: 14px; }
.section-head-center .section-kicker::before, .section-head-center .section-kicker::after {
  content: ""; width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold));
}
.section-head-center .section-kicker::after { background: linear-gradient(90deg, var(--gold), transparent); }
.section-head h2 { margin-top: 8px; font: 600 29px/1.22 var(--font-serif); letter-spacing: .03em; color: var(--gold-2); }
.categories .section-head h2 { margin-top: 6px; font-size: 30px; }
.categories .section-intro { margin-top: 4px; font-size: 11.5px; line-height: 1.45; }
.section-head-left h2 { margin-top: 7px; font-size: 24px; }
.section-intro { margin-top: 7px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.section-head-center .section-intro { max-width: 760px; margin-inline: auto; }

/* ---------- M2 分类索引（478px） ---------- */
.categories { padding: 10px 0 11px; background: var(--bg); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 10px; }
.category-card {
  position: relative; display: block; height: 180px; overflow: hidden;
  border: 1px solid rgba(212, 170, 107, .2); border-radius: var(--radius-sm);
  background: var(--panel-2); transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.category-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 17, 28, .02) 0%, rgba(8, 17, 28, .5) 52%, rgba(8, 17, 28, .92) 100%);
}
.category-body { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; padding: 18px 14px 12px; }
.category-num { font: 500 9.5px/1 var(--mono); letter-spacing: .1em; color: var(--gold); }
.category-name { margin-top: 6px; font: 700 21px/1.2 var(--font-serif); letter-spacing: .03em; }
.category-desc { margin-top: 5px; max-width: 286px; font-size: 12.5px; line-height: 1.45; color: #d5dde5; }
.category-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-right: 34px; }
.category-tags span { padding: 1px 7px; border: 1px solid var(--gold); border-radius: 999px; font-size: 9.5px; line-height: 1.5; font-weight: 600; color: var(--ink-on-gold); background: var(--gold); }
.category-arrow {
  position: absolute; right: 12px; bottom: 11px; z-index: 3;
  display: grid; place-items: center; width: 25px; height: 25px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--gold-2); font-size: 12px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.category-arrow::before { content: "→"; }
.category-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.category-card:hover img { transform: scale(1.05); }
.category-card:hover .category-arrow { background: var(--gold); color: var(--ink-on-gold); }

/* ---------- M3 入门四阶段（253px） ---------- */
.starter { padding: 16px 0 14px; background: var(--bg-deep); }
.starter .section-head h2 { font-size: 24px; }
.starter .section-intro { font-size: 11.5px; line-height: 1.45; }
.starter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 12px; }
.starter-card {
  position: relative; height: 140px; overflow: hidden;
  border-radius: var(--radius-sm); border: 1px solid rgba(212, 170, 107, .16);
}
.starter-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.starter-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7, 16, 26, .92) 0%, rgba(7, 16, 26, .7) 58%, rgba(7, 16, 26, .36) 100%); }
.starter-num {
  position: absolute; left: 12px; top: 11px; z-index: 2;
  display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%;
  background: var(--gold); color: var(--ink-on-gold); font: 700 12px/1 var(--font-serif);
}
.starter-body { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 36px 14px 12px; }
.starter-name { font: 700 16px/1.2 var(--font-serif); color: var(--ink); }
.starter-desc { margin-top: 5px; font-size: 10.5px; line-height: 1.48; color: #c6d0da; }

/* ---------- M4 + M5 同排（478px） ---------- */
.split { padding: 24px 0 14px; background: var(--bg); }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, .9fr); gap: 28px; align-items: start; }
.split-grid > * { min-width: 0; }
.featured .section-head h2, .routes .section-head h2 { font-size: 23px; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.featured-card {
  display: block; height: 172px; overflow: hidden;
  border: 1px solid rgba(212, 170, 107, .18); border-radius: var(--radius-sm);
  background: var(--panel); transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.featured-card img { width: 100%; height: 92px; object-fit: cover; transition: opacity .2s var(--ease); }
.featured-body { display: block; padding: 7px 9px 9px; }
.tag { display: block; font: 500 9px/1.2 var(--mono); letter-spacing: .06em; color: var(--gold); }
.featured-name { display: block; margin-top: 3px; font: 600 12.5px/1.35 var(--font-sans); color: var(--ink); }
.featured-desc { display: block; margin-top: 3px; font-size: 9.8px; line-height: 1.42; color: var(--muted); }
.featured-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.featured-card:hover img { opacity: .86; }

.routes .section-intro { font-size: 11px; line-height: 1.5; }
.table-scroll { max-width: 100%; margin-top: 10px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.route-table { width: 100%; border-collapse: collapse; font-size: 10.5px; line-height: 1.35; }
.route-table thead th {
  padding: 7px 7px; background: #17293b; color: var(--gold-2);
  font: 600 9.5px/1.3 var(--mono); letter-spacing: .04em; text-align: left; white-space: nowrap;
}
.route-table tbody th, .route-table tbody td { padding: 6px 7px; border-top: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.route-table tbody th { font-weight: 600; color: var(--ink); }
.route-table tbody td { color: var(--muted); white-space: nowrap; }
.route-table tbody tr:hover { background: rgba(212, 170, 107, .06); }
.level { color: var(--gold-2) !important; }
.level-1::before, .level-2::before, .level-3::before, .level-4::before { content: "✓ "; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; }
.table-note { margin-top: 7px; font-size: 9.5px; line-height: 1.45; color: var(--muted-2); }

/* ---------- M6 三份清单（134px） ---------- */
.checklist { padding: 14px 0 14px; background: var(--bg-deep); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.checklist-columns { display: grid; grid-template-columns: 290px repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.checklist-head { display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; align-content: start; }
.checklist-icon { grid-row: span 2; color: var(--gold); align-self: start; }
.checklist-head h2 { font: 600 20px/1.25 var(--font-serif); color: var(--gold-2); }
.checklist-head .section-intro { grid-column: 2; margin-top: 4px; font-size: 10.5px; line-height: 1.5; }
.checklist-group { border-left: 1px solid var(--line); padding-left: 18px; }
.checklist-group h3 { display: flex; align-items: center; gap: 8px; font: 600 13px/1.2 var(--font-sans); color: var(--ink); }
.group-num { font: 500 10px/1 var(--mono); color: var(--gold); }
.checklist-group ul { margin-top: 7px; }
.checklist-group li { position: relative; padding-left: 14px; font-size: 10.5px; line-height: 1.55; color: var(--muted); }
.checklist-group li::before { content: ""; position: absolute; left: 0; top: .48em; width: 6px; height: 6px; border: 1px solid var(--gold); }

/* ---------- M7 误区对照（91px） ---------- */
.myths { padding: 7px 0; background: var(--bg); }
.myths-grid { display: grid; grid-template-columns: 246px repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.myths-head h2 { font: 600 19px/1.2 var(--font-serif); color: var(--gold-2); }
.myths-head .section-intro { margin-top: 4px; font-size: 10px; line-height: 1.45; }
.myth-card { padding: 8px 10px 9px; background: var(--gold-3); color: var(--ink-on-gold); border-radius: var(--radius-sm); }
.myth-card h3 { font: 700 11.5px/1.25 var(--font-sans); }
.myth-card p { margin-top: 3px; font-size: 9.2px; line-height: 1.4; color: #3a2a12; }
.myth-card .myth-fix { margin-top: 3px; font-weight: 700; color: #231706; }

/* ---------- M8 安全提示带（82px） ---------- */
.safety { background: var(--gold-3); color: var(--ink-on-gold); }
.safety-inner { display: flex; align-items: center; gap: 26px; min-height: 82px; padding: 14px 0; }
.safety h2 { flex: 0 0 auto; font: 700 21px/1.2 var(--font-serif); letter-spacing: .02em; }
.safety-list { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.safety-list li { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: #2b1d0b; }
.safety-list li::before {
  content: "✓"; display: inline-grid; place-items: center;
  width: 14px; height: 14px; border: 1px solid #2b1d0b; border-radius: 50%;
  font-size: 9px; line-height: 1;
}

/* ---------- M9 页脚（165px） ---------- */
.site-footer { background: var(--bg-deep); padding: 22px 0 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 40px; align-items: start; }
.footer-grid > * { flex: 1 1 180px; min-width: 160px; }
.footer-grid > .footer-brand { flex: 1.6 1 260px; }
.footer-brand .brand-name { font-size: 20px; }
.footer-brand .brand-sub { font-size: 9.5px; }
.footer-brand p { margin-top: 10px; max-width: 420px; font-size: 10.5px; line-height: 1.6; color: var(--muted); }
.footer-col h2 { margin-bottom: 8px; font: 600 11px/1.2 var(--mono); letter-spacing: .14em; color: var(--gold); }
.footer-col ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 18px; }
.footer-col:last-child ul { grid-template-columns: 1fr; }
.footer-col li { font-size: 10.5px; line-height: 1.5; }
.footer-col a { font-size: 10.5px; line-height: 1.5; color: var(--muted); transition: color .16s var(--ease); }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 14px; padding: 9px 0 10px; border-top: 1px solid var(--line-soft);
}
.footer-bottom p { font-size: 9.5px; color: var(--muted-2); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .site-nav { gap: 12px; justify-content: flex-start; }
  .site-nav a { font-size: 11.5px; }
  .category-name { font-size: 17px; }
  .featured-card { height: 168px; }
}

@media (max-width: 1024px) {
  .header-inner { flex-wrap: wrap; row-gap: 6px; }
  .site-nav { order: 3; flex: 1 1 100%; justify-content: flex-start; padding-bottom: 2px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { height: 180px; }
  .split-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-card { height: auto; }
  .featured-card img { height: 120px; }
  .checklist-columns { grid-template-columns: 1fr 1fr 1fr; }
  .checklist-head { grid-column: 1 / -1; grid-template-columns: 38px 1fr; }
  .myths-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .myths-head { grid-column: 1 / -1; }
  .myth-card { min-height: 92px; }
  .safety-inner { flex-wrap: wrap; gap: 8px 20px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .header-cta { display: none; }
  .hero { height: auto; min-height: 540px; }
  .hero-inner { padding: 86px 0 34px; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 18px; }
  .hero-text { font-size: 12.5px; }
  .hero-actions .btn { height: 38px; font-size: 11.5px; padding: 0 12px; }
  .section-head h2, .starter .section-head h2 { font-size: 22px; }
  .section-head-center { text-align: left; }
  .section-head-center .section-kicker { justify-content: flex-start; }
  .section-head-center .section-kicker::before, .section-head-center .section-kicker::after { display: none; }
  .section-head-center .section-intro { margin-inline: 0; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { height: 170px; }
  .category-name { font-size: 20px; }
  .category-desc { font-size: 12px; max-width: 80%; }
  .starter-grid { grid-template-columns: 1fr; gap: 12px; }
  .starter-card { height: 156px; }
  .starter-desc { font-size: 11.5px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card { height: auto; }
  .featured-card img { height: 170px; }
  .featured-name { font-size: 15px; }
  .featured-desc { font-size: 11px; }
  .route-table { font-size: 11.5px; min-width: 560px; }
  .checklist-columns { grid-template-columns: 1fr; gap: 16px; }
  .checklist-group { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
  .checklist-group li { font-size: 12px; }
  .checklist-head h2 { font-size: 20px; }
  .myths-grid { grid-template-columns: 1fr; }
  .myth-card { min-height: 0; padding: 12px 14px; }
  .myth-card h3 { font-size: 14px; }
  .myth-card p { font-size: 11px; }
  .safety h2 { font-size: 19px; }
  .safety-list li { font-size: 11px; }
  .footer-grid { flex-direction: column; gap: 18px; }
  .footer-grid > *, .footer-grid > .footer-brand { flex: 1 1 auto; width: 100%; min-width: 0; }
  .footer-col ul { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 4px; }
}

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