/* =========================================================
   必赢亚州 · 共享样式 /assets/site.css
   夜场看台 + 数据速查台：夜蓝与深墨绿铺底，荧光黄绿点灯
   ========================================================= */

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

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

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

body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink-900: #0B1B2B;      /* 夜蓝 */
  --ink-800: #0E2A24;      /* 深墨绿 */
  --ink-700: #081521;
  --signal: #C8FF3D;       /* 荧光黄绿 */
  --signal-dim: rgba(200, 255, 61, .16);
  --warm: #F2C14E;         /* 暖黄 · 黄牌 */
  --alert: #C4574F;        /* 低饱和红 · 红牌 */
  --stone: #6B7472;        /* 岩灰 */
  --moss: #4F6F5A;         /* 苔绿 */
  --clay: #B07A5A;         /* 陶土 */
  --paper: #F4F1E8;        /* 米白 */
  --mist: #8BA6B8;         /* 雾蓝 */
  --line: rgba(139, 166, 184, .22);
  --line-soft: rgba(139, 166, 184, .12);

  --font-display: 'Barlow Condensed', 'Archivo Narrow', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-num: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-display: clamp(2.6rem, 5vw, 5.2rem);
  --fs-section: clamp(1.8rem, 3vw, 2.8rem);
  --fs-card: 1.25rem;
  --fs-body: 1rem;
  --fs-label: .72rem;

  --cut: 20px;
  --skew: -14deg;
  --shell: 1280px;
  --pad: clamp(16px, 4vw, 40px);
}

/* ---------- 3. 中文排版基座 ---------- */
body {
  background-color: var(--ink-900);
  background-image:
    radial-gradient(90rem 42rem at 88% -12%, rgba(79, 111, 90, .38), transparent 62%),
    radial-gradient(68rem 34rem at -8% 0%, rgba(14, 42, 36, .92), transparent 66%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--paper);
  margin-bottom: .5em;
}

h1 { font-size: var(--fs-display); line-height: .98; }
h2 { font-size: var(--fs-section); }
h3 { font-size: var(--fs-card); line-height: 1.25; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--paper); }
small { font-size: .82rem; }

::selection { background: var(--signal); color: var(--ink-800); }

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

#main-content {
  display: block;
  scroll-margin-top: 104px;
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: .72em 1.15em;
  background: var(--signal);
  color: var(--ink-800);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  transform: translateY(-180%);
  transition: transform .18s ease;
}

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

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    radial-gradient(58rem 18rem at 0% 0%, rgba(79, 111, 90, .5), transparent 64%),
    linear-gradient(100deg, #0B1B2B 0%, #0E2A24 58%, #0B1B2B 100%);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

.header-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: linear-gradient(150deg, var(--moss), #17332c);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 66% 100%, 0 100%);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px var(--signal-dim);
}

.brand__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  transition: color .18s ease;
}

.brand__sub {
  font-size: var(--fs-label);
  line-height: 1.2;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mist);
}

.brand:hover .brand__name,
.brand:focus-visible .brand__name { color: var(--signal); }

/* 右侧区 */
.header-end {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  margin-left: auto;
}

/* 导航 */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 8px);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 8px;
  font-size: .92rem;
  letter-spacing: .06em;
  color: rgba(244, 241, 232, .84);
  transition: color .18s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0) skewX(var(--skew));
  transform-origin: left center;
  transition: transform .18s ease;
}

.nav__link:hover,
.nav__link:focus-visible { color: var(--paper); }

.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1) skewX(var(--skew)); }

.nav__link[aria-current="page"] { color: var(--signal); }

.nav__link[aria-current="page"]::after {
  transform: scaleX(1) skewX(var(--skew));
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .78em 1.3em;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn--signal {
  color: var(--ink-800);
  background: linear-gradient(135deg, var(--signal) 0 calc(100% - 12px), transparent calc(100% - 12px));
}

.btn--signal:hover,
.btn--signal:focus-visible {
  background: linear-gradient(135deg, #DAFF79 0 calc(100% - 12px), transparent calc(100% - 12px));
}

.btn--ghost {
  color: var(--paper);
  background: rgba(14, 42, 36, .6);
  border-color: rgba(200, 255, 61, .42);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--signal);
  border-color: var(--signal);
  background: rgba(200, 255, 61, .1);
}

.header-cta { flex: 0 0 auto; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .6em;
  padding: .6em .85em;
  border: 1px solid rgba(139, 166, 184, .42);
  color: var(--paper);
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--signal);
  border-color: var(--signal);
}

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

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--signal);
  transition: transform .18s ease, opacity .18s ease;
}

.site-header[data-open="true"] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* 滚动进度灯带 */
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(139, 166, 184, .12);
  overflow: hidden;
}

.read-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--moss), var(--signal));
  transition: width .1s linear;
}

/* ---------- 6. 内容容器与通用版式 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(36px, 6vw, 76px); }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin-bottom: 14px;
  font-size: var(--fs-label);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--signal);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  transform: skewX(var(--skew));
}

.lede {
  max-width: 62ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.85;
  color: rgba(244, 241, 232, .78);
}

/* 面包屑 */
.breadcrumb { padding-block: 20px 8px; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55em;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--mist);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: .55em;
  color: var(--stone);
}

.breadcrumb a {
  color: var(--mist);
  transition: color .18s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--signal); }

/* 切角面板 */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  background: linear-gradient(155deg, rgba(14, 42, 36, .92), rgba(11, 27, 43, .95));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

/* 标签体系 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .3em .72em;
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--mist);
  color: var(--ink-800);
}

.tag--signal { background: var(--signal); color: var(--ink-800); }
.tag--warm { background: var(--warm); color: var(--ink-800); }
.tag--red { background: var(--alert); color: var(--paper); }
.tag--moss {
  background: rgba(79, 111, 90, .65);
  color: var(--paper);
  border: 1px solid rgba(200, 255, 61, .32);
}

/* 数据块 */
.stat__value {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--signal);
}

.stat__label {
  display: block;
  margin-top: .4em;
  font-size: var(--fs-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- 7. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-800), var(--ink-700));
  border: 1px solid var(--line-soft);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(1.04);
}

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

.media--scan::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 166, 184, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 166, 184, .1) 1px, transparent 1px);
  background-size: 100% 34px, 64px 100%;
  mix-blend-mode: screen;
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2em 1em .8em;
  background: linear-gradient(0deg, rgba(8, 21, 33, .94), rgba(8, 21, 33, 0));
  font-size: var(--fs-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
}

/* ---------- 8. 滚动显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .24s ease, transform .24s ease;
}

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

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 88px);
  padding-block: clamp(40px, 6vw, 74px) 26px;
  background:
    radial-gradient(60rem 26rem at 100% 0%, rgba(79, 111, 90, .3), transparent 62%),
    linear-gradient(180deg, #081521 0%, #0E2A24 100%);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 68px);
}

.footer-brand__line {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.footer-brand__note {
  max-width: 32ch;
  margin-bottom: 22px;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--mist);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 38px);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--signal);
}

.footer-col__list {
  display: grid;
  gap: 10px;
}

.footer-col__list a {
  display: inline-block;
  padding-bottom: 2px;
  font-size: .92rem;
  color: rgba(244, 241, 232, .86);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: var(--signal);
  border-bottom-color: rgba(200, 255, 61, .45);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 28px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: clamp(18px, 2.6vw, 26px);
  border-top: 1px solid var(--line-soft);
  font-size: .85rem;
  color: var(--mist);
}

.footer-contact li {
  padding-left: 14px;
  position: relative;
}

.footer-contact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 6px;
  height: 6px;
  background: var(--moss);
  transform: skewX(var(--skew));
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(20px, 3vw, 30px);
  font-size: .8rem;
  color: var(--stone);
}

.footer-copy { margin: 0; letter-spacing: .02em; }

.footer-top-link {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.footer-top-link:hover,
.footer-top-link:focus-visible {
  color: var(--signal);
  border-bottom-color: rgba(200, 255, 61, .45);
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  z-index: 90;
  padding: .72em 1.05em;
  background: rgba(14, 42, 36, .92);
  border: 1px solid rgba(200, 255, 61, .42);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, color .2s ease, border-color .2s ease;
}

.to-top[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover,
.to-top:focus-visible {
  color: var(--signal);
  border-color: var(--signal);
}

/* ---------- 10. 平板与移动端 ---------- */
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1060px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 6px var(--pad) 22px;
    background: linear-gradient(180deg, #0E2A24, #0B1B2B);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 44px -26px rgba(0, 0, 0, .8);
  }

  .site-header[data-open="true"] .nav {
    display: block;
    animation: navDrop .22s ease both;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__item + .nav__item { border-top: 1px solid var(--line-soft); }

  .nav__link {
    display: block;
    padding: 14px 2px;
    font-size: 1rem;
    color: var(--paper);
  }

  .nav__link::after { display: none; }

  .nav__link:hover,
  .nav__link:focus-visible,
  .nav__link[aria-current="page"] {
    color: var(--signal);
    padding-left: 12px;
  }
}

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }

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

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

  .footer-brand__note { max-width: 46ch; }
}

@media (max-width: 560px) {
  .header-shell { padding-block: 10px; }

  .brand__name { font-size: 1.25rem; }
  .brand__sub { font-size: .66rem; letter-spacing: .16em; }

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

  .footer-meta { flex-direction: column; align-items: flex-start; }

  .media--cinema { aspect-ratio: 16 / 9; }
}

/* ---------- 11. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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

  .read-progress > span { transition: none; }

  .to-top { transform: none; }
}
