:root {
  --ink: #06110E;
  --ink-2: #0B211B;
  --turf: #12332A;
  --cyan: #17E0B8;
  --cyan-soft: #6CF3D6;
  --gold: #F5B62B;
  --violet: #7C5CFF;
  --coral: #FF6B57;
  --mint: #E8F3EE;
  --mist: #8FA8A0;
  --line: #2A4A41;
  --glass: rgba(23, 224, 184, .08);
  --glass-2: rgba(23, 224, 184, .16);
  --wrap: 1280px;
  --gutter: 24px;
  --r: 4px;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --shadow-ink: 0 26px 64px -30px rgba(0, 0, 0, .95);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--mint);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 84% -12%, rgba(23, 224, 184, .14), transparent 62%),
    radial-gradient(820px 520px at 6% 12%, rgba(124, 92, 255, .12), transparent 64%),
    radial-gradient(600px 400px at 50% 108%, rgba(23, 224, 184, .07), transparent 70%),
    linear-gradient(180deg, #06110E 0%, #0B211B 48%, #06110E 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--mint);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }

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

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

::selection { background: rgba(23, 224, 184, .3); color: var(--mint); }

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

/* ---------- 布局骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

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

/* ---------- 跳转链接 ---------- */
.site-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 22px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  border-radius: var(--r);
  transition: top .22s var(--ease);
}
.site-skip:focus { top: 12px; }

/* ---------- 头部：双层导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #06110E;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px -32px rgba(0, 0, 0, 1);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft) 55%, var(--gold));
  pointer-events: none;
}

.header-top {
  background:
    linear-gradient(90deg, rgba(23, 224, 184, .07), transparent 38%, transparent 66%, rgba(245, 182, 43, .07));
  border-bottom: 1px solid rgba(42, 74, 65, .8);
}

.header-top-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 14px;
  transition: padding .26s var(--ease);
}

.site-header[data-condensed] .header-top-inner { padding-block: 8px; }

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  gap: 3px;
  height: 28px;
  flex: 0 0 auto;
}
.brand-mark i { display: block; width: 4px; background: var(--cyan); border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 12px; opacity: .55; }
.brand-mark i:nth-child(2) { height: 21px; }
.brand-mark i:nth-child(3) { height: 16px; opacity: .9; background: var(--gold); }

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.25;
  color: var(--mint);
  white-space: nowrap;
}

.brand-line {
  display: block;
  max-height: 20px;
  overflow: hidden;
  font-size: 12px;
  letter-spacing: .16em;
  line-height: 1.6;
  color: var(--mist);
  white-space: nowrap;
  transition: max-height .26s var(--ease), opacity .2s ease, transform .26s var(--ease);
}
.site-header[data-condensed] .brand-line {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
}

.header-top-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex: 0 0 auto;
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.lang-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.link-quiet {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--mist);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.link-quiet:hover { color: var(--cyan-soft); border-bottom-color: var(--cyan); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--r);
  transition: transform .2s var(--ease), background .2s ease, color .2s ease, box-shadow .22s ease, border-color .2s ease;
}

.btn-primary {
  background: var(--gold);
  color: #06110E;
  box-shadow: 0 0 0 1px rgba(245, 182, 43, .4), 0 14px 30px -18px rgba(245, 182, 43, .95);
}
.btn-primary:hover {
  background: #FFC946;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(245, 182, 43, .65), 0 18px 34px -16px rgba(245, 182, 43, .85);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--mint);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-soft); background: var(--glass); }

.btn-enter { font-size: 13px; padding: 10px 16px; }

/* ---------- 栏目条 ---------- */
.header-main { border-top: 1px solid rgba(42, 74, 65, .55); }

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.main-nav { display: block; }

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding-block: 5px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 14px;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--mist);
  border-radius: var(--r);
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--mint); background: var(--glass); }

.nav-link[aria-current="page"] { color: var(--cyan); background: rgba(23, 224, 184, .07); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(23, 224, 184, .85);
}

/* ---------- 汉堡按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  color: var(--mint);
  transition: border-color .2s ease, color .2s ease;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan-soft); }

.nav-toggle-bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  transform-origin: center;
  transition: transform .24s var(--ease), opacity .18s ease;
}
.nav-toggle-label {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--mist);
}

.site-header[data-open] .nav-toggle-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars i:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.site-header[data-open] .nav-toggle-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.site-header[data-open] .nav-toggle { border-color: var(--cyan); }

/* ---------- 遮罩 ---------- */
.nav-scrim { display: none; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(11, 33, 27, .92);
  color: var(--cyan);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .24s ease, transform .24s var(--ease), border-color .2s ease, color .2s ease, background .2s ease;
}
.to-top::before {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(2px) rotate(45deg);
}
.to-top[data-visible] { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--cyan); color: var(--cyan-soft); background: rgba(23, 224, 184, .14); }

/* ---------- 通用组件 ---------- */
.card {
  padding: 20px;
  background: var(--glass);
  border: 1px solid rgba(23, 224, 184, .22);
  border-radius: var(--r);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--mist);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.chip:hover { color: var(--mint); border-color: var(--cyan-soft); }
.chip[aria-pressed="true"],
.chip[aria-selected="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(23, 224, 184, .12);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  border-radius: 2px;
}
.status .dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }

.status-live {
  color: var(--cyan);
  background: rgba(23, 224, 184, .12);
  border: 1px solid rgba(23, 224, 184, .42);
}
.status-live .dot { background: var(--cyan); animation: pulse-dot 2s ease-in-out infinite; }

.status-done {
  color: var(--violet);
  background: rgba(124, 92, 255, .12);
  border: 1px solid rgba(124, 92, 255, .42);
}
.status-done .dot { background: var(--violet); }

.status-warn {
  color: var(--coral);
  background: rgba(255, 107, 87, .12);
  border: 1px solid rgba(255, 107, 87, .42);
}
.status-warn .dot { background: var(--coral); }

@keyframes pulse-dot {
  0%, 100% { transform: scale(.96); opacity: .85; }
  50% { transform: scale(1); opacity: 1; }
}

.section-marker {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}
.marker-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--cyan);
  padding-top: 3px;
}
.marker-annot {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--mist);
  text-transform: uppercase;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 20px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mist);
}
.breadcrumb a { color: var(--mist); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--cyan-soft); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb [aria-current="page"] { color: var(--mint); }

/* ---------- 图片容器基础规则 ---------- */
.img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(23, 224, 184, .22), transparent 60%),
    radial-gradient(90% 80% at 90% 100%, rgba(124, 92, 255, .22), transparent 62%),
    linear-gradient(150deg, #0B211B, #12332A);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(6, 17, 14, .72) 100%);
}
.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--portrait { aspect-ratio: 3 / 4; }

/* ---------- 滚动显现 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  padding: 64px 0 32px;
  overflow: hidden;
  border-top: 1px solid rgba(23, 224, 184, .32);
  background: linear-gradient(180deg, #081612 0%, #0B211B 52%, #06110E 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(23, 224, 184, .07) 0 1px, transparent 1px 72px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), transparent 72%);
  opacity: .8;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-grid {
  display: grid;
  gap: 40px 32px;
  grid-template-columns: minmax(210px, 1.4fr) repeat(3, minmax(110px, 1fr)) minmax(200px, 1.25fr);
}

.footer-brand { min-width: 0; }
.footer-brand .brand-mark { margin-bottom: 16px; }

.footer-brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.3;
  color: var(--mint);
}
.footer-brand-line {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--mist);
}

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--cyan);
  text-transform: uppercase;
}

.footer-links li + li { margin-top: 10px; }

.footer-link {
  display: inline-block;
  font-size: 14px;
  letter-spacing: .05em;
  color: var(--mint);
  opacity: .76;
  transition: color .2s ease, opacity .2s ease, transform .2s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible { color: var(--cyan-soft); opacity: 1; transform: translateX(3px); }

.footer-contact { min-width: 0; }

.contact-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.7;
}

.contact-key {
  flex: 0 0 46px;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--cyan);
}

.contact-val {
  min-width: 0;
  color: var(--mint);
  opacity: .82;
  word-break: break-word;
  transition: color .2s ease, opacity .2s ease;
}
a.contact-val:hover { color: var(--cyan-soft); opacity: 1; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
}

.legal-icp {
  font-family: var(--mono);
  letter-spacing: .06em;
  color: var(--mist);
}
.legal-copy { color: var(--mist); }

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-links li + li { margin-top: 12px; }
}

/* ---------- 移动 ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; margin-left: 4px; }

  .header-top-meta .lang-chip,
  .header-top-meta .link-quiet { display: none; }
  .header-top-meta { gap: 10px; }

  .header-main { height: 0; border-top: 0; overflow: visible; }
  .header-main-inner { display: block; }

  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    max-height: 55vh;
    padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, #0B211B 0%, #06110E 100%);
    border-top: 1px solid var(--cyan);
    box-shadow: 0 -30px 70px -24px rgba(0, 0, 0, .95);
    transform: translateY(112%);
    transition: transform .34s var(--ease);
  }
  .site-header[data-open] .main-nav { transform: translateY(0); }

  .main-nav::before {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin: -6px auto 18px;
    background: var(--line);
    border-radius: 2px;
  }

  .nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-block: 0;
  }
  .nav-link {
    display: block;
    padding: 14px 12px;
    font-size: 15px;
    background: var(--glass);
    border: 1px solid var(--line);
    color: var(--mint);
  }
  .nav-link[aria-current="page"] { border-color: var(--cyan); }
  .nav-link[aria-current="page"]::after { left: 12px; right: auto; width: 22px; bottom: 8px; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    background: rgba(6, 17, 14, .74);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
  }
  .site-header[data-open] .nav-scrim { opacity: 1; pointer-events: auto; }

  body.nav-open { overflow: hidden; }

  .to-top { right: 14px; bottom: 16px; width: 44px; height: 44px; }

  .site-footer { margin-top: 72px; padding: 48px 0 28px; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .brand-name { font-size: 16px; }
  .brand-line { display: none; }
  .btn-enter { padding: 9px 13px; font-size: 12px; }
  .nav-toggle-label { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 380px) {
  .btn-enter { font-size: 11px; padding: 8px 10px; letter-spacing: .02em; }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .has-js [data-reveal] { opacity: 1; transform: none; }
  .status-live .dot { animation: none; }
}
