/* ============================================================
   研究所 AI 能力宣导 · 高端视觉系统
   配色：深藏蓝 #242852 / 金 #C58B58 / 纸底 #F7F5F0 / 浅蓝 #E6F1FB
   字体：微软雅黑；移动优先响应式
   ============================================================ */

:root {
  --navy:      #242852;
  --navy-2:    #1a1e3c;
  --navy-3:    #2e3470;
  --gold:      #C58B58;
  --gold-2:    #b07a45;
  --gold-soft: #FBD8B6;
  --paper:     #F7F5F0;
  --paper-2:   #efece4;
  --blue:      #297FD5;
  --blue-bri:  #1890FF;
  --lblue:     #E6F1FB;
  --ink:       #262626;
  --ink-2:     #5B5B5B;
  --ink-3:     #8a8a8a;
  --hair:      rgba(197,139,88,.30);
  --hair-soft: rgba(36,40,82,.10);
  --shadow-sm: 0 4px 14px rgba(36,40,82,.06);
  --shadow:    0 14px 40px rgba(36,40,82,.10);
  --shadow-lg: 0 26px 70px rgba(36,40,82,.16);
  --radius:    18px;
  --radius-sm: 12px;
  --header-h:  66px;
  --rail-w:    264px;
  --serif:     "微软雅黑","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
}

/* ---------- 顶部栏 ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: linear-gradient(180deg, #22264c 0%, #1a1e3c 100%);
  border-bottom: 1px solid rgba(197,139,88,.30);
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.brand .logo {
  height: 27px; width: auto; display: block; flex: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}
.brand .bdiv {
  width: 1px; height: 25px;
  background: linear-gradient(180deg, transparent, rgba(197,139,88,.6), transparent);
}
.brand .bt { line-height: 1.12; }
.brand .bt b { font-size: 16px; color: #fff; font-weight: 600; letter-spacing: .03em; }
.brand .bt span { display: block; font-size: 10.5px; color: var(--gold-soft); letter-spacing: .24em; margin-top: 3px; }

.topbar .actions { display: flex; align-items: center; gap: 12px; }
.btn-ghost {
  font-family: var(--serif); font-size: 13px; color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.22);
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  transition: all .25s var(--ease);
}
.btn-ghost:hover { background: var(--gold); color: #1a1e3c; border-color: var(--gold); }
.btn-ghost svg { vertical-align: -2px; margin-right: 5px; }

/* 详情页 · 原版幻灯片按钮（右上） */
.btn-gallery {
  flex: none; align-self: flex-start; font-family: var(--serif); font-size: 13px;
  color: var(--navy); background: #fff; border: 1px solid var(--hair);
  padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: all .25s var(--ease);
}
.btn-gallery:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* 详情页右上操作组：返回 + 幻灯片 */
.dh-r { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-back {
  flex: none; font-family: var(--serif); font-size: 13px; font-weight: 600;
  color: var(--navy); background: var(--paper); border: 1px solid var(--hair-soft);
  padding: 9px 16px 9px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; transition: all .25s var(--ease);
}
.btn-back svg { transition: transform .25s var(--ease); }
.btn-back:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-back:hover svg { transform: translateX(-2px); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,.85); margin: 4px 0; border-radius: 2px; }

/* ---------- 左侧导航 ---------- */
.rail {
  position: fixed; top: var(--header-h); bottom: 0; left: 0; width: var(--rail-w);
  background: linear-gradient(180deg, #fbfaf7 0%, #f3f0e9 100%);
  border-right: 1px solid var(--hair-soft);
  padding: 22px 14px 30px; overflow-y: auto; z-index: 40;
}
.rail .rail-h {
  font-size: 11px; letter-spacing: .26em; color: var(--ink-3);
  padding: 0 12px 10px; text-transform: uppercase;
}
.nav-group { margin-bottom: 6px; }
.nav-group > .grp-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; color: var(--navy);
  padding: 9px 12px; cursor: default; letter-spacing: .03em;
}
.nav-group > .grp-title i {
  width: 9px; height: 9px; border-radius: 3px; flex: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}
.nav-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 7px 12px 7px 30px;
  font-size: 13px; color: var(--ink-2); cursor: pointer;
  border-radius: 9px; transition: all .2s var(--ease); border-left: 2px solid transparent;
}
.nav-item:hover { background: rgba(36,40,82,.05); color: var(--navy); }
.nav-item.active { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.nav-item.active .num { color: var(--gold-soft); }
.nav-item .num { font-size: 11px; color: var(--ink-3); letter-spacing: .05em; white-space: nowrap; flex: none; }

/* ---------- 主区 ---------- */
.main { margin-left: var(--rail-w); padding-top: var(--header-h); min-height: 100vh; }
.view { padding: 0; }

/* ---------- 首页 hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 78% -10%, #31376e 0%, transparent 60%),
              linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 56px 50px 44px;
}
.hero .arc { position: absolute; border: 1px solid rgba(197,139,88,.22); border-radius: 50%; }
.hero .arc.a1 { width: 540px; height: 540px; right: -160px; top: -200px; }
.hero .arc.a2 { width: 760px; height: 760px; right: -260px; top: -320px; border-color: rgba(197,139,88,.14); }
.hero .arc.a3 { width: 1000px; height: 1000px; right: -360px; top: -440px; border-color: rgba(197,139,88,.08); }
.hero .eyebrow { font-size: 12px; letter-spacing: .34em; color: var(--gold-soft); margin-bottom: 18px; }
.hero h1 { font-size: 46px; font-weight: 800; line-height: 1.08; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero p.sub { margin-top: 14px; font-size: 16px; color: rgba(255,255,255,.74); max-width: 620px; }
.hero .stats { display: flex; gap: 36px; margin-top: 28px; flex-wrap: wrap; }
.hero .stat .v { font-size: 30px; font-weight: 800; color: #fff; }
.hero .stat .v small { font-size: 16px; color: var(--gold-soft); font-weight: 700; margin-left: 2px; }
.hero .stat .l { font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: .04em; margin-top: 2px; }
.hero .scroll-cue { position: absolute; bottom: 18px; left: 50px; font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.45); }

/* ---------- 三层框架条 ---------- */
.framework {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: #fff; border-bottom: 1px solid var(--hair-soft);
}
.framework .fw {
  padding: 18px 26px; border-right: 1px solid var(--hair-soft); position: relative;
}
.framework .fw:last-child { border-right: none; }
.framework .fw .tag { font-size: 11px; letter-spacing: .2em; color: var(--ink-3); }
.framework .fw h4 { font-size: 16.5px; color: var(--navy); margin: 6px 0 6px; }
.framework .fw p { font-size: 13px; color: var(--ink-2); }
.framework .fw .bar { position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 4px; }

/* ---------- 能力地图 ---------- */
.map-wrap { padding: 42px 50px 70px; }
.map-head { margin-bottom: 22px; }
.map-head .eyebrow { font-size: 12px; letter-spacing: .26em; color: var(--gold-2); }
.map-head h2 { font-size: 27px; color: var(--navy); margin-top: 8px; font-weight: 800; }
.map-head p { color: var(--ink-2); margin-top: 8px; max-width: 720px; }

/* ---------- 分层架构式能力地图 ---------- */
.capstack { display: flex; gap: 18px; align-items: stretch; }
.stack { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.band {
  display: flex; gap: 18px; align-items: stretch;
  background: #fff; border: 1px solid var(--hair-soft); border-radius: var(--radius);
  padding: 18px 20px; position: relative; overflow: hidden;
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.band:hover { box-shadow: var(--shadow); }
.band .spine {
  width: 170px; flex: none; border-right: 1px dashed var(--hair);
  padding-right: 16px; display: flex; flex-direction: column; justify-content: center;
}
.band .spine .ltag { font-size: 11px; letter-spacing: .2em; color: var(--accent); font-weight: 700; }
.band .spine .lname { font-size: 17px; color: var(--navy); font-weight: 800; margin: 5px 0 7px; }
.band .spine .ldesc { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.band .chips { flex: 1; display: flex; flex-wrap: wrap; align-content: center; gap: 10px; min-width: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--hair-soft);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
  font-family: var(--serif); font-size: 13px; color: var(--navy);
  transition: all .22s var(--ease);
}
.chip .chip-name { font-weight: 600; white-space: nowrap; }
.chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip:hover .pill { background: rgba(255,255,255,.22); color: #fff; }

/* 认知与边界 竖栏 */
.cog-rail {
  width: 236px; flex: none; background: linear-gradient(180deg, #fff, #fbfaf7);
  border: 1px solid var(--hair-soft); border-radius: var(--radius);
  padding: 20px 18px; border-top: 5px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.cog-rail .rail-title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; color: var(--navy); }
.cog-rail .rt-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; }
.cog-rail .rail-sub { font-size: 12px; color: var(--ink-3); margin: 3px 0 15px; letter-spacing: .06em; }
.cog-rail .rail-items { display: flex; flex-direction: column; gap: 10px; }
.cog-chip {
  display: block; width: 100%; text-align: left;
  background: var(--paper); border: 1px solid var(--hair-soft); border-radius: var(--radius-sm);
  padding: 13px 15px; cursor: pointer; font-family: var(--serif);
  transition: all .22s var(--ease);
}
.cog-chip:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.cog-chip .cn { font-size: 14px; font-weight: 700; color: var(--navy); }
.cog-chip .cp { font-size: 11px; color: var(--ink-3); margin-top: 3px; }

/* 状态药丸 */
.pill { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 700; white-space: nowrap; letter-spacing: .02em; }
.pill.live { background: #E7F1EA; color: #2E7D57; }
.pill.soon { background: #FBEFE0; color: #B07A45; }
.pill.dev  { background: #E9EDF5; color: #5B6B8C; }
.pill.gov  { background: #F6E7E2; color: #A8553F; }
.pill.cog  { background: var(--navy); color: #fff; }

/* ---------- 模块详情 ---------- */
.detail { padding: 20px 40px 40px; max-width: 1140px; }
.crumb { font-size: 12px; color: var(--ink-3); margin-bottom: 9px; letter-spacing: .04em; }
.crumb b { color: var(--navy); cursor: pointer; }
.crumb span { margin: 0 8px; color: var(--hair); }

.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.detail-head .dh-l { min-width: 280px; }
.detail-head .d-num { font-size: 11.5px; color: var(--gold-2); letter-spacing: .16em; font-weight: 700; }
.detail-head h1 { font-size: 26px; color: var(--navy); margin: 4px 0 7px; font-weight: 800; line-height: 1.15; }
.detail-head .d-pills { display: flex; gap: 8px; flex-wrap: wrap; }

.conclusion {
  margin: 11px 0 14px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff; border-radius: var(--radius); padding: 13px 20px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.conclusion::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gold); }
.conclusion .cl { font-size: 11px; letter-spacing: .2em; color: var(--gold-soft); }
.conclusion p { font-size: 16px; font-weight: 700; margin-top: 4px; line-height: 1.4; }

.detail-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; }
.detail-stats .ds {
  flex: 1; min-width: 130px; background: #fff; border: 1px solid var(--hair-soft);
  border-radius: var(--radius-sm); padding: 9px 14px;
}
.detail-stats .ds .v { font-size: 20px; font-weight: 800; color: var(--navy); }
.detail-stats .ds .v small { font-size: 14px; color: var(--gold-2); }
.detail-stats .ds .l { font-size: 11.5px; color: var(--ink-2); margin-top: 0; }

.sec { margin-bottom: 24px; }
.sec > .sec-t { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sec > .sec-t .bar { width: 4px; height: 18px; border-radius: 3px; background: var(--gold); }
.sec > .sec-t h3 { font-size: 18px; color: var(--navy); font-weight: 800; }
.sec .body { font-size: 14.5px; color: var(--ink); }
.sec .body p.lead { color: var(--ink-2); margin-bottom: 14px; }

/* 详情页 · 双栏紧凑卡片栅格（精简滚动） */
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 0; }
.detail-cols .sec { margin-bottom: 0; background: #fff; border: 1px solid var(--hair-soft); border-radius: var(--radius-sm); padding: 11px 15px 12px; }
.detail-cols .sec:last-child:nth-child(odd) { grid-column: 1 / -1; }
.detail-cols .sec.wide { grid-column: 1 / -1; }
/* 收口卡：三坑共同结果 */
.detail-cols .sec.is-summary {
  background: linear-gradient(135deg, #FCF7EF 0%, #FEFDFB 100%);
  border-color: rgba(197,139,88,.45);
  box-shadow: inset 3px 0 0 var(--gold);
}
.detail-cols .sec.is-summary > .sec-t h3 { color: var(--gold-2); }
.detail-cols .sec.is-summary .cap {
  font-size: 13.4px; font-weight: 700; color: var(--navy); border-left-color: var(--gold);
}

/* 分组数据表（数据沉淀等） */
.dgroups { display: grid; grid-template-columns: 1fr 1.6fr; gap: 26px; }
.dg-h {
  font-size: 12.5px; font-weight: 700; color: var(--gold-2); letter-spacing: .04em;
  padding-bottom: 8px; border-bottom: 1.5px solid var(--hair); margin-bottom: 4px;
}
.dg-rows { display: grid; grid-template-columns: 1fr; }
.dg-rows.two { grid-template-columns: 1fr 1fr; column-gap: 26px; }
.dg-row { display: flex; flex-direction: column; gap: 1px; padding: 7px 0; border-bottom: 1px dashed var(--hair-soft); }
.dg-n { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.dg-m { font-size: 12px; color: var(--ink-2); line-height: 1.45; }

/* 平台入口链接卡 */
.links { display: grid; gap: 10px; }
.link-card {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border: 1px solid var(--hair); border-radius: var(--radius-sm);
  padding: 12px 15px; text-decoration: none; color: var(--navy);
  transition: all .22s var(--ease);
}
.link-card:hover { background: var(--navy); border-color: var(--navy); }
.link-card:hover .lk-label { color: #fff; }
.link-card:hover .lk-url { color: var(--gold-soft); }
.link-card:hover .lk-ic { background: var(--gold); border-color: var(--gold); color: #181c38; }
.lk-ic {
  width: 30px; height: 30px; flex: none; border-radius: 8px;
  background: var(--lblue); border: 1px solid var(--hair-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; transition: all .22s var(--ease);
}
.lk-txt { display: flex; flex-direction: column; min-width: 0; }
.lk-label { font-size: 14px; font-weight: 700; line-height: 1.4; }
.lk-url { font-size: 12px; color: var(--ink-2); margin-top: 2px; word-break: break-all; }
.link-card.path { background: var(--paper); cursor: default; }
.link-card.path:hover { background: var(--paper); border-color: var(--hair); }
.link-card.path .lk-label { color: var(--ink-2); font-weight: 600; }
.link-card.path .lk-ic { background: transparent; color: var(--ink-3); border-color: var(--hair-soft); }
.detail-cols .sec > .sec-t { margin-bottom: 6px; }
.detail-cols .sec > .sec-t h3 { font-size: 14.5px; }
.detail-cols .caps { display: grid; gap: 2px; }
.detail-cols .cap {
  background: transparent; border: none; border-left: 2px solid var(--hair-soft); border-radius: 0;
  padding: 3px 0 3px 12px; font-size: 12.8px; line-height: 1.5;
}
.detail-cols .cap::before { left: -4px; top: 8px; width: 5px; height: 5px; box-shadow: 0 0 0 3px rgba(197,139,88,.12); }
.detail-cols .cap:hover { transform: none; box-shadow: none; border-left-color: var(--gold); }

/* 详情页内 · 紧凑化：步骤 / 链接 / 分组表 */
.detail-cols .steps { grid-template-columns: 1fr; gap: 5px; }
.detail-cols .step {
  display: flex; gap: 9px; align-items: flex-start;
  background: none; border: none; border-radius: 0; padding: 2px 0;
}
.detail-cols .step .n { width: 19px; height: 19px; font-size: 10.5px; margin: 1px 0 0; flex: none; }
.detail-cols .step p { font-size: 12.6px; line-height: 1.5; }
.detail-cols .links { gap: 6px; }
.detail-cols .link-card { padding: 8px 12px; gap: 10px; }
.detail-cols .lk-ic { width: 25px; height: 25px; font-size: 13px; border-radius: 7px; }
.detail-cols .lk-label { font-size: 13px; }
.detail-cols .lk-url { font-size: 11px; margin-top: 1px; }
.detail-cols .dgroups { gap: 18px; }
.detail-cols .dg-row { padding: 5px 0; }
.detail-cols .dg-n { font-size: 13px; }
.detail-cols .dg-m { font-size: 11.5px; }

.caps { display: grid; gap: 12px; }
.cap {
  background: #fff; border: 1px solid var(--hair-soft); border-radius: var(--radius-sm);
  padding: 15px 18px 15px 44px; position: relative; font-size: 14px; color: var(--ink);
  transition: all .25s var(--ease);
}
.cap:hover { border-color: var(--hair); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.cap::before {
  content: ""; position: absolute; left: 18px; top: 19px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(197,139,88,.14);
}

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; }
.step {
  background: linear-gradient(180deg,#fff, #fbfaf7); border: 1px solid var(--hair-soft);
  border-radius: var(--radius-sm); padding: 18px; position: relative;
}
.step .n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; margin-bottom: 12px;
}
.step p { font-size: 14px; color: var(--ink); }

/* 场景 */
.whens { display: grid; gap: 10px; }
.when {
  display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink);
  padding: 11px 16px; background: var(--lblue); border-radius: var(--radius-sm);
}
.when::before { content: "✓"; color: var(--blue); font-weight: 800; }

/* 提醒框 */
.note {
  background: #FBEFE0; border: 1px solid var(--hair); border-radius: var(--radius-sm);
  padding: 16px 20px; font-size: 14px; color: #7a4f23; position: relative;
}
.note b { color: #5e3a16; }
.note::before { content: "提醒"; position: absolute; top: -10px; left: 16px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 6px; }

/* 金句带（P20 / 认知页） */
.quote-band {
  margin: 11px 0 14px; padding: 13px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, #fbf1e2, #f6e6cf);
  border: 1px solid var(--hair); border-left: 5px solid var(--gold);
  font-size: 16px; font-weight: 800; color: var(--navy); line-height: 1.45;
}
.entry-link { color: var(--blue); text-decoration: none; word-break: break-all; font-size: 14px; border-bottom: 1px dashed rgba(41,127,213,.5); }
.entry-link:hover { color: var(--gold-2); }

/* ---------- 画廊 ---------- */
.gallery-mask {
  position: fixed; inset: 0; background: rgba(20,22,45,.92); z-index: 100;
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 30px;
}
.gallery-mask.open { display: flex; }
.gallery-box { max-width: 1000px; width: 100%; }
.gallery-box img { width: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background:#fff; }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1000px; margin-top: 16px; color: #fff; }
.gallery-bar .g-title { font-size: 14px; letter-spacing: .04em; }
.gallery-bar .g-ctrl { display: flex; gap: 10px; align-items: center; }
.gallery-bar button {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff;
  border-radius: 8px; padding: 8px 14px; cursor: pointer; font-family: var(--serif); font-size: 13px;
}
.gallery-bar button:hover { background: var(--gold); border-color: var(--gold); }
.gallery-bar .g-count { font-size: 13px; color: rgba(255,255,255,.7); }
.gallery-close { position: absolute; top: 22px; right: 26px; font-size: 26px; color: #fff; cursor: pointer; background: none; border: none; }

/* ---------- 滚动揭示 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 页脚 ---------- */
.foot { padding: 26px 50px 44px; color: var(--ink-3); font-size: 12.5px; border-top: 1px solid var(--hair-soft); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  :root { --rail-w: 0px; }
  .rail { transform: translateX(-100%); transition: transform .3s var(--ease); width: 280px; box-shadow: var(--shadow-lg); }
  .rail.open { transform: none; }
  .main { margin-left: 0; }
  .menu-toggle { display: block; }
  .hero { padding: 56px 26px 50px; }
  .hero h1 { font-size: 36px; }
  .framework { grid-template-columns: 1fr; }
  .framework .fw { border-right: none; border-bottom: 1px solid var(--hair-soft); }
  .map-wrap, .detail { padding-left: 24px; padding-right: 24px; }
  .capstack { flex-direction: column; }
  .cog-rail { width: 100%; }
  .band { margin-left: 0 !important; margin-right: 0 !important; }
  .band .spine { width: 132px; }
  .detail-head h1 { font-size: 27px; }
  .detail-cols { grid-template-columns: 1fr; gap: 14px; }
  .dgroups { grid-template-columns: 1fr; gap: 18px; }
  .dg-rows.two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 30px; }
  .hero .stats { gap: 24px; }
  .detail-stats .ds { min-width: 120px; }

  /* 顶栏窄屏防挤压：logo 缩、副标隐形、按钮不换行 */
  .topbar { padding: 0 12px; }
  .brand { min-width: 0; gap: 8px; }
  .brand .logo { height: 19px; }
  .brand .bdiv { display: none; }
  .brand .bt { min-width: 0; overflow: hidden; }
  .brand .bt b {
    display: block; font-size: 12.5px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
  .brand .bt span { display: none; }
  .topbar .actions { gap: 4px; flex: none; }
  .btn-ghost { font-size: 12px; padding: 7px 11px; white-space: nowrap; flex: none; }
  .btn-ghost svg { margin-right: 4px; vertical-align: -1px; }
  .menu-toggle { padding: 4px; flex: none; }
  .menu-toggle span { width: 19px; }
}
