/* =========================================================
   华体汇CN主场 · 共享站点样式 /assets/site.css
   结构：reset › 变量 › 中文排版 › 无障碍 › 布局 › 按钮
         › 页头 › 索引抽屉 › 页脚 › 通用组件 › 响应式
   ========================================================= */

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

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

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- 2. CSS 变量 ---------- */
:root {
  --blue-900: #07152E;
  --blue-800: #0A1F44;
  --blue-700: #12305F;
  --slate-500: #4A6285;
  --mist-100: #EAF0F7;
  --paper-050: #F8FAFC;
  --orange-500: #FF6B35;
  --orange-200: #FFB38A;
  --orange-ink: #8A2E06;
  --cyan-500: #00C2CB;
  --cyan-200: #8DE8EC;
  --cyan-ink: #045A60;
  --green-500: #2BB673;
  --ink: #0B1220;
  --ink-soft: #22334D;

  --line: rgba(74, 98, 133, .18);
  --line-strong: rgba(74, 98, 133, .32);
  --line-invert: rgba(141, 232, 236, .18);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 106px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-soft: 0 1px 2px rgba(7, 21, 46, .05);
  --shadow-card: 0 14px 32px rgba(7, 21, 46, .10);

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "DIN Alternate", "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
}

/* ---------- 3. 中文排版与基础 ---------- */
body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .005em;
  color: var(--ink);
  background: var(--paper-050);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--blue-900);
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.05rem; }
strong { font-weight: 700; }
small { font-size: .8125rem; }
::selection { background: rgba(255, 107, 53, .26); color: var(--blue-900); }

#main-content { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 4. 无障碍与焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan-500);
  outline-offset: 3px;
  border-radius: 3px;
}

.site-footer :focus-visible { outline-color: var(--cyan-200); }

.skip-link {
  position: absolute;
  left: 16px;
  top: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--orange-500);
  color: var(--blue-900);
  font-size: .875rem;
  font-weight: 800;
  transform: translateY(-220%);
  transition: transform .24s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 5. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.section { padding: clamp(44px, 6vw, 88px) 0; }
.section--mist { background: var(--mist-100); }
.section--deep {
  background: linear-gradient(160deg, var(--blue-800), var(--blue-900));
  color: rgba(233, 240, 247, .82);
}
.section--deep :where(h2, h3, h4) { color: #fff; }
.section--deep :where(p) { color: rgba(233, 240, 247, .74); }

.section-head {
  display: grid;
  gap: 10px;
  max-width: 64ch;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-head p { color: var(--slate-500); }
.section--deep .section-head p { color: rgba(233, 240, 247, .72); }

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}
.layout-aside {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.stack { display: grid; gap: clamp(14px, 2vw, 20px); }

/* ---------- 6. 按钮与链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background .24s var(--ease), color .24s var(--ease),
    border-color .24s var(--ease), transform .24s var(--ease), box-shadow .24s var(--ease);
}
.btn-primary {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: var(--blue-900);
  box-shadow: 0 6px 18px rgba(255, 107, 53, .24);
}
.btn-primary:hover {
  background: #FF8155;
  border-color: #FF8155;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 107, 53, .3);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(141, 232, 236, .34);
  color: rgba(233, 240, 247, .88);
}
.btn-ghost:hover {
  border-color: var(--cyan-500);
  background: rgba(0, 194, 203, .14);
  color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--blue-700);
  transition: gap .24s var(--ease), color .24s var(--ease);
}
.link-arrow::after { content: "→"; color: var(--orange-500); }
.link-arrow:hover { gap: 11px; color: var(--blue-900); }

/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--blue-800);
  color: #fff;
  border-bottom: 1px solid rgba(141, 232, 236, .16);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header[data-scrolled="true"] {
  background: rgba(7, 21, 46, .97);
  box-shadow: 0 12px 30px rgba(7, 21, 46, .3);
}

.header-rail {
  border-bottom: 1px solid rgba(141, 232, 236, .14);
  background: linear-gradient(90deg, rgba(0, 194, 203, .12), rgba(7, 21, 46, 0) 58%);
}
.rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}
.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: rgba(233, 240, 247, .7);
}
.rail-note {
  font-family: var(--font-num);
  font-size: .6875rem;
  letter-spacing: .18em;
  color: rgba(141, 232, 236, .78);
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(43, 182, 115, .16);
  animation: dot-pulse 2.8s var(--ease) infinite;
}
.status-dot--cyan { background: var(--cyan-500); box-shadow: 0 0 0 3px rgba(0, 194, 203, .18); }
.status-dot--orange { background: var(--orange-500); box-shadow: 0 0 0 3px rgba(255, 107, 53, .18); }

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.82); }
}

.header-main {
  position: relative;
  background: var(--blue-800);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 32px);
  min-height: 72px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 品牌锁定 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 5px;
  background: linear-gradient(150deg, var(--blue-700), var(--blue-900) 72%);
  border: 1px solid rgba(0, 194, 203, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.brand-mark-line {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--orange-500);
  box-shadow: 0 -5px 0 0 var(--cyan-200), 0 5px 0 0 rgba(255, 255, 255, .5);
}
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #fff;
  white-space: nowrap;
}
.brand-tag {
  font-size: .6875rem;
  line-height: 1.2;
  letter-spacing: .14em;
  color: rgba(141, 232, 236, .72);
  white-space: nowrap;
}

/* 主导航 */
.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { display: flex; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .90625rem;
  font-weight: 500;
  color: rgba(233, 240, 247, .78);
  transition: color .24s var(--ease), background .24s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-item-cta { display: none; }

/* 索引按钮 */
.index-toggle { padding: 9px 14px; font-size: .8125rem; }
.index-toggle-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 2px;
  background: currentColor;
}
.index-toggle-icon::before,
.index-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 14px;
  height: 2px;
  background: currentColor;
}
.index-toggle-icon::before { top: -5px; }
.index-toggle-icon::after { top: 5px; }
.index-toggle-label { letter-spacing: .06em; }
.header-cta { white-space: nowrap; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(141, 232, 236, .34);
  border-radius: var(--radius-sm);
  background: rgba(7, 21, 46, .3);
  transition: border-color .24s var(--ease), background .24s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan-500); background: rgba(0, 194, 203, .14); }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: background .2s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform .28s var(--ease), top .28s var(--ease);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  overflow: hidden;
}
.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-500), var(--orange-500));
  transition: width .12s linear;
}

/* ---------- 8. 站内索引抽屉 ---------- */
.index-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  visibility: hidden;
  pointer-events: none;
}
.index-panel[data-open="true"] { visibility: visible; pointer-events: auto; }

.index-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 26, .62);
  opacity: 0;
  transition: opacity .32s var(--ease);
}
.index-panel[data-open="true"] .index-scrim { opacity: 1; }

.index-sheet {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(560px, 100%);
  height: 100%;
  padding: clamp(20px, 3vw, 34px);
  background: var(--blue-900);
  border-left: 1px solid rgba(0, 194, 203, .32);
  overflow-y: auto;
  transform: translateX(28px);
  opacity: 0;
  transition: transform .34s var(--ease), opacity .34s var(--ease);
}
.index-panel[data-open="true"] .index-sheet { transform: none; opacity: 1; }

.index-head {
  position: relative;
  padding: 0 52px 16px 0;
  border-bottom: 1px solid var(--line-invert);
}
.index-kicker {
  font-family: var(--font-num);
  font-size: .6875rem;
  letter-spacing: .22em;
  color: var(--cyan-200);
}
.index-title { margin-top: 4px; font-size: 1.5rem; color: #fff; }
.index-close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(141, 232, 236, .35);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  transition: border-color .24s var(--ease), background .24s var(--ease);
}
.index-close:hover { border-color: var(--orange-500); background: rgba(255, 107, 53, .16); }

.index-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 18px;
  align-content: start;
}
.index-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(141, 232, 236, .14);
  color: rgba(233, 240, 247, .84);
  transition: background .24s var(--ease), color .24s var(--ease), padding .24s var(--ease);
}
.index-link:hover {
  background: rgba(0, 194, 203, .1);
  color: #fff;
  padding-left: 14px;
}
.index-num {
  font-family: var(--font-num);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--cyan-500);
}
.index-label { font-size: .9375rem; font-weight: 600; }
.index-path {
  font-family: var(--font-num);
  font-size: .6875rem;
  color: rgba(233, 240, 247, .38);
}
.index-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(141, 232, 236, .14);
  font-size: .8125rem;
  color: rgba(233, 240, 247, .5);
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  padding-top: clamp(40px, 6vw, 72px);
  background: var(--blue-900);
  color: rgba(233, 240, 247, .72);
  border-top: 1px solid rgba(0, 194, 203, .28);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr .9fr 1.3fr .9fr;
  gap: clamp(24px, 3.4vw, 44px);
  padding-bottom: clamp(32px, 5vw, 52px);
}
.footer-col { min-width: 0; }
.footer-col--brand { min-width: 0; }
.footer-col-title {
  margin-bottom: 16px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--cyan-200);
}
.footer-brand { margin-bottom: 14px; }
.footer-line {
  max-width: 34ch;
  font-size: .875rem;
  line-height: 1.8;
  color: rgba(233, 240, 247, .6);
}
.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 5px 12px;
  border: 1px solid rgba(43, 182, 115, .42);
  border-radius: 999px;
  background: rgba(43, 182, 115, .14);
  color: #A6EFC9;
  font-size: .75rem;
  font-weight: 600;
}
.footer-nav-list { display: grid; gap: 10px; }
.footer-link {
  font-size: .9375rem;
  color: rgba(233, 240, 247, .72);
  transition: color .2s var(--ease);
}
.footer-link:hover { color: var(--cyan-200); text-decoration: underline; text-underline-offset: 4px; }
.footer-contact-list { display: grid; gap: 12px; }
.footer-contact-list li { display: grid; gap: 2px; }
.contact-label {
  font-size: .6875rem;
  letter-spacing: .16em;
  color: rgba(141, 232, 236, .62);
  text-transform: uppercase;
}
.contact-value {
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(233, 240, 247, .86);
  word-break: break-word;
}
.contact-value--num {
  font-family: var(--font-num);
  font-size: .9375rem;
  letter-spacing: .06em;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(141, 232, 236, .16);
}
.footer-meta {
  font-size: .75rem;
  color: rgba(233, 240, 247, .5);
}
.footer-meta--icp {
  font-family: var(--font-num);
  letter-spacing: .04em;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--orange-500);
  color: var(--blue-900);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(7, 21, 46, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .28s var(--ease), transform .28s var(--ease),
    visibility .28s var(--ease), background .2s var(--ease);
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #FF8155; }

/* ---------- 10. 通用内容组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange-500);
}
.section--deep .eyebrow { color: var(--cyan-200); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.2vw, 26px);
  box-shadow: var(--shadow-soft);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-500);
  box-shadow: var(--shadow-card);
}
.card--deep {
  background: var(--blue-700);
  border-color: rgba(141, 232, 236, .2);
  color: rgba(233, 240, 247, .82);
}
.card--deep .card-title { color: #fff; }
.card--deep .card-text { color: rgba(233, 240, 247, .72); }
.card-title {
  margin-bottom: 8px;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--blue-900);
}
.card-text { font-size: .9375rem; line-height: 1.8; color: var(--slate-500); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(18, 48, 95, .16);
  border-radius: 999px;
  background: var(--mist-100);
  color: var(--blue-700);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.6;
}
.tag--orange { background: #FFE4D8; color: var(--orange-ink); border-color: rgba(255, 107, 53, .36); }
.tag--cyan { background: #DBF6F7; color: var(--cyan-ink); border-color: rgba(0, 194, 203, .36); }
.tag--green { background: #DDF3E8; color: #146B45; border-color: rgba(43, 182, 115, .36); }

.stat { display: grid; gap: 4px; }
.stat-num {
  font-family: var(--font-num);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--blue-900);
}
.stat-label { font-size: .8125rem; letter-spacing: .04em; color: var(--slate-500); }
.section--deep .stat-num { color: #fff; }
.section--deep .stat-label { color: rgba(233, 240, 247, .66); }

.breadcrumbs { padding-top: 16px; font-size: .8125rem; color: var(--slate-500); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(74, 98, 133, .5); }
.breadcrumbs a {
  color: var(--blue-700);
  text-decoration: underline;
  text-decoration-color: rgba(74, 98, 133, .4);
  text-underline-offset: 3px;
}
.breadcrumbs a:hover { text-decoration-color: var(--orange-500); }

.prose {
  max-width: 70ch;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--ink-soft);
}
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul,
.prose ol { display: grid; gap: .5em; padding-left: 1.25em; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--orange-ink); }

/* 图片容器基础规则：页面阶段放入 <img> 即可响应式裁切 */
.media-figure { margin: 0; }
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--blue-700), var(--blue-900));
  isolation: isolate;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.media-frame:hover img { transform: scale(1.03); }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 46, 0) 42%, rgba(7, 21, 46, .6));
  pointer-events: none;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--card { aspect-ratio: 3 / 2; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--plain::after { content: none; }
.media-caption {
  margin-top: 10px;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--slate-500);
}

/* ---------- 11. 滚动显现 ---------- */
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.js-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: block;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    padding: 8px var(--gutter) 36px;
    background: var(--blue-900);
    border-top: 1px solid var(--line-invert);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s var(--ease);
  }
  .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { display: block; }
  .nav-link {
    display: block;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(141, 232, 236, .14);
    border-radius: 0;
    font-size: 1.0625rem;
  }
  .nav-link::after { display: none; }
  .nav-link:hover { background: rgba(0, 194, 203, .1); }
  .nav-link[aria-current="page"] {
    color: #fff;
    box-shadow: inset 3px 0 0 var(--orange-500);
    background: rgba(0, 194, 203, .08);
  }
  .nav-item-cta { display: block; padding-top: 20px; }
  .nav-item-cta .btn { width: 100%; padding: 14px 18px; }

  .layout-split,
  .layout-aside { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .brand-tag { display: none; }
  .index-toggle { padding: 10px 12px; }
  .index-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .footer-line { max-width: none; }
}

@media (max-width: 640px) {
  .header-rail { display: none; }
  .header-inner { gap: 10px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1rem; }

  .index-sheet { width: 100%; border-left: 0; }
  .index-nav { grid-template-columns: 1fr; }
  .index-title { font-size: 1.3rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .to-top { width: 42px; height: 42px; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
  .btn { padding: 9px 14px; font-size: .8125rem; }
}

/* ---------- 13. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js-ready [data-reveal] { opacity: 1; transform: none; }
  .status-dot { animation: none; }
  .index-sheet,
  .index-scrim,
  .nav,
  .to-top { transition: none; }
  .media-frame:hover img { transform: none; }
}
