/* ==========================================================================
   十八游戏站 / 共享样式 /assets/site.css
   夜巡霓虹：墨夜底 · 电光青主色 · 礼包金点缀 · 珊瑚橙分区信号
   ========================================================================== */

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

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

body,
h1,
h2,
h3,
h4,
h5,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dt,
dd {
  margin: 0;
}

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

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

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

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

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink-900: #060d18;
  --ink-850: #08121f;
  --ink-800: #0b1729;
  --ink-700: #12263f;

  --cyan-400: #2de2d0;
  --cyan-200: #9bf7ee;
  --gold-400: #f5c05e;
  --coral-500: #ff7a59;

  --fog-100: #eaf4f8;
  --steel-400: #89a0b4;

  --text: var(--fog-100);
  --text-soft: #b9ccda;
  --text-mute: var(--steel-400);

  --line: rgba(137, 160, 180, 0.2);
  --line-cyan: rgba(45, 226, 208, 0.34);
  --line-gold: rgba(245, 192, 94, 0.4);
  --line-coral: rgba(255, 122, 89, 0.36);

  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono",
    Consolas, "Noto Sans Mono CJK SC", monospace;

  --beacon-h: 32px;
  --bar-h: 76px;
  --header-h: calc(var(--beacon-h) + var(--bar-h));

  --gutter: clamp(18px, 4.2vw, 40px);
  --shell: 1220px;
  --cut: 26px;

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

/* ---------- 3. 基础排版 ---------- */
html {
  scroll-behavior: smooth;
}

body {
  padding-top: var(--header-h);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(900px 520px at 10% -6%, rgba(45, 226, 208, 0.1), transparent 62%),
    radial-gradient(760px 460px at 92% 2%, rgba(245, 192, 94, 0.07), transparent 60%),
    radial-gradient(700px 520px at 50% 106%, rgba(255, 122, 89, 0.05), transparent 62%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.012em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.022em;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.68rem, 3.1vw, 2.45rem);
}

h3 {
  font-size: clamp(1.18rem, 1.85vw, 1.42rem);
  letter-spacing: -0.012em;
}

p {
  text-wrap: pretty;
}

::selection {
  background: rgba(45, 226, 208, 0.28);
  color: #ffffff;
}

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

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow {
  max-width: 860px;
}

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 112px);
}

.section--raised {
  background-color: var(--ink-800);
  border-block: 1px solid var(--line);
}

.section--deep {
  background-image: linear-gradient(180deg, var(--ink-800), var(--ink-700));
  border-block: 1px solid var(--line);
}

.section--ink {
  background-color: var(--ink-900);
}

.stack > * + * {
  margin-top: var(--stack-gap, 1.15em);
}

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

.split {
  display: grid;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.split--asym {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.split--reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

/* ---------- 5. 通用文字组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--cyan-400), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-lead {
  margin-top: 14px;
  max-width: 62ch;
  font-size: 1.02rem;
  color: var(--text-soft);
}

.prose {
  max-width: 68ch;
  color: var(--text-soft);
}

.prose p + p {
  margin-top: 1.1em;
}

.prose strong {
  color: var(--fog-100);
  font-weight: 700;
}

.prose a {
  color: var(--cyan-200);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cyan-200);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}

.link-arrow::after {
  content: "";
  width: 16px;
  height: 1px;
  background-color: currentColor;
  transition: width 0.2s var(--ease);
}

.link-arrow:hover {
  gap: 12px;
}

.link-arrow:hover::after {
  width: 22px;
}

.rule {
  height: 1px;
  background-image: linear-gradient(90deg, transparent, var(--line), transparent);
}

.trail {
  height: 1px;
  background-image: linear-gradient(90deg, var(--cyan-400) 0 22px, transparent 22px 44px);
  background-size: 44px 1px;
  opacity: 0.5;
}

.trail--diag {
  height: 2px;
  background-image: repeating-linear-gradient(
    105deg,
    rgba(255, 122, 89, 0.5) 0 10px,
    transparent 10px 22px
  );
}

/* ---------- 6. 按钮与标记 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--cyan-200);
  --btn-line: var(--line-cyan);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--btn-fg);
  background-color: var(--btn-bg);
  box-shadow: inset 0 0 0 1px var(--btn-line);
  clip-path: polygon(
    0 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% 100%,
    12px 100%,
    0 calc(100% - 12px)
  );
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--solid {
  --btn-fg: #04141a;
  --btn-line: transparent;
  --btn-bg: var(--cyan-400);
  background-image: linear-gradient(100deg, var(--cyan-400), #63f0e3);
}

.btn--solid:hover {
  --btn-bg: var(--cyan-200);
  background-image: linear-gradient(100deg, var(--cyan-200), var(--cyan-400));
}

.btn--ghost {
  --btn-bg: rgba(45, 226, 208, 0.05);
}

.btn--ghost:hover {
  --btn-bg: rgba(45, 226, 208, 0.14);
  --btn-fg: var(--cyan-200);
  --btn-line: rgba(45, 226, 208, 0.55);
}

.btn--gold {
  --btn-fg: #241703;
  --btn-line: transparent;
  --btn-bg: var(--gold-400);
  background-image: linear-gradient(100deg, var(--gold-400), #ffd98f);
}

.btn--gold:hover {
  --btn-bg: #ffd98f;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan-200);
  background-color: rgba(45, 226, 208, 0.1);
  box-shadow: inset 0 0 0 1px rgba(45, 226, 208, 0.32);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.tag--gold {
  color: var(--gold-400);
  background-color: rgba(245, 192, 94, 0.1);
  box-shadow: inset 0 0 0 1px rgba(245, 192, 94, 0.36);
}

.tag--coral {
  color: #ffb4a0;
  background-color: rgba(255, 122, 89, 0.12);
  box-shadow: inset 0 0 0 1px var(--line-coral);
}

.tag--mute {
  color: var(--text-mute);
  background-color: rgba(137, 160, 180, 0.1);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- 7. 面板与研究板 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  background-image: linear-gradient(155deg, rgba(18, 38, 63, 0.92), rgba(11, 23, 41, 0.95));
  box-shadow: inset 0 0 0 1px var(--line);
}

.panel--cut {
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

.panel--cyan {
  box-shadow: inset 0 0 0 1px var(--line-cyan);
}

.panel--gold {
  box-shadow: inset 0 0 0 1px var(--line-gold);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.panel__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  white-space: nowrap;
}

.panel__body {
  font-size: 15.5px;
  color: var(--text-soft);
}

.board {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  background-color: var(--ink-800);
  box-shadow: inset 0 0 0 1px var(--line);
}

.board__summary {
  font-size: 1.02rem;
  color: var(--text-soft);
}

.board__points {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.board__points li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--text-soft);
}

.board__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 2px;
  background-color: var(--cyan-400);
}

.board__terms {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board__more {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.board__more a {
  color: var(--cyan-200);
}

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

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(137, 160, 180, 0.5);
}

.breadcrumb__link {
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
}

.breadcrumb__link:hover {
  color: var(--cyan-200);
}

.breadcrumb__item[aria-current="page"] {
  color: var(--fog-100);
}

/* ---------- 9. 图像容器基础 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--ink-800);
  background-image: linear-gradient(150deg, rgba(18, 38, 63, 0.9), rgba(6, 13, 24, 0.92));
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(45, 226, 208, 0.07) 0 1px,
    transparent 1px 9px
  );
  opacity: 0.55;
}

.media--wide {
  aspect-ratio: 21 / 9;
}

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

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

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan-200);
  background-image: linear-gradient(to top, rgba(6, 13, 24, 0.94), rgba(6, 13, 24, 0));
}

/* ---------- 10. 页头 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #04141a;
  background-color: var(--cyan-400);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background-image: linear-gradient(
    180deg,
    rgba(6, 13, 24, 0.94) 0%,
    rgba(6, 13, 24, 0.72) 56%,
    rgba(6, 13, 24, 0) 100%
  );
  transition: background-color 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.site-header.is-scrolled {
  background-image: none;
  background-color: rgba(6, 13, 24, 0.97);
  box-shadow: 0 1px 0 0 var(--line-cyan), 0 24px 48px -34px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-beacon {
  height: var(--beacon-h);
  background-color: rgba(11, 23, 41, 0.66);
  border-bottom: 1px solid rgba(137, 160, 180, 0.14);
  box-shadow: inset 0 -1px 0 rgba(45, 226, 208, 0.1);
}

.header-beacon__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

.header-beacon__status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-beacon__version {
  color: var(--gold-400);
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.header-beacon__sep {
  flex: none;
  width: 1px;
  height: 11px;
  background-color: rgba(137, 160, 180, 0.45);
}

.header-beacon__text {
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-beacon__meta {
  white-space: nowrap;
}

.beacon-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--cyan-400);
  animation: beacon-pulse 2.8s ease-in-out infinite;
}

@keyframes beacon-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(45, 226, 208, 0.16);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(45, 226, 208, 0.05);
  }
}

.header-bar {
  height: var(--bar-h);
}

.header-bar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #04141a;
  background-image: linear-gradient(140deg, var(--cyan-400), #7cf3e8 55%, var(--gold-400));
  clip-path: polygon(
    0 0,
    calc(100% - 11px) 0,
    100% 11px,
    100% 100%,
    11px 100%,
    0 calc(100% - 11px)
  );
  transition: transform 0.3s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-4deg) scale(1.05);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--fog-100);
}

.brand__line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
}

/* 导航 */
.site-nav {
  margin-inline: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 18px);
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 4px 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #bfd3e1;
  transition: color 0.2s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 2px;
  background-color: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease), background-color 0.28s var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--cyan-200);
}

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

.site-nav__link[aria-current="page"] {
  color: var(--fog-100);
  font-weight: 700;
}

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background-image: linear-gradient(90deg, var(--cyan-400), var(--gold-400));
}

.site-nav__foot {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan-200);
  background-color: rgba(45, 226, 208, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-cyan);
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
}

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

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  transform-origin: center;
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}

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

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

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

/* 阅读进度 */
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: rgba(137, 160, 180, 0.14);
  overflow: hidden;
}

.read-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background-image: linear-gradient(
    90deg,
    var(--cyan-400) 0%,
    var(--gold-400) 70%,
    var(--coral-500) 100%
  );
  will-change: transform;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding-block: clamp(40px, 6vw, 72px) clamp(8px, 1.4vw, 16px);
  background-image: linear-gradient(180deg, var(--ink-900), var(--ink-800) 46%, var(--ink-850));
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    var(--cyan-400) 18%,
    var(--gold-400) 62%,
    transparent 100%
  );
  opacity: 0.8;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #04141a;
  background-image: linear-gradient(140deg, var(--cyan-400), #7cf3e8 55%, var(--gold-400));
  clip-path: polygon(
    0 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% 100%,
    12px 100%,
    0 calc(100% - 12px)
  );
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--fog-100);
}

.footer-brand__version {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-400);
}

.footer-brand__note {
  margin-top: 16px;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
}

.footer-contact {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.footer-contact__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer-contact dt {
  flex: none;
  width: 3em;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--steel-400);
}

.footer-contact dd {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  word-break: break-word;
}

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

.footer-col__heading {
  padding-bottom: 12px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-400);
  border-bottom: 1px solid var(--line);
}

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

.footer-col__list a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--text-soft);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-col__list a:hover {
  color: var(--cyan-200);
  transform: translateX(3px);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

.footer-base__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-base__links a {
  color: var(--text-mute);
  transition: color 0.2s var(--ease);
}

.footer-base__links a:hover {
  color: var(--cyan-200);
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--cyan-200);
  background-color: rgba(11, 23, 41, 0.92);
  box-shadow: inset 0 0 0 1px var(--line-cyan);
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s var(--ease), background-color 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background-color: rgba(45, 226, 208, 0.16);
}

.to-top__icon {
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

/* ---------- 12. 渐进显现 ---------- */
[data-reveal] {
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

html.has-js [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(14px);
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1100px) {
  .split--asym,
  .split--reverse {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

@media (max-width: 1080px) {
  .header-actions .btn--ghost {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --beacon-h: 28px;
    --bar-h: 64px;
  }

  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - var(--header-h));
    margin-inline: 0;
    padding: 10px var(--gutter) 32px;
    overflow-y: auto;
    background-image: linear-gradient(180deg, var(--ink-850), var(--ink-900));
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95),
      inset 0 1px 0 var(--line-cyan);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    pointer-events: none;
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
      visibility 0.26s var(--ease);
  }

  .site-header[data-open="true"] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

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

  .site-nav__list li + li {
    border-top: 1px solid rgba(137, 160, 180, 0.12);
  }

  .site-nav__link {
    display: flex;
    width: 100%;
    padding: 15px 2px;
    font-size: 16px;
  }

  .site-nav__link::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 18px;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
  }

  .site-nav__link:hover::after,
  .site-nav__link:focus-visible::after {
    transform: translateY(-50%) scaleY(1);
  }

  .site-nav__link[aria-current="page"]::after {
    transform: translateY(-50%) scaleY(1);
    background-image: linear-gradient(180deg, var(--cyan-400), var(--gold-400));
  }

  .site-nav__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
  }

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

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

@media (max-width: 680px) {
  :root {
    --beacon-h: 24px;
    --bar-h: 58px;
    --cut: 18px;
  }

  body {
    font-size: 16px;
  }

  .header-beacon__inner {
    font-size: 10.5px;
    letter-spacing: 0.06em;
    gap: 10px;
  }

  .header-beacon__text,
  .header-beacon__sep,
  .header-beacon__meta {
    display: none;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .brand__name {
    font-size: 15.5px;
  }

  .brand__line {
    display: none;
  }

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

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

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

  .to-top {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .nav-toggle__label {
    display: none;
  }

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

  .footer-contact__row {
    flex-direction: column;
    gap: 2px;
  }

  .footer-contact dt {
    width: auto;
  }
}

/* ---------- 14. 动效降级 ---------- */
@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;
  }

  html.has-js [data-reveal]:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }
}
