/* ============ 1. 变量与基础 ============ */
:root {
  --navy: #0B1F3A;
  --green: #39FF88;
  --gold: #C9A063;
  --warm: #F4F4F0;
  --dark: #101820;
  --blue: #00E5FF;
  --purple: #7C4DFF;
  --gray: #8A94A6;
  --white: #FFFFFF;

  --f-head: "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", STSong, SimSun, Georgia, "Times New Roman", serif;
  --f-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --f-num: "SF Mono", "Roboto Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --r-lg: 20px;
  --r-md: 12px;
  --r-pill: 999px;

  --cw: 1320px;
  --gutter: clamp(18px, 3.5vw, 44px);
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::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;
}

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

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

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

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--navy);
  background: var(--warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: .01em;
}

::selection {
  background: var(--green);
  color: var(--navy);
}

/* ============ 2. 通用工具 ============ */
.container {
  width: min(var(--cw), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus {
  outline: 0;
}

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

.divider {
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201,160,99,0) 100%);
  border: 0;
}

/* ============ 3. 按钮与标签 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer;
}

.btn--solid {
  background: var(--green);
  color: var(--navy);
  box-shadow: 0 6px 24px rgba(57, 255, 136, 0.22);
}

.btn--solid:hover {
  background: var(--blue);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.28);
  transform: translateY(-2px);
}

.btn--outline {
  border: 2px solid var(--green);
  color: var(--green);
  padding: 10px 24px;
}

.btn--outline:hover {
  background: var(--green);
  color: var(--navy);
  border-color: var(--green);
}

.btn--ghost {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
  border-radius: 0;
  padding: 6px 2px;
  letter-spacing: .08em;
}

.btn--ghost:hover {
  background: rgba(201, 160, 99, 0.14);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}

.tag--green {
  background: rgba(57, 255, 136, 0.16);
  color: #14a35b;
  border: 1px solid rgba(57, 255, 136, 0.5);
}

.tag--gold {
  background: rgba(201, 160, 99, 0.14);
  color: #946b2c;
  border: 1px solid rgba(201, 160, 99, 0.45);
}

.tag--purple {
  background: rgba(124, 77, 255, 0.12);
  color: #5b2bc4;
  border: 1px solid rgba(124, 77, 255, 0.35);
}

.section--dark .tag--green,
.card--dark .tag--green {
  background: rgba(57, 255, 136, 0.16);
  color: var(--green);
}

.section--dark .tag--gold,
.card--dark .tag--gold {
  background: rgba(201, 160, 99, 0.18);
  color: var(--gold);
}

/* ============ 4. 面包屑 ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 4px;
  font-size: 13px;
  color: var(--gray);
  letter-spacing: .03em;
}

.crumb-link {
  color: var(--navy);
  font-weight: 600;
  transition: color 0.25s ease;
}

.crumb-link:hover {
  color: var(--green);
}

.crumb-current {
  color: var(--gray);
  font-family: var(--f-num);
}

/* ============ 5. 页头 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 888;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 32px rgba(11, 31, 58, 0.22);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--blue) 40%, rgba(57, 255, 136, 0) 80%);
  pointer-events: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 22px;
  background: var(--green);
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--r-pill);
  transition: top 0.25s var(--ease);
}

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

.progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-thumb {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 0 0 12px rgba(57, 255, 136, 0.6);
  transition: width 0.12s linear;
}

.header-shell {
  max-width: var(--cw);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--navy);
  font-family: var(--f-num);
  font-weight: 900;
  font-size: 21px;
  border-radius: 10px 10px 10px 4px;
  transform: skew(-4deg);
  box-shadow: 5px 5px 0 rgba(57, 255, 136, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-cn {
  font-family: var(--f-head);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .14em;
}

.brand-en {
  font-family: var(--f-num);
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--gold);
  text-transform: uppercase;
}

/* 时段胶囊 */
.slot-tabs {
  display: flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-pill);
  padding: 4px;
  margin-inline: auto;
}

.slot-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  color: var(--gray);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.slot-tab:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.slot-tab.is-on {
  background: var(--green);
  color: var(--navy);
  box-shadow: 0 4px 18px rgba(57, 255, 136, 0.35);
}

.slot-light {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.slot-tab.is-on .slot-light {
  background: var(--navy);
  opacity: 1;
  animation: pulse-dot 2.2s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(11, 31, 58, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(11, 31, 58, 0);
  }
}

.slot-code {
  font-family: var(--f-num);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}

.slot-label {
  font-size: 13px;
}

/* 主导航 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-caption {
  font-family: var(--f-num);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--gold);
  text-transform: uppercase;
  height: 46px;
  line-height: 1.3;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(244, 244, 240, 0.82);
  border-radius: var(--r-md);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--green);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* 汉堡按钮 */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s var(--ease);
}

.nav-burger:hover {
  background: rgba(57, 255, 136, 0.16);
}

.burger-line {
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.25s, width 0.3s var(--ease);
}

.nav-burger[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-burger[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端导航内联调整 */
@media (max-width: 1024px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--navy);
    padding: 28px var(--gutter) 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid var(--green);
    box-shadow: 0 30px 50px rgba(11, 31, 58, 0.4);
    flex-direction: column;
    align-items: stretch;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .main-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-caption {
    writing-mode: horizontal-tb;
    border-left: 0;
    padding-left: 0;
    height: auto;
    margin-bottom: 18px;
    letter-spacing: .2em;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 10px;
    font-size: 17px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a[aria-current="page"] {
    color: var(--green);
    border-left: 3px solid var(--green);
    padding-left: 16px;
  }

  .nav-burger {
    display: flex;
    margin-left: auto;
    z-index: 999;
  }
}

@media (max-width: 720px) {
  .header-shell {
    height: 68px;
    gap: 10px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 17px;
    border-radius: 8px 8px 8px 3px;
  }

  .brand-cn {
    font-size: 16px;
    letter-spacing: .08em;
  }

  .brand-en {
    font-size: 8px;
    letter-spacing: .2em;
  }

  .slot-tabs {
    gap: 0;
    padding: 3px;
  }

  .slot-tab {
    padding: 6px 12px;
    gap: 4px;
  }

  .slot-code {
    font-size: 10px;
  }

  .slot-label {
    display: none;
  }

  .brand-text {
    line-height: 1.1;
  }
}

@media (max-width: 420px) {
  .slot-tab {
    padding: 5px 9px;
  }

  .slot-light {
    width: 5px;
    height: 5px;
  }

  .nav-burger {
    width: 40px;
    height: 40px;
  }
}

/* ============ 6. 页脚 ============ */
.site-footer {
  position: relative;
  background: var(--dark);
  color: #c7ccd4;
  border-top: 2px solid var(--gold);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 340px;
  height: 340px;
  background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(201, 160, 99, 0.07) 10px 12px);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  max-width: var(--cw);
  margin-inline: auto;
  padding: 56px var(--gutter) 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--f-num);
  font-weight: 900;
  font-size: 17px;
  border-radius: 8px 8px 8px 3px;
  transform: skew(-4deg);
}

.footer-brand-text strong {
  display: block;
  font-family: var(--f-head);
  font-size: 18px;
  color: var(--white);
  letter-spacing: .12em;
}

.footer-brand-text em {
  font-style: normal;
  font-family: var(--f-num);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer-trust {
  font-size: 13.5px;
  line-height: 1.85;
  color: #9aa3b0;
  max-width: 440px;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}

.footer-heading {
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: .08em;
  padding-bottom: 8px;
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 2px;
  background: var(--green);
}

.footer-list a,
.footer-contact li {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: #9aa3b0;
  line-height: 1.7;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-list a:hover {
  color: var(--green);
  transform: translateX(4px);
}

.footer-contact li:nth-child(1),
.footer-contact li:nth-child(2) {
  font-family: var(--f-num);
  letter-spacing: .02em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 13px;
  color: #7b8494;
  font-family: var(--f-num);
}

.footer-mini-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.footer-mini-links a {
  color: #9aa3b0;
  transition: color 0.25s ease;
}

.footer-mini-links a:hover {
  color: var(--green);
}

.mini-divider {
  color: var(--gold);
  opacity: 0.5;
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-shell {
    padding-top: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============ 7. 区块与卡片 ============ */
.section {
  padding: clamp(56px, 9vw, 120px) 0;
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--alt {
  background: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section-head {
  position: relative;
  margin-bottom: 40px;
  padding-top: 44px;
}

.sec-index {
  position: absolute;
  top: -10px;
  left: -6px;
  font-family: var(--f-num);
  font-size: 92px;
  font-weight: 800;
  line-height: 1;
  color: rgba(11, 31, 58, 0.09);
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
}

.section--dark .sec-index {
  color: rgba(57, 255, 136, 0.18);
}

.sec-title {
  position: relative;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.sec-note {
  position: relative;
  font-size: 14.5px;
  color: var(--gray);
  max-width: 620px;
  line-height: 1.8;
}

.section--dark .sec-note {
  color: #9eb0c9;
}

/* 卡片 */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid rgba(11, 31, 58, 0.06);
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.1);
  border-color: rgba(57, 255, 136, 0.5);
}

.card--dark {
  background: var(--navy);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.06);
}

.card--dark:hover {
  border-color: rgba(57, 255, 136, 0.4);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* 数据元素 */
.stat-big {
  font-family: var(--f-num);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.section--dark .stat-big,
.card--dark .stat-big {
  color: var(--green);
}

.data-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(138, 148, 166, 0.3);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-key {
  font-size: 13px;
  color: var(--gray);
  flex-shrink: 0;
}

.data-value {
  margin-left: auto;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.card--dark .data-row {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.card--dark .data-key {
  color: #7e8fa8;
}

.card--dark .data-value {
  color: var(--green);
}

/* ============ 8. 媒体容器 ============ */
.media-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 16 / 10;
}

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

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame--tall {
  aspect-ratio: 4 / 5;
}

.media-frame--placeholder::before {
  content: attr(data-caption);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .18em;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(57, 255, 136, 0.04) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, var(--navy), #162b47);
}

/* ============ 9. 首页通用首屏 ============ */
.hero {
  padding: clamp(48px, 8vw, 96px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 17px;
  color: var(--gray);
  max-width: 46em;
}

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

/* ============ 10. 响应式基础 ============ */
@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .card {
    padding: 20px;
  }

  .sec-index {
    font-size: 64px;
  }
}

/* ============ 11. 焦点与减少动态 ============ */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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