/* =========================================================
   赢咖游艺 · 共享站点样式 /assets/site.css
   赛博港口夜航：深墨蓝 + 霓虹青 + 琥珀金
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 6.4vw, 82px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.01em; }
h4 { font-size: 18px; font-weight: 800; letter-spacing: 0; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-soft); }

strong, b { font-weight: 700; color: var(--paper); }

hr { border: 0; height: 1px; background: var(--steel); margin: 0; }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: .92em; }

::selection { background: var(--amber); color: var(--black); }

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

/* ---------- 变量 ---------- */
:root {
  --ink: #061527;
  --deep: #0B2942;
  --steel: #103E5C;
  --cyan: #1FE0D0;
  --cyan-soft: #7CF3E8;
  --amber: #F2B34B;
  --paper: #F6EFE3;
  --black: #12100E;
  --mist: #A9BCCD;
  --coral: #FF6B7A;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 78px;
  --notch: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --line-steel: 1px solid var(--steel);
  --shadow-deep: 0 32px 70px -40px rgba(0, 0, 0, .95);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  transform: translateY(-130%);
  padding: 12px 22px;
  background: var(--amber);
  color: var(--black);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--black); }

/* =========================================================
   头部：紧凑命令栏
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 21, 39, .92);
  border-bottom: 1px solid var(--steel);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.header-rail {
  position: relative;
  height: 8px;
  background-color: var(--deep);
  background-image: repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 32px);
  border-bottom: 1px solid rgba(16, 62, 92, .7);
  overflow: hidden;
}
.header-rail::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 160px;
  background: linear-gradient(90deg, var(--cyan), rgba(31, 224, 208, 0));
}
.header-rail::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 90px;
  background: linear-gradient(270deg, rgba(242, 179, 75, .55), rgba(242, 179, 75, 0));
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
}

/* ---------- 品牌 ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}
.brand:hover { color: var(--paper); }

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--cyan);
  background: rgba(31, 224, 208, .06);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.brand-mark::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--amber);
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(242, 179, 75, .55);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(31, 224, 208, .35);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.brand-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--paper);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--mist);
  opacity: .8;
  white-space: nowrap;
}

/* ---------- 主导航 ---------- */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-left: 1px solid rgba(16, 62, 92, .85);
  padding-left: clamp(12px, 1.8vw, 24px);
  margin-left: 4px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav-list a::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(169, 188, 205, .42);
  transition: color .25s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .25s var(--ease);
}
.nav-list a:hover { color: var(--paper); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--cyan); }
.nav-list a[aria-current="page"]::before { color: var(--amber); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); background: var(--amber); }

.nav-quick { display: none; }
.nav-quick-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--mist);
  opacity: .65;
}

/* ---------- 右侧动作区 ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--steel);
  background: rgba(11, 41, 66, .6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--mist);
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(31, 224, 208, .16);
  animation: statusPulse 3s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(31, 224, 208, .16); }
  50% { opacity: .5; box-shadow: 0 0 0 5px rgba(31, 224, 208, .05); }
}

/* ---------- 移动菜单按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--steel);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-bars { position: relative; display: block; width: 16px; height: 10px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--cyan);
  transition: transform .28s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4.25px) rotate(-45deg); }
.nav-toggle-label { line-height: 1; }

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--amber) 100%);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  will-change: transform;
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: auto;
  background: var(--deep);
  border-top: 1px solid var(--steel);
  color: var(--mist);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(31, 224, 208, .10), transparent 58%),
    radial-gradient(80% 70% at 4% 100%, rgba(242, 179, 75, .08), transparent 62%);
}

.footer-rail {
  height: 10px;
  background-image: repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 26px);
  border-bottom: 1px solid rgba(16, 62, 92, .55);
  opacity: .95;
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(38px, 5vw, 66px);
  padding-bottom: clamp(26px, 3.4vw, 42px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 4.4vw, 72px);
  align-items: start;
}

.footer-brand-name {
  display: block;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--paper);
  line-height: 1.2;
}
.footer-desc {
  margin: 14px 0 18px;
  max-width: 30em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}
.footer-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(242, 179, 75, .45);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--amber);
  text-transform: uppercase;
}

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

.footer-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  color: var(--paper);
}
.footer-group-title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--amber);
  flex: 0 0 14px;
}

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-links a {
  display: inline-block;
  padding: 3px 0;
  font-size: 15px;
  color: var(--mist);
  text-decoration: none;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-links a:hover { color: var(--cyan); transform: translateX(3px); }

.footer-meta {
  margin-top: clamp(30px, 4vw, 54px);
  padding-top: 22px;
  border-top: 1px solid rgba(16, 62, 92, .75);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  background: rgba(6, 21, 39, .55);
  border: 1px dashed var(--steel);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .03em;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.copy-btn:hover { border-color: var(--cyan); color: var(--cyan); border-style: solid; }
.copy-btn .copy-hint { display: none; color: var(--amber); font-size: 11px; letter-spacing: .1em; }
.copy-btn[data-copied="true"] {
  border-style: solid;
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(242, 179, 75, .1);
}
.copy-btn[data-copied="true"] .copy-hint { display: inline; }
.copy-label { white-space: nowrap; }

.contact-line {
  margin: 0;
  flex: 1 1 100%;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
  opacity: .88;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--mist);
}
.footer-icp { color: var(--mist); }
.footer-copy { color: rgba(169, 188, 205, .7); }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 120;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(6, 21, 39, .88);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 0 0 1px rgba(242, 179, 75, .16), var(--shadow-deep);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--amber); color: var(--black); }

/* =========================================================
   通用内容组件
   ========================================================= */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(44px, 7vw, 92px);
}
.section--paper {
  background: var(--paper);
  color: var(--black);
}
.section--paper h1,
.section--paper h2,
.section--paper h3,
.section--paper h4 { color: var(--black); }
.section--paper p { color: #2A2622; }
.section--paper a { color: #0B5F63; }
.section--paper a:hover { color: #12100E; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px 10px;
  border: 1px solid rgba(242, 179, 75, .45);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  line-height: 1.4;
  color: var(--amber);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--amber);
  transform: rotate(45deg);
  flex: 0 0 5px;
}
.section--paper .eyebrow { border-color: rgba(18, 16, 14, .28); color: #8A5A10; }
.section--paper .eyebrow::before { background: #8A5A10; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--steel);
  background: rgba(11, 41, 66, .55);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.7;
  color: var(--mist);
  white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: rgba(31, 224, 208, .5); background: rgba(31, 224, 208, .08); }
.tag--amber { color: var(--amber); border-color: rgba(242, 179, 75, .5); background: rgba(242, 179, 75, .08); }
.tag--coral { color: var(--coral); border-color: rgba(255, 107, 122, .5); background: rgba(255, 107, 122, .08); }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 30px);
}
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.grid--index { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: rgba(11, 41, 66, .74);
  border: 1px solid var(--steel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  background: rgba(16, 62, 92, .8);
}
.section--paper .card {
  background: #FFFFFF;
  border-color: rgba(18, 16, 14, .16);
  color: var(--black);
}
.section--paper .card:hover { border-color: #0B5F63; transform: translateY(-4px); }

.glass-panel {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  background: rgba(11, 41, 66, .5);
  border: 1px solid rgba(31, 224, 208, .22);
  box-shadow: inset 0 1px 0 rgba(124, 243, 232, .14), var(--shadow-deep);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--amber);
  color: var(--black);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.btn-primary:hover { background: #FFC868; color: var(--black); }

.btn-ghost {
  background: transparent;
  border-color: var(--steel);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(31, 224, 208, .06); }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 18px; }

.section--paper .btn-ghost { border-color: rgba(18, 16, 14, .3); color: var(--black); }
.section--paper .btn-ghost:hover { border-color: #0B5F63; color: #0B5F63; }

/* ---------- 面包屑 ---------- */
.breadcrumb { margin: 0 0 clamp(18px, 3vw, 28px); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--steel); }
.breadcrumb a { color: var(--mist); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--cyan); }

/* ---------- 正文 ---------- */
.prose {
  max-width: 38em;
  font-size: 16.5px;
  line-height: 1.85;
}
.prose > *:last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h3 { margin: 1.8em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- 数据表 ---------- */
.ledger-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ledger {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}
.ledger th,
.ledger td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(16, 62, 92, .85);
  vertical-align: top;
}
.ledger th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}
.ledger td:first-child { font-weight: 700; color: var(--paper); }
.ledger--paper th { color: rgba(18, 16, 14, .55); border-bottom-color: rgba(18, 16, 14, .16); }
.ledger--paper td { color: var(--black); border-bottom-color: rgba(18, 16, 14, .12); }
.ledger--paper td:first-child { color: var(--black); }

.rule {
  height: 1px;
  border: 0;
  margin: clamp(20px, 3vw, 34px) 0;
  background: linear-gradient(90deg, var(--steel), rgba(16, 62, 92, 0));
}

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

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--steel);
  background:
    linear-gradient(135deg, rgba(16, 62, 92, .55), rgba(6, 21, 39, .95)),
    var(--ink);
}
.media-frame img,
.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 21, 39, 0) 50%, rgba(6, 21, 39, .78) 100%);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--empty::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(31, 224, 208, .28);
  background-image:
    linear-gradient(90deg, rgba(31, 224, 208, .22) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(31, 224, 208, .22) 0 1px, transparent 1px 100%);
  background-size: 100% 100%, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat;
}
.media-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 12px;
  background: rgba(6, 21, 39, .9);
  border-top: 1px solid var(--steel);
  border-right: 1px solid var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

/* ---------- 滚动显现 ---------- */
.reveal-arm {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal-arm.is-in { opacity: 1; transform: none; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1180px) {
  .status-chip { display: none; }
}

@media (max-width: 1024px) {
  .nav-list a { font-size: 13px; }
  .brand-sub { font-size: 9px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .site-header { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

  .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .brand-mark::before { width: 10px; height: 10px; }
  .brand-mark::after { inset: 6px; }
  .brand-name { font-size: 17px; }
  .brand-sub { display: none; }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    z-index: 6;
    display: block;
    margin: 0;
    padding: 0;
    border-left: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: rgba(6, 21, 39, .985);
    border-bottom: 1px solid var(--steel);
    box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: max-height .34s var(--ease), visibility .34s;
  }
  .site-nav[data-open] {
    max-height: 76vh;
    overflow-y: auto;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 10px;
  }
  .nav-list li + li { border-top: 1px solid rgba(16, 62, 92, .55); }
  .nav-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 2px;
    font-size: 16px;
    font-weight: 600;
    color: var(--paper);
  }
  .nav-list a::before { font-size: 11px; color: rgba(242, 179, 75, .75); }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--cyan); }

  .nav-quick {
    display: grid;
    gap: 9px;
    padding: 16px var(--gutter) 26px;
    border-top: 1px solid rgba(16, 62, 92, .8);
  }
  .nav-quick a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    background: rgba(11, 41, 66, .7);
    border: 1px solid var(--steel);
    color: var(--paper);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }
  .nav-quick a::after {
    content: "→";
    font-family: var(--font-mono);
    color: var(--amber);
  }
  .nav-quick a:hover { border-color: var(--cyan); color: var(--cyan); }

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

@media (max-width: 720px) {
  .grid--split { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-meta { flex-direction: column; align-items: flex-start; }
  .footer-legal { font-size: 11px; }
}

@media (max-width: 520px) {
  .header-actions .btn-sm { min-height: 36px; padding: 0 12px; font-size: 12px; }
  .nav-toggle { padding: 8px 10px; }
  .nav-toggle-label { display: none; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-brand-name { font-size: 22px; }
  .copy-btn { width: 100%; justify-content: space-between; }
  .to-top { width: 44px; height: 44px; }
  .ledger { min-width: 460px; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-arm { opacity: 1; transform: none; }
  .status-dot { animation: none; }
  .scroll-progress { transition: none; }
}
