/* ==========================================================================
   源桥基石工业图形开发平台 · Flow Bridge Engine (FBE)
   门户网站样式表
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  --bg: #f5f7fa;
  --bg-alt: #edf1f5;
  --panel: #ffffff;
  --panel-2: #f1f5f8;
  --line: rgba(35, 55, 75, 0.12);
  --line-strong: rgba(35, 55, 75, 0.22);
  --text: #1d2d3d;
  --text-dim: #43566a;
  --text-mute: #687b8d;
  --accent: #176b87;
  --accent-2: #286eaa;
  --amber: #a96712;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 42px -30px rgba(28, 48, 68, 0.28);
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
          "Noto Sans CJK SC", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, "JetBrains Mono", "Courier New", monospace;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 107, 135, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 107, 135, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7de8ff; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--maxw), 100% - 3rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #041018;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 247, 250, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 247, 250, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.brand-en {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 3px; }
.site-nav a {
  color: var(--text-dim);
  font-size: 14.5px;
  padding: 9px 11px;
  border-radius: 9px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav a:hover { color: var(--text); background: rgba(23, 107, 135, 0.07); }
.site-nav a.is-active { color: var(--accent); background: rgba(23, 107, 135, 0.09); }

.site-nav a.nav-cta {
  margin-left: 4px;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 700;
  padding: 9px 16px !important;
  border-radius: 9px;
  box-shadow: 0 8px 22px -12px rgba(34, 211, 238, 0.9);
}
.site-nav a.nav-cta:hover,
.site-nav a.nav-cta.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  filter: brightness(1.08);
}

.site-nav a.nav-login {
  margin-left: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(23, 107, 135, 0.38);
  border-radius: 9px;
  color: var(--accent);
  font-weight: 600;
}
.site-nav a.nav-login:hover,
.site-nav a.nav-login.is-active {
  color: var(--accent);
  border-color: rgba(23, 107, 135, 0.6);
  background: rgba(23, 107, 135, 0.08);
}

/* 登录态：右上角用户名菜单 */
.site-nav .nav-auth {
  display: flex;
  align-items: center;
  margin-left: 4px;
}
.site-nav .nav-auth [hidden] { display: none !important; }
.site-nav .nav-auth .nav-login { margin-left: 0; }
.site-nav .nav-guest { display: flex; align-items: center; gap: 8px; }
.site-nav a.nav-register {
  padding: 9px 16px;
  border-radius: 9px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 8px 22px -12px rgba(22, 163, 74, 0.9);
}
.site-nav a.nav-register:hover,
.site-nav a.nav-register.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e, #15803d);
  filter: brightness(1.08);
}
.site-nav .nav-user { position: relative; }
.site-nav .nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border: 1px solid rgba(23, 107, 135, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-nav .nav-user-btn:hover,
.site-nav .nav-user-btn[aria-expanded="true"] {
  border-color: rgba(23, 107, 135, 0.6);
  background: rgba(23, 107, 135, 0.08);
}
.nav-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(23, 107, 135, 0.14);
  font-size: 12.5px;
  font-weight: 700;
}
.nav-user-name {
  max-width: 8em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-caret { font-size: 10px; color: var(--text-mute); }
.nav-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 36px -22px rgba(15, 47, 66, 0.6);
  z-index: 30;
}
.nav-user-logout {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.nav-user-logout:hover { background: rgba(23, 107, 135, 0.08); color: var(--accent); }
.nav-user-logout:disabled { opacity: 0.6; cursor: progress; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 10px 11px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 通用区块 ---------- */
.section { position: relative; padding: 88px 0; z-index: 1; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(232, 238, 244, 0.72) 12%, rgba(232, 238, 244, 0.72) 88%, transparent);
}

.section-head { max-width: 800px; margin-bottom: 44px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-lead { margin-top: 16px; color: var(--text-dim); font-size: 16.5px; }

/* ---------- 重要说明提示条 ---------- */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 26px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.75;
}
.notice-icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.notice-icon svg { display: block; width: 100%; height: 100%; }
.notice b { color: var(--text); }
.notice a { color: var(--accent); font-weight: 600; }
.notice a:hover { text-decoration: underline; }
.notice + .steps { margin-top: 32px; }
/* 首屏内的说明条：更轻量，避免与 .hero-claim 形成两个厚重的卡片 */
.hero .notice {
  margin-top: 18px;
  max-width: 620px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  font-size: 14px;
}

/* ---------- 首屏 ---------- */
.hero { position: relative; padding: 46px 0 56px; z-index: 1; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -140px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 66%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
  position: relative;
}

.hero h1 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.02em; }
.hero .hero-en {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: clamp(14px, 1.6vw, 19px);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}
.hero .lead { margin-top: 16px; color: var(--text-dim); font-size: 30px; max-width: 620px; }

/* 首屏三大能力分类 */
.hero-highlights {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-width: 620px;
}
.hero-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(23, 107, 135, 0.09), rgba(255, 255, 255, 0.94) 58%, rgba(241, 245, 248, 0.8));
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.hero-highlights li:hover { transform: translateX(5px); border-left-color: var(--accent-2); }
.hero-highlights .hl-index {
  flex: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.75;
}
.hero-highlights .hl-body { display: block; }
.hero-highlights .hl-body b {
  display: block;
  color: var(--text);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
}
.hero-highlights .hl-body span {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--text-mute);
}

/* 首屏收束结论 */
.hero-claim {
  margin: 16px 0 0;
  max-width: 620px;
  padding: 12px 18px;
  border: 1px solid rgba(23, 107, 135, 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(23, 107, 135, 0.1), rgba(40, 110, 170, 0.08));
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  box-shadow: 0 18px 42px -28px rgba(23, 107, 135, 0.28);
}

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  color: var(--text-dim);
}
.badge b { color: var(--text); font-weight: 600; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* 首屏下方：平台/能力标签 + 实测数据（从首屏下移，缩短第一屏） */
.hero-band {
  position: relative;
  z-index: 1;
  padding: 26px 0 18px;
  background: linear-gradient(180deg, rgba(232, 238, 244, 0.8), transparent);
}
.hero-band .badge-row { margin-top: 0; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.stat-row .num {
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 700;
  color: var(--accent);
}
.stat-row .lbl { font-size: 12.5px; color: var(--text-mute); margin-top: 4px; }

/* 首屏联系电话 */
.hero-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-mute);
}
.hero-phone svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.hero-phone a {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  white-space: nowrap;
}
.hero-phone a:hover { color: var(--accent-2); text-decoration: underline; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 34px -18px rgba(34, 211, 238, 0.95);
}
.btn-primary:hover { color: #ffffff; transform: translateY(-2px); }
.trial-status {
  min-height: 20px;
  margin-top: 10px;
  color: #b42318;
  font-size: 14px;
}

/* 首屏「定制开发服务」：冷色调（蓝紫）区分于主色青蓝 */
.btn-service {
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  box-shadow: 0 16px 34px -18px rgba(79, 70, 229, 0.95);
}
.btn-service:hover {
  color: #ffffff;
  transform: translateY(-2px);
  background: linear-gradient(135deg, #5b52ea, #4038b5);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
}
.btn-ghost:hover { color: var(--text); background: rgba(23, 107, 135, 0.08); transform: translateY(-2px); }

/* 首屏视口示意 */
.viewport-frame {
  position: relative;
  /* 置于首屏右侧中部：顶部留白随视口高度自适应 */
  align-self: start;
  margin-top: clamp(8px, 11vh, 150px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #04080f;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.viewport-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: #edf2f6;
}
.viewport-bar .lights { display: flex; gap: 6px; }
.viewport-bar .lights i { width: 10px; height: 10px; border-radius: 50%; display: block; background: #b9c5d0; }
.viewport-bar .lights i:first-child { background: #f87171; }
.viewport-bar .lights i:nth-child(2) { background: var(--amber); }
.viewport-bar .lights i:nth-child(3) { background: #34d399; }
.viewport-bar .title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.viewport-frame img { width: 100%; height: auto; }

.viewport-hud {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}
.chip.on { color: var(--accent); border-color: rgba(23, 107, 135, 0.32); }

/* ---------- 核心功能 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -34px rgba(23, 107, 135, 0.32);
}
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 30% 25%, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.08));
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3,
.case-body h3 { font-size: 18px; }
.feature-card .card-en,
.case-body .card-en {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 7px;
}
.feature-card .desc,
.case-body .desc { margin-top: 14px; color: var(--text-dim); font-size: 14.5px; }
.feature-card .points,
.case-body .points { margin-top: 16px; display: grid; gap: 9px; }
.feature-card .points li,
.case-body .points li {
  position: relative;
  padding-left: 19px;
  font-size: 13.6px;
  color: var(--text-dim);
  line-height: 1.6;
}
.feature-card .points li::before,
.case-body .points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.feature-card .tags,
.case-body .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
}
.feature-card .tags span,
.case-body .tags span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(23, 107, 135, 0.2);
  background: rgba(23, 107, 135, 0.06);
  padding: 3px 9px;
  border-radius: 6px;
}

/* ---------- 案例展示 ---------- */
.showcase-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  color: var(--text-mute);
}
.showcase-note svg { flex: none; color: var(--accent); }

/* 行业案例（视频演示） */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.case-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.case-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -34px rgba(34, 211, 238, 0.55);
}
.case-media {
  position: relative;
  background: #0b1522;
  border-bottom: 1px solid var(--line);
}
.case-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b1522;
}
.case-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 700;
}
.case-length {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(8, 15, 24, 0.72);
  pointer-events: none;
}
.case-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(8, 15, 24, 0.26);
  transition: background 0.25s ease, opacity 0.25s ease;
}
.case-play svg {
  width: 68px;
  height: 68px;
  padding: 17px;
  border-radius: 50%;
  fill: #ffffff;
  background: rgba(23, 107, 135, 0.92);
  box-shadow: 0 18px 34px -14px rgba(4, 10, 18, 0.85);
  transition: transform 0.25s ease, background 0.25s ease;
}
.case-play:hover { background: rgba(8, 15, 24, 0.42); }
.case-play:hover svg { transform: scale(1.07); background: var(--accent); }
.case-play:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.case-card.is-playing .case-play { opacity: 0; pointer-events: none; }
.case-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.shot:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -34px rgba(34, 211, 238, 0.55);
}
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.shot:hover img { transform: scale(1.04); }
.shot-body { padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.shot-body h3 { font-size: 16px; }
.shot-body p { margin-top: 8px; color: var(--text-mute); font-size: 13.5px; }
.shot-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 700;
}

/* 截图缺失时的占位（将截图放入 assets/img/ 后自动恢复） */
.shot.is-missing { cursor: default; }
.shot.is-missing img { display: none; }
.shot.is-missing:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}
.shot.is-missing::before {
  content: "待放入截图：" attr(data-file);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-mute);
  background:
    repeating-linear-gradient(45deg, rgba(34, 211, 238, 0.06) 0 10px, transparent 10px 20px),
    var(--panel-2);
  border-bottom: 1px dashed var(--line-strong);
}

/* ---------- 右下角浮动联系栏 ---------- */
.side-dock {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dock-item { position: relative; }

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-dim);
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 16px 34px -26px rgba(0, 0, 0, 0.95);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.dock-btn .dock-icon { width: 28px; height: 28px; }
.dock-btn .dock-text { font-size: 11px; letter-spacing: 0.08em; line-height: 1; }
.dock-btn:hover,
.dock-btn:focus-visible,
.dock-item:hover .dock-btn,
.dock-item:focus-within .dock-btn {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.14);
  transform: translateX(-3px);
}
.dock-item.is-wechat:hover .dock-btn,
.dock-item.is-wechat:focus-within .dock-btn {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(74, 222, 128, 0.14);
}

/* 悬停弹出的信息卡片 */
.dock-card {
  position: absolute;
  right: calc(100% + 14px);
  bottom: 0;
  width: 208px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(10px) scale(0.96);
  transform-origin: right bottom;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.dock-card::before {
  /* 覆盖与按钮之间的空隙，避免鼠标横向移动时闪烁 */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 20px;
}
.dock-card::after {
  /* 指向按钮的小箭头（对齐按钮垂直中心） */
  content: "";
  position: absolute;
  right: -6px;
  bottom: 24px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}
.dock-item:hover .dock-card,
.dock-item:focus-within .dock-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.dock-card-title {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.dock-card-sub { margin: 0; font-size: 12px; color: var(--text-mute); }
.dock-phone {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-decoration: none;
}
.dock-phone:hover { color: var(--text); text-decoration: underline; }

.dock-qr {
  width: 168px;
  height: 168px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.dock-qr img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 二维码缺失时的占位（将二维码放入 assets/img/wechat-qrcode.png 后自动恢复） */
.dock-qr.is-missing {
  background:
    repeating-linear-gradient(45deg, rgba(34, 211, 238, 0.06) 0 10px, transparent 10px 20px),
    var(--panel-2);
  border: 1px dashed var(--line-strong);
}
.dock-qr.is-missing img { display: none; }
.dock-qr.is-missing::before {
  content: "待放入二维码\A" attr(data-file) "（或同名 .jpg）";
  white-space: pre-line;
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 12px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--text-mute);
}

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(3, 7, 12, 0.9);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 78vh;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-inline: auto;
}
.lightbox figcaption {
  margin-top: 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14.5px;
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(34, 211, 238, 0.16); }

/* ---------- 代码示例 ---------- */
.code-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14, 26, 43, 0.95), rgba(7, 13, 23, 0.95));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 12px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 12, 21, 0.6);
}
.code-tab {
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--text-mute);
  font-family: var(--font);
  font-size: 13.5px;
  padding: 10px 16px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.code-tab:hover { color: var(--text); }
.code-tab[aria-selected="true"] {
  color: var(--accent);
  background: rgba(34, 211, 238, 0.09);
  border-color: var(--line);
}
.code-panel { display: none; }
.code-panel.is-active { display: block; }
.code-panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.code-panel .panel-head span { font-size: 14.5px; color: var(--text-dim); }
.code-panel .panel-head code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
pre {
  margin: 0;
  padding: 20px 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.4px;
  line-height: 1.78;
  color: #cfe3f7;
  tab-size: 4;
}
pre code { font-family: inherit; }
pre .cm { color: #5f7d9c; font-style: italic; }
pre .st { color: #9ae6b4; }
pre .kw { color: #ff9ecb; }
pre .nm { color: #ffd479; }

/* ---------- 规格表 ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14.5px;
  background: rgba(255, 255, 255, 0.86);
}
.spec-table th,
.spec-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table th {
  width: 210px;
  color: var(--text);
  font-weight: 600;
  background: #edf2f6;
}
.spec-table td { color: var(--text-dim); }
.spec-table code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
}

/* ---------- 集成步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 34px;
}
.step {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff, #f5f8fa);
}
.step .n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.16em;
}
.step h3 { margin-top: 12px; font-size: 17px; }
.step p { margin-top: 10px; color: var(--text-dim); font-size: 14px; }
.step p a { color: var(--accent); font-weight: 600; }
.step p a:hover { color: var(--accent-2); text-decoration: underline; }

/* ---------- 定制开发服务 ---------- */
.services-flow { margin-top: 36px; }
.services-flow-title { margin-bottom: 16px; font-size: 17px; }
.services-flow .steps { margin-bottom: 0; }
.services-flow .step h4 { margin-top: 12px; font-size: 17px; }

/* ---------- 性能基准测试 ---------- */
.bench-panel {
  padding: 30px 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #f2f6f9);
  box-shadow: var(--shadow);
}

/* 基准测试截图：复用 .shot 的灯箱与缺图占位，但按原图比例完整展示 */
.bench-shot { margin: 26px 0 0; }
.bench-shot img { aspect-ratio: 1034 / 836; object-fit: contain; }
.bench-shot:hover { transform: none; box-shadow: 0 18px 42px -30px rgba(28, 48, 68, 0.5); }
.bench-shot:hover img { transform: none; }

.bench-rig { margin-top: 32px; }
.bench-rig-title { margin-bottom: 16px; font-size: 17px; }
.bench-note { margin-top: 14px; font-size: 13px; color: var(--text-mute); }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  z-index: 1;
  margin: 0 auto 80px;
  width: min(var(--maxw), 100% - 3rem);
  padding: 52px 46px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 12%, rgba(23, 107, 135, 0.1), transparent 60%),
    linear-gradient(135deg, #ffffff, #eaf1f5);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); }
.cta-band p { margin-top: 12px; color: var(--text-dim); max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.contact-dialog[hidden] { display: none; }
.contact-dialog:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(20, 34, 48, 0.56);
}
.contact-dialog-panel {
  position: relative;
  width: min(540px, 100%);
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.contact-dialog-panel h2 { padding-right: 48px; font-size: 24px; }
.contact-dialog-intro { margin-top: 8px; color: var(--text-dim); font-size: 14px; }
.contact-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--text);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.contact-dialog-close:hover { background: rgba(23, 107, 135, 0.08); }
.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.contact-method h3 { font-size: 15px; }
.contact-method p { margin-top: 10px; color: var(--text-mute); font-size: 12.5px; }
.contact-method .dock-qr { width: 148px; height: 148px; margin: 14px auto 0; }
.contact-method + .contact-method { padding-left: 24px; border-left: 1px solid var(--line); }
.contact-phone {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
}
.contact-phone:hover { color: var(--accent-2); text-decoration: underline; }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(237, 241, 245, 0.92);
  padding: 52px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 11px; }
.site-footer .about { color: var(--text-mute); font-size: 13.8px; max-width: 340px; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.footer-col ul { margin-top: 16px; display: grid; gap: 10px; }
.footer-col a,
.footer-col li { color: var(--text-mute); font-size: 13.8px; }
.footer-col a:hover { color: var(--accent); }
.footer-qr { width: 132px; height: 132px; margin: 16px 0 0; }
.footer-qr-caption { margin-top: 10px; color: var(--text-mute); font-size: 12.5px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 12.8px;
}
.footer-bottom .mono { font-family: var(--mono); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.footer-bottom a { color: var(--text-mute); }
.footer-bottom a:hover { color: var(--accent); text-decoration: underline; }
.police-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.police-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* 登录/注册页的简易页脚（仅备案信息） */
.auth-footer {
  position: relative;
  z-index: 1;
  padding: 8px 0 36px;
  color: var(--text-mute);
  font-size: 12.8px;
}
.auth-footer .footer-legal { justify-content: center; }
.auth-footer a { color: var(--text-mute); }
.auth-footer a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- 演进路线（roadmap） ---------- */
/* 优先级配色：T0 青、T1 蓝、T2 琥珀 */
.prio-t0 { --rm-color: var(--accent); }
.prio-t1 { --rm-color: #60a5fa; }
.prio-t2 { --rm-color: var(--amber); }

.rm-badge {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rm-color, var(--accent));
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 3px 10px;
}

/* 首页的索引列表 */
.rm-index {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.rm-index a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: background 0.2s ease;
}
.rm-index li:last-child a { border-bottom: none; }
.rm-index a:hover { background: rgba(23, 107, 135, 0.06); }
.rm-index-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.rm-index-body strong { font-size: 15px; font-weight: 600; }
.rm-index-body em { font-style: normal; color: var(--text-mute); font-size: 13.5px; }
.rm-index .rm-arrow {
  margin-left: auto;
  font-family: var(--mono);
  color: var(--text-mute);
  transition: transform 0.2s ease, color 0.2s ease;
}
.rm-index a:hover .rm-arrow { color: var(--accent); transform: translateX(4px); }
.rm-index-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* 路线图页：窄栏文本排版 */
.container-narrow { width: min(820px, 100% - 3rem); margin-inline: auto; }

.rm-toc {
  display: grid;
  gap: 2px;
  margin-bottom: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.rm-toc a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 14.5px;
  transition: background 0.2s ease, color 0.2s ease;
}
.rm-toc li:last-child a { border-bottom: none; }
.rm-toc a:hover { background: rgba(23, 107, 135, 0.06); color: var(--text); }
.rm-toc .rm-side { margin-left: auto; color: var(--text-mute); font-size: 13.5px; }

.rm-block { margin-bottom: 52px; scroll-margin-top: 100px; }
.rm-block:last-of-type { margin-bottom: 0; }
.rm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}
.rm-head h2 { font-size: 21px; }
.rm-head .rm-note { margin-left: auto; font-size: 13px; color: var(--text-mute); }

.rm-items { margin-top: 24px; display: grid; gap: 26px; }
.rm-item h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 16.5px;
}
.rm-item .rm-en {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.rm-item p { margin-top: 8px; color: var(--text-dim); font-size: 14.5px; }
.rm-item ul { margin-top: 10px; display: grid; gap: 6px; }
.rm-item ul li { position: relative; padding-left: 17px; font-size: 13.6px; color: var(--text-mute); }
.rm-item ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--rm-color, var(--accent));
  transform: rotate(45deg);
}

.rm-back { margin-top: 44px; font-size: 14px; color: var(--text-mute); }
.rm-back .rm-sep { margin: 0 8px; }

/* ---------- 滚动出现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .site-nav { gap: 4px; }
  .site-nav a { padding: 9px 9px; font-size: 14px; white-space: nowrap; }
  /* 与「行业案例」指向同一锚点，窄屏先收起，避免导航折行 */
  .nav-cta { display: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rm-index a { align-items: flex-start; }
  .rm-index .rm-arrow { display: none; }
  .rm-head .rm-note { flex-basis: 100%; margin-left: 0; }
}

/* 导航在 1024px 以下切换为汉堡菜单（其余移动端布局仍在 900px 断点） */
@media (max-width: 1024px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 16px 20px;
    background: rgba(245, 247, 250, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 12px 14px; }
  .nav-cta { display: inline-flex; margin-left: 0; text-align: center; }
  .site-nav a.nav-login { margin-left: 0; text-align: center; }
  .site-nav .nav-auth { display: block; margin-left: 0; }
  .site-nav .nav-guest { gap: 8px; }
  .site-nav a.nav-register { padding: 12px 16px; }
  .site-nav .nav-user { width: 100%; }
  .site-nav .nav-user-btn { width: 100%; justify-content: flex-start; padding: 10px 14px; }
  .site-nav .nav-user-menu { position: static; margin-top: 6px; box-shadow: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .viewport-frame { margin-top: 12px; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
  .side-dock { right: 10px; bottom: 72px; gap: 8px; }
  .dock-btn { width: 50px; height: 50px; border-radius: 12px; }
  .dock-btn .dock-icon { width: 26px; height: 26px; }
  .dock-btn .dock-text { display: none; }
  .dock-card { width: 190px; padding: 13px; }
  .dock-qr { width: 150px; height: 150px; }
}

@media (max-width: 680px) {
  .container { width: min(var(--maxw), 100% - 2rem); }
  .section { padding: 64px 0; }
  .feature-grid,
  .gallery { grid-template-columns: 1fr; }
  .container-narrow { width: min(820px, 100% - 2rem); }
  .rm-toc a { flex-wrap: wrap; }
  .rm-toc .rm-side { flex-basis: 100%; margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec-table th { width: auto; display: block; border-bottom: none; padding-bottom: 0; }
  .spec-table td { display: block; padding-top: 6px; }
  .bench-panel { padding: 22px 18px; }
  .brand-name { font-size: 14.5px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row .num { font-size: 18px; }
  .hero-highlights li { padding: 12px 14px; gap: 11px; }
  .hero-highlights .hl-body b { font-size: 15.5px; }
  .hero-claim { font-size: 15.5px; padding: 13px 16px; }
  .contact-dialog:not([hidden]) { padding: 14px; }
  .contact-dialog-panel { padding: 26px 20px; }
  .contact-methods { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; padding-top: 18px; }
  .contact-method + .contact-method { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact-method .dock-qr { width: 132px; height: 132px; }
  .contact-phone { margin-top: 12px; }
  .side-dock { right: 7px; bottom: 64px; gap: 7px; }
  .dock-btn { width: 44px; height: 44px; }
  .dock-btn .dock-icon { width: 23px; height: 23px; }
  .dock-card { width: 176px; padding: 12px; }
  .dock-qr { width: 140px; height: 140px; }
}

@page {
  size: 90mm 160mm;
  margin: 6mm;
}

@media print {
  html,
  body {
    width: auto;
    background: #ffffff;
    overflow: visible;
    font-size: 10pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body::before,
  .skip-link,
  .site-header,
  .side-dock,
  .contact-dialog,
  .lightbox,
  .hero-actions,
  .rm-index-actions,
  .case-play {
    display: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .container,
  .container-narrow {
    width: 100%;
    max-width: none;
  }

  .hero {
    padding: 8mm 0;
  }

  .hero-grid,
  .feature-grid,
  .gallery,
  .case-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 5mm;
  }

  .hero-grid {
    gap: 6mm;
  }

  .hero .lead {
    font-size: 16pt;
  }

  .section {
    padding: 9mm 0;
  }

  .section-head {
    margin-bottom: 6mm;
  }

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

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

  .footer-grid {
    gap: 7mm;
  }

  .footer-qr {
    width: 32mm;
    height: 32mm;
  }

  .feature-card,
  .case-card,
  .shot,
  .step,
  .bench-rig,
  .services-flow,
  .viewport-frame,
  .footer-grid > div {
    break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4 {
    break-after: avoid;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }
}

/* ---------- 注册页 ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-back {
  font-size: 14px;
  color: var(--text-dim);
  padding: 9px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.auth-back:hover {
  color: var(--accent);
  border-color: var(--line-strong);
  background: #ffffff;
}

.auth-main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  padding: 56px 0 84px;
}
.auth-container { display: flex; justify-content: center; }

.auth-card {
  width: min(468px, 100%);
  padding: 40px 38px 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.auth-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.auth-card h1 { margin-top: 10px; font-size: 27px; }
.auth-sub { margin-top: 10px; font-size: 14.5px; color: var(--text-mute); }

.auth-form { display: grid; gap: 16px; margin-top: 26px; }
.auth-form[hidden] { display: none; }
.auth-link { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.auth-link:hover { color: var(--accent-2); text-decoration: underline; }
.auth-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
}
.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.auth-input-wrap:focus-within {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.12);
}
.auth-input-wrap.is-invalid {
  border-color: #c2410c;
  background: #fff8f4;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.1);
}
.auth-prefix {
  flex: none;
  padding-right: 10px;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text-mute);
}
.auth-input-wrap input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.auth-input-wrap input::placeholder { color: #94a5b5; }
.auth-toggle {
  flex: none;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.auth-toggle:hover { color: var(--accent-2); }

.auth-code-wrap { gap: 6px; }
.auth-code-btn {
  flex: none;
  padding: 7px 4px 7px 12px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.auth-code-btn:hover:not(:disabled) { color: var(--accent-2); }
.auth-code-btn:disabled { color: var(--text-mute); cursor: not-allowed; }

.auth-hint {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-mute);
}

.auth-status {
  min-height: 20px;
  margin-top: -4px;
  font-size: 13.5px;
  color: #b42318;
}
.auth-status.is-ok { color: #157347; }

.auth-submit { width: 100%; justify-content: center; }
.auth-submit[disabled] { opacity: 0.72; cursor: progress; transform: none; }
.auth-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: auth-spin 0.7s linear infinite;
}
.auth-submit.is-loading .auth-spinner { display: inline-block; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-success { padding: 6px 0 2px; text-align: center; }
.auth-success[hidden] { display: none; }
.auth-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(23, 107, 135, 0.1);
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}
.auth-success h2 { margin-top: 12px; font-size: 20px; }
.auth-success p { margin-top: 10px; font-size: 14px; color: var(--text-dim); }
.auth-success b { color: var(--accent); }
.auth-success .btn { margin-top: 20px; }

.auth-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-mute);
}
.auth-note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.auth-note a { color: var(--accent); font-weight: 600; }
.auth-note a:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .auth-main { padding: 30px 0 56px; }
  .auth-card { padding: 30px 22px 26px; border-radius: var(--radius-md); }
  .auth-card h1 { font-size: 23px; }
}

/* ==========================================================================
   开发文档页
   ========================================================================== */
.docs-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.docs-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  padding-top: 34px;
  padding-bottom: 72px;
}

/* ---------- 左侧目录 ---------- */
.docs-sidebar { position: sticky; top: 92px; }
.docs-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: calc(100vh - 150px);
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}
.docs-sidebar-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.docs-sidebar-head h1 { margin-top: 8px; font-size: 25px; }
.docs-sidebar-head p:last-child {
  margin-top: 8px;
  color: var(--text-mute);
  font-size: 12.8px;
  line-height: 1.65;
}
.docs-nav { display: grid; gap: 4px; align-content: start; }
.docs-nav-group {
  margin: 14px 0 4px 12px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.docs-nav-group:first-child { margin-top: 0; }
.docs-nav-link {
  display: block;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 14.5px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.docs-nav-link:hover,
.docs-nav-link:focus-visible {
  color: var(--text);
  background: rgba(23, 107, 135, 0.06);
}
.docs-nav-link.is-active {
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
  background: rgba(23, 107, 135, 0.09);
}
.docs-nav-hint {
  margin: 4px 0 0 12px;
  color: var(--text-mute);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---------- 文章正文 ---------- */
.docs-content { min-width: 0; }
.docs-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text-mute);
  font-size: 13px;
}
.docs-crumbs a { color: var(--text-mute); }
.docs-crumbs a:hover { color: var(--accent); }

.doc-article { max-width: 860px; }
.doc-article[hidden] { display: none; }
.doc-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.doc-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.doc-head h2 { margin-top: 8px; font-size: clamp(26px, 3vw, 34px); }
.doc-lead { margin-top: 14px; color: var(--text-dim); font-size: 16px; }
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 18px;
}
.doc-meta li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-mute);
  font-size: 13px;
}
.doc-meta b { color: var(--text); font-weight: 600; }

.doc-article h3 {
  margin-top: 46px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
}
.doc-article h4 { margin-top: 26px; font-size: 16.5px; }
.doc-article p { margin-top: 12px; color: var(--text-dim); font-size: 15px; }
.doc-article .notice { box-shadow: none; }
.doc-article ul {
  margin-top: 12px;
  padding-left: 20px;
  list-style: disc;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.8;
}
.doc-article ul li::marker { color: var(--accent); }
.doc-article .doc-figure { margin: 18px 0 0; }
.doc-article .doc-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 14px 34px -28px rgba(28, 48, 68, 0.6);
}
.doc-article .doc-figure figcaption {
  margin-top: 10px;
  color: var(--text-mute);
  font-size: 13px;
  text-align: center;
}
.doc-article .doc-figure-hero { margin-top: 28px; }
.doc-article .doc-figure-hero img {
  box-shadow: 0 22px 46px -30px rgba(28, 48, 68, 0.75);
}
.doc-article code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(23, 107, 135, 0.08);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.9em;
}
.doc-article .code-wrap {
  margin-top: 16px;
  border-radius: var(--radius-md);
}
.doc-code .code-file {
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #9fc0d8;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.doc-code pre { padding-top: 16px; }
.doc-table { margin-top: 16px; }
.doc-table th { width: 150px; }
.doc-table th,
.doc-table td { font-size: 14px; }

.doc-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #ffffff, #eef4f8);
}
.doc-next-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.doc-next h4 { margin-top: 6px; font-size: 17px; }
.doc-article .doc-next p { margin-top: 6px; color: var(--text-mute); font-size: 13.5px; }
.doc-next .btn { flex: none; }

/* 开发文档入口加入后，导航在 900~1120px 之间需要更紧凑的间距 */
@media (max-width: 1120px) and (min-width: 901px) {
  .site-nav { gap: 2px; }
  .site-nav a { padding: 9px 7px; font-size: 13.8px; }
  .site-nav a.nav-login { margin-left: 4px; padding: 9px 12px; }
  .site-nav a.nav-register { padding: 9px 12px; }
  .brand-text .brand-name { font-size: 15px; }
  .brand-text .brand-en { font-size: 10px; }
}

@media (max-width: 1080px) {
  .docs-shell { grid-template-columns: 220px minmax(0, 1fr); gap: 34px; }
}

@media (max-width: 900px) {
  .docs-shell {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 64px;
  }
  /* 移动端把目录拆成独立栅格项：标题 → 章节 → 正文 */
  .docs-sidebar,
  .docs-sidebar-inner { display: contents; }
  .docs-sidebar-head {
    order: 1;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .docs-sidebar-head h1 { font-size: 23px; }
  .docs-sidebar-head p:last-child { display: none; }
  .docs-nav {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .docs-nav-group,
  .docs-nav-hint { display: none; }
  .docs-nav-link {
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    font-size: 13.5px;
  }
  .docs-nav-link.is-active { border-color: rgba(23, 107, 135, 0.35); }
  .docs-content { order: 3; }
  .doc-article { max-width: none; }
}

@media (max-width: 680px) {
  .docs-sidebar-head h1 { font-size: 21px; }
  .doc-article h3 { margin-top: 36px; font-size: 18.5px; }
  .doc-next { flex-direction: column; align-items: flex-start; padding: 20px; }
}
