/* ============================================================
   半岛赛场 · 共享样式 /assets/site.css
   深海墨蓝底 · 半岛沙金强调 · 数据青绿 / 珊瑚橙状态
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }

/* ---------- 变量 ---------- */
:root {
  --ink-900: #061726;
  --ink-700: #0C2439;
  --cabin-500: #143B5E;
  --sand-500: #E0B15E;
  --sand-200: #F3DCAB;
  --jade-400: #2FBF9F;
  --coral-400: #FF7A59;
  --wine-600: #6C2B48;
  --paper-50: #F5F1E8;
  --mist-200: #C8D6E4;
  --slate-500: #788EA4;

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

  --step-12: 0.75rem;
  --step-14: 0.875rem;
  --step-17: 1.0625rem;
  --step-22: 1.375rem;
  --step-32: 2rem;
  --step-48: 3rem;
  --step-72: 4.5rem;
  --step-120: 7.5rem;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shell-max: 1320px;
  --gutter: clamp(16px, 4vw, 44px);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --line-soft: rgba(120, 142, 164, 0.26);
  --line-sand: rgba(224, 177, 94, 0.5);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100%;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(120% 78% at 80% -12%, rgba(20, 59, 94, 0.62) 0%, rgba(6, 23, 38, 0) 62%),
    linear-gradient(180deg, rgba(108, 43, 72, 0.18) 0%, rgba(6, 23, 38, 0) 34%),
    repeating-linear-gradient(90deg, rgba(200, 214, 228, 0.032) 0 1px, transparent 1px 104px);
  background-repeat: no-repeat;
  background-attachment: fixed, fixed, fixed;
  color: var(--mist-200);
  font-family: var(--font-sans);
  font-size: var(--step-17);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--paper-50);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 3rem); }
h3 { font-size: var(--step-22); }
h4 { font-size: var(--step-17); }
p { text-wrap: pretty; }

small { font-size: var(--step-12); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.muted { color: var(--slate-500); }

a:not([class]) {
  color: var(--sand-200);
  text-decoration-color: rgba(224, 177, 94, 0.5);
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 2px solid var(--sand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.u-hidden { display: none !important; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 140;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--sand-500);
  color: var(--ink-900);
  font-size: var(--step-14);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 23, 38, 0.92);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header__bar {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(12px, 2.4vw, 30px);
  transition: padding 0.18s var(--ease-out);
}

.brand { display: flex; min-width: 0; }

.brand__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.brand__glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--cabin-500), var(--ink-700) 72%);
  border: 1px solid var(--line-sand);
  color: var(--sand-500);
  font-family: var(--font-mono);
  font-size: var(--step-12);
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: width 0.18s var(--ease-out), height 0.18s var(--ease-out), border-radius 0.18s var(--ease-out);
}

.brand__stack { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__name { font-size: var(--step-17); font-weight: 900; letter-spacing: 0.02em; color: var(--paper-50); }
.brand__meta { font-size: var(--step-12); letter-spacing: 0.12em; color: var(--slate-500); }

.rail-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(120, 142, 164, 0.42);
  color: var(--mist-200);
  font-size: var(--step-14);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}
.rail-entry:hover {
  border-color: var(--sand-500);
  color: var(--sand-200);
  background: rgba(224, 177, 94, 0.08);
}
.rail-entry__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade-400);
  box-shadow: 0 0 0 3px rgba(47, 191, 159, 0.18);
}
.rail-entry__text { font-weight: 500; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(120, 142, 164, 0.42);
  color: var(--mist-200);
  font-size: var(--step-14);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}
.nav-toggle:hover { border-color: var(--sand-500); color: var(--sand-200); background: rgba(224, 177, 94, 0.08); }
.nav-toggle__label { font-weight: 500; }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s var(--ease-out);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { margin-left: auto; min-width: 0; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--mist-200);
  font-size: var(--step-14);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}
.nav-pill:hover {
  color: var(--sand-200);
  border-color: var(--sand-200);
  background: rgba(224, 177, 94, 0.07);
}
.nav-pill[aria-current="page"] {
  background: var(--sand-500);
  border-color: var(--sand-500);
  color: var(--ink-900);
  font-weight: 700;
}

.header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sand-500), var(--jade-400));
}

.site-header[data-scrolled="true"] .header__bar { padding-top: 8px; padding-bottom: 8px; }
.site-header[data-scrolled="true"] .brand__glyph { width: 38px; height: 38px; border-radius: 13px; }
.site-header[data-scrolled="true"] .brand__meta { display: none; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--ink-700);
  border-top: 1px solid rgba(224, 177, 94, 0.3);
  color: var(--mist-200);
}

.footer__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 4vw, 56px);
}

.footer__col { min-width: 0; }

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: var(--step-12);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--sand-500);
  text-transform: uppercase;
}

.footer__brand-name {
  font-size: var(--step-22);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--paper-50);
}

.footer__brand-desc {
  margin-top: 10px;
  max-width: 32ch;
  font-size: var(--step-14);
  line-height: 1.8;
  color: var(--slate-500);
}

.footer__col-note {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(120, 142, 164, 0.36);
  font-size: var(--step-12);
  letter-spacing: 0.08em;
  color: var(--mist-200);
}

.footer__list { display: grid; gap: 10px; }

.footer__link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: var(--step-14);
  color: var(--mist-200);
  text-decoration: none;
  transition: color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.footer__link:hover {
  color: var(--sand-200);
  border-bottom-color: var(--sand-200);
}

.footer__contact { display: grid; gap: 14px; }
.footer__contact-row { display: grid; gap: 3px; }
.footer__contact-label {
  font-size: var(--step-12);
  letter-spacing: 0.14em;
  color: var(--slate-500);
}
.footer__contact-value {
  font-family: var(--font-mono);
  font-size: var(--step-14);
  color: var(--paper-50);
  word-break: break-word;
}
.footer__contact-value--text {
  font-family: var(--font-sans);
  line-height: 1.7;
}

.footer__base {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid rgba(120, 142, 164, 0.22);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: var(--step-12);
  color: var(--slate-500);
}
.footer__season { display: inline-flex; align-items: center; gap: 8px; }
.footer__season::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade-400);
}
.footer__legal { letter-spacing: 0.04em; }

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(40px, 6vw, 88px) 0; }
.section--tight { padding: clamp(24px, 3.5vw, 48px) 0; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.col-12 { grid-column: span 12; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(224, 177, 94, 0.55), rgba(120, 142, 164, 0.08));
}

/* ---------- 正文与浅底区 ---------- */
.prose { max-width: 76ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: var(--step-32); }
.prose h3 { margin-top: 1.6em; font-size: var(--step-22); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose a {
  color: var(--sand-200);
  text-decoration-color: rgba(224, 177, 94, 0.5);
  text-underline-offset: 4px;
}

.surface-paper {
  background: var(--paper-50);
  color: var(--ink-900);
  border-radius: var(--radius-lg);
}
.surface-paper h1,
.surface-paper h2,
.surface-paper h3,
.surface-paper h4 { color: var(--ink-900); }
.surface-paper .prose { line-height: 1.85; }
.surface-paper .prose a { color: var(--wine-600); text-decoration-color: rgba(108, 43, 72, 0.45); }
.surface-paper .muted { color: #5C6F80; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
  list-style: none;
  font-size: var(--step-12);
  letter-spacing: 0.06em;
  color: var(--slate-500);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin: 0 9px;
  color: rgba(120, 142, 164, 0.7);
}
.breadcrumb a { color: var(--mist-200); text-decoration: none; transition: color 0.18s var(--ease-out); }
.breadcrumb a:hover { color: var(--sand-200); }

/* ---------- 按钮 / 标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--step-14);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.btn--primary { background: var(--sand-500); color: var(--ink-900); }
.btn--primary:hover { background: var(--sand-200); }
.btn--ghost { border-color: rgba(120, 142, 164, 0.5); color: var(--mist-200); }
.btn--ghost:hover { border-color: var(--sand-500); color: var(--sand-200); }
.btn--block { width: 100%; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(120, 142, 164, 0.4);
  background: rgba(20, 59, 94, 0.4);
  color: var(--mist-200);
  font-size: var(--step-12);
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tag--sand { border-color: rgba(224, 177, 94, 0.6); background: rgba(224, 177, 94, 0.1); color: var(--sand-200); }
.tag--jade { border-color: rgba(47, 191, 159, 0.55); background: rgba(47, 191, 159, 0.1); color: var(--jade-400); }
.tag--coral { border-color: rgba(255, 122, 89, 0.55); background: rgba(255, 122, 89, 0.1); color: var(--coral-400); }
.tag--wine { border-color: rgba(224, 177, 94, 0.34); background: rgba(108, 43, 72, 0.42); color: var(--sand-200); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--step-12);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-500);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--sand-500);
}

/* ---------- 卡片 / 数据 ---------- */
.card {
  background: var(--ink-700);
  border: 1px solid rgba(120, 142, 164, 0.24);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 30px);
}
.card--cabin {
  background: linear-gradient(160deg, var(--cabin-500), var(--ink-700) 78%);
  border-color: rgba(200, 214, 228, 0.2);
}
.card--wine {
  background: linear-gradient(150deg, var(--wine-600), #37122A 78%);
  border-color: rgba(224, 177, 94, 0.28);
}
.card__title { font-size: var(--step-22); font-weight: 900; color: var(--paper-50); }

.stat { display: grid; gap: 6px; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sand-500);
}
.stat__label {
  font-size: var(--step-12);
  letter-spacing: 0.14em;
  color: var(--slate-500);
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(120, 142, 164, 0.22);
  background: linear-gradient(155deg, var(--cabin-500), var(--ink-700) 72%);
  isolation: isolate;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px 14px;
  font-size: var(--step-12);
  letter-spacing: 0.04em;
  color: var(--mist-200);
  background: linear-gradient(180deg, rgba(6, 23, 38, 0) 0%, rgba(6, 23, 38, 0.88) 100%);
}

/* ---------- 进场动效 ---------- */
[data-reveal] { transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .header__bar { gap: 14px; }
  .nav-pill { padding: 8px 12px; font-size: 13px; }
  .rail-entry { padding: 9px 12px; }
  .rail-entry__text { display: none; }
}

@media (max-width: 1080px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .col-7, .col-6, .col-5, .col-4, .col-3 { grid-column: span 12; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    display: none;
    padding: 16px var(--gutter) 26px;
    background: var(--ink-700);
    border-bottom: 1px solid rgba(224, 177, 94, 0.34);
    box-shadow: 0 26px 54px rgba(2, 10, 18, 0.6);
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 8px; }
  .nav-pill {
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border-color: rgba(120, 142, 164, 0.3);
    font-size: var(--step-14);
  }
  .nav-pill[aria-current="page"] { border-color: var(--sand-500); }
}

@media (max-width: 720px) {
  body { font-size: var(--step-17); line-height: 1.78; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .rail-entry { display: none; }
  .brand__meta { display: none; }
  .brand__glyph { width: 40px; height: 40px; border-radius: 14px; }
  .footer__contact-value { font-size: var(--step-14); }
}

/* ---------- 降低动效 ---------- */
@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;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
