/* =====================================================
   爱游CN · 共享样式表 /assets/site.css
   深海蓝底 · 荧光青信号 · 珊瑚橙行动
   ===================================================== */

/* ---------- 01 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 02 变量 ---------- */
:root {
  --deep: #071A2F;
  --navy: #0D2A45;
  --cyan: #35F2D0;
  --coral: #FF6B4A;
  --cream: #F5EFE6;
  --ink: #1C1512;
  --gray: #8FA6B8;
  --yellow: #F2C94C;
  --mist: #D9E8F2;
  --glass: #A8FFF0;

  --font-display: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --bw: 2px;
  --shadow-panel: 6px 6px 0 rgba(53, 242, 208, 0.16);
  --shadow-coral: 6px 6px 0 rgba(255, 107, 74, 0.26);
  --shadow-ink: 6px 6px 0 rgba(28, 21, 18, 0.55);

  --head-h: 74px;
  --rail: 96px;
  --wrap-max: 1240px;
  --pad: clamp(18px, 4vw, 40px);
}

/* ---------- 03 基础排版 ---------- */
body {
  min-height: 100vh;
  background: var(--deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.78;
  letter-spacing: 0.012em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--cream);
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.7rem); }
h4 { font-size: 1.05rem; }
p { max-width: 68ch; }
strong { color: var(--glass); font-weight: 700; }
::selection { background: var(--cyan); color: var(--deep); }

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

/* ---------- 04 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.prose {
  max-width: 72ch;
  font-size: 16.5px;
  color: var(--mist);
}
.prose p + p { margin-top: 1em; }
.prose h2 { margin-top: 1.9em; color: var(--cream); }
.prose h3 { margin-top: 1.5em; color: var(--glass); }
.prose ul { margin-top: 1em; padding-left: 1.1em; list-style: square; }
.prose li { margin-top: 0.4em; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(53, 242, 208, 0.5); }
.prose a:hover { color: var(--glass); }

.lede {
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 05 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(143, 166, 184, 0.3);
  margin-bottom: 28px;
}
.section-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }

.rule {
  border: 0;
  border-top: 2px solid rgba(53, 242, 208, 0.32);
  margin: 30px 0;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1.5px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--cyan);
}
.tag--coral { color: var(--coral); }
.tag--yellow { color: var(--yellow); }
.tag--mist { color: var(--gray); }

.panel {
  position: relative;
  background: var(--navy);
  border: var(--bw) solid rgba(53, 242, 208, 0.5);
  box-shadow: var(--shadow-panel);
  padding: clamp(20px, 3vw, 38px);
}
.panel--cream {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-ink);
}
.panel--cream h2, .panel--cream h3, .panel--cream h4 { color: var(--ink); }
.panel--cream p { color: #3A2E28; }
.panel--cream .eyebrow { color: #A03A1F; }
.panel--coral {
  border-color: var(--coral);
  box-shadow: var(--shadow-coral);
}
.panel--flush { padding: 0; }

.note {
  border-left: 3px solid var(--coral);
  padding: 4px 0 4px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 58ch;
}

.index-list { display: flex; flex-direction: column; }
.index-item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px dashed rgba(143, 166, 184, 0.35);
}
.index-item:first-child { border-top: 1px dashed rgba(143, 166, 184, 0.35); }
.index-num {
  flex: 0 0 auto;
  min-width: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
.index-body { flex: 1 1 auto; min-width: 0; }
.index-body h3, .index-body h4 { font-size: 1.05rem; margin-bottom: 4px; }
.index-body p { font-size: 14.5px; color: var(--gray); line-height: 1.7; }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
}
.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)); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray);
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li::after { content: "/"; color: rgba(143, 166, 184, 0.5); }
.crumbs li:last-child::after { content: ""; }
.crumbs a:hover { color: var(--cyan); }

/* 图片容器：页面阶段放入占位图或抽象数据图 */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: var(--bw) solid rgba(53, 242, 208, 0.45);
  background:
    radial-gradient(120% 90% at 14% 8%, rgba(53, 242, 208, 0.24), transparent 56%),
    radial-gradient(80% 74% at 88% 92%, rgba(255, 107, 74, 0.2), transparent 62%),
    linear-gradient(160deg, #0B2136, #05111E);
}
.media-frame img, .media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(53, 242, 208, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 242, 208, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
}
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gray);
}

/* ---------- 06 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: var(--bw) solid transparent;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn--download {
  background: var(--coral);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 rgba(28, 21, 18, 0.55);
}
.btn--download:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(28, 21, 18, 0.55);
}
.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 4px 4px 0 rgba(53, 242, 208, 0.22);
}
.btn--ghost:hover {
  background: rgba(53, 242, 208, 0.13);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(53, 242, 208, 0.22);
}
.btn--cyan {
  background: var(--cyan);
  color: var(--deep);
  border-color: var(--deep);
  box-shadow: 4px 4px 0 rgba(7, 26, 47, 0.6);
}
.btn--cyan:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(7, 26, 47, 0.6);
}

/* ---------- 07 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: -120px;
  z-index: 300;
  padding: 11px 18px;
  background: var(--cyan);
  color: var(--deep);
  border: var(--bw) solid var(--deep);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; }

/* ---------- 08 头部框架 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  border-bottom: 3px solid var(--cyan);
  box-shadow: 0 10px 0 rgba(7, 26, 47, 0.6);
}

.head-grid {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--pad);
  min-height: var(--head-h);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand-beacon {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 242, 208, 0.18), 0 0 14px rgba(53, 242, 208, 0.75);
  animation: beacon 2.8s ease-in-out infinite;
}
@keyframes beacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.42; transform: scale(0.78); }
}
.brand-stack { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.brand-domain {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.head-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.nav-track { display: flex; align-items: stretch; flex-wrap: nowrap; }
.nav-cell { display: flex; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px clamp(8px, 1.1vw, 15px);
  border-left: 1px solid rgba(143, 166, 184, 0.22);
  color: var(--mist);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.nav-cell:last-child .nav-link { border-right: 1px solid rgba(143, 166, 184, 0.22); }
.nav-link:hover { color: var(--cyan); background: rgba(53, 242, 208, 0.09); }
.nav-link[aria-current="page"] {
  background: var(--cyan);
  color: var(--deep);
  box-shadow: inset 0 -3px 0 var(--deep), inset 0 3px 0 var(--deep);
}

.nav-cta { display: none; }

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border: var(--bw) solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.nav-toggle[aria-expanded="true"] { background: var(--cyan); color: var(--deep); }
.nav-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.head-progress {
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--glass), var(--cyan) 65%, var(--coral));
  transition: width 0.12s linear;
}

.porthole {
  position: fixed;
  right: 12px;
  top: 34%;
  z-index: 55;
  display: none;
  flex-direction: column;
  gap: 12px;
  width: calc(var(--rail) - 24px);
}
.porthole-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 6px;
  text-align: center;
  background: var(--navy);
  border: var(--bw) solid var(--cyan);
  box-shadow: 4px 4px 0 rgba(53, 242, 208, 0.24);
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.porthole-slot:nth-child(2) {
  border-color: var(--coral);
  box-shadow: 4px 4px 0 rgba(255, 107, 74, 0.3);
}
.porthole-slot:hover {
  transform: translateX(-3px);
  background: rgba(53, 242, 208, 0.13);
}
.porthole-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gray);
}
.porthole-value {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cream);
}

/* ---------- 09 页脚 ---------- */
.site-foot {
  margin-top: clamp(56px, 9vw, 120px);
  background: var(--ink);
  color: var(--mist);
  border-top: 3px solid var(--cyan);
}
.foot-grid {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding: clamp(38px, 6vw, 72px) var(--pad) clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(22px, 3vw, 48px);
}
.foot-brand { max-width: 34ch; }
.foot-mark {
  display: block;
  width: 30px;
  height: 30px;
  border: var(--bw) solid var(--cyan);
  position: relative;
  margin-bottom: 16px;
}
.foot-mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--cyan);
}
.foot-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.2;
}
.foot-domain {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 4px;
}
.foot-addr {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray);
}
.foot-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(143, 166, 184, 0.28);
}
.foot-list { display: flex; flex-direction: column; gap: 10px; }
.foot-list a {
  font-size: 14.5px;
  color: var(--mist);
  transition: color 0.16s ease, padding-left 0.16s ease;
}
.foot-list a:hover { color: var(--cyan); padding-left: 4px; }
.foot-col--contact .foot-list a { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.02em; }
.foot-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 30ch;
}
.foot-base {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding: 18px var(--pad) 26px;
  border-top: 1px solid rgba(143, 166, 184, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gray);
}
.foot-legal, .foot-meta { max-width: none; }

/* ---------- 10 显现动效 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}
.has-js [data-reveal="in"] {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.8, 0.3, 1);
}

/* ---------- 11 响应式 ---------- */
@media (min-width: 1100px) {
  body { padding-right: var(--rail); }
  .porthole { display: flex; }
}

@media (max-width: 1080px) {
  :root { --head-h: 66px; }

  .head-nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: calc(var(--head-h) + 44px) var(--pad) 48px;
    background: rgba(7, 26, 47, 0.975);
    border-bottom: 3px solid var(--cyan);
    overflow-y: auto;
  }
  .head-nav[data-open="true"] { display: flex; }
  .nav-track {
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }
  .nav-cell {
    border-top: var(--bw) solid rgba(53, 242, 208, 0.3);
  }
  .nav-cell:last-child { border-bottom: var(--bw) solid rgba(53, 242, 208, 0.3); }
  .nav-link {
    width: 100%;
    padding: 18px 6px;
    border-left: 0;
    border-right: 0;
    font-size: 1.1rem;
    justify-content: flex-start;
  }
  .nav-cell:last-child .nav-link { border-right: 0; }
  .nav-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin: 26px auto 0;
  }
  .nav-toggle { display: inline-flex; }
  .head-actions { margin-left: auto; }
}

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand-domain { display: none; }
  .head-actions { display: none; }
  .head-grid { justify-content: space-between; }
  .section-head { align-items: flex-start; }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; align-items: flex-start; }
  .index-item { flex-direction: column; gap: 6px; }
}

/* ---------- 12 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .brand-beacon { animation: none; }
  .has-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .head-progress { transition: none !important; }
  .btn:hover, .porthole-slot:hover { transform: none; }
}
