/* 马拉松 · 首页样式（设计基准 1440，区块高度按 03-ui/ui-spec.md 分区预算落位） */


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.01em; }

p { margin: 0; }

ul, ol, dl, dd, figure { margin: 0; padding: 0; }

li { list-style: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 238, 223, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(231, 216, 193, .7);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--ink);
}

.brand-mark { width: 26px; height: 26px; color: var(--ink); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
}

.main-nav a {
  padding: 6px 0;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

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

.main-nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  height: 391px;
  overflow: hidden;
  background: var(--bg);
}

.hero-media {
  position: absolute;
  top: 0;
  right: 262px;
  width: 600px;
  height: 100%;
  overflow: hidden;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 8%, rgba(250, 238, 223, 0) 30%, rgba(250, 238, 223, 0) 76%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(250, 238, 223, 0) 9%, rgba(250, 238, 223, 0) 88%, var(--bg) 100%);
}

.hero-inner { height: 100%; padding-top: 30px; position: relative; z-index: 2; }

.hero-title { max-width: 660px; }

.hero-en {
  display: block;
  font-size: 54px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.015em;
}

.hero-lead {
  display: block;
  margin-top: 14px;
  font-size: 19px;
  line-height: 1.72;
  font-weight: 500;
  max-width: 600px;
}

.hero-lead strong { font-weight: 800; }

.hero-actions { margin-top: 24px; display: flex; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .18s, background-color .18s, border-color .18s;
}

.btn:hover { transform: translateY(-1px); }

.btn-solid { background: var(--accent-fill); color: #fffdf9; }
.btn-solid:hover { background: #b78d4c; }

.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); background: rgba(253, 248, 239, .5); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-facts {
  position: absolute;
  right: var(--gutter);
  top: 30px;
  z-index: 3;
  min-width: 190px;
  display: grid;
  gap: 12px;
  text-align: right;
}

.hero-facts div { border-bottom: 1px solid rgba(217, 196, 165, .55); padding-bottom: 10px; }
.hero-facts div:last-child { border-bottom: 0; }
.hero-facts dt { font-size: 21px; font-weight: 800; line-height: 1.25; white-space: nowrap; }
.hero-facts dd { margin-top: 2px; font-size: 11px; letter-spacing: .08em; color: var(--muted); }

/* --------------------------------------------------------------- section */

.section { padding: 0 0 0; }

.split {
  display: grid;
  grid-template-columns: 288px 1fr;
  gap: 44px;
  align-items: start;
}

.section-timeline .split { grid-template-columns: 344px 1fr; gap: 36px; }
.section-week .split { grid-template-columns: 268px 1fr; gap: 36px; }
.section-gear .split { grid-template-columns: 320px 1fr; gap: 38px; }
.section-pace .split { grid-template-columns: 352px 1fr; gap: 32px; }
.section-faq .split { grid-template-columns: 268px 1fr; gap: 44px; }

.section-head h2 {
  font-size: 23px;
  line-height: 1.28;
  letter-spacing: -.015em;
}

.section-timeline .section-head h2 { font-size: 20px; }
.section-week .section-head h2 { font-size: 21px; }
.section-gear .section-head h2 { font-size: 21px; }
.section-pace .section-head h2 { font-size: 21px; }
.section-faq .section-head h2 { font-size: 23px; }

.section-head p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.section-head .head-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .12em;
}

/* --------------------------------------------------------------- 八类入口 */

.section-cats { padding-top: 4px; padding-bottom: 0; }

.cat-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.cat-card {
  display: block;
  padding: 12px 12px 11px;
  background: rgba(253, 248, 239, .55);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: background-color .2s, border-color .2s, transform .2s;
}

.cat-card:hover {
  background: var(--panel);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.cat-icon { width: 24px; height: 24px; color: var(--accent); }

.cat-card h3 { margin-top: 8px; font-size: 13.5px; font-weight: 700; }

.cat-card p {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* --------------------------------------------------------------- 编辑精选 */

.section-featured { padding-top: 22px; padding-bottom: 14px; }

.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 12px 34px 12px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: background-color .2s, border-color .2s;
}

.feature-card:hover { background: var(--panel); border-color: var(--line-strong); }

.feature-thumb {
  display: block;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--line);
}

.feature-thumb img { width: 100%; height: 100%; object-fit: cover; }

.feature-body h3 { font-size: 14.5px; line-height: 1.4; }

.tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--accent);
}

.feature-body p {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.62;
  color: var(--muted);
}

.circle-arrow {
  position: absolute;
  right: 10px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
}

.circle-arrow svg { width: 11px; height: 11px; }

/* --------------------------------------------------------------- 比赛日 */

.section-timeline { padding-top: 46px; padding-bottom: 40px; }

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line-strong);
  margin-top: 6px;
}

.timeline li { position: relative; padding: 20px 16px 0 0; }

.timeline-dot {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(169, 123, 60, .14);
}

.timeline h3 { font-size: 12.5px; letter-spacing: .01em; }

.timeline p {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* --------------------------------------------------------------- 备赛周 */

.section-week { padding-top: 26px; padding-bottom: 24px; }

.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); }

.week-day { padding: 0 14px; border-left: 1px solid var(--line); }

.week-day:first-child { border-left: 0; padding-left: 0; }

.week-day h3 { font-size: 13px; }

.week-day h3::after {
  content: attr(data-kind);
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--muted);
}

.week-day.is-quality h3::after,
.week-day.is-long h3::after { color: var(--accent); }

.week-day p {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.62;
  color: var(--muted);
}

/* --------------------------------------------------------------- 装备 */

.section-gear { padding-top: 14px; padding-bottom: 8px; }

.gear-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.gear-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }

.gear-media { height: 112px; overflow: hidden; background: var(--line); }
.gear-media img { width: 100%; height: 100%; object-fit: cover; }

.gear-card h3 { margin: 10px 12px 0; font-size: 14px; }

.gear-card p {
  margin: 4px 12px 11px;
  font-size: 11.5px;
  line-height: 1.58;
  color: var(--muted);
}

/* --------------------------------------------------------------- 配速 */

.section-pace { padding-top: 20px; padding-bottom: 26px; }

.pace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.pace-card {
  padding: 16px 18px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.pace-card h3 { font-size: 14.5px; }

.pace-card p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.68;
  color: var(--muted);
}

/* --------------------------------------------------------------- 文化 */

.section-culture { padding: 0; height: 190px; overflow: hidden; }

.culture-grid {
  display: grid;
  grid-template-columns: 400px 1fr 330px;
  gap: 40px;
  align-items: center;
  padding-right: var(--gutter);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.culture-figure { height: 190px; overflow: hidden; }
.culture-figure img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.16) saturate(.9); }

.culture-copy h2 { font-size: 23px; line-height: 1.3; }

.culture-copy p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.culture-list { border-left: 1px solid var(--line-strong); padding: 6px 0 6px 34px; }

.culture-list h3 { font-size: 15px; }

.culture-list .majors {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
}

.culture-list p:last-child { margin-top: 10px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }

/* --------------------------------------------------------------- FAQ */

.section-faq { padding-top: 30px; padding-bottom: 6px; }

.faq-list { border-top: 1px solid var(--line); }

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  position: relative;
  padding: 9px 34px 9px 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list details p {
  padding: 0 40px 18px 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* --------------------------------------------------------------- footer */

.site-footer {
  background: var(--dark);
  color: var(--cream);
  padding: 32px 0 34px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr 330px;
  gap: 40px;
  align-items: start;
}

.brand-light { color: var(--cream); }
.brand-light .brand-mark { color: var(--cream); }

.footer-brand p { margin-top: 10px; font-size: 11.5px; color: rgba(247, 235, 217, .62); }

.footer-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  color: rgba(247, 235, 217, .55);
  margin-bottom: 10px;
}

.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }

.footer-nav a {
  font-size: 12px;
  color: rgba(247, 235, 217, .86);
  border-bottom: 1px solid transparent;
}

.footer-nav a:hover { border-color: rgba(247, 235, 217, .6); }

.footer-note p { font-size: 11px; line-height: 1.7; color: rgba(247, 235, 217, .62); }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1200px) {
  .hero-en { font-size: 46px; }
  .hero-lead { font-size: 17px; max-width: 520px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .section-cats { padding-bottom: 30px; }
  .timeline { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .timeline li { border-top: 1px solid var(--line-strong); margin-bottom: 6px; }
  .gear-grid { grid-template-columns: repeat(2, 1fr); }
  .culture-grid { grid-template-columns: 340px 1fr; padding-bottom: 24px; }
  .culture-list { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 20px var(--gutter) 0 0; }
  .footer-inner { grid-template-columns: 240px 1fr; }
  .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --gutter: 28px; }
  .split,
  .section-timeline .split,
  .section-week .split,
  .section-gear .split,
  .section-pace .split,
  .section-faq .split { grid-template-columns: 1fr; gap: 20px; }
  .feature-list { grid-template-columns: 1fr; }
  .week-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .week-day:nth-child(odd) { border-left: 0; padding-left: 0; }
  .pace-grid { grid-template-columns: 1fr; }
  .culture-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 var(--gutter) 28px; }
  .culture-figure { height: 220px; margin: 0 calc(var(--gutter) * -1) 4px; }
  .culture-list { padding: 20px 0 0; border-top: 1px solid var(--line); }
  .hero { display: flex; flex-direction: column; height: auto; min-height: 430px; padding-bottom: 0; }
  .hero-inner { order: 1; }
  .hero-media {
    order: 2;
    position: relative;
    inset: auto;
    width: calc(100% + var(--gutter) * 2);
    height: 200px;
    margin: 26px calc(var(--gutter) * -1) 0;
  }
  .hero-media::after {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(250, 238, 223, 0) 22%, rgba(250, 238, 223, 0) 80%, var(--bg) 100%);
  }
  .hero-inner { padding-top: 26px; padding-bottom: 8px; }
  .hero-facts { position: static; display: flex; flex-wrap: wrap; gap: 14px 26px; text-align: left; margin-top: 26px; }
  .hero-facts div { border-bottom: 0; border-left: 1px solid var(--line-strong); padding: 0 0 0 12px; }
  .hero-facts div:first-child { border-left: 0; padding-left: 0; }
  .main-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
}

@media (max-width: 620px) {
  .hero-en { font-size: 38px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-wrap: wrap; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .gear-grid { grid-template-columns: 1fr; }
  .week-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li { padding-right: 0; }
  .week-day { border-left: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
  .week-day:last-child { border-bottom: 0; }
  .feature-card { grid-template-columns: 64px 1fr; }
  .feature-thumb { width: 64px; height: 64px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-nav ul { gap: 6px 16px; }
}

/* ------------------------------------------------- 数据化导航下拉（对接） */

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

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

.caret {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg);
  opacity: .7;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -10px;
  min-width: 168px;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 12px 28px rgba(59, 42, 30, .12);
  z-index: 60;
}

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

.dropdown-menu a {
  display: block;
  padding: 7px 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border-bottom: 0;
  border-radius: 4px;
  white-space: nowrap;
}

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

/* ------------------------------------------------- 四栏页脚 + 底部行（对接） */

.footer-inner { grid-template-columns: 280px 1fr 1fr 300px; }

.footer-col { min-width: 0; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 235, 217, .18);
  font-size: 11px;
  color: rgba(247, 235, 217, .62);
}

/* 装备卡媒体由 div 改为 a，需块级 + 裁切 */
.gear-media { display: block; }
.gear-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1200px) {
  .footer-inner { grid-template-columns: 240px 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-item { display: block; width: 100%; }
  .caret { display: none; }
  .dropdown-menu {
    display: block;
    position: static;
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding: 0 0 6px 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .dropdown-menu a { padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ------------------------------------------------- 列表缩略图 / 分页 / 详情配图（对接） */

.card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: var(--line);
}

.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background-color .2s, border-color .2s, color .2s;
}

.pager a:hover { border-color: var(--accent); color: var(--accent); }

.pager span[aria-current="page"] {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: #fffdf9;
  font-weight: 700;
}

.pager .is-gap { border: 0; min-width: 18px; padding: 0; color: var(--muted); }

.article figure { margin-top: 18px; }

.article figure img {
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
  object-fit: cover;
}

@media (max-width: 620px) {
  .pager a, .pager span { min-width: 30px; height: 30px; padding: 0 9px; font-size: 12px; }
}
