/* ============================================================
   /assets/site.css — 亚投代理中心 共享样式
   ============================================================ */

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

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

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:root {
  --navy: #0B1B2B;
  --navy-deep: #060F1A;
  --panel: #16324A;
  --gold: #D8A64B;
  --gold-soft: #F0D9A3;
  --vermillion: #C8443A;
  --turquoise: #2E9C8E;
  --glacier: #7FC8D8;
  --white-ink: #F5F3EE;
  --cloud: #9FB0BE;
  --paper: #EFEAE0;

  --rail-w: 220px;
  --cmd-h: 60px;
  --wrap: 1320px;

  --r-card: 24px;
  --r-panel: 20px;
  --r-chip: 999px;

  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --line-gold: rgba(216, 166, 75, 0.22);
  --line-cool: rgba(127, 200, 216, 0.16);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 基础排版 ---------- */

body {
  min-height: 100%;
  padding-top: var(--cmd-h);
  background-color: var(--navy);
  background-image:
    radial-gradient(1100px 620px at 82% -12%, rgba(127, 200, 216, 0.13), transparent 62%),
    radial-gradient(880px 520px at 4% 6%, rgba(216, 166, 75, 0.11), transparent 64%),
    radial-gradient(720px 500px at 60% 92%, rgba(46, 156, 142, 0.08), transparent 66%);
  background-repeat: no-repeat;
  color: var(--white-ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  overflow-x: hidden;
  word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: var(--white-ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.1vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 2.2rem); }
h4 { font-size: clamp(1.12rem, 1.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { text-wrap: pretty; }

::selection { background: rgba(216, 166, 75, 0.35); color: #fff; }

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

/* ---------- 工具类 ---------- */

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  border-radius: var(--r-chip);
  transition: top 0.2s var(--ease-soft);
}
.skip-link:focus { top: 12px; }

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

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cloud);
  vertical-align: middle;
}
.dot--gold {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 166, 75, 0.14);
  animation: dot-breathe 2.8s ease-in-out infinite;
}
@keyframes dot-breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(216, 166, 75, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(216, 166, 75, 0.04); }
}

/* ---------- 头部：命令栏 ---------- */

.site-header { position: relative; z-index: 90; }

.cmdbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(6, 15, 26, 0.97), rgba(11, 27, 43, 0.93));
  border-bottom: 1px solid var(--line-gold);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cmdbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--cmd-h);
  transition: min-height 0.24s var(--ease-soft);
}

.cmdbar__progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--glacier) 70%, var(--turquoise));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}

.site-header[data-condensed] .cmdbar__inner { min-height: 48px; }
.site-header[data-condensed] .cmdbar__notice,
.site-header[data-condensed] .cmdbar__version,
.site-header[data-condensed] .brandmark__tag { display: none; }

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

.brandmark__glyph {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-gold);
  background: linear-gradient(150deg, rgba(216, 166, 75, 0.22), rgba(22, 50, 74, 0.6));
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1;
}

.brandmark__text { display: flex; flex-direction: column; line-height: 1.25; }
.brandmark__name {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white-ink);
}
.brandmark__tag {
  font-size: 0.75rem;
  color: var(--cloud);
  letter-spacing: 0.12em;
}

/* 检索 */

.quicklook {
  position: relative;
  flex: 1 1 200px;
  min-width: 0;
  max-width: 380px;
}

.quicklook__input {
  width: 100%;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-chip);
  border: 1px solid var(--line-cool);
  background: rgba(22, 50, 74, 0.62);
  color: var(--white-ink);
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}
.quicklook__input::placeholder { color: rgba(159, 176, 190, 0.72); }
.quicklook__input:hover { border-color: var(--line-gold); }
.quicklook__input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(22, 50, 74, 0.9);
}

.quicklook__results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 62vh;
  overflow-y: auto;
  padding: 8px;
  border-radius: var(--r-panel);
  border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, #0f2740, #081726);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  z-index: 95;
}

.quicklook__item + .quicklook__item { border-top: 1px solid rgba(127, 200, 216, 0.1); }

.quicklook__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background 0.18s var(--ease-soft);
}
.quicklook__link:hover { background: rgba(216, 166, 75, 0.12); }
.quicklook__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-soft);
}
.quicklook__key {
  font-size: 0.8rem;
  color: var(--cloud);
  letter-spacing: 0.04em;
}
.quicklook__hint {
  padding: 12px;
  font-size: 0.85rem;
  color: var(--cloud);
}

.cmdbar__notice {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 0.82rem;
  color: var(--cloud);
  white-space: nowrap;
}

.cmdbar__version { flex: 0 0 auto; }
.cmdbar__cta { flex: 0 0 auto; }

/* 移动导航按钮 */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-chip);
  border: 1px solid var(--line-gold);
  color: var(--gold-soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gold);
  transition: transform 0.24s var(--ease-soft), opacity 0.24s var(--ease-soft);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* 时间轴导航 */

.rail {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 88;
  max-height: 78vh;
  overflow-y: auto;
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #102640, var(--navy-deep));
  border-top: 1px solid var(--line-gold);
  border-radius: 26px 26px 0 0;
  transform: translateY(102%);
  visibility: hidden;
  transition: transform 0.34s var(--ease-soft), visibility 0s linear 0.34s;
}
.rail[data-open] {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.34s var(--ease-soft), visibility 0s linear 0s;
}

.rail__inner { position: relative; padding-right: 18px; }

.rail__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.rail__list { display: grid; gap: 4px; }

.rail__link {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: 12px;
  color: var(--cloud);
  transition: color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}
.rail__link:hover {
  color: var(--gold-soft);
  background: rgba(216, 166, 75, 0.08);
}
.rail__index { font-size: 0.74rem; color: rgba(159, 176, 190, 0.7); }
.rail__label {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
}

.rail__link[aria-current="page"] {
  color: var(--gold-soft);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(216, 166, 75, 0.16), transparent 78%);
}
.rail__link[aria-current="page"] .rail__index { color: var(--gold); }
.rail__link[aria-current="page"] .rail__label::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
  animation: dot-breathe 2.6s ease-in-out infinite;
}

.rail__meter {
  position: absolute;
  right: 4px; top: 6px; bottom: 6px;
  width: 2px;
  border-radius: var(--r-chip);
  background: rgba(159, 176, 190, 0.18);
  overflow: hidden;
}
.rail__meter-fill {
  display: block;
  width: 100%; height: 100%;
  transform: scaleY(0);
  transform-origin: 50% 0;
  background: linear-gradient(180deg, var(--gold), var(--glacier));
}

.rail__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-cool);
  font-size: 0.78rem;
  color: var(--cloud);
  letter-spacing: 0.06em;
}

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  padding-top: clamp(48px, 6vw, 78px);
  background: linear-gradient(180deg, rgba(6, 15, 26, 0.35), var(--navy-deep) 46%);
  border-top: 1px solid var(--line-gold);
  overflow: hidden;
}

.footer__glow {
  position: absolute;
  right: -8%; bottom: -30%;
  width: 62%; height: 340px;
  background: radial-gradient(closest-side, rgba(127, 200, 216, 0.16), transparent 72%);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 64px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.footer__kicker {
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer__title {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  max-width: 18em;
  margin-bottom: 14px;
}

.footer__note {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--cloud);
  max-width: 34em;
}
.footer__note + .footer__note { margin-top: 8px; }

.footer__contact { margin: 18px 0 22px; display: grid; gap: 8px; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer__col-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer__list { display: grid; gap: 9px; }

.footer__link {
  font-size: 0.9rem;
  color: var(--cloud);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft);
}
.footer__link:hover {
  color: var(--glacier);
  border-bottom-color: rgba(127, 200, 216, 0.5);
}

.footer__cta { margin-top: 6px; }

.footer__base {
  position: relative;
  margin-top: clamp(36px, 5vw, 60px);
  border-top: 1px solid var(--line-cool);
  background: rgba(6, 15, 26, 0.6);
}

.footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
}

.footer__legal {
  font-size: 0.8rem;
  color: var(--cloud);
}

.footer__legallinks {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

/* ---------- 通用按钮与胶囊 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 22px;
  border-radius: var(--r-chip);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease-soft), color 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}
.btn:hover { transform: translateY(-1px); }

.btn--gold {
  background: linear-gradient(120deg, var(--gold), #c08f38);
  color: #14202c;
  font-weight: 600;
}
.btn--gold:hover { background: linear-gradient(120deg, var(--gold-soft), var(--gold)); }

.btn--ghost {
  border-color: var(--line-gold);
  color: var(--gold-soft);
  background: rgba(22, 50, 74, 0.4);
}
.btn--ghost:hover { background: rgba(216, 166, 75, 0.14); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--r-chip);
  border: 1px solid transparent;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.chip--ghost {
  border-color: var(--line-gold);
  color: var(--gold-soft);
  background: rgba(22, 50, 74, 0.45);
  transition: background 0.2s var(--ease-soft);
}
.chip--ghost:hover { background: rgba(216, 166, 75, 0.16); }

.chip--gold {
  background: var(--gold);
  color: #14202c;
  font-weight: 600;
}
.chip--gold:hover { background: var(--gold-soft); }

.chip--jade {
  border-color: rgba(46, 156, 142, 0.5);
  color: #8fd8cd;
  background: rgba(46, 156, 142, 0.14);
}

.chip--red {
  border-color: rgba(200, 68, 58, 0.5);
  color: #e79a93;
  background: rgba(200, 68, 58, 0.14);
}

/* ---------- 布局骨架 ---------- */

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section { padding-block: clamp(44px, 6.5vw, 96px); }

.section__head { margin-bottom: clamp(20px, 3vw, 36px); }

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section__title { max-width: 22em; }

.lede {
  max-width: 34em;
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-size: 1.06rem;
  line-height: 1.85;
  color: #d9e2e9;
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(216, 166, 75, 0.55), rgba(216, 166, 75, 0));
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #d8e1e8;
}
.prose p { max-width: 40em; }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { display: grid; gap: 0.45em; margin: 0.9em 0; }
.prose li {
  position: relative;
  padding-left: 1.15em;
  max-width: 40em;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.82em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.prose a {
  color: var(--glacier);
  border-bottom: 1px solid rgba(127, 200, 216, 0.42);
}
.prose a:hover { color: var(--gold-soft); border-bottom-color: var(--gold); }
.prose strong { color: var(--gold-soft); font-weight: 600; }
.prose h3, .prose h4 { margin-top: 1.4em; margin-bottom: 0.5em; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-card);
  border: 1px solid var(--line-cool);
  background: linear-gradient(160deg, rgba(22, 50, 74, 0.86), rgba(11, 27, 43, 0.88));
  transition: border-color 0.24s var(--ease-soft), transform 0.24s var(--ease-soft);
}
.card:hover {
  border-color: var(--line-gold);
  transform: translateY(-2px);
}

.card__title {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 10px;
}

.card__body {
  font-size: 0.94rem;
  line-height: 1.8;
  color: #cbd6de;
}

/* 面包屑 */

.breadcrumb { padding-top: 28px; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--cloud);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(159, 176, 190, 0.5);
}
.breadcrumb__link {
  color: var(--cloud);
  border-bottom: 1px solid transparent;
}
.breadcrumb__link:hover { color: var(--glacier); border-bottom-color: rgba(127, 200, 216, 0.5); }

/* ---------- 折叠面板 ---------- */

.disclosure {
  border-radius: var(--r-panel);
  border: 1px solid var(--line-cool);
  background: linear-gradient(160deg, rgba(22, 50, 74, 0.7), rgba(11, 27, 43, 0.7));
  overflow: hidden;
}
.disclosure + .disclosure { margin-top: 12px; }

.disclosure__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  color: var(--white-ink);
  transition: color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}
.disclosure__trigger:hover { color: var(--gold-soft); background: rgba(216, 166, 75, 0.07); }

.disclosure__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
}
.disclosure__icon::before,
.disclosure__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 1.5px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.24s var(--ease-soft), opacity 0.24s var(--ease-soft);
}
.disclosure__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.disclosure__trigger[aria-expanded="true"] .disclosure__icon::after { opacity: 0; }
.disclosure__trigger[aria-expanded="true"] { color: var(--gold-soft); }

.disclosure__panel {
  padding: 0 20px 20px;
  border-top: 1px solid rgba(127, 200, 216, 0.12);
}

.disclosure__body {
  padding-top: 16px;
  font-size: 0.95rem;
  line-height: 1.82;
  color: #cbd6de;
  max-width: 46em;
}

/* ---------- 图片容器 ---------- */

.media-frame {
  position: relative;
  border-radius: var(--r-card);
  border: 1px solid var(--line-cool);
  background: linear-gradient(150deg, #16324A, #0d2338 55%, #0B1B2B);
  overflow: hidden;
}

.media-frame__inner {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background-image:
    repeating-linear-gradient(115deg, rgba(127, 200, 216, 0.07) 0 1px, transparent 1px 46px),
    radial-gradient(120% 90% at 22% 8%, rgba(216, 166, 75, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(22, 50, 74, 0.9), rgba(6, 15, 26, 0.95));
}
.media-frame__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  padding: 10px 16px;
  border-top: 1px solid rgba(216, 166, 75, 0.16);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--cloud);
}

.media-frame--wide .media-frame__inner { aspect-ratio: 21 / 9; }
.media-frame--tall .media-frame__inner { aspect-ratio: 4 / 5; }

/* ---------- 复制行 ---------- */

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

.copyline__value {
  font-size: 0.86rem;
  color: #cdd8e0;
}

.copyline__btn {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--r-chip);
  border: 1px solid var(--line-cool);
  color: var(--cloud);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  transition: color 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}
.copyline__btn:hover {
  color: var(--glacier);
  border-color: rgba(127, 200, 216, 0.5);
}
.copyline__btn.is-copied {
  color: #8fd8cd;
  border-color: rgba(46, 156, 142, 0.6);
  background: rgba(46, 156, 142, 0.14);
}

/* ---------- 滚动显现 ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.44s var(--ease-soft), transform 0.44s var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .cmdbar__notice { display: none; }
}

@media (max-width: 900px) {
  .cmdbar__cta { display: none; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .grid, .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  :root { --cmd-h: 54px; }
  .brandmark__tag { display: none; }
  .nav-toggle__text { display: none; }
  .quicklook { max-width: none; }
  .grid, .grid--2, .grid--3, .grid--cards { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__legallinks { margin-left: 0; }
}

@media (min-width: 1080px) {
  body { padding-left: var(--rail-w); }

  .cmdbar__inner { padding-left: calc(var(--rail-w) + 24px); }

  .nav-toggle { display: none; }

  .rail {
    position: fixed;
    top: var(--cmd-h);
    left: 0; right: auto; bottom: 0;
    width: var(--rail-w);
    max-height: none;
    padding: 30px 18px 26px 22px;
    border-top: 0;
    border-right: 1px solid var(--line-gold);
    border-radius: 0;
    transform: none;
    visibility: visible;
    transition: none;
    background: linear-gradient(180deg, rgba(6, 15, 26, 0.98), rgba(11, 27, 43, 0.94));
  }

  .container, .footer__inner, .footer__base-inner { padding-inline: 40px; }
}

/* ---------- 可访问性与动效降级 ---------- */

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .cmdbar__progress, .rail__meter-fill { transition: none; }
}
