/* ================================================================
   安博电竞中文站 · 共享样式 /assets/site.css
   设计基调：深空蓝数据终端 · 奶油纸内容区 · 荧光绿实时数据
   ================================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  --bg-deep: #0a0e27;
  --bg-mist: #1f274a;
  --bg-mist-2: #141938;
  --bg-cream: #f2ede4;
  --bg-cloud: #e7e2d8;

  --neon: #39ff14;
  --neon-soft: rgba(57, 255, 20, 0.12);
  --neon-line: rgba(57, 255, 20, 0.35);
  --violet: #7b2f9e;
  --violet-deep: #5a1e78;
  --violet-soft: #b085d2;
  --violet-tint: rgba(123, 47, 158, 0.14);
  --orange: #ff4d00;
  --gold: #c9a227;
  --green-soft: #63c94f;

  --text-cream: #f2ede4;
  --text-ink: #0a0e27;
  --line-dark: rgba(242, 237, 228, 0.14);
  --line-light: rgba(10, 14, 39, 0.14);

  --font-display: "Russo One", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-body: "JetBrains Mono", "SFMono-Regular", "Menlo", "Consolas", "Noto Sans SC", "Microsoft YaHei", monospace;

  --container-wide: 1360px;
  --container-main: 1200px;
  --container-narrow: 840px;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.5rem;
  --text-xl: 2rem;
  --text-2xl: 2.625rem;
  --text-3xl: 3.25rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;

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

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-cream);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

button {
  cursor: pointer;
}

a {
  color: var(--neon);
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

strong,
b {
  font-weight: 700;
}

em {
  font-style: normal;
  color: var(--neon);
}

code {
  font-family: var(--font-body);
  font-size: 0.9em;
  color: var(--neon);
  background: var(--neon-soft);
  border: 1px solid var(--neon-line);
  padding: 1px 6px;
}

::selection {
  background: var(--violet);
  color: var(--text-cream);
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

/* ---------- 3. Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

h1 {
  font-size: var(--text-3xl);
  letter-spacing: 0.01em;
}

h2 {
  font-size: var(--text-2xl);
  letter-spacing: 0.015em;
}

h3 {
  font-size: var(--text-xl);
  letter-spacing: 0.02em;
}

p {
  margin-bottom: var(--space-3);
}

small {
  font-size: var(--text-sm);
}

/* ---------- 4. Layout primitives ---------- */
.container {
  max-width: var(--container-main);
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-7) 0;
}

.section--dark {
  background: var(--bg-deep);
  color: var(--text-cream);
}

.section--cream {
  background: var(--bg-cream);
  color: var(--text-ink);
}

.section--cream a {
  color: var(--violet-deep);
}

.section--cream a:hover {
  color: var(--violet);
}

.section--mist {
  background: var(--bg-mist);
  color: var(--text-cream);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.section-index {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: var(--space-2);
}

.section--cream .section-index {
  color: var(--violet);
}

/* 斜切分隔条 */
.divider-skew {
  height: 36px;
  background: var(--violet);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 100%);
}

.divider-skew--flip {
  height: 36px;
  background: var(--violet);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 45%);
}

/* ---------- 5. Header ---------- */
.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 3000;
  background: var(--neon);
  color: var(--bg-deep);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 14, 39, 0.92);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  backdrop-filter: blur(10px) saturate(1.15);
  border-bottom: 1px solid var(--line-dark);
}

/* 阅读进度条 */
.progress-track {
  height: 3px;
  background: rgba(242, 237, 228, 0.08);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon) 0%, var(--violet) 55%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* 命令栏 */
.commandbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 10px var(--space-5);
}

.commandbar::after {
  content: "";
  position: absolute;
  left: var(--space-5);
  right: var(--space-5);
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-line) 18%, var(--violet-tint) 82%, transparent);
  opacity: 0.5;
}

/* 品牌 */
.brandmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}

.brandmark-code {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--neon);
}

.brandmark-cn {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-cream);
}

.brandmark-en {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-soft);
}

/* 导航 */
.mainnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: auto;
}

.navlink {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  color: rgba(242, 237, 228, 0.78);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.navlink:hover {
  color: var(--text-cream);
  background: rgba(242, 237, 228, 0.06);
  border-bottom-color: rgba(242, 237, 228, 0.3);
}

.navlink[aria-current="page"] {
  color: var(--neon);
  border-bottom-color: var(--neon);
  background: var(--neon-soft);
}

/* 移动菜单按钮 */
.navtoggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--line-dark);
  background: transparent;
}

.navtoggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-cream);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.navtoggle-text {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(242, 237, 228, 0.6);
}

.navtoggle[aria-expanded="true"] .navtoggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.navtoggle[aria-expanded="true"] .navtoggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* 状态行 */
.statusline {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 4px var(--space-5) 8px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(242, 237, 228, 0.5);
  white-space: nowrap;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--neon);
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  animation: status-pulse 2s ease-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.55);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(57, 255, 20, 0);
  }
}

.status-divider {
  color: rgba(242, 237, 228, 0.24);
}

.status-text em {
  font-style: normal;
  font-weight: 700;
  color: var(--neon);
}

.status-email {
  margin-left: auto;
  color: rgba(242, 237, 228, 0.45);
  border-bottom: 1px dashed rgba(242, 237, 228, 0.3);
  cursor: copy;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.status-email:hover,
.status-email:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

/* ---------- 6. Footer ---------- */
.site-footer {
  background: var(--bg-cream);
  color: var(--text-ink);
  position: relative;
}

.footer-topline {
  height: 5px;
  background: linear-gradient(90deg, var(--neon) 0%, var(--violet) 45%, var(--orange) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr 2fr 3fr;
  gap: 40px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 56px var(--space-5) 44px;
}

.footer-brandblock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-ink);
  line-height: 1.2;
  margin-bottom: 0;
}

.footer-brand-en {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
}

.footer-trust {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--violet);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(10, 14, 39, 0.68);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-col-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-light);
  width: 100%;
  line-height: 1.4;
}

.footer-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(10, 14, 39, 0.72);
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.footer-link:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(10, 14, 39, 0.74);
  font-style: normal;
}

.footer-contact-item[data-copy] {
  cursor: copy;
  border-bottom: 1px dashed rgba(10, 14, 39, 0.3);
}

.footer-contact-item[data-copy].is-copied {
  color: var(--green-soft);
  border-bottom-color: var(--green-soft);
}

.footer-service {
  font-size: 12px;
  color: rgba(10, 14, 39, 0.55);
  margin-top: 6px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 16px var(--space-5) 22px;
  border-top: 1px solid var(--line-light);
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(10, 14, 39, 0.55);
}

.footer-dot {
  color: var(--violet);
  opacity: 0.6;
}

.footer-terminal {
  margin-left: auto;
  color: var(--violet-deep);
  letter-spacing: 0.04em;
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.btn--primary {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--bg-deep);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--violet);
}

.btn--ghost {
  border-color: var(--neon-line);
  color: var(--neon);
  background: transparent;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--neon);
  background: var(--neon-soft);
}

.btn--light {
  background: var(--bg-cream);
  border-color: var(--bg-cream);
  color: var(--text-ink);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: var(--bg-cloud);
  border-color: var(--violet);
}

.btn--small {
  padding: 6px 14px;
  font-size: 12px;
}

/* ---------- 8. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  line-height: 1.4;
}

.tag--live {
  background: var(--neon-soft);
  color: var(--neon);
  border: 1px solid var(--neon-line);
}

.tag--version {
  background: var(--violet-tint);
  color: var(--violet-soft);
  border: 1px solid rgba(123, 47, 158, 0.4);
}

.tag--warn {
  background: rgba(255, 77, 0, 0.12);
  color: var(--orange);
  border: 1px solid rgba(255, 77, 0, 0.4);
}

.tag--success {
  background: rgba(99, 201, 79, 0.12);
  color: var(--green-soft);
  border: 1px solid rgba(99, 201, 79, 0.35);
}

/* ---------- 9. Breadcrumb & Pagehead ---------- */
.breadcrumb {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(242, 237, 228, 0.5);
  margin-bottom: var(--space-4);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--violet);
}

.breadcrumb a {
  color: var(--neon);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.pagehead {
  padding: var(--space-6) 0 var(--space-5);
}

.pagehead-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.pagehead-desc {
  max-width: 46em;
  margin-top: 14px;
  font-size: var(--text-base);
  line-height: 1.7;
  color: rgba(242, 237, 228, 0.7);
}

.section--cream .pagehead-desc {
  color: rgba(10, 14, 39, 0.65);
}

.pagehead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- 10. Indexrail & Scroll Spy ---------- */
.indexrail {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 4px 0 4px 16px;
  border-left: 1px solid var(--line-dark);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.indexrail-title {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.4);
  margin-bottom: 8px;
}

.indexrail a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -17px;
  border-left: 2px solid transparent;
  color: rgba(242, 237, 228, 0.58);
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.indexrail a:hover {
  color: var(--text-cream);
}

.indexrail a.is-active {
  color: var(--neon);
  border-left-color: var(--neon);
}

.indexrail--light {
  border-left-color: rgba(10, 14, 39, 0.18);
}

.indexrail--light .indexrail-title {
  color: rgba(10, 14, 39, 0.5);
}

.indexrail--light a {
  color: rgba(10, 14, 39, 0.65);
}

.indexrail--light a:hover {
  color: var(--violet-deep);
}

.indexrail--light a.is-active {
  color: var(--violet-deep);
  border-left-color: var(--violet);
}

/* ---------- 11. Grid ---------- */
.grid {
  display: grid;
  gap: var(--space-5);
}

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

.grid--sidebar {
  grid-template-columns: minmax(0, 1fr) 240px;
}

.grid--asym {
  grid-template-columns: 7fr 5fr;
}

/* ---------- 12. Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  min-height: 74vh;
  background: var(--bg-deep);
  color: var(--text-cream);
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-7) var(--space-6);
  gap: var(--space-4);
}

.hero-aside {
  background: var(--bg-cream);
  color: var(--text-ink);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}

/* ---------- 13. Data Table ---------- */
.datatable {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-cream);
}

.datatable th {
  background: var(--bg-mist);
  color: var(--text-cream);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

.datatable th[data-sort] {
  position: relative;
  padding-right: 26px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.datatable th[data-sort]::after {
  content: "⇅";
  position: absolute;
  right: 9px;
  font-size: 11px;
  opacity: 0.45;
  color: currentColor;
}

.datatable th[data-sort]:hover {
  color: var(--neon);
}

.datatable th[data-sort-dir="asc"]::after {
  content: "↑";
  opacity: 1;
  color: var(--neon);
}

.datatable th[data-sort-dir="desc"]::after {
  content: "↓";
  opacity: 1;
  color: var(--neon);
}

.datatable td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-dark);
}

.datatable tbody tr {
  transition: background-color var(--dur) var(--ease);
}

.datatable tbody tr:hover {
  background: rgba(123, 47, 158, 0.09);
}

/* 奶油纸上的表格 */
.section--cream .datatable {
  color: var(--text-ink);
}

.section--cream .datatable th {
  background: var(--bg-mist);
  color: var(--text-cream);
}

.section--cream .datatable td {
  border-bottom: 1px solid var(--line-light);
}

.section--cream .datatable tbody tr:hover {
  background: rgba(123, 47, 158, 0.08);
}

/* ---------- 14. Collapse ---------- */
.collapse {
  background: var(--bg-cloud);
  border: 1px solid var(--line-light);
  overflow: hidden;
}

.collapse + .collapse {
  margin-top: 12px;
}

.collapse summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-ink);
  line-height: 1.5;
}

.collapse summary::-webkit-details-marker {
  display: none;
}

.collapse summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1;
  color: var(--violet);
  transition: transform var(--dur) var(--ease);
}

.collapse[open] summary::after {
  transform: rotate(45deg);
}

.collapse-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease);
}

.collapse[open] .collapse-wrap {
  grid-template-rows: 1fr;
}

.collapse-wrap > * {
  min-height: 0;
  overflow: hidden;
}

.collapse-body {
  padding: 0 16px 16px;
  font-size: var(--text-sm);
  line-height: 1.75;
  color: rgba(10, 14, 39, 0.72);
}

/* ---------- 15. Image Frames ---------- */
.imgframe {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-mist);
  aspect-ratio: 16 / 9;
}

.imgframe--hero {
  aspect-ratio: 21 / 9;
}

.imgframe--wide {
  aspect-ratio: 16 / 8;
}

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

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

.imgframe img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@supports not (aspect-ratio: 16 / 9) {
  .imgframe::before {
    content: "";
    display: block;
    padding-top: 56.25%;
  }
  .imgframe--hero::before {
    padding-top: 42.85%;
  }
  .imgframe--wide::before {
    padding-top: 50%;
  }
  .imgframe--tall::before {
    padding-top: 133.33%;
  }
  .imgframe--square::before {
    padding-top: 100%;
  }
}

/* ---------- 16. Stats ---------- */
.stat {
  padding: 20px 24px;
  border-left: 3px solid var(--neon);
  background: var(--neon-soft);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--neon);
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: rgba(242, 237, 228, 0.6);
}

.stat--light {
  background: var(--bg-cloud);
  border-left-color: var(--violet);
}

.stat--light .stat-value {
  color: var(--text-ink);
}

.stat--light .stat-label {
  color: rgba(10, 14, 39, 0.6);
}

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

.mono {
  font-family: var(--font-body);
}

.text-neon {
  color: var(--neon);
}

.text-orange {
  color: var(--orange);
}

.text-violet {
  color: var(--violet-soft);
}

.text-muted {
  opacity: 0.65;
}

.gradient-text {
  background: linear-gradient(100deg, var(--text-cream) 25%, var(--neon) 75%, var(--violet-soft) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 渐变文本的奶油底色适配 */
.section--cream .gradient-text {
  background: linear-gradient(100deg, var(--text-ink) 20%, var(--violet-deep) 60%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 18. Reveal ---------- */
.kit-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

.kit-js [data-reveal].is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 19. Copy feedback ---------- */
[data-copy] {
  cursor: copy;
}

[data-copy].is-copied {
  color: var(--green-soft) !important;
  border-color: var(--green-soft) !important;
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .footer-brandblock {
    grid-column: span 6;
  }

  .footer-col {
    grid-column: span 2;
  }

  .footer-contact {
    grid-column: span 6;
  }

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

  .grid--sidebar {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .commandbar {
    padding: 10px var(--space-4);
  }

  .statusline {
    padding: 4px var(--space-4) 8px;
  }

  .footer-topline {
    height: 4px;
  }

  .footer-grid {
    padding: 44px var(--space-4) 36px;
    gap: 28px;
  }

  .footer-bottom {
    padding: 14px var(--space-4) 20px;
  }

  .navtoggle {
    display: none;
  }

  .kit-js .navtoggle {
    display: inline-flex;
  }

  .kit-js .mainnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 8px var(--space-4) 18px;
    background: rgba(10, 14, 39, 0.97);
    border-bottom: 1px solid var(--neon-line);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
  }

  .kit-js .mainnav[data-open] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .kit-js .navlink {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line-dark);
    border-left: 2px solid transparent;
  }

  .kit-js .navlink[aria-current="page"] {
    border-left-color: var(--neon);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-main,
  .hero-aside {
    padding: var(--space-6) var(--space-4);
  }

  .grid--sidebar {
    grid-template-columns: 1fr;
  }

  .indexrail {
    position: static;
    top: auto;
    border-left: none;
    border-top: 1px solid var(--line-dark);
    padding: 16px 0 4px;
    margin-top: var(--space-4);
  }

  .indexrail a {
    display: inline-block;
    margin-left: 0;
    padding: 6px 12px;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .indexrail a.is-active {
    border-bottom-color: var(--neon);
  }

  .indexrail--light a.is-active {
    border-bottom-color: var(--violet);
  }

  .footer-terminal {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  body {
    font-size: var(--text-sm);
  }

  .section {
    padding: var(--space-6) 0;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .status-divider,
  .status-text {
    display: none;
  }

  .statusline {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .status-email {
    display: none;
  }

  .status-live {
    flex-shrink: 0;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .grid--asym {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brandblock,
  .footer-col,
  .footer-contact {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .brandmark-en {
    display: none;
  }

  .brandmark-cn {
    font-size: 17px;
  }

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

  .hero-main {
    padding: var(--space-5) 18px;
  }

  .btn {
    width: 100%;
  }

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

/* ---------- 21. Reduced Motion ---------- */
@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;
  }

  .kit-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .status-pulse {
    animation: none;
  }

  .progress-fill {
    transition: none;
  }
}
