/* ============================================================
   金年会赛场 · 共享 Site Kit  /assets/site.css
   01 reset & tokens · 02 base · 03 utilities · 04 header
   05 footer · 06 components · 07 motion · 08 responsive
   ============================================================ */

/* ---------- 01 · reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
a { color: inherit; }

:root {
  /* brand palette */
  --pine: #0B3B36;
  --pine-deep: #072A26;
  --ice-blue: #0E2A47;
  --ice-deep: #081B2F;
  --cyan: #00E5C7;
  --orange: #FF6B35;
  --gold: #F5C542;
  --silver: #C0C8D0;
  --bronze: #CD7F32;
  --gray: #8A9BA8;
  --pale: #E6F0F5;
  --ink: #0A0F14;

  /* semantic */
  --text: #E7F1F5;
  --text-dim: #A6BAC4;
  --text-mute: #7E939E;
  --line: rgba(0, 229, 199, 0.24);
  --line-soft: rgba(138, 155, 168, 0.26);
  --surface: rgba(230, 240, 245, 0.045);
  --surface-2: rgba(230, 240, 245, 0.08);

  /* type */
  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* metrics */
  --w-wide: 1260px;
  --w-read: 780px;
  --gut: clamp(16px, 4vw, 40px);
  --cut: 14px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 18px 46px rgba(4, 14, 22, 0.55);
}

/* ---------- 02 · base ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(16px, 0.35vw + 15px, 17.5px);
  line-height: 1.72;
  letter-spacing: 0.008em;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(1080px 620px at 10% -10%, rgba(0, 229, 199, 0.10), transparent 62%),
    radial-gradient(920px 560px at 94% 4%, rgba(255, 107, 53, 0.075), transparent 60%),
    linear-gradient(180deg, var(--ice-deep) 0%, #0B1E2B 46%, var(--ink) 100%);
  background-repeat: no-repeat;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.012em;
}
h1 { font-size: clamp(32px, 5.4vw, 62px); }
h2 { font-size: clamp(24px, 3vw, 38px); }
h3 { font-size: clamp(19px, 1.6vw, 26px); line-height: 1.28; }
h4 { font-size: clamp(16px, 1.1vw, 19px); line-height: 1.4; }
p { text-wrap: pretty; }
a { text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.mono, .tnum {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ---------- 03 · utilities ---------- */
.container {
  width: 100%;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.reader {
  max-width: var(--w-read);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.reader p { margin-bottom: 1.1em; color: var(--text-dim); }
.reader h2, .reader h3 { margin: 1.8em 0 0.6em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.display {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: 0.01em;
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }

.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.panel--cut {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  border-right: 0;
  border-top: 0;
}

.section-band {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 26px);
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--line-soft);
}
.section-band__no {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
}
.section-band__title { font-size: clamp(22px, 2.6vw, 34px); }

/* breadcrumbs */
.crumbs { padding-block: clamp(18px, 3vw, 34px) 0; }
.crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs__item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.crumbs__item a { color: var(--text-dim); transition: color 0.2s var(--ease); }
.crumbs__item a:hover { color: var(--cyan); }
.crumbs__item:last-child { color: var(--cyan); }
.crumbs__sep { color: var(--line-soft); font-family: var(--font-mono); font-size: 12px; }

/* ---------- 04 · header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(3, 12, 18, 0.5);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 22%, var(--orange) 62%, transparent);
  opacity: 0.5;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 90;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 10px; }

.cmd-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2.2vw, 30px);
  max-width: var(--w-wide);
  margin-inline: auto;
  padding: 9px var(--gut);
  min-height: 62px;
}
.cmd-bar__stream { min-width: 0; }
.cmd-bar__act {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 17px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), #43ffd9);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gray);
  padding-left: 10px;
  border-left: 1px solid var(--line-soft);
  white-space: nowrap;
}
.brand--footer { gap: 12px; }
.brand--footer .brand__name { font-size: 20px; }

.tag-stream {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 22px), transparent 100%);
}
.tag-stream::-webkit-scrollbar { display: none; }
.tag-stream__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 5px 11px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: nowrap;
  background: rgba(0, 229, 199, 0.06);
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.tag-stream__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px dashed var(--line-soft);
  border-radius: 999px;
  white-space: nowrap;
}
.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 229, 199, 0.55);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 199, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 229, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 199, 0); }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(0, 229, 199, 0.07);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background 0.2s var(--ease);
}
.nav-toggle:hover { background: rgba(0, 229, 199, 0.16); }
.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.site-nav {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding: 0 var(--gut);
  border-top: 1px solid rgba(138, 155, 168, 0.18);
}
.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: clamp(2px, 0.6vw, 10px);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav__list::-webkit-scrollbar { display: none; }
.site-nav__item { flex: none; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-nav__link:hover { color: var(--text); border-bottom-color: var(--line); }
.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.06em;
}
.site-nav__label { display: inline-block; }
.site-nav__link[aria-current="page"],
.site-nav__link.is-current {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(0, 229, 199, 0.07);
}
.site-nav__link[aria-current="page"] .site-nav__idx,
.site-nav__link.is-current .site-nav__idx { color: var(--orange); }

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(0, 229, 199, 0.09);
}
.scroll-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

/* ---------- 05 · footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 9vw, 130px);
  color: var(--text-dim);
  background: linear-gradient(180deg, #06211E 0%, var(--ink) 100%);
  border-top: 1px solid var(--line);
}
.footer__stripe {
  height: 6px;
  background: repeating-linear-gradient(
    115deg,
    var(--cyan) 0 16px,
    var(--orange) 16px 20px,
    transparent 20px 38px
  );
  opacity: 0.5;
}
.footer__inner {
  width: 100%;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.4fr);
  gap: clamp(22px, 3vw, 46px);
  padding-block: clamp(36px, 5vw, 66px);
}
.footer__brand { display: grid; gap: 14px; align-content: start; }
.footer__line {
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-dim);
}
.footer__nav { display: grid; gap: 14px; align-content: start; }
.footer__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer__title::before { content: "/ "; color: var(--orange); }
.footer__list { display: grid; gap: 9px; }
.footer__list a {
  font-size: 14.5px;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__list a:hover { color: var(--cyan); border-bottom-color: var(--line); }

.footer__contact { display: grid; gap: 14px; align-content: start; }
.footer__contact-list { display: grid; gap: 10px; }
.footer__contact-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.6;
}
.footer__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gray);
  padding-top: 3px;
}
.footer__value { color: var(--text); word-break: break-word; }
.footer__note {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-mute);
  padding-left: 12px;
  border-left: 2px solid var(--line);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px 26px;
  border-top: 1px dashed var(--line-soft);
  font-size: 12.5px;
  color: var(--text-mute);
}
.footer__copy { letter-spacing: 0.02em; }
.footer__icp { font-size: 12px; color: var(--gray); letter-spacing: 0.08em; }

/* ---------- 06 · components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  border: 1px solid transparent;
  background: transparent;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--signal { background: var(--orange); color: #140D08; }
.btn--signal:hover { background: #FF8A5C; color: #140D08; }
.btn--ghost {
  color: var(--cyan);
  border-color: var(--line);
  background: rgba(0, 229, 199, 0.07);
}
.btn--ghost:hover { background: rgba(0, 229, 199, 0.18); color: #FFFFFF; }
.btn--line { color: var(--text); border-color: var(--line-soft); }
.btn--line:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--compact { padding: 8px 13px; font-size: 12px; letter-spacing: 0.08em; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.link-arrow::after {
  content: "→";
  transition: transform 0.24s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid currentColor;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.badge--gold { color: var(--gold); background: rgba(245, 197, 66, 0.10); }
.badge--silver { color: var(--silver); background: rgba(192, 200, 208, 0.10); }
.badge--bronze { color: var(--bronze); background: rgba(205, 127, 50, 0.12); }

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--ice-blue) 0%, var(--pine) 100%);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}
.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--pale);
  background: linear-gradient(0deg, rgba(8, 27, 47, 0.92), rgba(8, 27, 47, 0));
}
.media-frame--empty::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(230, 240, 245, 0.55);
  background-image: repeating-linear-gradient(
    115deg,
    rgba(0, 229, 199, 0.10) 0 2px,
    transparent 2px 14px
  );
}

.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 32px);
  bottom: clamp(14px, 2.4vw, 32px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  background: rgba(7, 26, 44, 0.94);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), background 0.2s var(--ease);
}
.to-top::before { content: "↑"; font-size: 13px; color: var(--orange); }
.to-top:hover { background: rgba(0, 229, 199, 0.16); }
.to-top.is-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }

/* ---------- 07 · motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .to-top { transition: none; }
}

/* ---------- 08 · responsive ---------- */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cmd-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "lead act"
      "stream stream";
    row-gap: 8px;
    padding-block: 10px;
  }
  .cmd-bar__lead { grid-area: lead; min-width: 0; }
  .cmd-bar__act { grid-area: act; }
  .cmd-bar__stream { grid-area: stream; }
  .status-pill { display: none; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--pine-deep);
    max-height: 72vh;
    overflow-y: auto;
  }
  .site-nav[data-open] { display: block; }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding-block: 8px 14px;
  }
  .site-nav__item { width: 100%; }
  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(138, 155, 168, 0.14);
    border-left: 2px solid transparent;
    font-size: 15.5px;
  }
  .site-nav__link:hover { border-left-color: var(--line); border-bottom-color: rgba(138, 155, 168, 0.14); }
  .site-nav__link[aria-current="page"],
  .site-nav__link.is-current {
    border-left-color: var(--cyan);
    border-bottom-color: rgba(138, 155, 168, 0.14);
  }
}
@media (max-width: 720px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
  .footer__top { grid-template-columns: 1fr; padding-block: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .brand__name { font-size: 15.5px; }
  .nav-toggle__label { display: none; }
  .footer__contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer__key { padding-top: 0; }
}
