/* ============================================================
   奇异果赛事 · 共享样式 /assets/site.css
   1 重置  2 令牌  3 基础排版  4 头部  5 页脚
   6 布局容器  7 通用组件  8 交互  9 响应式与降级
   ============================================================ */

/* ---------- 1 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }
hr { border: 0; border-top: 1px solid rgba(243, 239, 228, .18); }

/* ---------- 2 令牌 ---------- */
:root {
  --kiwi: #469B3F;
  --kiwi-light: #7FCB6A;
  --seed: #101614;
  --ink: #0B211C;
  --teal: #123C40;
  --wine: #5A1F2C;
  --indigo: #2C2557;
  --gold: #E3A83C;
  --gold-light: #F6D98A;
  --paper: #F3EFE4;
  --card-yellow: #F0C22E;
  --card-red: #CE2F32;
  --glass: rgba(255, 255, 255, .14);

  --rail-w: 320px;
  --bar-h: 62px;
  --content-max: 1120px;
  --measure: 40em;

  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --fs-body: 17px;
  --line-body: 1.85;
  --radius: 2px;
  --edge: 1px solid rgba(127, 203, 106, .28);
}

/* ---------- 3 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--line-body);
  color: var(--paper);
  background-color: var(--seed);
  background-image:
    repeating-linear-gradient(90deg, rgba(127, 203, 106, .07) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(127, 203, 106, .05) 0 1px, transparent 1px 72px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; line-height: 1.28; }
h1 { font-size: clamp(30px, 5vw, 54px); }
h2 { font-size: clamp(24px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
strong, b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--seed);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top .2s ease;
}
.skip-link:focus { top: 10px; }

/* ---------- 4 头部 ---------- */
.site-header { position: relative; z-index: 60; }

.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 90;
  background: rgba(243, 239, 228, .12);
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--kiwi-light), var(--kiwi) 45%, var(--gold));
}

.topbar { display: none; }

.rail-scrim { display: none; }

.rail {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--rail-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px 24px 26px;
  overflow-y: auto;
  background-color: var(--teal);
  background-image:
    radial-gradient(rgba(243, 239, 228, .09) 1px, transparent 1.3px),
    linear-gradient(160deg, rgba(70, 155, 63, .18), rgba(11, 33, 28, .35) 60%);
  background-size: 11px 11px, 100% 100%;
  border-inline-end: 1px solid rgba(127, 203, 106, .30);
  scrollbar-width: thin;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}
.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--seed) 0 17%, transparent 18%),
    radial-gradient(circle at 25% 31%, var(--seed) 0 2.6px, transparent 3.1px),
    radial-gradient(circle at 75% 33%, var(--seed) 0 2.6px, transparent 3.1px),
    radial-gradient(circle at 31% 73%, var(--seed) 0 2.6px, transparent 3.1px),
    radial-gradient(circle at 70% 71%, var(--seed) 0 2.6px, transparent 3.1px),
    radial-gradient(circle at 50% 50%, var(--kiwi-light) 30%, var(--kiwi) 72%);
  box-shadow: 0 0 0 2px rgba(243, 239, 228, .18);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.brand__sub {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold-light);
}
.brand--bar .brand__mark { width: 30px; height: 30px; }
.brand--bar .brand__name { font-size: 16px; }
.brand--footer { align-items: center; }
.brand--footer .brand__name { font-size: 22px; }

.rail__season {
  background: var(--glass);
  border: 1px solid rgba(243, 239, 228, .20);
  padding: 14px;
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}
.rail__season-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(243, 239, 228, .72);
  margin-bottom: 10px;
}
.season-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.season-chip {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: rgba(243, 239, 228, .74);
  border: 1px solid rgba(243, 239, 228, .22);
  border-radius: var(--radius);
}
.season-chip.is-current {
  color: var(--seed);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: transparent;
  font-weight: 700;
}

.rail__nav { display: block; }
.rail__nav-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 8px;
}
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: rgba(243, 239, 228, .74);
  border-inline-start: 3px solid transparent;
  border-radius: var(--radius);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.nav-link:hover {
  color: var(--paper);
  background: rgba(127, 203, 106, .12);
  border-inline-start-color: var(--kiwi-light);
}
.nav-link[aria-current="page"] {
  color: var(--paper);
  background: linear-gradient(90deg, rgba(70, 155, 63, .44), rgba(70, 155, 63, .05));
  border-inline-start-color: var(--gold);
}
.nav-link__num {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.nav-link__label { font-size: 16px; font-weight: 600; letter-spacing: .01em; }

.rail__utility { margin-top: auto; }
.rail__hint {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(243, 239, 228, .64);
  margin-bottom: 10px;
}
.rail__hint::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 7px;
  background: var(--kiwi-light);
  transform: rotate(45deg);
}
.util-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.util-link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(243, 239, 228, .80);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(127, 203, 106, .5);
  transition: color .18s ease, border-color .18s ease;
}
.util-link:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.rail__cta { margin-top: 16px; width: 100%; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--paper);
  background: rgba(11, 33, 28, .55);
  border: 1px solid rgba(127, 203, 106, .5);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 13px;
  border-top: 2px solid var(--kiwi-light);
  border-bottom: 2px solid var(--kiwi-light);
  transition: transform .25s ease;
}
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--gold);
}
.site-header[data-open="true"] .nav-toggle__bars { transform: rotate(90deg); }

/* ---------- 5 页脚 ---------- */
.site-footer {
  position: relative;
  background-color: var(--ink);
  color: rgba(243, 239, 228, .84);
  border-top: 1px solid rgba(127, 203, 106, .34);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(243, 239, 228, .07) 1px, transparent 1.3px);
  background-size: 12px 12px;
  pointer-events: none;
}
.footer__inner {
  position: relative;
  width: min(calc(100% - 40px), var(--content-max));
  margin-inline: auto;
  padding: clamp(38px, 5vw, 68px) 0 28px;
}
.footer__top { display: grid; gap: 34px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer__tagline {
  max-width: 30em;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(243, 239, 228, .74);
}
.footer__cols {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.footer__col-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer__links { display: flex; flex-direction: column; gap: 9px; }
.footer__links a {
  font-size: 16px;
  color: rgba(243, 239, 228, .82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.footer__links a:hover { color: var(--kiwi-light); border-bottom-color: var(--kiwi-light); }
.footer__contact {
  margin-top: clamp(28px, 4vw, 46px);
  padding: 18px 20px;
  display: grid;
  gap: 8px;
  background: var(--glass);
  border: 1px solid rgba(243, 239, 228, .16);
  border-inline-start: 3px solid var(--kiwi);
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}
.footer__contact-line {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(243, 239, 228, .80);
  font-variant-numeric: tabular-nums;
}
.footer__legal {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(243, 239, 228, .14);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(243, 239, 228, .58);
  font-variant-numeric: tabular-nums;
}

/* ---------- 6 布局容器 ---------- */
#main-content { display: block; }
.content-wrap { width: min(calc(100% - 40px), var(--content-max)); margin-inline: auto; }
.section { padding: clamp(46px, 7vw, 96px) 0; position: relative; }
.section--deep { background: var(--seed); }
.section--teal { background: var(--teal); }
.section--wine { background: var(--wine); }
.section--indigo { background: var(--indigo); }
.section--paper { background: var(--paper); color: #17211D; }
.section--paper a { color: #24591F; }
.section--paper .eyebrow { color: #2F6B29; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; letter-spacing: .04em; }
.crumb { color: rgba(243, 239, 228, .68); text-decoration: none; }
.crumb + .crumb::before { content: "/"; margin-inline-end: 8px; color: rgba(243, 239, 228, .38); }
.crumb:hover { color: var(--kiwi-light); }
.crumb[aria-current="page"] { color: var(--gold-light); }

/* ---------- 7 通用组件 ---------- */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--kiwi-light);
}
.lede { max-width: 34em; font-size: clamp(18px, 2.1vw, 23px); line-height: 1.7; opacity: .88; }
.prose { max-width: var(--measure); }
.prose p { margin-bottom: 1.15em; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; }

.num {
  font-family: var(--font-display);
  font-size: 1.12em;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  position: relative;
  padding: 22px;
  background: rgba(243, 239, 228, .06);
  border: var(--edge);
  border-radius: var(--radius);
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}
.card--glass {
  background: var(--glass);
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px);
}
.card__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--kiwi-light);
}
.card__title { font-size: 20px; font-weight: 700; line-height: 1.42; margin-bottom: 8px; }
.card__meta {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(243, 239, 228, .66);
  font-variant-numeric: tabular-nums;
}
.section--paper .card { background: rgba(16, 22, 20, .05); border-color: rgba(16, 22, 20, .16); }
.section--paper .card__meta { color: rgba(16, 22, 20, .6); }
.section--paper .card__label { color: #2F6B29; }

.stat {
  padding: 16px 18px;
  color: var(--seed);
  background: linear-gradient(155deg, var(--gold-light), var(--gold));
  border-radius: var(--radius);
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  line-height: .92;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(16, 22, 20, .78);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}
.tag--yellow { color: var(--card-yellow); background: rgba(240, 194, 46, .14); }
.tag--red { color: var(--card-red); background: rgba(206, 47, 50, .18); }
.tag--gold { color: var(--gold); background: rgba(227, 168, 60, .14); }

.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--teal), var(--seed) 75%);
  border: 1px solid rgba(127, 203, 106, .24);
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media__img { width: 100%; height: 100%; object-fit: cover; }
.media__overlay {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(11, 33, 28, .88), rgba(11, 33, 28, 0));
  backdrop-filter: blur(2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--kiwi); color: #08150A; }
.btn--primary:hover { background: var(--kiwi-light); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: rgba(127, 203, 106, .55); color: var(--kiwi-light); }
.btn--ghost:hover { background: rgba(127, 203, 106, .14); color: var(--paper); }
.btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--seed); }
.btn--gold:hover { transform: translateY(-1px); }

/* ---------- 8 交互 ---------- */
[data-section] { position: relative; }
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.back-to-top {
  position: fixed;
  inset-inline-end: 18px;
  inset-block-end: 18px;
  z-index: 75;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--seed);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: 1px solid rgba(16, 22, 20, .28);
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.back-to-top[data-shown="true"] { opacity: 1; visibility: visible; transform: none; }

/* ---------- 9 响应式 ---------- */
@media (min-width: 720px) {
  .footer__top { gap: 40px; }
}
@media (min-width: 1080px) {
  #main-content, .site-footer { margin-inline-start: var(--rail-w); }
  .footer__top { grid-template-columns: 1fr 1.6fr; gap: 30px 56px; }
  .footer__contact { grid-template-columns: 1fr; }
  [data-section].is-current::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: -1px;
    width: 3px;
    background: linear-gradient(180deg, var(--kiwi-light), var(--gold));
  }
}

@media (max-width: 1079px) {
  body { padding-top: var(--bar-h); }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    height: var(--bar-h);
    padding-inline: 16px;
    z-index: 80;
    background: rgba(18, 60, 64, .95);
    border-bottom: 1px solid rgba(127, 203, 106, .32);
    backdrop-filter: blur(10px);
  }
  .rail {
    inset-inline-start: 0;
    width: min(88vw, 340px);
    padding-top: 20px;
    transform: translateX(-102%);
    transition: transform .3s ease;
    box-shadow: 18px 0 42px rgba(0, 0, 0, .38);
  }
  .site-header[data-open="true"] .rail { transform: none; }
  .rail-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(11, 33, 28, .72);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
  }
  .site-header[data-open="true"] .rail-scrim { opacity: 1; visibility: visible; }
  .back-to-top { inset-inline-end: 14px; inset-block-end: 14px; }
}

@media (max-width: 520px) {
  .season-chip { font-size: 14px; padding: 2px 7px; }
  .footer__inner { width: calc(100% - 32px); }
  .content-wrap { width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
