/* ==========================================================================
   refresh-kickoff-feifan · /assets/site.css
   共享外壳：设计令牌 / 重置 / 中文排版 / 页头 / 页脚 / 基础组件
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --deep: #061A2E;
  --hull: #0B2740;
  --cyan: #2FF3D0;
  --orange: #FF7A3D;
  --mint: #7BE8B0;
  --indigo: #3B2E8F;
  --wine: #7A1F3D;
  --mist: #EAF3F8;
  --steel: #9FB6C6;
  --line: #1E3F5C;
  --ink-dim: #C6D7E2;
  --ink-faint: #6E8797;

  --font-display: "Archivo Narrow", "Oswald", "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Roboto Mono", "DejaVu Sans Mono",
    Consolas, "Courier New", monospace;
  --font-serif: Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif SC", serif;

  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 40px);
  --header-h: 74px;

  --cut-sm: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  --cut-md: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  --cut-lg: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);

  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video { display: block; max-width: 100%; height: auto; }

button { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; }

[hidden] { display: none !important; }

::selection { background: var(--cyan); color: #04141F; }

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--mist);
}

h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.06; }
h2 { font-size: clamp(23px, 3.3vw, 36px); }
h3 { font-size: clamp(18px, 2.1vw, 23px); }
h4 { font-size: 17px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong, b { color: var(--mist); font-weight: 700; }

.measure { max-width: 38em; }

.lead {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.75;
  color: var(--ink-dim);
}

.serif-note {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
  color: #D8E7EF;
  letter-spacing: 0.008em;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
  flex: none;
}

.mark {
  color: var(--cyan);
  border-bottom: 1px solid rgba(47, 243, 208, 0.5);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(44px, 8vw, 96px); }
.section--tight { padding-block: clamp(30px, 5vw, 56px); }

.stack > * + * { margin-top: var(--stack-gap, 16px); }

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

.divider--signal { background: linear-gradient(90deg, var(--cyan), rgba(47, 243, 208, 0)); }

.slash {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--cyan);
  transform: skewX(-24deg);
}

.trace {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

/* ---------- 5. 页头 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--cyan);
  color: #04141F;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--deep);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--gut);
  min-height: var(--header-h);
  transition: min-height 0.22s var(--ease), padding 0.22s var(--ease);
}

.site-header[data-scrolled="true"] .header-inner {
  min-height: 58px;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--mist);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--steel);
  margin-top: 2px;
}

.pulse-mark {
  position: relative;
  flex: none;
  width: 36px;
  height: 16px;
}

.pulse-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg,
    rgba(47, 243, 208, 0) 0%,
    var(--cyan) 34%,
    var(--cyan) 66%,
    rgba(47, 243, 208, 0) 100%);
}

.pulse-mark::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--orange);
  transform: translateY(-50%) rotate(45deg);
}

.site-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 13px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--steel);
  transition: color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--mist); }

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--mist);
  font-weight: 600;
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  box-shadow: 0 0 10px rgba(47, 243, 208, 0.55);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--mist);
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  clip-path: var(--cut-sm);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  flex: none;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }

.nav-toggle[data-open="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[data-open="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }

.nav-toggle[data-open="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--mint) 55%, var(--orange));
  pointer-events: none;
  will-change: transform;
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: 0;
  background: #04121F;
  border-top: 1px solid var(--line);
  color: var(--steel);
}

.footer-inner {
  display: grid;
  gap: 26px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(34px, 6vw, 62px) var(--gut) calc(26px + env(safe-area-inset-bottom));
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.footer-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 3.2vw, 32px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.footer-mark {
  display: block;
  flex: none;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: skewX(-30deg);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.footer-nav a {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--steel);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px 32px;
}

.meta-row { display: flex; flex-direction: column; gap: 2px; }

.meta-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}

.meta-val {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* ---------- 7. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--mist);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  clip-path: var(--cut-sm);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.btn:hover { border-color: var(--cyan); color: var(--cyan); }

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #08131F;
}

.btn--primary:hover {
  background: #FF8F5C;
  border-color: #FF8F5C;
  color: #08131F;
}

.btn--ghost {
  border-color: rgba(47, 243, 208, 0.55);
  color: var(--cyan);
}

.btn--ghost:hover { background: rgba(47, 243, 208, 0.1); }

.btn--sm { padding: 9px 16px; font-size: 13px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--steel);
  background: rgba(11, 39, 64, 0.65);
  border: 1px solid var(--line);
}

.tag--signal { color: var(--cyan); border-color: rgba(47, 243, 208, 0.5); }
.tag--live { color: var(--orange); border-color: rgba(255, 122, 61, 0.5); }
.tag--verified { color: var(--mint); border-color: rgba(123, 232, 176, 0.5); }

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--hull);
  border: 1px solid var(--line);
  clip-path: var(--cut-md);
}

.panel--plain { clip-path: none; }

.panel--signal { border-color: rgba(47, 243, 208, 0.42); }

.panel--indigo {
  background: linear-gradient(158deg, rgba(59, 46, 143, 0.55), rgba(59, 46, 143, 0.12));
  border-color: rgba(59, 46, 143, 0.6);
}

.panel--wine {
  background: linear-gradient(158deg, rgba(122, 31, 61, 0.5), rgba(122, 31, 61, 0.1));
  border-color: rgba(122, 31, 61, 0.65);
}

.grid { display: grid; gap: clamp(18px, 2.6vw, 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.35fr) minmax(0, 1fr); }
.grid--split-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }

.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--hull);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  clip-path: var(--cut-lg);
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(47, 243, 208, 0.1) 0%, rgba(47, 243, 208, 0) 44%),
    repeating-linear-gradient(90deg, rgba(159, 182, 198, 0.07) 0 1px, transparent 1px 84px);
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--band { aspect-ratio: 32 / 9; }

.media__label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.timeline {
  position: relative;
  list-style: none;
  border-left: 1px solid var(--line);
}

.timeline > li {
  position: relative;
  padding: 0 0 26px 26px;
}

.timeline > li:last-child { padding-bottom: 0; }

.timeline > li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--hull);
  border: 2px solid var(--cyan);
  transform: rotate(45deg);
}

.timeline > li[data-state="latest"]::before {
  background: var(--orange);
  border-color: var(--orange);
}

.timeline > li[data-state="verified"]::before { border-color: var(--mint); }

.timeline time {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.breadcrumbs { margin-bottom: 22px; }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--steel);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.breadcrumbs [aria-current="page"] { color: var(--mist); }

[data-reveal] {
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(16px);
}

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1080px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }

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

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 140;
    display: block;
    max-height: 78vh;
    overflow-y: auto;
    padding: 18px var(--gut) calc(24px + env(safe-area-inset-bottom));
    background: var(--hull);
    border-top: 1px solid rgba(47, 243, 208, 0.4);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(112%);
    transition: transform 0.3s var(--ease);
  }

  .site-nav[data-open="true"] { transform: translateY(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

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

  .nav-link {
    display: block;
    padding: 15px 2px;
    font-size: 16px;
  }

  .nav-link::after {
    left: 2px;
    right: auto;
    width: 28px;
    bottom: 10px;
  }

  .nav-link[aria-current="page"] {
    color: var(--cyan);
    font-weight: 600;
  }

  .nav-link[aria-current="page"]::after { box-shadow: none; }

  .grid--2,
  .grid--3,
  .grid--split,
  .grid--split-rev { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .header-inner { gap: 12px; padding-inline: 16px; }

  .brand-note { display: none; }

  .brand-name { font-size: 18px; }

  .pulse-mark { width: 26px; }

  .footer-top { flex-direction: column; align-items: flex-start; gap: 14px; }

  .footer-mark { width: 48px; }

  .footer-base { font-size: 11px; }
}

/* ---------- 9. 动效偏好 ---------- */
@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],
  [data-reveal].is-pending {
    opacity: 1;
    transform: none;
  }
}
