/* ==========================================================================
   亿博赛场 · /assets/site.css
   共享外壳样式：reset、变量、中文排版、页头、页脚、通用组件
   ========================================================================== */

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

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

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

ul, ol { padding: 0; list-style: none; }

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

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

a { color: inherit; }

:root {
  /* 色彩 */
  --ink: #041C17;
  --panel: #0A2C24;
  --panel-2: #123D33;
  --neon: #19E6C0;
  --mist: #8FF5E0;
  --orange: #FF7A2E;
  --amber: #FFC46B;
  --text: #EAF7F3;
  --muted: #8DB3A9;
  --deck: #0B2230;
  --line: #1C4A42;

  /* 排版 */
  --font-numeric: "Barlow Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 尺度 */
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-lift: 0 22px 44px -28px rgba(0, 0, 0, .85);

  /* 动效 */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   基础排版
   -------------------------------------------------------------------------- */

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(920px 500px at 84% -10%, rgba(25, 230, 192, .13), transparent 66%),
    radial-gradient(720px 440px at 4% 4%, rgba(255, 122, 46, .07), transparent 64%),
    linear-gradient(rgba(28, 74, 66, .20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 74, 66, .20) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); }
h4 { font-size: clamp(16px, 1.6vw, 19px); }

p { line-height: 1.78; }

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

::selection {
  background: rgba(25, 230, 192, .3);
  color: var(--text);
}

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

/* --------------------------------------------------------------------------
   布局容器
   -------------------------------------------------------------------------- */

.shell {
  width: min(1280px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}

.prose > * + * { margin-top: 1.1em; }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--neon);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top .22s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

/* --------------------------------------------------------------------------
   页头 · 居中刊头
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 60;
  background:
    radial-gradient(680px 300px at 50% -20%, rgba(25, 230, 192, .16), transparent 70%),
    linear-gradient(180deg, #06241D 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--line);
}

.masthead {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 20px;
  padding: clamp(24px, 4vw, 44px) 0 clamp(14px, 2vw, 22px);
  text-align: center;
}

.masthead__brand {
  grid-column: 2;
  justify-self: center;
  font-family: var(--font-sans);
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 0 34px rgba(25, 230, 192, .35);
  transition: color .2s var(--ease), text-shadow .2s var(--ease);
}

.masthead__brand::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 10px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, transparent, var(--neon), var(--orange), transparent);
}

.masthead__brand:hover {
  color: var(--mist);
  text-shadow: 0 0 46px rgba(25, 230, 192, .55);
}

.masthead__subtitle {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
}

.masthead__coord {
  grid-row: 1;
  grid-column: 1;
  justify-self: start;
  font-family: var(--font-numeric);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--grid, var(--line));
  color: #2F6E62;
  writing-mode: horizontal-tb;
  white-space: nowrap;
}

.masthead__coord--right {
  grid-column: 3;
  justify-self: end;
}

/* --------------------------------------------------------------------------
   主导航
   -------------------------------------------------------------------------- */

.primary-nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(10, 44, 36, .8);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

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

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.primary-nav__list {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(4px, 1.4vw, 18px);
}

.primary-nav__list a {
  display: inline-block;
  padding: 6px 6px 8px;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.primary-nav__list a:hover {
  color: var(--mist);
  border-bottom-color: rgba(143, 245, 224, .5);
}

.primary-nav__list a[aria-current="page"] {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.primary-nav__cta {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--orange);
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(255, 122, 46, .2), rgba(255, 122, 46, .06));
  color: var(--amber);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.primary-nav__cta:hover {
  background: var(--orange);
  color: #1A0B02;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   常用栏（吸顶）
   -------------------------------------------------------------------------- */

.quickbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(18, 61, 51, .97), rgba(8, 36, 29, .97));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 34px -26px #000;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.quickbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
}

.quickbar__label {
  flex: none;
  padding: 3px 12px;
  border: 1px solid var(--neon);
  border-radius: var(--r-pill);
  color: var(--neon);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  white-space: nowrap;
}

.quickbar__list {
  display: flex;
  flex: 1;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quickbar__list::-webkit-scrollbar { display: none; }

.quickbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(28, 74, 66, .95);
  border-radius: var(--r-pill);
  background: rgba(4, 28, 23, .6);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), background .18s var(--ease);
}

.quickbar__item:hover {
  border-color: var(--orange);
  color: var(--mist);
  transform: translateY(-2px);
}

.quickbar__item[aria-pressed="true"] {
  border-color: var(--neon);
  background: rgba(25, 230, 192, .14);
  color: var(--neon);
}

.quickbar__num {
  font-family: var(--font-numeric);
  font-size: 12px;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  color: var(--orange);
}

.quickbar__item[aria-pressed="true"] .quickbar__num { color: var(--neon); }

/* --------------------------------------------------------------------------
   页脚 · 数据台
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(40px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(10, 44, 36, .85), var(--ink) 72%);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
}

.footer-brand__mark {
  display: inline-block;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--text);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer-brand__mark:hover { color: var(--neon); }

.footer-brand__line {
  margin-top: 6px;
  font-family: var(--font-numeric);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--neon);
}

.footer-brand__note {
  margin-top: 12px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-col__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--neon);
  margin-bottom: 12px;
}

.footer-col__list li + li { margin-top: 2px; }

.footer-col__list a {
  display: inline-block;
  padding: 4px 0;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.footer-col__list a:hover {
  color: var(--mist);
  transform: translateX(3px);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 16px clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(11, 34, 48, .5);
  font-size: 14px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 26px;
  font-size: 13px;
  color: var(--muted);
}

.footer-track {
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--amber) 34%, rgba(25, 230, 192, .55) 70%, transparent 100%);
}

/* --------------------------------------------------------------------------
   通用组件
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--neon);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--orange);
}

.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(10, 44, 36, .92), rgba(4, 28, 23, .78));
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: var(--shadow-lift);
}

.plate {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  padding-top: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(18, 61, 51, .85), rgba(4, 28, 23, .8));
  overflow: hidden;
}

.plate::before {
  content: attr(data-index);
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 12px 5px;
  border-bottom-right-radius: var(--r-md);
  background: var(--orange);
  color: #1A0B02;
  font-family: var(--font-numeric);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(18, 61, 51, .6);
  color: var(--mist);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}

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

.btn--primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--neon);
  background: rgba(25, 230, 192, .08);
  color: var(--neon);
}

.btn--ghost:hover {
  background: rgba(25, 230, 192, .18);
  transform: translateY(-2px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.breadcrumbs a:hover { color: var(--neon); }

.breadcrumbs__sep {
  font-family: var(--font-numeric);
  color: var(--line);
}

.data-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 图片容器基元 —— 页面阶段把图片或内联 SVG 放入即可 */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(150deg, var(--panel-2), var(--deck));
}

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

.media-frame img,
.media-frame svg,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(25, 230, 192, .5);
  border-radius: var(--r-pill);
  background: rgba(4, 28, 23, .82);
  color: var(--mist);
  font-size: 12px;
  letter-spacing: .08em;
}

/* 显现与高亮状态 */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.is-flash {
  animation: yibo-flash .9s var(--ease) 1;
}

@keyframes yibo-flash {
  0%   { box-shadow: 0 0 0 0 rgba(25, 230, 192, .55); }
  60%  { box-shadow: 0 0 0 8px rgba(25, 230, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 230, 192, 0); }
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__note { max-width: 46ch; }
}

@media (max-width: 960px) {
  .primary-nav {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0 14px;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
    justify-self: start;
  }

  .primary-nav__list {
    grid-column: 1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 4px;
    border-top: 1px dashed var(--line);
  }

  .primary-nav[data-open] .primary-nav__list { display: flex; }

  .primary-nav__list a {
    padding: 10px 4px;
    border-bottom: 1px solid rgba(28, 74, 66, .6);
    font-size: 15px;
  }

  .primary-nav__cta {
    grid-column: 1;
    justify-self: stretch;
    justify-content: center;
  }

  .primary-nav[data-open] .nav-toggle { border-color: var(--neon); color: var(--neon); }

  .primary-nav[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .primary-nav[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
  .primary-nav[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

  .masthead__coord { display: none; }
}

@media (max-width: 640px) {
  .masthead {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }

  .masthead__brand { grid-column: 1; }

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

  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-contact { flex-direction: column; gap: 6px; }

  .footer-legal { flex-direction: column; gap: 4px; }

  .quickbar__label { display: none; }

  .section-head { align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   动效偏好
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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