/* =========================================================
   半岛赛场 · 共享 Site Kit  /assets/site.css
   夜间赛场 × 门廊通道 × 非对称编辑部版式
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #061613;
  --ink-800: #0B2B26;
  --ink-700: #0F332D;
  --ink-600: #173F35;
  --ink-500: #1E4B40;

  --mist: #9FBDB4;
  --white: #F4FBF7;
  --cyan: #39F5D0;
  --cyan-bright: #5CFFE0;
  --cyan-wash: rgba(57, 245, 208, .08);
  --cyan-glow: rgba(57, 245, 208, .33);
  --gold: #E8C17A;
  --coral: #FF7A6B;

  --line: rgba(159, 189, 180, .20);
  --line-strong: rgba(57, 245, 208, .42);

  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Consolas, "Liberation Mono", "Courier New", monospace;

  --radius-pill: 999px;
  --radius-lg: 26px;
  --radius-md: 18px;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .7, .28, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  position: relative;
  background-color: var(--ink-800);
  background-image:
    radial-gradient(115% 72% at 84% -10%, rgba(57, 245, 208, .13), transparent 58%),
    radial-gradient(85% 62% at -8% 6%, rgba(232, 193, 122, .09), transparent 62%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.032em;
  color: var(--white);
}
h1 { font-size: clamp(2.1rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -.018em; }
h4 { font-size: 1.02rem; letter-spacing: -.01em; }

p { max-width: 72ch; }
strong, b { font-weight: 700; color: var(--white); }
small { font-size: .8em; color: var(--mist); }

::selection { background: var(--cyan); color: #04191a; }

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

.u-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ---------- 4. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 7vw, 96px); }

.prose {
  max-width: 66ch;
  color: rgba(244, 251, 247, .88);
  font-size: 1.02rem;
  line-height: 1.9;
}
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(57, 245, 208, .35); }
.prose a:hover { border-bottom-color: var(--cyan); }
.prose ul, .prose ol { padding-left: 1.3em; list-style: disc; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(226px, 1fr)); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), box-shadow .3s var(--ease),
              transform .2s var(--ease);
}
.btn--primary {
  background: var(--cyan);
  color: #04191a;
  box-shadow: 0 16px 34px -20px rgba(57, 245, 208, .95);
}
.btn--primary:hover { background: var(--cyan-bright); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--line-strong); background: var(--cyan-wash); }
.btn--gold {
  background: var(--gold);
  color: #2b1d05;
  box-shadow: 0 16px 34px -22px rgba(232, 193, 122, .9);
}
.btn--gold:hover { background: #f2d199; transform: translateY(-1px); }
.btn--sm { padding: 9px 17px; font-size: 13px; }

/* ---------- 6. 索引与标签 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .8;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--cyan-wash);
  color: var(--mist);
  font-size: 11.5px;
  letter-spacing: .06em;
  line-height: 1.5;
  white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: var(--line-strong); }
.tag--gold {
  color: var(--gold);
  border-color: rgba(232, 193, 122, .42);
  background: rgba(232, 193, 122, .09);
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--mist);
}
.breadcrumb a { color: var(--mist); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: rgba(159, 189, 180, .45); }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---------- 8. 卡片与图片容器 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(162deg, rgba(23, 63, 53, .92), rgba(11, 43, 38, .72));
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow), transparent 68%);
  opacity: .5;
  pointer-events: none;
}

.media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(150deg, var(--ink-600), var(--ink-900));
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: rgba(159, 189, 180, .6);
  background: repeating-linear-gradient(45deg, rgba(57, 245, 208, .05) 0 10px, transparent 10px 20px);
}
.media--arch { border-radius: var(--radius-pill) var(--radius-pill) 22px 22px; }
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

/* ---------- 9. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal][data-inview] { opacity: 1; transform: none; }

/* ---------- 10. 头部 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 200;
  padding: 10px 22px;
  border-radius: 0 0 16px 16px;
  background: var(--cyan);
  color: #04191a;
  font-size: 13px;
  font-weight: 700;
  transform: translate(-50%, -150%);
  transition: transform .22s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 150;
  pointer-events: none;
  background: rgba(57, 245, 208, .06);
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 14px rgba(57, 245, 208, .7);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: clamp(10px, 1.6vw, 18px) clamp(12px, 3vw, 28px);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  max-width: 1320px;
  margin-inline: auto;
  padding: 9px 10px 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: linear-gradient(160deg, rgba(23, 63, 53, .94), rgba(11, 43, 38, .90));
  box-shadow: 0 22px 48px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(244, 251, 247, .07);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header[data-scrolled="true"] .site-header__inner {
  padding-top: 6px;
  padding-bottom: 6px;
  background: linear-gradient(160deg, rgba(10, 38, 33, .98), rgba(6, 22, 19, .97));
  box-shadow: 0 26px 54px -30px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(244, 251, 247, .05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--white);
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(57, 245, 208, .34);
  border-radius: 14px;
  background: radial-gradient(120% 120% at 30% 8%, rgba(57, 245, 208, .30), rgba(57, 245, 208, .04) 62%, transparent);
  transition: width .3s var(--ease), height .3s var(--ease), border-radius .3s var(--ease);
}
.site-header[data-scrolled="true"] .brand__mark { width: 34px; height: 34px; border-radius: 12px; }

.brand__arch {
  display: block;
  width: 17px;
  height: 19px;
  border: 2px solid var(--white);
  border-bottom: 0;
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  opacity: .92;
}
.brand__dot {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform: translateX(-50%);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.16; }
.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--white);
}
.brand__tag {
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--mist);
  white-space: nowrap;
  transition: opacity .3s var(--ease), max-height .3s var(--ease);
  max-height: 20px;
}
.site-header[data-scrolled="true"] .brand__tag { opacity: 0; max-height: 0; overflow: hidden; }

.primary-nav { margin-inline: auto; }
.primary-nav__list { display: flex; align-items: center; gap: 2px; }
.primary-nav__item { display: block; }
.primary-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--mist);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.primary-nav__link:hover { color: var(--white); background: var(--cyan-wash); }
.primary-nav__link[aria-current="page"] {
  color: #04191a;
  font-weight: 600;
  background: var(--cyan);
  box-shadow: 0 12px 26px -18px rgba(57, 245, 208, .95);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}
.header-actions__cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--cyan-wash);
  color: var(--white);
  font-size: 12.5px;
  letter-spacing: .06em;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--line-strong); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { transform: translateY(-3px) rotate(-45deg); }
.nav-toggle__text { pointer-events: none; }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 128px);
  padding: clamp(38px, 5vw, 68px) var(--gutter) clamp(20px, 3vw, 30px);
  border-top: 1px solid rgba(57, 245, 208, .20);
  border-radius: 40px 40px 0 0;
  background: linear-gradient(180deg, rgba(6, 22, 19, .55), var(--ink-900) 36%);
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  left: 18%;
  right: -12%;
  top: -60px;
  height: 340px;
  pointer-events: none;
  background: radial-gradient(58% 58% at 50% 0%, rgba(57, 245, 208, .15), transparent 72%);
}
.footer-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: clamp(32px, 4vw, 60px);
  max-width: var(--shell);
  margin-inline: auto;
  align-items: start;
}
.footer-lead { display: grid; gap: 18px; justify-items: start; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .04em;
}
.footer-summary {
  max-width: 34ch;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.85;
}
.footer-quick { display: flex; flex-wrap: wrap; gap: 10px; }

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(23, 63, 53, .68);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.copy-chip:hover { border-color: var(--line-strong); background: rgba(57, 245, 208, .10); }
.copy-chip__value { white-space: nowrap; }
.copy-chip__hint {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--mist);
  white-space: nowrap;
}
.copy-chip.is-copied {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(57, 245, 208, .16);
}
.copy-chip.is-copied .copy-chip__hint { color: var(--cyan); }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 38px);
}
.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--gold);
}
.footer-col__list { display: grid; gap: 10px; }
.footer-col__list a {
  display: inline-block;
  padding-left: 0;
  border-left: 1px solid transparent;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.6;
  transition: color .22s var(--ease), padding-left .22s var(--ease), border-color .22s var(--ease);
}
.footer-col__list a:hover {
  color: var(--white);
  padding-left: 9px;
  border-left-color: var(--cyan);
}

.footer-contact {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 20px 34px;
  max-width: var(--shell);
  margin: clamp(34px, 4vw, 50px) auto 0;
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.footer-contact__label {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
  letter-spacing: .2em;
  color: rgba(159, 189, 180, .78);
}
.footer-contact__value {
  max-width: 34ch;
  color: rgba(244, 251, 247, .92);
  font-size: 14px;
  line-height: 1.7;
}
.footer-contact__value--mono {
  font-family: var(--font-mono);
  letter-spacing: .02em;
  word-break: break-word;
}

.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  max-width: var(--shell);
  margin: clamp(26px, 3vw, 38px) auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--mist);
}
.footer-base__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-base__links a {
  font-size: 12.5px;
  color: var(--mist);
  transition: color .2s var(--ease);
}
.footer-base__links a:hover { color: var(--cyan); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--cyan-wash);
  color: var(--white);
  font-size: 12.5px;
  letter-spacing: .04em;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.to-top:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(57, 245, 208, .13); }
.to-top__arrow { font-family: var(--font-mono); font-size: 13px; line-height: 1; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1080px) {
  .primary-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(168deg, rgba(23, 63, 53, .99), rgba(6, 22, 19, .99));
    box-shadow: 0 34px 64px -32px rgba(0, 0, 0, 1);
  }
  .primary-nav[data-open] { display: block; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 3px; }
  .primary-nav__link {
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 15px;
    color: var(--white);
  }
  .primary-nav__link[aria-current="page"] { border-radius: 16px; }
  .nav-toggle { display: inline-flex; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-summary { max-width: 46ch; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 92px; }
  .site-header__inner { padding: 7px 8px 7px 12px; gap: 8px; }
  .brand__name { font-size: 15.5px; }
  .brand__mark { width: 34px; height: 34px; border-radius: 12px; }
  .brand__arch { width: 15px; height: 17px; }
  .brand__dot { bottom: 7px; }
  .header-actions__cta { display: none; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .site-footer { border-radius: 28px 28px 0 0; }
  .footer-base { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .brand__tag { display: none; }
  .copy-chip { width: 100%; justify-content: space-between; }
  .footer-contact { grid-template-columns: 1fr; }
}

/* ---------- 13. 动效偏好 ---------- */
@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; }
}
