/* ============================================================
   亚新中心 · 共享样式 / 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, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; }

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

[id] { scroll-margin-top: 150px; }

/* ---------- tokens ---------- */
:root {
  --abyss: #041428;
  --deep: #0A2745;
  --trench: #123B63;
  --neon: #00E5D0;
  --neon-soft: #7CF5E8;
  --gold: #F2B84B;
  --white: #F6FBFF;
  --mist: #8FA8C0;
  --glass: #0F3A32;
  --alert: #E85D75;

  --font-sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --line: rgba(0, 229, 208, .16);
  --line-soft: rgba(143, 168, 192, .18);
  --shell: min(1180px, 100% - 2.5rem);
  --radius: 3px;
  --ring: rgba(0, 229, 208, .55);
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  padding: 0;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  background-color: var(--abyss);
  background-image:
    linear-gradient(rgba(143, 168, 192, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 168, 192, .05) 1px, transparent 1px),
    radial-gradient(920px 520px at 10% -8%, rgba(0, 229, 208, .14), transparent 62%),
    radial-gradient(820px 500px at 94% 2%, rgba(18, 59, 99, .58), transparent 66%),
    linear-gradient(180deg, #041428 0%, #05182e 46%, #041428 100%);
  background-size: 100% 132px, 132px 100%, auto, auto, auto;
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--white);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); font-weight: 700; }

p { line-height: 1.75; }

#main-content { display: block; min-height: 60vh; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 200;
  padding: .72rem 1.15rem;
  background: var(--neon);
  color: #031a26;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translateY(-150%);
  transition: transform .18s ease;
}

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(4, 20, 40, .97) 0%, rgba(4, 20, 40, .88) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: var(--scroll, 0%);
  background: linear-gradient(90deg, var(--neon), var(--gold));
  pointer-events: none;
  transition: width .15s linear;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 40px;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--mist);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.header-bar__coord {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  color: var(--neon-soft);
}

.header-bar__sep { color: rgba(0, 229, 208, .55); }

.header-bar__lang { margin: 0; }

.masthead {
  padding: clamp(1rem, 2.6vw, 1.7rem) 0 clamp(.5rem, 1.4vw, .9rem);
  text-align: center;
}

.masthead__brand {
  display: inline-block;
  margin-right: -.36em;
  color: var(--white);
  font-size: clamp(1.4rem, 3.6vw, 2.05rem);
  font-weight: 900;
  letter-spacing: .36em;
  text-decoration: none;
  transition: color .18s ease;
}

.masthead__brand::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin: .58rem auto 0;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
}

.masthead__brand:hover { color: var(--neon-soft); }

.masthead__line {
  margin: .5rem 0 0;
  color: var(--mist);
  font-size: .78rem;
  letter-spacing: .18em;
}

/* ---------- nav ---------- */
.site-nav { border-top: 1px solid var(--line-soft); }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(.1rem, .9vw, .8rem);
  padding: .3rem 0 .55rem;
}

.site-nav__item { list-style: none; }

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: .6rem .75rem;
  border-bottom: 2px solid transparent;
  color: var(--mist);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.site-nav__link:hover {
  color: var(--white);
  border-bottom-color: var(--ring);
}

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

.site-nav__cta {
  padding: .5rem 1.05rem;
  border: 1px solid rgba(0, 229, 208, .5);
  border-radius: 999px;
  color: var(--neon-soft);
  font-size: .82rem;
  font-weight: 700;
}

.site-nav__cta:hover {
  background: rgba(0, 229, 208, .14);
  border-color: var(--neon);
  border-bottom-color: var(--neon);
  color: var(--white);
}

/* ---------- nav toggle ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  padding: .42rem .78rem;
  border: 1px solid rgba(0, 229, 208, .35);
  border-radius: 999px;
  color: var(--neon-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  transition: background-color .18s ease, border-color .18s ease;
}

.nav-toggle:hover {
  background: rgba(0, 229, 208, .12);
  border-color: var(--neon);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease,
              border-color .18s ease, box-shadow .18s ease;
}

.btn--neon {
  background: var(--neon);
  color: #031a26;
  box-shadow: 0 14px 34px -20px rgba(0, 229, 208, .95);
}

.btn--neon:hover {
  background: var(--neon-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(0, 229, 208, .45);
  color: var(--neon-soft);
}

.btn--ghost:hover {
  background: rgba(0, 229, 208, .12);
  border-color: var(--neon);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- crumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  color: var(--mist);
  font-size: .78rem;
  letter-spacing: .12em;
}

.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.crumbs__item + .crumbs__item::before {
  content: "/";
  color: rgba(0, 229, 208, .55);
}

.crumbs__link {
  color: var(--mist);
  text-decoration: none;
  transition: color .18s ease;
}

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

.crumbs__current { color: var(--white); }

/* ---------- typography helpers ---------- */
.statement {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.03em;
}

.statement em {
  font-style: normal;
  color: var(--neon);
}

.sec-num {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: .22em;
}

.sec-num::after {
  content: "";
  width: clamp(28px, 6vw, 76px);
  height: 1px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.sec-title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.eyebrow {
  margin: 0;
  color: var(--neon-soft);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.lead {
  max-width: 62ch;
  color: rgba(246, 251, 255, .86);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.72;
}

.meta {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .08em;
}

/* ---------- panels & layout ---------- */
.panel {
  position: relative;
  padding: clamp(1.4rem, 3.2vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--deep);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease,
              background-color .22s ease;
}

.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: clamp(48px, 10vw, 96px);
  height: 3px;
  background: var(--neon);
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 208, .4);
  box-shadow: 0 20px 46px -30px rgba(0, 229, 208, .6);
}

.panel--glass {
  border-color: rgba(124, 245, 232, .24);
  background: linear-gradient(160deg, rgba(15, 58, 50, .55), rgba(10, 39, 69, .42));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.panel--glass:hover {
  background: linear-gradient(160deg, rgba(15, 58, 50, .72), rgba(10, 39, 69, .56));
}

.stack {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
}

.stack--tight { gap: clamp(.65rem, 1.6vw, 1rem); }

.grid {
  display: grid;
  gap: clamp(1rem, 2.6vw, 1.75rem);
}

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

@media (min-width: 900px) {
  .grid--offset > :nth-child(even) {
    margin-top: clamp(1rem, 3.5vw, 3rem);
  }
}

/* ---------- data card ---------- */
.data-card {
  position: relative;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--neon);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(18, 59, 99, .5), rgba(10, 39, 69, .88));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.data-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 208, .5);
  border-left-color: var(--gold);
  box-shadow: 0 18px 40px -30px rgba(0, 229, 208, .7);
}

.data-card__label {
  margin: 0 0 .5rem;
  color: var(--mist);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.data-card__value {
  display: block;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.data-card__unit {
  margin-left: .35rem;
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: .85rem;
  letter-spacing: .06em;
}

.data-card__note {
  margin: .6rem 0 0;
  color: rgba(143, 168, 192, .95);
  font-size: .82rem;
  line-height: 1.6;
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .7rem;
  border: 1px solid rgba(124, 245, 232, .34);
  border-radius: 999px;
  background: rgba(0, 229, 208, .06);
  color: var(--neon-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.tag--gold {
  border-color: rgba(242, 184, 75, .42);
  background: rgba(242, 184, 75, .08);
  color: var(--gold);
}

.tag--alert {
  border-color: rgba(232, 93, 117, .45);
  background: rgba(232, 93, 117, .08);
  color: var(--alert);
}

/* ---------- prose ---------- */
.prose {
  max-width: 68ch;
  color: rgba(246, 251, 255, .88);
}

.prose p { margin: 0 0 1.1em; }

.prose h2,
.prose h3 {
  margin: 1.8em 0 .7em;
  color: var(--white);
}

.prose a {
  color: var(--neon-soft);
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 208, .45);
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.prose a:hover {
  color: var(--neon);
  text-decoration-color: var(--neon);
}

.prose strong { color: var(--white); }

.prose ul {
  display: grid;
  gap: .55rem;
  margin: 0 0 1.2em;
}

.prose ul li {
  position: relative;
  padding-left: 1.35rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 9px;
  height: 1px;
  background: var(--neon);
}

/* ---------- figure ---------- */
.figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--deep), var(--trench));
  overflow: hidden;
}

.figure__media {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 16 / 9);
  object-fit: cover;
  background-color: rgba(18, 59, 99, .5);
  background-image: repeating-linear-gradient(135deg,
    rgba(0, 229, 208, .07) 0 2px,
    rgba(0, 229, 208, 0) 2px 14px);
}

.figure__caption {
  position: relative;
  padding: .8rem 1rem;
  border-top: 1px dashed rgba(143, 168, 192, .28);
  background: rgba(4, 20, 40, .5);
  color: var(--mist);
  font-size: .8rem;
  line-height: 1.6;
}

.figure--wide { --ratio: 21 / 9; }
.figure--square { --ratio: 1 / 1; }

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}

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

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 24, 46, .9), var(--abyss) 55%);
  color: var(--mist);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.4rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2.2rem);
}

.footer-brand__name {
  margin: 0;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: .3em;
}

.footer-brand__line {
  margin: .7rem 0 1.4rem;
  max-width: 30ch;
  font-size: .85rem;
  line-height: 1.7;
}

.footer-col__title {
  margin: 0 0 1rem;
  color: var(--neon-soft);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: .6rem;
}

.footer-list a {
  color: var(--mist);
  font-size: .92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.footer-list a:hover {
  color: var(--white);
  border-bottom-color: var(--neon);
}

.footer-contact {
  display: grid;
  gap: .55rem;
  font-size: .9rem;
}

.footer-contact li {
  display: grid;
  gap: .1rem;
}

.footer-contact__key {
  color: rgba(143, 168, 192, .75);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.footer-contact .mono { color: var(--neon-soft); }

.footer-note {
  margin: 1rem 0 0;
  max-width: 32ch;
  color: rgba(143, 168, 192, .85);
  font-size: .78rem;
  line-height: 1.7;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1.1rem 0 1.8rem;
  border-top: 1px solid var(--line-soft);
  color: var(--mist);
  font-size: .78rem;
  letter-spacing: .1em;
}

.footer-legal__icp { margin: 0; color: var(--mist); }
.footer-legal__copy { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

  .site-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(6, 26, 48, .98), rgba(4, 20, 40, .98));
  }

  .site-nav[data-open] { display: block; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .4rem 0 1.1rem;
  }

  .site-nav__item { border-bottom: 1px solid rgba(143, 168, 192, .12); }

  .site-nav__link {
    display: block;
    padding: .95rem 1.1rem;
    border-bottom: 0;
    border-left: 2px solid transparent;
    font-size: 1rem;
  }

  .site-nav__link:hover {
    background: rgba(0, 229, 208, .07);
    border-bottom-color: transparent;
    border-left-color: var(--ring);
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(0, 229, 208, .1);
    border-bottom-color: transparent;
    border-left-color: var(--neon);
  }

  .site-nav__item--cta {
    border-bottom: 0;
    padding: .9rem 1.1rem;
  }

  .site-nav__cta {
    display: inline-flex;
    padding: .72rem 1.2rem;
    border: 1px solid rgba(0, 229, 208, .5);
    border-left: 1px solid rgba(0, 229, 208, .5);
  }

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

@media (max-width: 720px) {
  :root { --shell: min(1180px, 100% - 1.6rem); }

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

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

@media (max-width: 640px) {
  .header-bar__coord { display: none; }
  .footer-legal { justify-content: flex-start; }
  .masthead__line { font-size: .72rem; letter-spacing: .14em; }
}

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

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

  .panel:hover,
  .btn:hover,
  .data-card:hover { transform: none; }

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