/* ==========================================================================
   半岛体育 · 共享外壳样式 /assets/site.css
   海岸线坐标叙事：深海蓝分区、1px 细线、锐利直角、非对称编辑部网格
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }

ul, ol { padding: 0; }

img, svg, video { max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

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

body { min-height: 100vh; }

/* ---------- 变量 ---------- */
:root {
  --deep-sea: #07223A;
  --night-indigo: #101B3A;
  --tide-teal: #12A6A0;
  --tide-teal-soft: #7FD7D2;
  --signal-orange: #FF6A2B;
  --sand-white: #F5EFE4;
  --sand-gray: #D8D2C6;
  --mist-white: #EEF3F5;
  --wine: #7A2140;
  --indigo-violet: #3B2E7E;
  --ink: #131A1F;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1440px;
  --header-h: 76px;

  --font-display: "Barlow Condensed", "Oswald", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 中文排版基底 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--sand-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.15;
}

p { max-width: 100%; }

::selection {
  background: var(--signal-orange);
  color: var(--deep-sea);
}

:focus-visible {
  outline: 2px solid var(--signal-orange);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 22px;
  background: var(--signal-orange);
  color: var(--deep-sea);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   头部 · 透明叠加导航 → 滚动实色
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--sand-white);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}

.site-header[data-header-state="solid"],
.site-header[data-nav-open="true"] {
  background: var(--deep-sea);
  border-bottom-color: rgba(216, 210, 198, .34);
}

.tide-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--tide-teal) 0%, var(--tide-teal-soft) 45%, var(--signal-orange) 100%);
  pointer-events: none;
}

.header-inner {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
}

/* 品牌 + 坐标刻度 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  flex: 0 0 auto;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.brand-mark-tick {
  display: block;
  width: 2px;
  background: var(--tide-teal);
}

.brand-mark-tick:nth-child(1) { height: 10px; }
.brand-mark-tick:nth-child(2) { height: 17px; }
.brand-mark-tick:nth-child(3) { height: 24px; background: var(--signal-orange); }

.brand-text { display: block; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1;
}

.brand-sub {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  line-height: 1;
  color: var(--tide-teal-soft);
}

/* 主导航 */
.site-nav { display: flex; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14px;
  letter-spacing: .08em;
  white-space: nowrap;
  color: rgba(245, 239, 228, .76);
  transition: color .2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--tide-teal-soft);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s var(--ease);
}

.nav-link:hover { color: var(--sand-white); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--sand-white); }

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--signal-orange);
}

/* 快捷入口 */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 10px 18px;
  border: 1px solid var(--signal-orange);
  background: transparent;
  color: var(--signal-orange);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

.nav-cta::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
}

.nav-cta:hover {
  background: var(--signal-orange);
  color: var(--deep-sea);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid rgba(245, 239, 228, .32);
  color: var(--sand-white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color .25s var(--ease);
}

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

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bar {
  display: block;
  height: 1px;
  width: 18px;
  background: currentColor;
  transition: width .22s var(--ease), background-color .22s var(--ease);
}

.nav-toggle-bar:nth-child(2) { width: 13px; }
.nav-toggle-bar:nth-child(3) { width: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: var(--signal-orange); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { width: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { width: 13px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { width: 18px; }

/* ---------- 移动端抽屉 ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 88vw);
    z-index: 90;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
    background: var(--deep-sea);
    border-left: 1px solid rgba(216, 210, 198, .28);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .34s var(--ease), visibility .34s var(--ease);
  }

  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }

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

  .nav-item {
    counter-increment: navi;
    border-bottom: 1px solid rgba(216, 210, 198, .18);
    opacity: 0;
    transform: translateX(18px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }

  .site-nav[data-open] .nav-item {
    opacity: 1;
    transform: translateX(0);
  }

  .site-nav[data-open] .nav-item:nth-child(1) { transition-delay: .04s; }
  .site-nav[data-open] .nav-item:nth-child(2) { transition-delay: .08s; }
  .site-nav[data-open] .nav-item:nth-child(3) { transition-delay: .12s; }
  .site-nav[data-open] .nav-item:nth-child(4) { transition-delay: .16s; }
  .site-nav[data-open] .nav-item:nth-child(5) { transition-delay: .20s; }
  .site-nav[data-open] .nav-item:nth-child(6) { transition-delay: .24s; }

  .nav-link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    width: 100%;
    padding: 18px 0;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--sand-white);
  }

  .nav-link::before {
    content: counter(navi, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .12em;
    color: var(--tide-teal);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] { color: var(--signal-orange); }
  .nav-link[aria-current="page"]::before { color: var(--signal-orange); }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 620px) {
  .nav-toggle-label { display: none; }
  .nav-cta { padding: 9px 13px; font-size: 12px; }
  .brand-sub { display: none; }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--deep-sea);
  color: var(--sand-white);
  overflow: hidden;
}

.footer-coast {
  width: 100%;
  height: clamp(80px, 10vw, 140px);
  color: var(--tide-teal);
}

.footer-coast svg {
  display: block;
  width: 100%;
  height: 100%;
}

.coast-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.coast-line--soft {
  stroke: var(--tide-teal-soft);
  opacity: .34;
}

.footer-inner {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.footer-brandbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px clamp(16px, 3vw, 40px);
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid rgba(216, 210, 198, .16);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
}

.footer-tag {
  font-size: 14px;
  letter-spacing: .08em;
  color: rgba(245, 239, 228, .72);
}

.footer-coord {
  margin-left: auto;
  color: var(--tide-teal-soft);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(28px, 4vw, 48px);
}

.footer-col-title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.4;
  color: var(--tide-teal);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-link {
  font-size: 15px;
  letter-spacing: .04em;
  color: rgba(245, 239, 228, .82);
  transition: color .2s var(--ease);
}

.footer-link:hover { color: var(--signal-orange); }

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(245, 239, 228, .5);
}

.footer-contact-value {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 239, 228, .9);
  word-break: break-word;
}

.footer-meta {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin: clamp(32px, 5vw, 64px) auto 0;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(216, 210, 198, .16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: rgba(245, 239, 228, .6);
}

.footer-copy,
.footer-sign { margin: 0; }

.footer-sign { font-family: var(--font-mono); letter-spacing: .1em; }

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-coord { margin-left: 0; flex-basis: 100%; }
}

@media (max-width: 600px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-meta { justify-content: flex-start; }
}

/* ==========================================================================
   通用布局
   ========================================================================== */
.wrap {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.section {
  padding-block: clamp(56px, 8vw, 128px);
}

.section--deep { background: var(--deep-sea); color: var(--sand-white); }
.section--night { background: var(--night-indigo); color: var(--sand-white); }
.section--sand { background: var(--sand-white); color: var(--ink); }
.section--mist { background: var(--mist-white); color: var(--ink); }
.section--wine { background: var(--wine); color: var(--sand-white); }
.section--violet { background: var(--indigo-violet); color: var(--sand-white); }

.page-hero {
  background: var(--deep-sea);
  color: var(--sand-white);
  padding: clamp(120px, 18vh, 200px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
}

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

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }

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

@media (max-width: 720px) {
  .grid-12 > * { grid-column: span 12; }
}

.rule {
  border: 0;
  height: 1px;
  background: var(--sand-gray);
  margin: clamp(24px, 4vw, 48px) 0;
}

.section--deep .rule,
.section--night .rule,
.section--wine .rule,
.section--violet .rule { background: rgba(216, 210, 198, .24); }

/* ==========================================================================
   通用排版
   ========================================================================== */
.display-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: .98;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.02;
}

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

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section--deep .eyebrow,
.section--night .eyebrow { color: var(--tide-teal-soft); }

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.75;
  opacity: .88;
}

.prose p {
  max-width: 720px;
  margin-bottom: 1.1em;
}

.prose p:last-child { margin-bottom: 0; }

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
}

.annotation {
  font-size: 12px;
  letter-spacing: .2em;
  line-height: 1.7;
  opacity: .72;
}

.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ==========================================================================
   按钮 / 标签 / 卡片 / 数据
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.btn--primary {
  background: var(--signal-orange);
  border-color: var(--signal-orange);
  color: var(--deep-sea);
}

.btn--primary:hover {
  background: transparent;
  color: var(--signal-orange);
}

.btn--ghost {
  border-color: rgba(245, 239, 228, .4);
  color: var(--sand-white);
}

.btn--ghost:hover {
  border-color: var(--tide-teal-soft);
  color: var(--tide-teal-soft);
}

.btn--quiet {
  border-color: var(--sand-gray);
  color: var(--ink);
}

.btn--quiet:hover {
  border-color: var(--tide-teal);
  color: var(--tide-teal);
}

.tag {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--tide-teal);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--mist-white);
  border: 1px solid var(--sand-gray);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--tide-teal);
}

.card--dark {
  background: var(--night-indigo);
  border-color: rgba(216, 210, 198, .22);
  color: var(--sand-white);
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.card-text {
  font-size: 15px;
  line-height: 1.75;
  opacity: .86;
}

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

.data-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.stat {
  padding-top: 14px;
  border-top: 2px solid var(--signal-orange);
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--signal-orange);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .16em;
  opacity: .68;
}

/* 图片容器：供页面阶段放置航拍 / 夜场 / 数据轨迹占位 */
.figure-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--night-indigo);
  border: 1px solid var(--sand-gray);
}

.figure-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 215, 210, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 215, 210, .12) 1px, transparent 1px);
  background-size: 48px 48px;
}

.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--tall { aspect-ratio: 3 / 4; }
.figure-frame--square { aspect-ratio: 1 / 1; }

.figure-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  opacity: .7;
}

/* ==========================================================================
   面包屑 / 提示块
   ========================================================================== */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li + li::before {
  content: "/";
  opacity: .45;
}

.breadcrumb-list a {
  color: var(--tide-teal);
  transition: color .2s var(--ease);
}

.breadcrumb-list a:hover { color: var(--signal-orange); }

.notice {
  padding: 16px 20px;
  border-left: 2px solid var(--signal-orange);
  background: var(--mist-white);
  font-size: 15px;
  line-height: 1.75;
}

/* ==========================================================================
   滚入显现协议：需 JS 在 <html> 加 .js
   ========================================================================== */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   减弱动效
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .card:hover { transform: none; }
}
