/* =========================================================
   Beam 管理控制台 · 公共页（两屏）
   beam-mono 黑白大排版设计语言；字体 Inter Tight 为网关内嵌资源
   （OFL 许可见 inter-tight-OFL.txt），零外部请求。
   主题与全站统一：html[data-theme] + localStorage rf-theme（theme.js 绘制前定版）。
   登录弹层已按设计稿原样恢复（clip-path 揭幕动画 + 焦点陷阱，见文末前
   「login overlay」段）；弹层配色走设计稿的 --menu-* 反相 token：
   站点白天 → 弹层黑底，站点夜间 → 弹层浅灰底（设计原意反相；底色已统一为基准灰 #f4f6f7）。
   ========================================================= */

@font-face {
  font-family: "Inter Tight Local";
  src: url("inter-tight.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --font-sans: "Inter Tight Local", "Inter Tight", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
  --line-x: 37.3vw;
  --content-x: 26.3vw;
  --right-x: 38.1vw;
  --display: clamp(56px, 6.4vw, 96px);
  --section-display: clamp(58px, 5.4vw, 82px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  /* 页面底 = 全站统一基准灰 #f4f6f7（rf 公共页浅色 --canvas 原值，四处同值） */
  --bg: #f4f6f7;
  --ink: #0a0a0a;
  --muted: #707070;
  --faint: #a0a0a0;
  --line: #e3e3e3;
  --line-strong: #bdbdbd;
  --watermark: #ededed;
  --accent: #c8ff4a;
  --accent-strong: #557600;
  --warn: #9c5b10;
  /* 登录弹层反相（设计稿 --menu-* 原值：白天站点 → 黑底弹层） */
  --menu-bg: #0a0a0a;
  --menu-ink: #f4f4ee;
  --menu-muted: #8f8f8f;
  --menu-line: rgba(244, 244, 238, 0.18);
  --menu-accent: #c8ff4a;
  --menu-warn: #e2aa5d;
  --menu-err: #fb8a80;
  --toast-bg: #0a0a0a;
  --toast-ink: #f4f4ee;
  --scrollbar: #bdbdbd;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --ink: #f2f2ec;
  --muted: #9b9b9b;
  --faint: #5f5f5f;
  --line: #202020;
  --line-strong: #3c3c3c;
  --watermark: #171717;
  --accent: #c8ff4a;
  --accent-strong: #c8ff4a;
  --warn: #e2aa5d;
  /* 登录弹层反相（夜间站点 → 浅色弹层；底色已按用户指示换全站统一基准灰 #f4f6f7） */
  --menu-bg: #f4f6f7;
  --menu-ink: #0a0a0a;
  --menu-muted: rgba(10, 10, 10, 0.54);
  --menu-line: rgba(10, 10, 10, 0.16);
  --menu-accent: #4f6b00;
  --menu-warn: #9c5b10;
  --menu-err: #b3261e;
  --toast-bg: #f4f6f7;
  --toast-ink: #0a0a0a;
  --scrollbar: #444444;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-color: var(--scrollbar) transparent;
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: #0a0a0a;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--scrollbar);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

svg,
img {
  display: block;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* ---------- 品牌双图（白天白底版 / 夜间黑底版，与登录页同一机制） ---------- */

.brand-logo {
  display: grid;
}

.brand-logo .bm-light,
.brand-logo .bm-dark {
  display: none;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  /* 透明抠图版（beam-icon-transparent）：整图完整浮现、不裁切（cover 会切掉抠图边缘） */
  object-fit: contain;
}

html[data-theme="light"] .brand-logo .bm-light {
  display: block;
}

html[data-theme="dark"] .brand-logo .bm-dark {
  display: block;
}

/* hero 品牌带 lockup（去 slogan 版：羊图 + BEAM 字标，透明底按主题换字色版：
   浅主题墨字 light / 深主题米白字 dark，与页脚 .foot-lockup 同一套双图机制；
   图比例 1238:350，整图按比例完整显示、不裁切。 */
.hero-band .hb-light,
.hero-band .hb-dark {
  display: none;
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
}

html[data-theme="light"] .hero-band .hb-light {
  display: block;
}

html[data-theme="dark"] .hero-band .hb-dark {
  display: block;
}

/* ---------- fixed header ---------- */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter) 0;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.brand-logo {
  /* 去方框（用户 2026-10-22 点名）：原白底+边框+圆角裁剪的方砖容器已去除，
     槽位无边框/无底色/无裁剪，透明抠图直接浮在页面底上 */
  width: 34px;
  height: 34px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-4deg) scale(1.04);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  pointer-events: auto;
}

.theme-toggle {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--ink);
  opacity: 0.62;
  transition: opacity 0.2s ease, transform 0.35s var(--ease);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform 0.5s var(--ease);
}

.theme-toggle:hover {
  opacity: 1;
  transform: rotate(16deg);
}

html[data-theme="dark"] .theme-toggle svg {
  transform: rotate(180deg);
}

html[data-theme="dark"] .theme-toggle:hover svg {
  transform: rotate(200deg);
}

.login-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.login-button span {
  font-size: 13px;
  transition: transform 0.22s var(--ease);
}

/* 箭头一律内联 SVG（Unicode 箭头在 iOS 上会被渲染成蓝色 emoji 方块） */
.login-button span svg {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}

.login-button:hover {
  background: var(--bg);
  color: var(--ink);
}

.login-button:hover span {
  transform: translate(2px, -2px);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flow-root;
  min-height: 100svh;
  padding-bottom: 105px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* hero 区竖线（用户 2026-10-22 晚最终口径：恢复原位，不许动线）：.hero-line 自
   hero 顶贯通至 hero 底、一整根不断开，位置/样式全部恢复 lockup 改造前的设计稿
   原样——left: var(--line-x)（base 37.3vw，1440 视口约 537px；各断点值见响应式
   段的 --line-x 定义，未改一字）、1px / var(--line-strong) / line-grow 动画。
   品牌带按接缝对齐定标（见 .hero-band 说明）：带的横向位置使本线恰好穿过
   lockup 图内羊图与 BEAM 字标之间的透明接缝；线与带在 x 上交叠的区段里，
   线保持 z-index 0 在带（z 2）下层——线透过图的透明部分
   可见、被不透明贴纸部分自然遮挡，呈一整根连续线自图后穿过。不许分段、
   不许 mask 挖洞、.hero-band 不许加任何 background 垫底（垫底会在主题快切时
   闪现白框，已被否决）。hero-meta 仍以 --line-x + 14px 为锚、随线复原（线没
   动，它也没动）；hero-role 等以 --content-x 定位，未动。≤760 起线隐藏（手机
   端口径不变）。hero 以下区块（.details 等）的发丝线/边框是各自独立的
   border，不属这根线，未动。 */
.hero-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--line-x);
  z-index: 0;
  width: 1px;
  background: var(--line-strong);
  transform-origin: top;
  animation: line-grow 1.1s 0.12s var(--ease) both;
}

.hero-meta {
  position: absolute;
  top: 20px;
  left: calc(var(--line-x) + 14px);
  z-index: 3;
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  animation: fade-in 0.9s 0.4s ease both;
}

.hero-band {
  /* 品牌带（2026-10-22 用户点名）：hero 顶部自成一行的横向贯穿带，放去 slogan
     lockup，替换原左上角小幅宽图 hero-mark。带身全透明（无 background、无过渡，
     硬约束：旧版曾以 --bg 垫底压线，主题快切时会闪现白色矩形框，已被否决）。
     接缝对齐（用户 2026-10-22 晚点名，取代此前「整带贴 --gutter 左移」口径）：
     整带横向位置按竖线定标——竖线（--line-x，原位一字未动，见 .hero 段说明）
     须恰好穿过 lockup 图内「羊图与 BEAM 字标之间的透明接缝」。接缝几何（对
     final2 两张 ns lockup 实测，1238×350）：不透明羊图段止于 x=630、BEAM 的
     B 起于 x=687，接缝中心 x=658.5，即渲染图宽的 0.5319 处。故带宽
     W = min(640px, (lineX − 16px)/0.5319, 100vw − 32px)（式中除法以
     ×1.88005 等价落地，避免 calc 除法兼容问题），
     margin-left = lineX − W×0.5319（下限 16px）：接缝渲染位 =
     margin-left + W×0.5319 ≡ --line-x，各桌面断点误差 ≈0（如 1440 视口：
     W=640、margin-left≈196.7、接缝=537.1=线位）。线仍在带下层（z 0 < 带
     z 2）整根贯通：透过接缝的透明处可见、被不透明贴纸部分自然遮挡，不
     分段、不 mask、不垫底。带高按图 1238:350 自动；上距仍 76px，带下方
     hero-copy 位置不动、间距恒为 40px。hero-meta（顶 20px、高 ≈26px）在
     带上方，不重叠。≤760 手机端带为全宽排版、无线不对齐，几何在响应式段
     显式钉回原公式（见该段 .hero-band），本对齐公式不适用、不得污染。 */
  position: relative;
  z-index: 2;
  display: grid;
  --band-w: min(640px, calc((var(--line-x) - 16px) * 1.88005), calc(100vw - 32px));
  width: var(--band-w);
  margin: 76px 0 0 max(16px, calc(var(--line-x) - var(--band-w) * 0.5319));
  animation: mark-in 0.95s 0.12s var(--ease) both;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 40px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: var(--right-x);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.015em;
  animation: fade-up 0.9s 0.42s var(--ease) both;
}

.live-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.hero h1 {
  margin-top: 17px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero h1 .line > span {
  display: block;
  transform: translateY(112%);
  animation: line-up 1s 0.1s var(--ease) forwards;
  white-space: nowrap;
}

.hero h1 .line-two {
  margin-left: var(--right-x);
}

.hero h1 .line-two > span {
  animation-delay: 0.19s;
}

.line-one {
  margin-left: var(--content-x);
}

.hero-description {
  max-width: 380px;
  margin: 27px 0 0 var(--right-x);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  animation: fade-up 1s 0.48s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 23px 0 0 var(--right-x);
  animation: fade-up 1s 0.56s var(--ease) both;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.button-primary {
  background: var(--ink);
  color: var(--bg);
}

.button-primary:hover {
  background: var(--bg);
  color: var(--ink);
}

.button-primary.is-copied {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}

.button-icon {
  font-size: 13px;
  transition: transform 0.22s var(--ease);
}

.button-icon svg {
  display: block;
  width: 13px;
  height: 13px;
}

.button:hover .button-icon {
  transform: translate(2px, -2px);
}

.button-secondary:hover .button-icon {
  transform: translateY(2px);
}

.hero-support {
  margin: 18px 0 0 var(--right-x);
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.4;
  animation: fade-in 1s 0.7s ease both;
}

.hero-role {
  position: absolute;
  /* 品牌带使 copy 流整体下移约 79px，role 同步下移同等量（605 → 685）保持相对关系 */
  top: 685px;
  left: var(--content-x);
  z-index: 2;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.5;
  animation: fade-up 0.9s 0.62s var(--ease) both;
}

.hero-end {
  position: absolute;
  right: var(--gutter);
  bottom: 61px;
  left: var(--content-x);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.hero-watermark {
  display: none;
}

/* ---------- fixed floor ---------- */

.floor {
  position: fixed;
  right: 0;
  bottom: -0.12em;
  left: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 1.8vw;
  overflow: hidden;
  color: var(--watermark);
  font-family: var(--font-sans);
  font-size: clamp(88px, 8.9vw, 136px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.08em;
  pointer-events: none;
  user-select: none;
  animation: floor-in 1.2s 0.45s var(--ease) both;
}

.floor-meta {
  position: fixed;
  right: var(--gutter);
  bottom: 13px;
  left: var(--gutter);
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.03em;
  pointer-events: none;
  animation: fade-in 1s 0.8s ease both;
}

.floor-meta > span:nth-child(2) {
  justify-self: center;
}

.floor-meta button {
  justify-self: end;
  color: var(--ink);
  font-size: inherit;
  font-weight: 500;
  letter-spacing: inherit;
  pointer-events: auto;
  transition: opacity 0.18s ease;
}

.floor-meta button:hover {
  opacity: 0.55;
}

.floor-meta button span svg {
  width: 11px;
  height: 11px;
  vertical-align: -1px;
}

/* ---------- details ---------- */

.details {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter);
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.details-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 38px 0 23px;
  padding: 0 var(--gutter) 0 var(--content-x);
}

.details-heading h2 {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--section-display);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.details-heading h2 span {
  color: var(--accent);
}

.details-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  width: calc(100% - (var(--gutter) * 2));
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.access-panel {
  min-width: 0;
  padding: 20px 26px 20px 6px;
  border-right: 1px solid var(--line);
}

/* 片库海报墙：单一滚动墙。面板固定浅色面（双主题都浅、不反相——
   反相只属于左栏入口卡），框内只有海报与边缘渐隐，无任何文字。 */
.poster-panel {
  position: relative;
  min-width: 0;
  min-height: 360px;
  margin: 20px 6px 20px 27px;
  border: 1px solid rgba(16, 18, 17, 0.16);
  border-radius: 18px;
  background: #f4f6f7;
  color: #101211;
  overflow: hidden;
}

.mini-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.035em;
}

/* 深色入口卡（用户参考图定版）：双主题恒为墨面，
   浅主题靠阴影浮起，深主题靠描边+提亮与页面 #0a0a0a 底分开。 */
.entry-card {
  padding: 20px 20px 16px;
  border: 1px solid #0a0a0a;
  border-radius: 18px;
  background: #0a0a0a;
  color: #f4f4ee;
  box-shadow: 0 16px 38px rgba(10, 10, 10, 0.18);
}

/* 夜晚面在本卡局部压暗一档（#dbdee0，仍是浅面）：不改 --menu-bg 全局
   token（登录弹层等共用 #f4f6f7 原值），只在入口卡这一处取值。 */
html[data-theme="dark"] .entry-card {
  border-color: var(--menu-line);
  background: #dbdee0;
  color: var(--menu-ink);
  box-shadow: none;
}

.entry-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.entry-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.entry-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9a9a92;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.entry-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px rgba(200, 255, 74, 0.75);
}

.entry-card-label {
  margin-top: 18px;
  color: #9a9a92;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.entry-format {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 7px 7px 7px 14px;
  border: 1px solid rgba(244, 244, 238, 0.22);
  border-radius: 10px;
}

.entry-format code {
  min-width: 0;
  flex: 1;
  color: #f4f4ee;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.entry-copy {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 8px;
  color: #f4f4ee;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.entry-copy svg {
  width: 14px;
  height: 14px;
}

.entry-copy:hover {
  background: rgba(244, 244, 238, 0.09);
}

.entry-copy.is-copied {
  color: var(--accent);
}

.access-feedback {
  min-height: 14px;
  margin-top: 6px;
  color: var(--accent);
  font-size: 9px;
  line-height: 1.4;
}

.access-feedback.is-error {
  color: #fb8a80;
}

.entry-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 244, 238, 0.14);
}

.entry-meta > div {
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(244, 244, 238, 0.12);
}

.entry-meta > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.entry-meta dt {
  color: #8f8f88;
  font-size: 10px;
  line-height: 1.35;
}

.entry-meta dd {
  margin-top: 4px;
  color: #f4f4ee;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.access-note {
  max-width: 410px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.route {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.route span:nth-of-type(2) {
  color: var(--ink);
}

.route i {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.route span:nth-of-type(2)::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  vertical-align: 1px;
}

/* 卡内链路：两端小圆点 + 发丝线（深面配色） */
.entry-card .route {
  margin-top: 14px;
  color: #9a9a92;
}

.entry-card .route span:nth-of-type(1)::before,
.entry-card .route span:nth-of-type(3)::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #6d6d66;
  content: "";
  vertical-align: 1px;
}

.entry-card .route span:nth-of-type(2) {
  color: #f4f4ee;
}

.entry-card .route i {
  background: rgba(244, 244, 238, 0.18);
}

/* 入口卡夜晚反相（与登录同家族）：深主题下卡面转浅（本卡局部压暗值
   #dbdee0，见上方 .entry-card 暗色规则），卡内文字/描边/分隔随之转深；
   状态点为静态绿点（全站强调色），两主题一致。
   白天黑面一侧样式一字不动。 */
html[data-theme="dark"] .entry-card-status,
html[data-theme="dark"] .entry-card-label {
  color: var(--menu-muted);
}

html[data-theme="dark"] .entry-format {
  border-color: rgba(10, 10, 10, 0.22);
}

html[data-theme="dark"] .entry-format code {
  color: var(--menu-ink);
}

html[data-theme="dark"] .entry-copy {
  color: var(--menu-ink);
}

html[data-theme="dark"] .entry-copy:hover {
  background: rgba(10, 10, 10, 0.06);
}

html[data-theme="dark"] .access-feedback.is-error {
  color: var(--menu-err);
}

html[data-theme="dark"] .entry-meta {
  border-top-color: rgba(10, 10, 10, 0.14);
}

html[data-theme="dark"] .entry-meta > div {
  border-left-color: rgba(10, 10, 10, 0.12);
}

html[data-theme="dark"] .entry-meta dt {
  color: var(--menu-muted);
}

html[data-theme="dark"] .entry-meta dd {
  color: var(--menu-ink);
}

html[data-theme="dark"] .entry-card .route {
  color: var(--menu-muted);
}

html[data-theme="dark"] .entry-card .route span:nth-of-type(2) {
  color: var(--menu-ink);
}

html[data-theme="dark"] .entry-card .route i {
  background: rgba(10, 10, 10, 0.16);
}

/* 海报舞台：两行横滚（行间反向），轨道由两半同序内容拼成，
   平移 -50% 即无缝循环；海报统一轻压暗/去饱和成暗调拼贴。 */
.poster-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.pw-row {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.pw-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: pw-scroll-l linear infinite;
}

.pw-track.is-rev {
  animation-name: pw-scroll-r;
}

.pw-half {
  display: flex;
  flex: none;
  gap: 10px;
  height: 100%;
  padding: 5px 10px 5px 0;
}

.pw-row:first-child .pw-half {
  padding-top: 10px;
}

.pw-row:last-child .pw-half {
  padding-bottom: 10px;
}

.pw-tile {
  position: relative;
  display: block;
  height: 100%;
  aspect-ratio: 2 / 3;
  flex: none;
  overflow: hidden;
  border-radius: 10px;
  background: #dfe3e1;
}

.pw-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.93);
  transition: opacity 0.6s ease;
}

.pw-tile.is-empty {
  background: #dfe3e1;
}

@keyframes pw-scroll-l {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pw-scroll-r {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.poster-panel.is-paused .pw-track {
  animation-play-state: paused;
}

/* 边缘渐隐：上下/左右渐变把海报熔进浅色框面（图1式暗调拼贴的收边） */
.poster-panel::before,
.poster-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.poster-panel::before {
  background: linear-gradient(to bottom, #f4f6f7 0%, rgba(244, 246, 247, 0) 12%, rgba(244, 246, 247, 0) 88%, #f4f6f7 100%);
}

.poster-panel::after {
  background: linear-gradient(to right, #f4f6f7 0%, rgba(244, 246, 247, 0) 6%, rgba(244, 246, 247, 0) 94%, #f4f6f7 100%);
}

@media (prefers-reduced-motion: reduce) {
  .pw-track {
    animation: none;
  }

  .pw-tile img {
    transition: none;
  }
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: calc(100% - (var(--gutter) * 2));
  margin: 28px auto 0;
  border-top: 1px solid var(--line);
}

.capabilities article {
  min-width: 0;
  padding: 15px 18px 3px 0;
  border-right: 1px solid var(--line);
}

.capabilities article + article {
  padding-left: 18px;
}

.capabilities article:last-child {
  border-right: 0;
}

.cap-index {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.3;
}

.capabilities h3 {
  margin-top: 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.capabilities p {
  max-width: 360px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

/* 三栏微动效槽：三栏同高 52px、基线对齐；墨色为底，酸橙只落在
   光标 / 圆点 / 填充这类小尺度元素上。滚出视口或页面切后台时由 JS
   给 .capabilities 加 is-paused 一并冻结。 */
.cap-demo {
  display: flex;
  align-items: center;
  height: 52px;
  margin-top: 10px;
  overflow: hidden;
}

/* 01 打字拼址：入口 origin 常显，后段由 JS 逐字打出 */
.demo-addr {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.demo-typed {
  color: var(--ink);
  transition: opacity 0.35s ease;
}

.demo-typed.is-fading {
  opacity: 0;
}

.demo-caret {
  display: inline-block;
  width: 6px;
  height: 11px;
  margin-left: 2px;
  vertical-align: -1px;
  background: var(--accent);
  animation: demo-blink 1.06s steps(1) infinite;
}

@keyframes demo-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

/* 02 播放进度：细轨道 + 酸橙填充缓推到满，整槽淡回重播 */
.demo-prog {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
  animation: demo-prog-fade 6.4s linear infinite;
}

.demo-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  animation: demo-progress 6.4s linear infinite;
}

.demo-head {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  animation: demo-head-run 6.4s linear infinite;
}

@keyframes demo-progress {
  0% { width: 0; }
  62% { width: 100%; }
  100% { width: 100%; }
}

@keyframes demo-head-run {
  0% { left: 0; }
  62% { left: calc(100% - 4px); }
  100% { left: calc(100% - 4px); }
}

@keyframes demo-prog-fade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  86% { opacity: 1; }
  95%, 100% { opacity: 0; }
}

/* 03 公平带宽：三股细流共用同一套时长，速度严格一致（同速即公平）；
   虚线流动与面板链路图同一语言（渐变分段 + background-position 推进） */
.cap-demo.demo-flow {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 9px;
}

.demo-stream {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 2px;
  background-color: var(--line);
  background-image: linear-gradient(90deg, var(--faint) 0 55%, transparent 55% 100%);
  background-size: 12px 100%;
  animation: demo-dash 1.08s linear infinite;
}

@keyframes demo-dash {
  from { background-position: 0 0; }
  to { background-position: 12px 0; }
}

.demo-stream-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  animation: demo-dot-run 3.24s linear infinite;
}

@keyframes demo-dot-run {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: calc(100% - 5px); opacity: 0; }
}

.capabilities.is-paused .demo-caret,
.capabilities.is-paused .demo-prog,
.capabilities.is-paused .demo-fill,
.capabilities.is-paused .demo-head,
.capabilities.is-paused .demo-stream,
.capabilities.is-paused .demo-stream-dot {
  animation-play-state: paused;
}

.details-signoff {
  width: calc(100% - (var(--gutter) * 2));
  margin: auto auto 23px;
  padding-left: var(--content-x);
  color: var(--ink);
  font-size: clamp(36px, 3.7vw, 54px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.05em;
}

.details-signoff span {
  display: block;
}

.details-signoff span:last-child {
  margin-left: 11.7vw;
}

/* 收尾滚动字带：整幅宽出血（.details 无横向内衬，width:100% 即到边），
   上下各一条发丝线，正交直排不倾斜；内容两份同序拼接、平移 -50% 无缝
   循环，第二份 aria-hidden。滚出视口/切后台由 JS 加 is-paused 冻结。 */
.signoff-band {
  width: 100%;
  margin: 2px 0 22px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-track {
  display: flex;
  width: max-content;
  animation: band-scroll 42s linear infinite;
}

.band-seq {
  display: flex;
  align-items: center;
  flex: none;
  padding: 13px 0;
}

.band-cn {
  padding: 0 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.band-en {
  padding: 0 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.band-sep {
  color: var(--accent);
  font-size: 12px;
}

@keyframes band-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.signoff-band.is-paused .band-track {
  animation-play-state: paused;
}

/* 页脚收口 lockup（去 slogan 版：宽图 + BEAM 字标，透明底按主题换字色版：浅底墨字 / 深底米白字；图比例 1238:350） */
.foot-lockup {
  display: grid;
  width: min(320px, 68vw);
  margin: auto auto 26px;
  transform-origin: 50% 0;
  animation: lockup-sway 5.6s ease-in-out infinite alternate;
}

/* 吊床微晃：绕顶部中央支点（挂点感）小幅摇摆，叠一层极轻的纵向呼吸 */
@keyframes lockup-sway {
  from { transform: rotate(1.5deg) translateY(0); }
  to { transform: rotate(-1.5deg) translateY(2px); }
}

.foot-lockup.is-paused {
  animation-play-state: paused;
}

/* 减动效：第三屏全部动效静止在完成态（地址由 JS 直接打全、进度满格、
   三流静态、字带停住、吊床不晃） */
@media (prefers-reduced-motion: reduce) {
  .foot-lockup {
    animation: none;
    transform: none;
  }

  .band-track {
    animation: none;
  }

  .demo-caret {
    animation: none;
  }

  .demo-prog {
    animation: none;
    opacity: 1;
  }

  .demo-fill {
    animation: none;
    width: 100%;
  }

  .demo-head {
    animation: none;
    left: calc(100% - 4px);
  }

  .demo-stream {
    animation: none;
  }

  .demo-stream-dot {
    animation: none;
    left: calc(100% - 5px);
    opacity: 1;
  }
}

.foot-lockup .lk-light,
.foot-lockup .lk-dark {
  display: none;
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
}

html[data-theme="light"] .foot-lockup .lk-light {
  display: block;
}

html[data-theme="dark"] .foot-lockup .lk-dark {
  display: block;
}

.details-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: calc(100% - (var(--gutter) * 2));
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: 42px;
  left: 50%;
  z-index: 200;
  max-width: calc(100vw - 32px);
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--toast-bg);
  color: var(--toast-ink);
  font-size: 9.5px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.22s ease, transform 0.22s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- login overlay（设计稿原样恢复） ----------
   动画与原稿逐字一致：clip-path 自上而下揭幕 0.7s cubic-bezier(0.16, 1, 0.3, 1)，
   关闭时 visibility 延迟 0.7s 待动画走完。配色走 --menu-* 反相 token。
   内部结构与独立 /login 页同构（账号+密码、真实错误框、状态行），颜色改走 menu 变量。 */

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: var(--menu-bg);
  color: var(--menu-ink);
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  visibility: hidden;
  transition:
    clip-path 0.7s var(--ease),
    visibility 0s linear 0.7s,
    background-color 0.3s ease,
    color 0.3s ease;
}

.login-overlay.is-open {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
  visibility: visible;
  transition:
    clip-path 0.7s var(--ease),
    visibility 0s linear 0s,
    background-color 0.3s ease,
    color 0.3s ease;
}

.login-overlay .login-shell {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  padding: 18px var(--gutter);
  overflow-y: auto;
}

.login-overlay .login-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.login-overlay .login-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.login-overlay .login-logo {
  /* 去方框（同 .brand-logo 口径）：无边框/无底色/无裁剪，透明抠图浮在弹层底上 */
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
}

.login-overlay .login-logo .bm-light,
.login-overlay .login-logo .bm-dark {
  display: none;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 弹层 Logo 跟弹层自身底色同版（反相：站点夜间→弹层浅灰→白底羊；站点白天→弹层黑底→黑底羊） */
html[data-theme="dark"] .login-overlay .login-logo .bm-light { display: block; }
html[data-theme="light"] .login-overlay .login-logo .bm-dark { display: block; }

.login-overlay .login-brand-copy {
  display: grid;
  gap: 1px;
}

.login-overlay .login-brand-copy strong {
  color: var(--menu-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.1;
}

.login-overlay .login-brand-copy small {
  color: var(--menu-muted);
  font-size: 9px;
  line-height: 1.3;
}

.login-overlay .login-close {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid var(--menu-ink);
  border-radius: 999px;
  color: var(--menu-ink);
  font-size: 10px;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.login-overlay .login-close span {
  font-size: 14px;
  line-height: 0.7;
}

.login-overlay .login-close:hover {
  background: var(--menu-ink);
  color: var(--menu-bg);
}

.login-overlay .login-main {
  display: grid;
  width: min(1100px, 100%);
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 70px;
  align-items: center;
  margin: 0 auto;
  padding: 55px 0;
}

.login-overlay .login-intro .mini-label {
  color: var(--menu-muted);
}

.login-overlay .login-intro h2 {
  margin-top: 13px;
  color: var(--menu-ink);
  font-family: var(--font-sans);
  font-size: clamp(54px, 6.1vw, 88px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.login-overlay .login-intro h2 span {
  color: var(--menu-accent);
}

.login-overlay .login-lede {
  max-width: 360px;
  margin-top: 20px;
  color: var(--menu-muted);
  font-size: 12px;
  line-height: 1.7;
}

.login-overlay .login-status {
  display: grid;
  gap: 9px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.login-overlay .login-status li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--menu-muted);
  font-size: 11px;
  line-height: 1.4;
}

.login-overlay .login-status li[hidden] {
  display: none;
}

.login-overlay .status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--menu-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--menu-accent) 20%, transparent);
}

.login-overlay .login-form {
  width: 100%;
  padding-left: 48px;
  border-left: 1px solid var(--menu-line);
}

.login-overlay .login-form .field {
  margin-bottom: 22px;
}

.login-overlay .login-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--menu-muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.3;
}

.login-overlay .text-field,
.login-overlay .password-field {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--menu-line);
}

.login-overlay .text-field input,
.login-overlay .password-field input {
  width: 100%;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--menu-ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.4;
}

.login-overlay .text-field input::placeholder,
.login-overlay .password-field input::placeholder {
  color: var(--menu-muted);
}

.login-overlay .password-field button {
  flex: none;
  padding: 8px 0 8px 14px;
  color: var(--menu-muted);
  font-size: 9px;
  line-height: 1.3;
  transition: color 0.18s ease;
}

.login-overlay .password-field button:hover {
  color: var(--menu-ink);
}

.login-overlay .login-feedback {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px dashed var(--menu-line);
  border-radius: 10px;
  color: var(--menu-ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
}

.login-overlay .login-feedback[hidden] {
  display: none;
}

.login-overlay .login-submit {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 0 17px;
  border: 1px solid var(--menu-ink);
  border-radius: 999px;
  background: var(--menu-ink);
  color: var(--menu-bg);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.login-overlay .submit-arrow {
  font-size: 14px;
  transition: transform 0.22s var(--ease);
}

.login-overlay .submit-arrow svg {
  display: block;
  width: 14px;
  height: 14px;
}

.login-overlay .login-submit:hover {
  background: transparent;
  color: var(--menu-ink);
}

.login-overlay .login-submit:hover .submit-arrow {
  transform: translateX(3px);
}

.login-overlay .login-submit[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.login-overlay .login-submit[disabled]:hover {
  background: var(--menu-ink);
  color: var(--menu-bg);
}

.login-overlay .login-note {
  margin-top: 12px;
  color: var(--menu-muted);
  font-size: 10px;
  line-height: 1.6;
}

.login-overlay .login-form.is-shaking {
  animation: shake 0.36s ease;
}

.login-overlay .login-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--menu-line);
  color: var(--menu-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* ---------- static reveal ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.8s var(--ease);
}

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

/* ---------- motion ---------- */

@keyframes line-grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes line-up {
  from {
    transform: translateY(112%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
  }
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floor-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* ---------- responsive ---------- */

@media (min-width: 900px) {
  html {
    scroll-snap-type: y proximity;
  }

  .hero,
  .details {
    scroll-snap-align: start;
  }
}

@media (max-width: 1180px) {
  :root {
    --line-x: 36.5vw;
    --content-x: 24vw;
    --right-x: 37.5vw;
    --display: clamp(54px, 6.4vw, 82px);
    --section-display: clamp(54px, 5.4vw, 72px);
  }

  /* 三栏收窄后打字槽字号收紧一档，等宽长串不被槽宽裁尾 */
  .demo-addr {
    font-size: 8.5px;
  }

  .hero-role {
    /* 随品牌带下移同等量（575 → 655） */
    top: 655px;
  }

  .login-overlay .login-main {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  :root {
    --line-x: 32vw;
    --content-x: 13vw;
    --right-x: 33vw;
    --display: clamp(48px, 6.9vw, 66px);
    --section-display: clamp(48px, 5.8vw, 62px);
  }

  .hero-copy {
    /* 品牌带在本档仍为 640px 上限（带高 ≈181px），copy 让位间距同 base 的 40px */
    padding-top: 40px;
  }

  .hero-description {
    max-width: 340px;
  }

  .hero-role {
    /* 随品牌带下移（545 → 645） */
    top: 645px;
  }

  .details-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  }

  .access-panel {
    padding-right: 18px;
  }

  .poster-panel {
    margin-left: 18px;
  }

  .login-overlay .login-main {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
  }

  .login-overlay .login-form {
    padding-left: 32px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 15px;
    --line-x: 29.5vw;
    --content-x: 6vw;
    --right-x: calc(29.5vw + 14px);
    --display: clamp(38px, 10.6vw, 46px);
    --section-display: clamp(42px, 10.8vw, 52px);
  }

  .site-header {
    padding-top: 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .brand-copy small {
    font-size: 8.5px;
  }

  .header-actions {
    gap: 5px;
    margin-top: 3px;
  }

  .theme-toggle {
    width: 26px;
    height: 26px;
  }

  .login-button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 10px;
  }

  .hero {
    padding-bottom: 74px;
  }

  .hero-meta {
    display: none;
  }

  .hero-line {
    /* 手机端无线（原口径保持） */
    display: none;
  }

  .hero-band {
    /* 手机端品牌带贯穿内容全宽：宽 = 100vw - 6vw(content-x) - 15px(gutter)，
       390px 视口下 351.6px、高 ≈99.4px，与右侧 gutter 恰好齐平、不溢出；
       上距 84px 避开固定页眉，下方 copy 让位 26px 呼吸间距。左缘与宽度在本
       档显式钉回原公式：桌面端的接缝对齐公式（base 的 --band-w 与
       margin-left 计算）不适用于手机全宽排版，手机几何保持原样分毫不动。 */
    width: min(640px, calc(100vw - var(--content-x) - var(--gutter)));
    margin-top: 84px;
    margin-left: var(--content-x);
  }

  .hero-copy {
    padding-top: 26px;
  }

  .hero-kicker {
    font-size: 9px;
  }

  .hero h1 {
    margin-top: 13px;
    line-height: 1.08;
    letter-spacing: -0.045em;
  }

  .line-one {
    margin-left: var(--content-x);
  }

  .hero h1 .line-two {
    margin-left: 12vw;
  }

  .hero-description {
    max-width: calc(100% - var(--right-x) - var(--gutter));
    margin-top: 20px;
    margin-left: var(--right-x);
    font-size: 11.5px;
    line-height: 1.7;
  }

  .hero-actions {
    max-width: calc(100% - var(--right-x) - var(--gutter));
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    margin-top: 18px;
    margin-left: var(--right-x);
  }

  .button {
    min-height: 40px;
    font-size: 10.5px;
  }

  .hero-support {
    margin-top: 13px;
    margin-left: var(--right-x);
    font-size: 8px;
  }

  .hero-role {
    display: none;
  }

  .hero-watermark {
    position: absolute;
    right: 10px;
    bottom: 58px;
    left: 10px;
    z-index: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    overflow: hidden;
    color: var(--watermark);
    font-size: clamp(78px, 27vw, 120px);
    font-weight: 600;
    line-height: 0.75;
    letter-spacing: -0.08em;
    pointer-events: none;
    user-select: none;
  }

  .hero-end {
    right: var(--gutter);
    bottom: 20px;
    left: var(--content-x);
    z-index: 2;
    font-size: 7.5px;
  }

  .hero-end span:last-child {
    margin-left: auto;
  }

  .floor,
  .floor-meta {
    display: none;
  }

  .details {
    min-height: 100svh;
    padding: 70px 0 40px;
  }

  .details-head {
    padding: 0 var(--gutter);
    font-size: 7.5px;
  }

  .details-heading {
    align-items: flex-start;
    margin: 31px 0 19px;
    padding: 0 var(--gutter);
  }

  .details-heading h2 {
    line-height: 1;
  }

  .details-grid {
    display: flex;
    width: calc(100% - (var(--gutter) * 2));
    flex-direction: column;
  }

  .access-panel {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .poster-panel {
    height: clamp(230px, 64vw, 300px);
    min-height: 0;
    margin: 16px 0 0;
    border-radius: 16px;
  }

  .mini-label {
    font-size: 8px;
  }

  .entry-card {
    padding: 18px 16px 14px;
    border-radius: 16px;
  }

  .entry-format code {
    font-size: 11px;
  }

  .entry-copy {
    min-height: 40px;
    padding: 10px 12px;
  }

  .entry-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }

  .entry-meta > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .entry-meta > div:nth-child(n + 3) {
    padding-top: 12px;
    border-top: 1px solid rgba(244, 244, 238, 0.12);
  }

  html[data-theme="dark"] .entry-meta > div:nth-child(n + 3) {
    border-top-color: rgba(10, 10, 10, 0.12);
  }

  .access-note {
    margin-top: 10px;
    font-size: 9.5px;
  }

  .route {
    gap: 7px;
    margin-top: 13px;
    font-size: 7px;
  }

  .pw-half {
    gap: 8px;
    padding-right: 8px;
  }

  .pw-tile {
    border-radius: 8px;
  }

  .details-signoff {
    display: none;
  }

  .capabilities {
    display: flex;
    width: calc(100% - (var(--gutter) * 2));
    flex-direction: column;
    margin-top: 18px;
    border-top: 1px solid var(--line);
  }

  .capabilities article,
  .capabilities article + article {
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capabilities article:last-child {
    border-bottom: 0;
  }

  .capabilities h3 {
    display: inline;
    margin-top: 0;
    margin-left: 0;
    font-size: 14px;
  }

  .capabilities p {
    margin-top: 3px;
    margin-left: 0;
    font-size: 9px;
    line-height: 1.5;
  }

  /* 手机端微动效槽跟随各自栏堆叠，槽高与桌面同为 52px */
  .cap-demo {
    margin-top: 8px;
  }

  .band-cn {
    padding: 0 14px;
    font-size: 13px;
  }

  .band-en {
    padding: 0 14px;
    font-size: 9px;
  }

  .details-foot {
    width: calc(100% - (var(--gutter) * 2));
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 18px;
    padding-top: 0;
    font-size: 7px;
  }

  .details-foot span:nth-child(2) {
    order: 3;
    width: 100%;
  }

  .toast {
    bottom: 18px;
    font-size: 8.5px;
  }

  /* 弹层手机版登录：与独立 /login 同一套手机构图（大留白 + 圆点标题 +
     状态发丝带 + 全宽大点按表单 + 整幅提交钮 + 页脚贴底），变量换成
     弹层的 --menu-* 套。揭幕动画/焦点陷阱/反相规则不在此动。 */
  .login-overlay .login-shell {
    padding: 20px 22px calc(14px + env(safe-area-inset-bottom));
  }

  .login-overlay .login-brand-copy strong {
    font-size: 13px;
  }

  .login-overlay .login-logo {
    width: 32px;
    height: 32px;
  }

  .login-overlay .login-main {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-top: 9dvh;
    padding: 0;
  }

  .login-overlay .login-intro h2 {
    margin-top: 12px;
    font-size: clamp(46px, 13.5vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.05em;
  }

  .login-overlay .login-intro h2 span {
    position: relative;
    color: transparent;
  }

  .login-overlay .login-intro h2 span::after {
    content: "";
    position: absolute;
    right: 0.04em;
    bottom: 0.1em;
    width: 0.14em;
    height: 0.14em;
    border-radius: 50%;
    background: var(--menu-accent);
  }

  .login-overlay .login-lede {
    max-width: 300px;
    margin-top: 14px;
    font-size: 11px;
  }

  .login-overlay .login-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 22px;
    padding: 10px 0;
    border-top: 1px solid var(--menu-line);
    border-bottom: 1px solid var(--menu-line);
  }

  .login-overlay .login-status li {
    gap: 6px;
    font-size: 10px;
  }

  .login-overlay .status-dot {
    width: 5px;
    height: 5px;
  }

  .login-overlay .login-form {
    padding-top: 20px;
    padding-left: 0;
    border-left: 0;
  }

  .login-overlay .login-form .field {
    margin-bottom: 18px;
  }

  .login-overlay .text-field input,
  .login-overlay .password-field input {
    padding: 13px 0;
    font-size: 17px;
  }

  .login-overlay .password-field button {
    padding: 12px 0 12px 16px;
    font-size: 10px;
  }

  .login-overlay .login-submit {
    min-height: 52px;
    margin-top: 26px;
    padding: 0 20px;
    font-size: 12px;
  }

  .login-overlay .login-note {
    margin-top: 12px;
  }

  .login-overlay .login-foot {
    margin-top: auto;
    font-size: 7px;
  }
}

@media (max-width: 420px) {
  :root {
    --line-x: 29.5vw;
    --right-x: calc(29.5vw + 12px);
    --display: clamp(37px, 10.4vw, 42px);
    --section-display: 44px;
  }

  .login-button {
    padding: 0 11px;
  }

  /* 品牌带在本档沿用 ≤760 的规则（margin-top 84px + 全宽），copy 让位同步 26px */
  .hero-copy {
    padding-top: 26px;
  }

  .hero h1 .line-two {
    margin-left: 10vw;
  }

  .hero-description {
    font-size: 10.8px;
  }

  .hero-actions {
    gap: 5px;
  }

  .button {
    min-height: 38px;
    font-size: 10px;
  }

  .details {
    padding-top: 63px;
  }

  .details-heading {
    margin-top: 24px;
    margin-bottom: 15px;
  }

  .details-heading h2 {
    font-size: 43px;
  }

  .details-grid {
    width: calc(100% - (var(--gutter) * 2));
  }

  .login-overlay .login-main {
    gap: 22px;
    padding: 26px 0;
  }

  .login-overlay .login-intro h2 {
    font-size: 42px;
  }

  .login-overlay .login-note {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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