/* ==============================================================================
   通辽智慧农牧服务平台 · OpenDesign 风视觉系统 (od-system.css)
   黑白纸感 + 荧光绿点缀 + 自然画布 + 药丸组件 + 编辑感排版
   本文件最后加载，覆盖此前 design-system / liquid-glass 的视觉表现。
   ============================================================================== */

@font-face {
  font-family: "Albert Sans";
  src: url("/assets/fonts/AlbertSans-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --od-ink: #262626;
  --od-ink-soft: #434343;
  --od-ink-mute: #595959;
  --od-ink-faint: #8c8c8c;
  --od-paper: #fafafa;
  --od-paper-warm: #f5f5f5;
  --od-paper-dark: #f0f0f0;
  --od-page: #fdfff7;
  --od-surface: #ffffff;
  --od-bone: #ffffff;
  --od-cream: #f0fbea;
  --od-lime: #63fe13;
  --od-lime-soft: #83ff3b;
  --od-lime-deep: #218c00;
  --od-muted: #595959;
  --od-faint: #8c8c8c;
  --od-line: #d9d9d9;
  --od-line-hover: #bfbfbf;
  --od-line-soft: #f0f0f0;
  --od-line-faint: #f5f5f5;
  --od-radius: 8px;
  --od-radius-sm: 8px;
  --od-radius-md: 12px;
  --od-radius-lg: 18px;
  --od-radius-xl: 24px;
  --od-pill: 999px;
  --od-font-sans: "Albert Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --od-font-display: "Albert Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --od-font-serif: "Albert Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --od-shadow-card: 0 30px 60px -30px rgba(38, 38, 38, 0.16);
  --od-shadow-float: 0 24px 48px -28px rgba(38, 38, 38, 0.24);
  --od-nav-height: 54px;
  --od-max: 1360px;
  --od-s2: 2px; --od-s4: 4px; --od-s6: 6px; --od-s8: 8px; --od-s10: 10px;
  --od-s12: 12px; --od-s14: 14px; --od-s16: 16px; --od-s18: 18px; --od-s20: 20px;
  --od-s22: 22px; --od-s24: 24px; --od-s28: 28px; --od-s32: 32px; --od-s36: 36px;
  --od-s42: 42px; --od-s48: 48px; --od-s54: 54px; --od-s64: 64px;
  --od-duration-fast: 160ms;
  --od-duration-base: 260ms;
  --od-duration-enter: 700ms;
  --od-ease-standard: cubic-bezier(0.23, 1, 0.32, 1);
  --od-ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --od-ease-metric: cubic-bezier(0.22, 1, 0.36, 1);
  --od-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");

  /* Legacy aliases so existing pages inherit the OpenDesign palette without a rewrite. */
  --brand: var(--od-lime);
  --brand-primary: var(--od-lime-deep);
  --brand-dark: var(--od-lime-deep);
  --brand-light: var(--od-lime-soft);
  --brand-lime: var(--od-lime);
  --bg: var(--od-paper);
  --bg-canvas: var(--od-paper);
  --bg-card: var(--od-surface);
  --card: var(--od-surface);
  --text: var(--od-ink);
  --text-primary: var(--od-ink);
  --text-secondary: var(--od-ink-soft);
  --line: var(--od-line);
  --border-subtle: var(--od-line);
  --transition: var(--od-duration-fast) var(--od-ease-standard);
}

/* ---------------------------------------------------------------------------
   0. 全局基底
   --------------------------------------------------------------------------- */
body.lg-portal-theme,
body.od-page {
  background: var(--od-page) !important;
  color: var(--od-ink) !important;
  font-family: var(--od-font-sans) !important;
  -webkit-font-smoothing: antialiased;
}

body.lg-portal-theme main {
  background: var(--od-page) !important;
}

body.lg-portal-theme ::selection,
body.od-page ::selection {
  background: var(--od-lime);
  color: var(--od-ink);
}

/* 顶部导航（原 sidebar） */
/* OpenDesign 液态玻璃：SVG 位移折射 + 内高光（数值与 open-design.ai 一致） */
.od-nav-glass-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 其他页面导航：常驻浅色玻璃 */
body.od-page [data-od-glass].od-nav-glass,
body.od-page [data-od-glass].od-nav-glass.is-condensed {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(21, 20, 15, 0.08) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  backdrop-filter: url(#od-nav-liquid-glass) blur(8px) saturate(1.2) !important;
  box-shadow: inset 0 0 2px 1px #ffffff8c, inset 0 0 10px 4px #ffffff38, 0 6px 24px #11111a0f, 0 12px 40px #11111a0d !important;
}

/* 门户导航：顶部透明压在首屏画布上，滚动 >64px 凝成玻璃（OpenDesign 同款） */
body.lg-portal-theme .sidebar.od-nav-glass {
  background: rgba(255, 255, 255, 0.55) !important;
  border-bottom: 1px solid rgba(21, 20, 15, 0.04) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.4) !important;
  backdrop-filter: blur(12px) saturate(1.4) !important;
  backdrop-filter: url(#od-nav-liquid-glass) blur(7px) saturate(1.4) !important;
  box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, 0.5) !important;
}

html:root.dark body.lg-portal-theme .sidebar.od-nav-glass {
  background: rgba(16, 16, 16, 0.55) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, 0.08) !important;
}

/* 滚动态不再凝厚、不收缩：始终保持同一层薄玻璃 */
body.lg-portal-theme .sidebar.od-nav-glass.is-condensed {
  background: rgba(255, 255, 255, 0.55) !important;
  border-bottom-color: rgba(21, 20, 15, 0.04) !important;
  box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, 0.5) !important;
}

html:root.dark body.lg-portal-theme .sidebar.od-nav-glass.is-condensed {
  background: rgba(16, 16, 16, 0.55) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, 0.08) !important;
}

body.lg-portal-theme .sidebar {
  position: fixed;
}

body.lg-portal-theme .sidebar {
  height: var(--od-nav-height) !important;
  min-height: var(--od-nav-height) !important;
  padding: 0 clamp(16px, 2.5vw, 32px) !important;
  gap: 22px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--od-line-soft) !important;
  backdrop-filter: saturate(180%) blur(22px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(22px) !important;
}

body.lg-portal-theme .brand {
  gap: 10px !important;
}

body.lg-portal-theme .brand-mark {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
  background: var(--od-ink) !important;
  color: var(--od-paper) !important;
  font-family: var(--od-font-display) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  box-shadow: none !important;
}

body.lg-portal-theme .brand-copy strong {
  font-family: var(--od-font-display) !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: var(--od-ink) !important;
}

body.lg-portal-theme .brand-copy span {
  font-size: 10.5px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--od-faint) !important;
}

body.lg-portal-theme .sidebar nav {
  gap: 4px !important;
}

body.lg-portal-theme .sidebar nav button,
body.lg-portal-theme .sidebar nav .lg-navlink {
  padding: 8px 12px !important;
  border-radius: var(--od-pill) !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--od-ink) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  font-family: var(--od-font-sans) !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

body.lg-portal-theme .sidebar nav button:hover,
body.lg-portal-theme .sidebar nav .lg-navlink:hover {
  background: var(--od-bone) !important;
  color: var(--od-ink) !important;
}

body.lg-portal-theme .sidebar nav button.active {
  background: var(--od-ink) !important;
  color: var(--od-paper) !important;
  border-color: var(--od-ink) !important;
}

body.lg-portal-theme .sidebar nav #navSocial::after {
  content: "New";
  display: inline-block;
  margin-left: 7px;
  padding: 2px 8px;
  border-radius: var(--od-pill);
  background: var(--od-lime);
  color: var(--od-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 1px;
}

body.lg-portal-theme .nav-divider {
  display: none !important;
}

body.lg-portal-theme .nav-secondary-link {
  color: var(--od-muted) !important;
}

body.lg-portal-theme .sidebar-right {
  gap: 10px !important;
}

/* 三态主题：浅色 / 深色 / 跟随系统（由 app.js 的 html.dark 驱动） */
body.lg-portal-theme .theme-switch {
  display: flex !important;
}

body.lg-portal-theme .theme-switch button {
  padding: 5px 10px !important;
  font-size: 11px !important;
}

body.lg-portal-theme .theme-switch {
  display: flex !important;
  padding: 3px !important;
  border: 1px solid var(--od-line) !important;
  border-radius: var(--od-pill) !important;
  background: var(--od-paper) !important;
  box-shadow: none !important;
}

body.lg-portal-theme .theme-switch button {
  padding: 5px 12px !important;
  border: 0 !important;
  border-radius: var(--od-pill) !important;
  background: transparent !important;
  color: var(--od-muted) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.lg-portal-theme .theme-switch button.active {
  background: var(--od-ink) !important;
  color: var(--od-paper) !important;
}

body.lg-portal-theme .gov-network-pill {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 14px !important;
  border: 1px solid var(--od-line) !important;
  border-radius: var(--od-pill) !important;
  background: var(--od-paper) !important;
  color: var(--od-ink) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.lg-portal-theme .gov-pulse-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--od-lime-deep) !important;
  box-shadow: 0 0 0 3px rgba(157, 240, 31, 0.22) !important;
}

body.lg-portal-theme .sidebar .nav-login-pill {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--od-ink);
  color: var(--od-paper);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.16s ease;
}

body.lg-portal-theme .sidebar .nav-login-pill:hover {
  opacity: 0.82;
  color: var(--od-paper);
}

@media (max-width: 1500px) {
  body.lg-portal-theme .gov-network-pill {
    display: none !important;
  }
}

/* 顶部工具条（原 topbar） */
body.lg-portal-theme .topbar {
  padding: 26px 40px 10px !important;
  background: var(--od-paper) !important;
  border: 0 !important;
  box-shadow: none !important;
  align-items: flex-end !important;
}

body.lg-portal-theme .topbar .eyebrow {
  color: var(--od-muted) !important;
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
}

body.lg-portal-theme .topbar h1 {
  font-family: var(--od-font-display) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--od-ink) !important;
}

body.lg-portal-theme .arch-badge-btn,
body.lg-portal-theme .aux-toggle-btn {
  padding: 8px 14px !important;
  border: 1px solid var(--od-line) !important;
  border-radius: var(--od-pill) !important;
  background: var(--od-paper) !important;
  color: var(--od-ink) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.lg-portal-theme .status-pill {
  padding: 8px 14px !important;
  border-radius: var(--od-pill) !important;
  border: 1px solid transparent !important;
  background: var(--od-ink) !important;
  color: var(--od-paper) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

body.lg-portal-theme .role-select-box {
  padding: 6px 12px !important;
  border: 1px solid var(--od-line) !important;
  border-radius: var(--od-pill) !important;
  background: var(--od-paper) !important;
  box-shadow: none !important;
}

body.lg-portal-theme .role-select-box select {
  background: transparent !important;
  border: 0 !important;
  color: var(--od-ink) !important;
  font-family: var(--od-font-sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* ---------------------------------------------------------------------------
   1. Hero 画布
   --------------------------------------------------------------------------- */
body.lg-portal-theme .portal-section {
  max-width: 1504px;
  margin: 0 auto;
  padding: 18px 24px 90px !important;
}

.od-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--od-radius-xl);
  min-height: 660px;
  padding: 168px 32px 0;
  isolation: isolate;
  background:
    radial-gradient(70% 55% at 16% 2%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(55% 42% at 84% 10%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(120% 70% at 50% 108%, #c9ab70 0%, rgba(201, 171, 112, 0) 62%),
    linear-gradient(178deg, #3d78b6 0%, #5d97c9 16%, #7fb0d5 32%, #a9c9dd 46%, #dfe6db 56%, #f2ead4 62%, #e3d0a4 74%, #c9ae76 88%, #b3965e 100%);
}

/* 文案区轻微压暗，保证白色标题可读 */
.od-hero-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 460px;
  max-width: 100%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(23, 52, 83, 0.32), rgba(23, 52, 83, 0));
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

/* 田野笔触与天光 */
.od-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(196deg, rgba(255, 255, 255, 0) 52%, rgba(255, 252, 240, 0.45) 56%, rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(184deg, rgba(120, 96, 48, 0.12) 0 2px, rgba(255, 255, 255, 0) 2px 9px),
    repeating-linear-gradient(176deg, rgba(255, 255, 255, 0.1) 0 3px, rgba(0, 0, 0, 0) 3px 14px);
  -webkit-mask-image: linear-gradient(180deg, transparent 46%, #000 66%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 46%, #000 66%, #000 100%);
  filter: blur(1px);
  opacity: 0.9;
}

/* 颗粒质感 */
.od-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--od-grain);
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  opacity: 0.5;
  pointer-events: none;
}

.od-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.od-hero-art canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.22 !important;
  mix-blend-mode: soft-light;
}

/* 顶部雾化：导航区保持统一浅色，不出现彩色条 */
.od-hero-art::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  z-index: 1;
  pointer-events: none;
}

html:root.dark body.lg-portal-theme .od-hero-art::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.od-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.od-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--od-pill);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.od-hero-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--od-lime);
  box-shadow: 0 0 0 3px rgba(184, 255, 61, 0.28);
}

.od-hero-title {
  margin: 26px 0 0 !important;
  font-family: "Albert Sans", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif !important;
  font-size: clamp(44px, 6vw, 78px) !important;
  line-height: 1.02 !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
  word-break: keep-all;
  overflow-wrap: normal;
  color: #fff !important;
  text-shadow: 0 2px 40px rgba(20, 40, 60, 0.18);
}

.od-hero-title span {
  display: block;
  font-size: 0.46em;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.od-hero-sub {
  max-width: 760px;
  margin: 20px auto 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 20px rgba(20, 40, 60, 0.15);
}

.od-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.od-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--od-pill);
  border: 1px solid transparent;
  font-family: var(--od-font-sans);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.od-btn:hover {
  transform: translateY(-1px);
}

.od-btn-dark {
  background: var(--od-ink);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(10, 10, 10, 0.65);
}

.od-btn-dark:hover {
  background: #000;
  color: #fff;
}

.od-btn-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--od-lime);
  color: var(--od-ink);
  font-size: 13px;
  font-weight: 800;
}

.od-btn-glass {
  background: rgba(255, 255, 255, 0.82);
  color: var(--od-ink);
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.od-btn-glass:hover {
  background: #fff;
  color: var(--od-ink);
}

.od-btn-plain {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.od-btn-plain:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.od-hero-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.od-hero-rail > * {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: var(--od-pill);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease;
}

.od-hero-rail > *:hover {
  background: rgba(255, 255, 255, 0.22);
}

.od-hero-rail b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: var(--od-lime);
  font-family: var(--od-font-serif);
  font-size: 12px;
  font-weight: 600;
}

/* 悬浮产品窗口 */
.od-hero-window {
  position: relative;
  z-index: 4;
  max-width: 1180px;
  margin: 54px auto 0;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: var(--od-shadow-float);
  overflow: hidden;
  text-align: left;
  color: var(--od-ink);
}

.od-window-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--od-line-soft);
  background: #fdfff7;
}

.od-dots {
  display: inline-flex;
  gap: 6px;
}

.od-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dcd8cf;
}

.od-dots i:first-child {
  background: #d9d3c7;
}

.od-url {
  flex: 1;
  max-width: 460px;
  margin: 0 auto;
  padding: 6px 14px;
  border-radius: var(--od-pill);
  background: #fff;
  border: 1px solid var(--od-line-soft);
  font-size: 11px;
  color: var(--od-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

.od-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--od-ink);
}

.od-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--od-lime-deep);
  animation: odPulse 2s infinite;
}

@keyframes odPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(157, 240, 31, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(157, 240, 31, 0); }
}

body.lg-portal-theme .od-hero-window.hero-media {
  min-height: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border: 0 !important;
  box-shadow: var(--od-shadow-float) !important;
  border-radius: 22px 22px 0 0 !important;
  display: block !important;
}

.od-hero-window .media-panel {
  margin: 0 !important;
  padding: 22px 24px 26px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.od-hero-window .media-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 0;
}

.od-hero-window .media-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--od-faint);
}

.od-hero-window .live-pill {
  padding: 6px 12px;
  border-radius: var(--od-pill);
  border: 1px solid var(--od-line);
  background: var(--od-paper);
  color: var(--od-ink);
  font-size: 11px;
  font-weight: 600;
}

.od-hero-window .media-panel-head h3 {
  font-family: var(--od-font-display) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--od-ink) !important;
}

.od-hero-window .head-pill {
  padding: 5px 12px !important;
  border-radius: var(--od-pill) !important;
  background: var(--od-bone) !important;
  color: var(--od-ink) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.od-hero-window .portal-stage-grid {
  gap: 12px !important;
}

.od-hero-window .portal-stage-card {
  padding: 18px !important;
  border-radius: var(--od-radius-md) !important;
  border: 1px solid var(--od-line-soft) !important;
  background: #fdfff7 !important;
  box-shadow: none !important;
}

.od-hero-window .portal-stage-card.active {
  background: var(--od-ink) !important;
  border-color: var(--od-ink) !important;
  color: #fff !important;
}

.od-hero-window .portal-stage-card.active strong,
.od-hero-window .portal-stage-card.active span {
  color: #fff !important;
}

.od-hero-window .stage-card-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--od-pill);
  background: var(--od-lime) !important;
  color: var(--od-ink) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.od-hero-window .portal-stage-card:not(.active) .stage-card-badge {
  background: var(--od-bone) !important;
}

.od-hero-window .portal-mini-metrics {
  border-top: 1px solid var(--od-line-soft) !important;
  padding-top: 14px !important;
}

.od-hero-window .portal-mini-metric b {
  font-family: var(--od-font-serif) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: var(--od-ink) !important;
}

.od-hero-window .portal-mini-metric span {
  color: var(--od-muted) !important;
  font-size: 10.5px !important;
}

.od-hero-window .portal-stage-actions .portal-btn {
  background: var(--od-ink) !important;
  border-color: var(--od-ink) !important;
  color: #fff !important;
  border-radius: var(--od-pill) !important;
}

/* 指标带 */
.od-stats-band {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1180px;
  margin: -34px auto 0;
  padding: 26px 10px;
  border-radius: var(--od-radius-lg);
  border: 1px solid var(--od-line-soft);
  background: #fff;
  box-shadow: 0 24px 60px -30px rgba(10, 10, 10, 0.25);
}

.od-stats-band .hero-stat {
  padding: 0 26px;
  border-right: 1px solid var(--od-line-soft);
}

.od-stats-band .hero-stat:last-child {
  border-right: 0;
}

.od-stats-band .hero-stat .n {
  font-family: var(--od-font-display) !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: var(--od-ink) !important;
  line-height: 1;
}

.od-stats-band .hero-stat .n em {
  font-style: normal;
  font-family: var(--od-font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--od-muted);
  margin-left: 3px;
}

.od-stats-band .hero-stat .l {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--od-muted) !important;
  line-height: 1.5;
}

/* 巨型静默宣言 */
.od-statement {
  max-width: 1180px;
  margin: 96px auto 80px;
  padding: 0 8px;
}

.od-statement .od-statement-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--od-muted);
}

.od-statement .od-statement-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--od-lime-deep);
}

.od-statement h2 {
  margin: 22px 0 0;
  font-family: var(--od-font-display);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #d7d2c6;
}

.od-statement h2 strong {
  color: var(--od-ink);
  font-weight: 700;
}

.od-statement p {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--od-muted);
}

/* ---------------------------------------------------------------------------
   2. 区块与卡片
   --------------------------------------------------------------------------- */
body.lg-portal-theme .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

body.lg-portal-theme .portal-label {
  display: inline-block;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
  color: var(--od-faint) !important;
}

body.lg-portal-theme .section-title {
  margin: 10px 0 0 !important;
  font-family: var(--od-font-display) !important;
  font-size: clamp(26px, 2.6vw, 38px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
  color: var(--od-ink) !important;
}

body.lg-portal-theme .section-desc {
  max-width: 720px;
  margin: 10px 0 0 !important;
  font-size: 13.5px !important;
  line-height: 1.8 !important;
  color: var(--od-muted) !important;
}

body.lg-portal-theme .eyebrow {
  color: var(--od-muted) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.lg-portal-theme .key-scenarios-section,
body.lg-portal-theme .closed-loop-section,
body.lg-portal-theme .priority-platforms-section,
body.lg-portal-theme .opendesign-capabilities-section,
body.lg-portal-theme .opendesign-dock-wrap {
  max-width: 1180px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 四场景卡 */
body.lg-portal-theme .key-scenarios-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
}

body.lg-portal-theme .key-scenario-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px !important;
  padding: 30px !important;
  border-radius: var(--od-radius-lg) !important;
  border: 1px solid var(--od-line-soft) !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease, border-color 220ms ease;
}

body.lg-portal-theme .key-scenario-card:hover {
  transform: translateY(-3px);
  border-color: var(--od-line) !important;
  box-shadow: var(--od-shadow-card) !important;
}

body.lg-portal-theme .key-scenario-card .tool-code {
  font-family: var(--od-font-serif) !important;
  font-size: 40px !important;
  font-weight: 400 !important;
  color: #ded9cd !important;
  line-height: 1 !important;
}

body.lg-portal-theme .scenario-badge,
body.lg-portal-theme .cap-tag,
body.lg-portal-theme .priority-status-pill {
  display: inline-block;
  padding: 5px 11px !important;
  border-radius: var(--od-pill) !important;
  border: 1px solid var(--od-line-soft) !important;
  background: var(--od-bone) !important;
  color: var(--od-ink) !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
}

body.lg-portal-theme .scenario-badge {
  margin-bottom: 12px;
}

body.lg-portal-theme .scenario-title {
  margin: 0 0 8px !important;
  font-family: var(--od-font-display) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--od-ink) !important;
}

body.lg-portal-theme .scenario-desc {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
  color: var(--od-muted) !important;
}

body.lg-portal-theme .portal-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px !important;
  border-radius: var(--od-pill) !important;
  border: 1px solid var(--od-line) !important;
  background: transparent !important;
  color: var(--od-ink) !important;
  font-family: var(--od-font-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body.lg-portal-theme .portal-btn:hover {
  background: var(--od-ink) !important;
  border-color: var(--od-ink) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

body.lg-portal-theme .portal-btn-green,
body.lg-portal-theme .portal-btn-dark {
  background: var(--od-ink) !important;
  border-color: var(--od-ink) !important;
  color: #fff !important;
}

body.lg-portal-theme .portal-btn-green:hover,
body.lg-portal-theme .portal-btn-dark:hover {
  background: #000 !important;
  color: var(--od-lime) !important;
}

/* 闭环轨道 */
body.lg-portal-theme .closed-loop-track {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

body.lg-portal-theme .closed-loop-step {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  padding: 18px !important;
  border-radius: var(--od-radius-md) !important;
  border: 1px solid var(--od-line-soft) !important;
  background: #fdfff7 !important;
  text-decoration: none !important;
  transition: background 160ms ease, transform 160ms ease;
}

body.lg-portal-theme .closed-loop-step:hover {
  background: var(--od-bone) !important;
  transform: translateY(-2px);
}

body.lg-portal-theme .closed-loop-step .step-num {
  font-family: var(--od-font-serif) !important;
  font-size: 13px !important;
  color: var(--od-faint) !important;
}

body.lg-portal-theme .closed-loop-step .step-title {
  font-family: var(--od-font-display) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--od-ink) !important;
}

body.lg-portal-theme .closed-loop-step .step-status {
  font-size: 11px !important;
  color: var(--od-muted) !important;
}

/* 五平台卡 */
body.lg-portal-theme .priority-platform-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}

body.lg-portal-theme .priority-platform-card {
  display: flex !important;
  flex-direction: column;
  gap: 18px !important;
  padding: 28px !important;
  border-radius: var(--od-radius-lg) !important;
  border: 1px solid var(--od-line-soft) !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

body.lg-portal-theme .priority-platform-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--od-shadow-card) !important;
}

body.lg-portal-theme .priority-platform-card.is-lead {
  background: var(--od-ink) !important;
  border-color: var(--od-ink) !important;
  color: #fff !important;
  grid-row: span 2;
}

body.lg-portal-theme .priority-platform-card.is-lead .priority-platform-kicker,
body.lg-portal-theme .priority-platform-card.is-lead h3,
body.lg-portal-theme .priority-platform-card.is-lead p,
body.lg-portal-theme .priority-platform-card.is-lead .priority-card-meta span,
body.lg-portal-theme .priority-platform-card.is-lead .priority-card-meta b {
  color: #fff !important;
}

body.lg-portal-theme .priority-platform-card.is-lead .tool-code {
  color: rgba(255, 255, 255, 0.28) !important;
}

body.lg-portal-theme .priority-platform-card.is-lead .priority-feature-list span {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

body.lg-portal-theme .priority-platform-card.is-lead .portal-btn {
  background: var(--od-lime) !important;
  border-color: var(--od-lime) !important;
  color: var(--od-ink) !important;
}

body.lg-portal-theme .priority-platform-card.is-lead .portal-btn:hover {
  background: #fff !important;
  border-color: #fff !important;
}

body.lg-portal-theme .priority-platform-card .tool-code {
  font-family: var(--od-font-serif) !important;
  font-size: 38px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  color: #ded9cd !important;
}

body.lg-portal-theme .priority-platform-kicker {
  display: block;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--od-faint) !important;
  margin-bottom: 8px;
}

body.lg-portal-theme .priority-card-main h3 {
  margin: 0 0 10px !important;
  font-family: var(--od-font-display) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.3 !important;
  color: var(--od-ink) !important;
}

body.lg-portal-theme .priority-card-main p {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.75 !important;
  color: var(--od-muted) !important;
}

body.lg-portal-theme .priority-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.lg-portal-theme .priority-feature-list span {
  padding: 5px 11px !important;
  border-radius: var(--od-pill) !important;
  border: 1px solid var(--od-line-soft) !important;
  background: var(--od-bone) !important;
  color: var(--od-ink) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

body.lg-portal-theme .priority-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--od-line-soft);
  font-size: 11.5px;
  color: var(--od-muted);
}

body.lg-portal-theme .priority-card-meta b {
  color: var(--od-ink);
  font-size: 12px;
  font-weight: 600;
}

body.lg-portal-theme .priority-platform-card.is-lead .priority-card-meta {
  border-top-color: rgba(255, 255, 255, 0.14);
}

/* 延展能力卡 */
body.lg-portal-theme .opendesign-grid-four {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}

body.lg-portal-theme .opendesign-cap-card {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  padding: 28px !important;
  border-radius: var(--od-radius-lg) !important;
  border: 1px solid var(--od-line-soft) !important;
  background: var(--od-bone) !important;
  box-shadow: none !important;
  transition: transform 220ms ease, background 220ms ease;
}

body.lg-portal-theme .opendesign-cap-card:hover {
  transform: translateY(-3px);
  background: #fff !important;
  box-shadow: var(--od-shadow-card) !important;
}

body.lg-portal-theme .cap-title {
  margin: 0 !important;
  font-family: var(--od-font-display) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--od-ink) !important;
}

body.lg-portal-theme .cap-desc {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.8 !important;
  color: var(--od-muted) !important;
}

body.lg-portal-theme .cap-footer {
  margin-top: auto;
}

/* 快速验真 Dock */
body.lg-portal-theme .opendesign-dock {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 32px !important;
  border-radius: var(--od-radius-lg) !important;
  background: var(--od-ink) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: var(--od-shadow-card) !important;
}

body.lg-portal-theme .dock-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: var(--od-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0.06em;
}

body.lg-portal-theme .dock-input-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 46px;
  border-radius: var(--od-pill) !important;
  background: #fff !important;
  border: 0 !important;
}

body.lg-portal-theme .dock-input {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  color: var(--od-ink) !important;
  font-size: 13px !important;
  outline: none;
}

body.lg-portal-theme .dock-icon {
  color: var(--od-muted) !important;
  flex-shrink: 0;
}

body.lg-portal-theme .dock-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

body.lg-portal-theme .dock-samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.lg-portal-theme .dock-samples-label {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 11px;
}

body.lg-portal-theme .dock-sample-chip {
  padding: 5px 12px !important;
  border-radius: var(--od-pill) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 11px !important;
  cursor: pointer;
}

body.lg-portal-theme .dock-sample-chip:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

body.lg-portal-theme .opendesign-dock .portal-btn {
  background: var(--od-lime) !important;
  border-color: var(--od-lime) !important;
  color: var(--od-ink) !important;
}

body.lg-portal-theme .opendesign-dock .portal-btn:hover {
  background: #fff !important;
  border-color: #fff !important;
}

/* 页脚 */
body.lg-portal-theme .portal-footer {
  margin-top: 100px;
  padding: 64px 0 40px !important;
  border-top: 1px solid var(--od-line-soft) !important;
  background: var(--od-paper) !important;
  color: var(--od-ink) !important;
}

body.lg-portal-theme .footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 8px;
}

body.lg-portal-theme .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

body.lg-portal-theme .footer-col h5 {
  margin: 0 0 16px;
  font-family: var(--od-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--od-ink);
}

body.lg-portal-theme .footer-col p,
body.lg-portal-theme .footer-col li,
body.lg-portal-theme .footer-col a,
body.lg-portal-theme .footer-col button {
  font-size: 12px !important;
  line-height: 1.9 !important;
  color: var(--od-muted) !important;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

body.lg-portal-theme .footer-col a:hover,
body.lg-portal-theme .footer-col button:hover {
  color: var(--od-ink) !important;
}

body.lg-portal-theme .brand-line .brand-mark-sm {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
  background: var(--od-ink) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.lg-portal-theme .brand-line strong {
  font-family: var(--od-font-display) !important;
  color: var(--od-ink) !important;
  font-size: 15px !important;
}

body.lg-portal-theme .hotline-box b {
  font-family: var(--od-font-serif);
  font-size: 20px;
  color: var(--od-ink);
}

body.lg-portal-theme .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--od-line-soft);
  font-size: 11px;
  color: var(--od-faint) !important;
}

body.lg-portal-theme .safe-badge,
body.lg-portal-theme .net-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: var(--od-pill);
  border: 1px solid var(--od-line-soft);
  background: var(--od-bone);
  color: var(--od-ink);
  font-size: 10px;
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   2.5 高优先级归位（压制旧版 serif/深色规则）
   --------------------------------------------------------------------------- */
html,
html:root,
html:root.dark {
  background: var(--od-page) !important;
}

html:root body.lg-portal-theme,
html:root.dark body.lg-portal-theme {
  background: var(--od-page) !important;
  background-color: var(--od-page) !important;
  color: var(--od-ink) !important;
}

html:root body.lg-portal-theme::before,
html:root.dark body.lg-portal-theme::before,
:root.dark body.lg-portal-theme::before {
  background: var(--od-page) !important;
  opacity: 1 !important;
}

html:root main,
html:root.dark main,
html:root body.lg-portal-theme main,
html:root.dark body.lg-portal-theme main {
  background: var(--od-page) !important;
  background-color: var(--od-page) !important;
}

body.lg-portal-theme {
  padding-top: 0 !important;
}

body.lg-portal-theme main {
  padding-top: 88px !important;
}

/* 门户首页：首屏顶到导航下方，导航浮在画布上（其余视图保留工具条） */
body.lg-portal-theme:has(#portal.active) main {
  padding-top: 0 !important;
}

body.lg-portal-theme:has(#portal.active) .topbar {
  display: none !important;
}

body.lg-portal-theme .portal-section {
  background: var(--od-page) !important;
  padding-top: 0 !important;
  max-width: 1504px !important;
}

/* 工作台内页统一材质（时空一张图 / 社会化 / 综合工作台） */
body.lg-portal-theme .section:not(#portal) .panel {
  border-radius: 22px !important;
  border-color: var(--od-line-soft) !important;
  box-shadow: none !important;
}

body.lg-portal-theme .section:not(#portal) .btn {
  border-radius: 999px !important;
}

body.lg-portal-theme .od-hero .od-hero-title {
  font-family: "Albert Sans", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
}

body.lg-portal-theme .od-hero .od-hero-title span {
  font-family: "Albert Sans", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
}

body.lg-portal-theme .od-statement h2 {
  font-family: var(--od-font-display) !important;
  color: #d7d2c6 !important;
}

body.lg-portal-theme .od-statement h2 strong {
  color: var(--od-ink) !important;
}

body.lg-portal-theme .od-hero-window {
  color: var(--od-ink) !important;
}

body.lg-portal-theme .od-hero-window .media-panel {
  color: var(--od-ink) !important;
}

body.lg-portal-theme .od-hero-window .media-panel-head h3 {
  font-family: var(--od-font-display) !important;
  color: var(--od-ink) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
}

body.lg-portal-theme .od-hero-window .portal-stage-card {
  color: var(--od-ink) !important;
}

body.lg-portal-theme .od-hero-window .portal-stage-card strong {
  color: var(--od-ink) !important;
  font-family: var(--od-font-display) !important;
  font-weight: 700 !important;
}

body.lg-portal-theme .od-hero-window .portal-stage-card span,
body.lg-portal-theme .od-hero-window .portal-stage-card .stage-sub-status {
  color: var(--od-muted) !important;
}

body.lg-portal-theme .od-hero-window .portal-stage-card.active,
body.lg-portal-theme .od-hero-window .portal-stage-card.active strong,
body.lg-portal-theme .od-hero-window .portal-stage-card.active span,
body.lg-portal-theme .od-hero-window .portal-stage-card.active .stage-sub-status {
  color: #fff !important;
}

body.lg-portal-theme .od-hero-window .portal-stage-card.active .stage-card-badge {
  color: var(--od-ink) !important;
}

body.lg-portal-theme .od-hero-window .portal-mini-metric b {
  color: var(--od-ink) !important;
}

body.lg-portal-theme .od-hero-window .portal-mini-metric span {
  color: var(--od-muted) !important;
}

body.lg-portal-theme .od-hero-window .media-kicker {
  color: var(--od-faint) !important;
}

/* 首页协同视图窗口在暗色下仍保留浅色窗体，眉标必须维持深墨而不是浅灰。 */
html:root.dark body.lg-portal-theme .od-hero-window .media-kicker {
  color: #5f6b5f !important;
}

body.lg-portal-theme .od-hero-window .portal-stage-actions .portal-btn {
  color: #fff !important;
}

/* 底部田野压暗，保证玻璃药丸可读 */
.od-hero::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(52, 60, 34, 0.34) 100%),
    linear-gradient(196deg, rgba(255, 255, 255, 0) 52%, rgba(255, 252, 240, 0.45) 56%, rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(184deg, rgba(120, 96, 48, 0.12) 0 2px, rgba(255, 255, 255, 0) 2px 9px),
    repeating-linear-gradient(176deg, rgba(255, 255, 255, 0.1) 0 3px, rgba(0, 0, 0, 0) 3px 14px);
  -webkit-mask-image: none;
  mask-image: none;
}

body.lg-portal-theme .od-hero-rail > *,
body.lg-portal-theme .priority-entry-rail button,
body.lg-portal-theme .priority-entry-rail a {
  background: rgba(12, 20, 10, 0.42) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #fff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

body.lg-portal-theme .od-hero-rail > *:hover,
body.lg-portal-theme .priority-entry-rail button:hover,
body.lg-portal-theme .priority-entry-rail a:hover {
  background: rgba(12, 20, 10, 0.62) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

body.lg-portal-theme .priority-entry-rail b {
  background: rgba(255, 255, 255, 0.16) !important;
  color: var(--od-lime) !important;
  padding: 0 5px;
  border-radius: 999px;
}

body.lg-portal-theme .od-hero-sub {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 1px 24px rgba(12, 30, 52, 0.35);
}

body.lg-portal-theme .od-hero::before {
  background:
    linear-gradient(180deg, rgba(16, 40, 68, 0.42) 0%, rgba(16, 40, 68, 0.16) 38%, rgba(16, 40, 68, 0) 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(52, 60, 34, 0.34) 100%),
    linear-gradient(196deg, rgba(255, 255, 255, 0) 52%, rgba(255, 252, 240, 0.4) 56%, rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(184deg, rgba(120, 96, 48, 0.12) 0 2px, rgba(255, 255, 255, 0) 2px 9px),
    repeating-linear-gradient(176deg, rgba(255, 255, 255, 0.1) 0 3px, rgba(0, 0, 0, 0) 3px 14px);
}

/* ---------------------------------------------------------------------------
   2.6 深色变量清零：全站门户固定为 OpenDesign 纸张浅色
   --------------------------------------------------------------------------- */
html:root body.lg-portal-theme .od-stats-band,
html:root body.lg-portal-theme .hero-stats.od-stats-band {
  max-width: 1180px !important;
  background: #fff !important;
  border: 1px solid var(--od-line-soft) !important;
  gap: 0 !important;
}

html:root body.lg-portal-theme .od-stats-band .hero-stat {
  background: #fff !important;
  border-right: 1px solid var(--od-line-soft) !important;
}

html:root body.lg-portal-theme .od-stats-band .hero-stat .n {
  color: var(--od-ink) !important;
}

html:root body.lg-portal-theme .od-stats-band .hero-stat .l {
  color: var(--od-muted) !important;
}

html:root body.lg-portal-theme .key-scenario-card {
  background: #fff !important;
  border-color: var(--od-line-soft) !important;
}

html:root body.lg-portal-theme .key-scenario-card .scenario-title {
  color: var(--od-ink) !important;
}

html:root body.lg-portal-theme .key-scenario-card .scenario-desc {
  color: var(--od-muted) !important;
}

#portal .key-scenario-card .tool-code {
  color: #ded9cd !important;
  -webkit-text-fill-color: #ded9cd !important;
  background: none !important;
}

#portal .portal-footer .footer-col h5 {
  color: var(--od-ink) !important;
  -webkit-text-fill-color: var(--od-ink) !important;
  font-family: var(--od-font-sans) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

#portal .portal-footer .footer-col h5::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--od-lime-deep);
}

#portal .portal-footer .footer-col a,
#portal .portal-footer .footer-col button,
#portal .portal-footer .footer-col li {
  color: var(--od-muted) !important;
  -webkit-text-fill-color: var(--od-muted) !important;
}

#portal .portal-footer .hotline-box b {
  color: var(--od-ink) !important;
  -webkit-text-fill-color: var(--od-ink) !important;
  font-family: var(--od-font-serif);
  font-size: 20px;
}

#portal .portal-footer .footer-col p {
  color: var(--od-muted) !important;
  -webkit-text-fill-color: var(--od-muted) !important;
}

#portal .priority-status-pill {
  background: var(--od-bone) !important;
  border: 1px solid var(--od-line-soft) !important;
  color: var(--od-ink) !important;
  -webkit-text-fill-color: var(--od-ink) !important;
}

#portal .priority-status-pill.is-ready {
  background: var(--od-lime) !important;
  border-color: var(--od-lime) !important;
}

#portal .priority-platform-card.is-lead .priority-card-meta span {
  color: rgba(255, 255, 255, 0.68) !important;
}

#portal .priority-platform-card.is-lead .priority-card-meta b {
  color: #fff !important;
}

#portal .priority-platform-card.is-lead .portal-btn,
#portal .priority-platform-card.is-lead .portal-btn span {
  background: var(--od-lime) !important;
  border-color: var(--od-lime) !important;
  color: var(--od-ink) !important;
  -webkit-text-fill-color: var(--od-ink) !important;
}

#portal .priority-platform-card .tool-code {
  color: #ded9cd !important;
  -webkit-text-fill-color: #ded9cd !important;
  background: none !important;
}

#portal .priority-platform-card.is-lead .tool-code {
  color: rgba(255, 255, 255, 0.3) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.3) !important;
}

#portal .od-hero-rail > *,
#portal .priority-entry-rail > button,
#portal .priority-entry-rail > a {
  background: rgba(12, 16, 10, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

#portal .priority-entry-rail b {
  color: var(--od-lime) !important;
  -webkit-text-fill-color: var(--od-lime) !important;
}

html:root body.lg-portal-theme .key-scenario-card .scenario-badge {
  background: var(--od-bone) !important;
  border-color: var(--od-line-soft) !important;
  color: var(--od-ink) !important;
}

html:root body.lg-portal-theme .section-title {
  color: var(--od-ink) !important;
}

html:root body.lg-portal-theme .section-desc {
  color: var(--od-muted) !important;
}

html:root body.lg-portal-theme .portal-label {
  color: var(--od-faint) !important;
}

html:root body.lg-portal-theme .priority-platform-card {
  background: #fff !important;
  border-color: var(--od-line-soft) !important;
}

html:root body.lg-portal-theme .priority-platform-card.is-lead {
  background: var(--od-ink) !important;
  border-color: var(--od-ink) !important;
}

html:root body.lg-portal-theme .priority-platform-card .priority-card-main h3 {
  color: var(--od-ink) !important;
}

html:root body.lg-portal-theme .priority-platform-card .priority-card-main p {
  color: var(--od-muted) !important;
}

html:root body.lg-portal-theme .priority-platform-card.is-lead .priority-card-main h3,
html:root body.lg-portal-theme .priority-platform-card.is-lead .priority-card-main p,
html:root body.lg-portal-theme .priority-platform-card.is-lead .priority-platform-kicker,
html:root body.lg-portal-theme .priority-platform-card.is-lead .priority-card-meta span,
html:root body.lg-portal-theme .priority-platform-card.is-lead .priority-card-meta b {
  color: #fff !important;
}

html:root body.lg-portal-theme .priority-platform-card .priority-platform-kicker {
  color: var(--od-faint) !important;
}

html:root body.lg-portal-theme .priority-platform-card .priority-card-meta {
  color: var(--od-muted) !important;
  border-top-color: var(--od-line-soft) !important;
}

html:root body.lg-portal-theme .priority-platform-card .priority-card-meta b {
  color: var(--od-ink) !important;
}

html:root body.lg-portal-theme .priority-platform-card .priority-feature-list span {
  background: var(--od-bone) !important;
  border-color: var(--od-line-soft) !important;
  color: var(--od-ink) !important;
}

html:root body.lg-portal-theme .opendesign-grid-four {
  grid-template-columns: repeat(3, 1fr) !important;
}

html:root body.lg-portal-theme .opendesign-cap-card {
  background: var(--od-bone) !important;
  border-color: var(--od-line-soft) !important;
}

html:root body.lg-portal-theme .opendesign-cap-card .cap-title {
  color: var(--od-ink) !important;
}

html:root body.lg-portal-theme .opendesign-cap-card .cap-desc {
  color: var(--od-muted) !important;
}

html:root body.lg-portal-theme .priority-platforms-section {
  background: #fdfff7 !important;
  border: 1px solid var(--od-line-soft) !important;
  border-radius: var(--od-radius-xl) !important;
}

html:root body.lg-portal-theme .closed-loop-section {
  background: #fdfff7 !important;
  border: 1px solid var(--od-line-soft) !important;
  border-radius: var(--od-radius-lg) !important;
  box-shadow: none !important;
}

html:root body.lg-portal-theme .closed-loop-step {
  background: #fff !important;
  border-color: var(--od-line-soft) !important;
}

html:root body.lg-portal-theme .closed-loop-step .step-title {
  color: var(--od-ink) !important;
}

html:root body.lg-portal-theme .closed-loop-step .step-status {
  color: var(--od-muted) !important;
}

html:root body.lg-portal-theme .closed-loop-step .step-num {
  color: var(--od-faint) !important;
}

/* ---------------------------------------------------------------------------
   2.7 全站换肤：legacy 草绿体系重映射为墨黑 + 青柠（社会门户 / 业务系统 / 服务中台等）
   --------------------------------------------------------------------------- */
body.od-page {
  --green: #262626;
  --green-dark: #262626;
  --green-2: #262626;
  --p: #262626;
  --p-hover: #000000;
  --p-light: #f5f5f5;
  --p2: #262626;
  --tl-brand-500: #262626;
  --tl-brand-600: #262626;
  --tl-brand-700: #262626;
  --tl-color-success: #262626;
  --bg: #fdfff7;
  --bg-canvas: #fdfff7;
  --soft: #f5f5f5;
  --rice: #fdfff7;
  --card: #ffffff;
  --tl-bg-canvas: #fdfff7;
  --tl-bg-surface: #ffffff;
  --tl-bg-subtle: #f5f5f5;
  --line: #d9d9d9;
  --tl-border-subtle: #f0f0f0;
  --text: #262626;
  --ink: #262626;
  --muted: #8c8c8c;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --lime: #63fe13;
  --od-lime: #63fe13;
  background: #fdfff7 !important;
  color: #262626 !important;
  font-family: var(--od-font-sans) !important;
}

body.od-page .btn,
body.od-page button.btn,
body.od-page a.btn {
  border-radius: 999px !important;
}

body.od-page .card,
body.od-page .panel {
  border-radius: 22px !important;
}

body.od-page .site-header,
body.od-page .pilot-topbar,
body.od-page .app-bar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid #f5f5f5 !important;
  box-shadow: none !important;
}

body.od-page .site-header nav,
body.od-page .site-header nav a,
body.od-page .site-header .brand,
body.od-page .site-header .brand strong,
body.od-page .site-header .brand em {
  white-space: nowrap !important;
}

body.od-page .site-header nav {
  gap: 10px !important;
}

body.od-page .site-header nav a {
  padding: 6px 8px !important;
  font-size: 12px !important;
}

body.od-page .site-header .brand-mark,
body.od-social .brand-mark,
body.od-social .brand-monogram {
  background: #262626 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-radius: 10px !important;
}

/* 社会化门户品牌文字：副标题不再继承 logo 方块 */
body.od-social .site-header .brand-copy {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
}

body.od-social .site-header .brand-copy strong {
  font-size: 14px !important;
  line-height: 1.25 !important;
}

body.od-social .site-header .brand-copy span {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  background: none !important;
  color: var(--muted) !important;
  -webkit-text-fill-color: var(--muted) !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  white-space: nowrap;
}

body.od-platform .login-copy {
  background: #262626 !important;
  border-radius: 20px !important;
}

body.od-platform .login-panel .btn.primary {
  background: #262626 !important;
  border-color: #262626 !important;
  color: #fff !important;
  border-radius: 999px !important;
}

body.od-service .btn.primary,
body.od-service .quick-search button {
  background: #262626 !important;
  border-color: #262626 !important;
  color: #fff !important;
  border-radius: 999px !important;
}

body.od-service nav a:hover {
  background: #f5f5f5 !important;
  color: #262626 !important;
}

body.od-service nav a.active {
  background: #262626 !important;
  color: #fff !important;
}

/* 大屏：与门户共用同一青柠 */
body.lg-dash-theme {
  --green-glow: #63fe13;
  --db-border-active: #63fe13;
  --db-glow-field: 0 0 14px rgba(184, 255, 61, 0.32);
  --db-glow-field-subtle: 0 0 8px rgba(184, 255, 61, 0.18);
}

html:root body.lg-dash-theme .db-header {
  flex-wrap: nowrap !important;
  gap: 12px !important;
  overflow: hidden !important;
}

html:root body.lg-dash-theme .db-brand {
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

html:root body.lg-dash-theme .db-title strong {
  display: block !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}

html:root body.lg-dash-theme .db-title span {
  display: none !important;
}

html:root body.lg-dash-theme .db-nav-pills {
  flex: 1 1 auto !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none;
}

html:root body.lg-dash-theme .db-nav-pills::-webkit-scrollbar {
  display: none;
}

html:root body.lg-dash-theme .db-nav-pill {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

html:root body.lg-dash-theme .db-status,
html:root body.lg-dash-theme .db-status span {
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

/* 大屏保持原有暖橙色调，不做色相偏移 */
body.lg-dash-theme #dbMapFrame {
  filter: none !important;
}

/* 大屏顶部导航：与大屏主体一致的 OpenDesign 暗面（近黑暖灰，非纯黑） */
body.lg-dash-theme .db-header {
  height: var(--od-nav-height) !important;
  min-height: var(--od-nav-height) !important;
  max-height: none !important;
  padding: 0 40px !important;
  background: rgba(23, 25, 21, 0.86) !important;
  border-bottom: 1px solid #30332d !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
}

body.lg-dash-theme .db-logo {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: #218c00 !important;
  border: 0 !important;
  color: #f2f4ef !important;
  box-shadow: none !important;
}

body.lg-dash-theme .db-title strong {
  color: #f2f4ef !important;
}

body.lg-dash-theme .db-title span {
  color: #a5afa1 !important;
}

body.lg-dash-theme .db-nav-pill {
  background: transparent !important;
  color: #d7dbd3 !important;
  border: 1px solid #30332d !important;
  border-radius: 999px !important;
}

body.lg-dash-theme .db-nav-pill:hover {
  background: rgba(242, 244, 239, 0.08) !important;
  color: #ffffff !important;
}

body.lg-dash-theme .db-status {
  background: #171915 !important;
  border: 1px solid #30332d !important;
  color: #f2f4ef !important;
}

body.lg-dash-theme .db-status .dot {
  background: #63fe13 !important;
}

body.lg-dash-theme .db-timestamp-badge {
  background: #171915 !important;
  border-color: #30332d !important;
  color: #f2f4ef !important;
}

body.lg-dash-theme .db-timestamp-tag,
body.lg-dash-theme .db-date {
  color: #a5afa1 !important;
}

body.lg-dash-theme .db-clock {
  color: #f2f4ef !important;
}

/* ---------------------------------------------------------------------------
   3. 响应式
   --------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  body.lg-portal-theme .priority-platform-grid,
  body.lg-portal-theme .opendesign-grid-four {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  body.lg-portal-theme .priority-platform-card.is-lead {
    grid-row: auto;
  }
  body.lg-portal-theme .closed-loop-track {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 900px) {
  body.lg-portal-theme .sidebar {
    height: 64px !important;
    min-height: 64px !important;
    flex-wrap: nowrap !important;
    padding: 8px 16px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  body.lg-portal-theme .sidebar::-webkit-scrollbar {
    display: none;
  }
  body.lg-portal-theme .sidebar nav {
    flex-wrap: nowrap !important;
  }
  body.lg-portal-theme .od-hero {
    padding-top: 110px;
  }
  body.lg-portal-theme .od-hero-art::before {
    height: 96px;
  }
  body.lg-portal-theme .topbar {
    padding: 18px 20px 4px !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }
  body.lg-portal-theme .portal-section {
    padding: 12px 12px 60px !important;
  }
  .od-hero {
    padding: 56px 20px 0;
    min-height: 560px;
  }
  .od-hero-sub {
    font-size: 13.5px;
  }
  .od-stats-band {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 16px;
    gap: 18px 0;
  }
  .od-stats-band .hero-stat:nth-child(2) {
    border-right: 0;
  }
  body.lg-portal-theme .key-scenarios-grid,
  body.lg-portal-theme .priority-platform-grid,
  body.lg-portal-theme .opendesign-grid-four {
    grid-template-columns: 1fr !important;
  }
  body.lg-portal-theme .closed-loop-track {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  body.lg-portal-theme .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .od-hero-window {
    margin-top: 36px;
  }
  .od-hero-window .portal-stage-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .od-hero {
    padding-top: 96px;
  }
  .od-hero-actions {
    flex-direction: column;
  }
  .od-btn {
    justify-content: center;
  }
  .od-stats-band {
    grid-template-columns: 1fr;
  }
  .od-stats-band .hero-stat {
    border-right: 0;
    border-bottom: 1px solid var(--od-line-soft);
    padding-bottom: 14px;
  }
  .od-stats-band .hero-stat:last-child {
    border-bottom: 0;
  }
  body.lg-portal-theme .footer-grid {
    grid-template-columns: 1fr;
  }
  body.lg-portal-theme .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   4. 暗色主题（html.dark）：浅色 / 深色 / 跟随系统三态共用一套 OpenDesign 语言
   ========================================================================== */
html:root.dark body.lg-portal-theme {
  --od-ink: #f4f4f4;
  --od-ink-soft: #e8e8e8;
  --od-paper: #0b0b0b;
  --od-bone: #161616;
  --od-cream: #1d1a15;
  --od-muted: #a3a3a3;
  --od-faint: #8a8a8a;
  --od-line: rgba(255, 255, 255, 0.14);
  --od-line-soft: rgba(255, 255, 255, 0.09);
  --od-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 40px -12px rgba(0, 0, 0, 0.7);
  --od-shadow-float: 0 24px 80px -24px rgba(0, 0, 0, 0.85);
  color-scheme: dark;
}

/* 导航：统一深色玻璃 */
html:root.dark body.lg-portal-theme .sidebar.od-nav-glass,
html:root.dark body.lg-portal-theme .sidebar.od-nav-glass.is-condensed {
  background: rgba(16, 16, 16, 0.94) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, 0.14), inset 0 0 10px 4px rgba(255, 255, 255, 0.05), 0 6px 24px rgba(0, 0, 0, 0.45), 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

html:root.dark body.lg-portal-theme .sidebar.od-nav-glass::after {
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.94), rgba(11, 11, 11, 0));
}

html:root.dark body.lg-portal-theme .sidebar nav button,
html:root.dark body.lg-portal-theme .sidebar nav .lg-navlink {
  color: #f4f4f4 !important;
}

html:root.dark body.lg-portal-theme .sidebar nav button:hover,
html:root.dark body.lg-portal-theme .sidebar nav .lg-navlink:hover {
  background: #1b1b1b !important;
  color: #fff !important;
}

html:root.dark body.lg-portal-theme .sidebar nav button.active {
  background: #f4f4f4 !important;
  border-color: #f4f4f4 !important;
  color: #262626 !important;
}

html:root.dark body.lg-portal-theme .sidebar nav #navSocial::after {
  color: #262626 !important;
}

html:root.dark body.lg-portal-theme .brand-mark {
  background: #f4f4f4 !important;
  color: #262626 !important;
}

html:root.dark body.lg-portal-theme .brand-copy strong,
html:root.dark body.lg-portal-theme .brand-copy span {
  color: #f4f4f4 !important;
}

html:root.dark body.lg-portal-theme .theme-switch {
  background: #0f0f0f !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html:root.dark body.lg-portal-theme .theme-switch button {
  color: #a3a3a3 !important;
}

html:root.dark body.lg-portal-theme .theme-switch button.active {
  background: #f4f4f4 !important;
  color: #262626 !important;
}

html:root.dark body.lg-portal-theme .gov-network-pill {
  background: #0f0f0f !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f4f4f4 !important;
}

/* 顶部工具条 */
html:root.dark body.lg-portal-theme .arch-badge-btn,
html:root.dark body.lg-portal-theme .aux-toggle-btn {
  background: #0f0f0f !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f4f4f4 !important;
}

html:root.dark body.lg-portal-theme .status-pill {
  background: #f4f4f4 !important;
  color: #262626 !important;
}

html:root.dark body.lg-portal-theme .role-select-box {
  background: #0f0f0f !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html:root.dark body.lg-portal-theme .role-select-box select,
html:root.dark body.lg-portal-theme .role-select-box label {
  color: #f4f4f4 !important;
}

/* 指标与卡片 */
html:root.dark body.lg-portal-theme .od-stats-band,
html:root.dark body.lg-portal-theme .od-stats-band .hero-stat {
  background: #111 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html:root.dark body.lg-portal-theme .key-scenario-card {
  background: #111 !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}

html:root.dark body.lg-portal-theme .key-scenario-card .tool-code {
  color: #3b3b3b !important;
  -webkit-text-fill-color: #3b3b3b !important;
}

html:root.dark body.lg-portal-theme .priority-platforms-section {
  background: #0f0f0f !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html:root.dark body.lg-portal-theme .priority-platform-card {
  background: #111 !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}

html:root.dark body.lg-portal-theme .priority-platform-card.is-lead {
  background: #161616 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html:root.dark body.lg-portal-theme .priority-platform-card .tool-code {
  color: #3b3b3b !important;
  -webkit-text-fill-color: #3b3b3b !important;
}

html:root.dark body.lg-portal-theme .closed-loop-section {
  background: #0f0f0f !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html:root.dark body.lg-portal-theme .closed-loop-step {
  background: #151515 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html:root.dark body.lg-portal-theme .opendesign-cap-card {
  background: #141414 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html:root.dark body.lg-portal-theme .opendesign-cap-card:hover {
  background: #1a1a1a !important;
}

html:root.dark body.lg-portal-theme .opendesign-dock {
  background: #111 !important;
}

/* 悬浮产品窗口 */
html:root.dark body.lg-portal-theme .od-hero-window.hero-media {
  background: #111 !important;
}

html:root.dark body.lg-portal-theme .od-window-chrome {
  background: #151515 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html:root.dark body.lg-portal-theme .od-url {
  background: #0f0f0f !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #a3a3a3 !important;
}

html:root.dark body.lg-portal-theme .od-dots i {
  background: #3b3b3b !important;
}

html:root.dark body.lg-portal-theme .od-hero-window .media-panel {
  background: #111 !important;
}

html:root.dark body.lg-portal-theme .od-hero-window .portal-stage-card {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
}

html:root.dark body.lg-portal-theme .od-hero-window .portal-stage-card.active {
  background: #20231d !important;
  border-color: var(--od-lime) !important;
}

html:root.dark body.lg-portal-theme .od-hero-window .portal-stage-card.active strong,
html:root.dark body.lg-portal-theme .od-hero-window .portal-stage-card.active span,
html:root.dark body.lg-portal-theme .od-hero-window .portal-stage-card.active .stage-sub-status {
  color: var(--od-ink) !important;
}

html:root.dark body.lg-portal-theme .od-hero-window .portal-stage-card.active .stage-card-badge {
  background: var(--od-lime) !important;
  color: #262626 !important;
}

html:root.dark body.lg-portal-theme .od-hero-window .portal-stage-actions .portal-btn {
  background: #f4f4f4 !important;
  border-color: #f4f4f4 !important;
  color: #262626 !important;
}

/* 宣言与按钮 */
html:root.dark body.lg-portal-theme .od-statement h2 {
  color: #383838 !important;
}

html:root.dark body.lg-portal-theme .od-statement h2 strong {
  color: #f4f4f4 !important;
}

html:root.dark body.lg-portal-theme .portal-btn {
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #f4f4f4 !important;
}

html:root.dark body.lg-portal-theme .portal-btn:hover {
  background: #f4f4f4 !important;
  border-color: #f4f4f4 !important;
  color: #262626 !important;
}

html:root.dark body.lg-portal-theme .portal-btn-green,
html:root.dark body.lg-portal-theme .portal-btn-dark {
  background: #f4f4f4 !important;
  border-color: #f4f4f4 !important;
  color: #262626 !important;
}

html:root.dark body.lg-portal-theme .portal-btn-green:hover,
html:root.dark body.lg-portal-theme .portal-btn-dark:hover {
  background: #fff !important;
  color: #262626 !important;
}

html:root.dark body.lg-portal-theme .od-btn-dark {
  background: #f4f4f4 !important;
  color: #262626 !important;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.8) !important;
}

html:root.dark body.lg-portal-theme .od-btn-dark .od-btn-dot {
  background: var(--od-lime) !important;
  color: #262626 !important;
}

html:root.dark body.lg-portal-theme .od-btn-glass {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  color: #262626 !important;
}

html:root.dark body.lg-portal-theme .od-btn-plain {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* 页脚 */
html:root.dark body.lg-portal-theme .portal-footer {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

html:root.dark body.lg-portal-theme .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  color: #8a8a8a !important;
}

html:root.dark body.lg-portal-theme .safe-badge,
html:root.dark body.lg-portal-theme .net-badge {
  background: #151515 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e8e8e8 !important;
}

/* 其余页面（社会门户 / 业务系统 / 服务中台 / 验真 / 试运行） */
html:root.dark body.od-page {
  --green: #f2f2f2;
  --green-dark: #f2f2f2;
  --green-2: #f2f2f2;
  --p: #f2f2f2;
  --p-hover: #ffffff;
  --p-light: rgba(255, 255, 255, 0.08);
  --p2: #f2f2f2;
  --tl-brand-500: #f2f2f2;
  --tl-brand-600: #f2f2f2;
  --tl-brand-700: #f2f2f2;
  --tl-color-success: #f2f2f2;
  --bg: #0b0b0b;
  --bg-canvas: #0b0b0b;
  --soft: #141414;
  --rice: #0b0b0b;
  --card: #121212;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f2f2f2;
  --ink: #f2f2f2;
  --muted: #9c9c9c;
  --tl-bg-canvas: #0b0b0b;
  --tl-bg-surface: #121212;
  --tl-bg-subtle: #151515;
  --tl-text-primary: #f2f2f2;
  --tl-text-secondary: #b3b3b3;
  --tl-text-muted: #8a8a8a;
  --tl-border-subtle: rgba(255, 255, 255, 0.1);
  --tl-border-medium: rgba(255, 255, 255, 0.16);
  color-scheme: dark;
  background: #0b0b0b !important;
  color: #f2f2f2 !important;
}

html:root.dark body.od-page .site-header,
html:root.dark body.od-page .pilot-topbar,
html:root.dark body.od-page .app-bar {
  background: rgba(16, 16, 16, 0.92) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html:root.dark body.od-page .site-header nav a {
  color: #c9c9c9 !important;
}

html:root.dark body.od-page .site-header nav a.active {
  background: #f2f2f2 !important;
  color: #262626 !important;
}

html:root.dark body.od-page .site-header .brand span,
html:root.dark body.od-page .site-header .brand > span {
  background: #f2f2f2 !important;
  color: #262626 !important;
  -webkit-text-fill-color: #262626 !important;
}

html:root.dark body.od-page .btn.primary,
html:root.dark body.od-platform .login-panel .btn.primary,
html:root.dark body.od-service .btn.primary,
html:root.dark body.od-service .quick-search button {
  background: #f2f2f2 !important;
  border-color: #f2f2f2 !important;
  color: #262626 !important;
}

html:root.dark body.od-platform .login-copy {
  background: #111 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   5. 工作台内页统一皮肤（时空一张图 / 专题 / 社会化 / 综合工作台）
   ========================================================================== */
body.lg-portal-theme .section:not(#portal) {
  color: var(--od-ink) !important;
}

body.lg-portal-theme .section:not(#portal) .panel,
body.lg-portal-theme .section:not(#portal) .topics-panel,
body.lg-portal-theme .section:not(#portal) .admin-hero,
body.lg-portal-theme .section:not(#portal) .table-panel {
  background: var(--od-paper) !important;
  border: 1px solid var(--od-line-soft) !important;
  border-radius: 22px !important;
  box-shadow: none !important;
}

body.lg-portal-theme .section:not(#portal) .panel-header h2,
body.lg-portal-theme .section:not(#portal) .panel-header h3,
body.lg-portal-theme .section:not(#portal) h1,
body.lg-portal-theme .section:not(#portal) h2,
body.lg-portal-theme .section:not(#portal) h3 {
  font-family: var(--od-font-display) !important;
  color: var(--od-ink) !important;
  letter-spacing: -0.02em !important;
}

body.lg-portal-theme .section:not(#portal) .muted,
body.lg-portal-theme .section:not(#portal) .panel-subtitle,
body.lg-portal-theme .section:not(#portal) p {
  color: var(--od-muted) !important;
}

body.lg-portal-theme .section:not(#portal) .btn {
  border-radius: 999px !important;
  border: 1px solid var(--od-line) !important;
  background: transparent !important;
  color: var(--od-ink) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.lg-portal-theme .section:not(#portal) .btn.primary {
  background: var(--od-ink) !important;
  border-color: var(--od-ink) !important;
  color: var(--od-paper) !important;
}

body.lg-portal-theme .section:not(#portal) input:not([type="checkbox"]):not([type="radio"]),
body.lg-portal-theme .section:not(#portal) select,
body.lg-portal-theme .section:not(#portal) textarea {
  background: var(--od-paper) !important;
  border: 1px solid var(--od-line) !important;
  border-radius: 12px !important;
  color: var(--od-ink) !important;
  box-shadow: none !important;
}

body.lg-portal-theme .section:not(#portal) th {
  background: transparent !important;
  color: var(--od-faint) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--od-line) !important;
}

body.lg-portal-theme .section:not(#portal) td {
  background: transparent !important;
  color: var(--od-ink) !important;
  border-bottom: 1px solid var(--od-line-soft) !important;
}

body.lg-portal-theme .section:not(#portal) .admin-tab {
  border-radius: 999px !important;
  border: 1px solid var(--od-line) !important;
  background: transparent !important;
  color: var(--od-muted) !important;
}

body.lg-portal-theme .section:not(#portal) .admin-tab.active {
  background: var(--od-ink) !important;
  color: var(--od-paper) !important;
  border-color: var(--od-ink) !important;
}

body.lg-portal-theme .section:not(#portal) .admin-pill,
body.lg-portal-theme .section:not(#portal) .tag,
body.lg-portal-theme .section:not(#portal) .badge {
  border-radius: 999px !important;
  background: var(--od-bone) !important;
  border: 1px solid var(--od-line-soft) !important;
  color: var(--od-ink) !important;
}

/* GIS 悬浮控件 */
body.lg-portal-theme .section:not(#portal) .gis-county-hud,
body.lg-portal-theme .section:not(#portal) .gis-tools-island {
  background: var(--od-paper) !important;
  border: 1px solid var(--od-line) !important;
  border-radius: 999px !important;
  box-shadow: 0 16px 40px -28px rgba(10, 10, 10, 0.4) !important;
}

body.lg-portal-theme .section:not(#portal) .county-pill {
  border-radius: 999px !important;
  color: var(--od-ink) !important;
}

body.lg-portal-theme .section:not(#portal) .county-pill.active {
  background: var(--od-ink) !important;
  color: var(--od-paper) !important;
}

body.lg-portal-theme .section:not(#portal) .gis-tool-btn {
  border-radius: 50% !important;
}

/* 暗色下的 GIS 底图与控件 */
html:root.dark body.lg-portal-theme .section:not(#portal) .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9);
}

html:root.dark body.lg-portal-theme .section:not(#portal) .gis-county-hud,
html:root.dark body.lg-portal-theme .section:not(#portal) .gis-tools-island {
  background: #111 !important;
}

/* ==========================================================================
   6. 版式基线：单一内容栏、统一间距与字号（对齐 OpenDesign 官网节奏）
   ========================================================================== */
:root {
  --od-container: 1240px;
  --od-gutter: clamp(20px, 4vw, 40px);
  --od-section-gap: 96px;
  --od-card-pad: 32px;
}

body.lg-portal-theme .portal-section {
  max-width: calc(var(--od-container) + var(--od-gutter) * 2) !important;
  padding: 0 var(--od-gutter) 100px !important;
}

body.lg-portal-theme .od-stats-band,
body.lg-portal-theme .od-statement,
body.lg-portal-theme .key-scenarios-section,
body.lg-portal-theme .closed-loop-section,
body.lg-portal-theme .priority-platforms-section,
body.lg-portal-theme .opendesign-capabilities-section,
body.lg-portal-theme .opendesign-dock-wrap {
  width: 100% !important;
  max-width: var(--od-container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.lg-portal-theme .key-scenarios-section,
body.lg-portal-theme .closed-loop-section,
body.lg-portal-theme .priority-platforms-section,
body.lg-portal-theme .opendesign-capabilities-section,
body.lg-portal-theme .opendesign-dock-wrap {
  margin-top: var(--od-section-gap) !important;
  margin-bottom: 0 !important;
}

body.lg-portal-theme .od-statement {
  margin-top: var(--od-section-gap) !important;
  margin-bottom: 0 !important;
}

body.lg-portal-theme .section-head {
  margin-bottom: 32px !important;
}

body.lg-portal-theme .section-title {
  font-size: clamp(28px, 2.8vw, 40px) !important;
  line-height: 1.12 !important;
}

body.lg-portal-theme .section-desc {
  max-width: 760px !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
}

body.lg-portal-theme .portal-label {
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
}

body.lg-portal-theme .key-scenarios-grid,
body.lg-portal-theme .priority-platform-grid,
body.lg-portal-theme .opendesign-grid-four {
  gap: 20px !important;
}

body.lg-portal-theme .key-scenario-card,
body.lg-portal-theme .priority-platform-card,
body.lg-portal-theme .opendesign-cap-card {
  padding: var(--od-card-pad) !important;
}

body.lg-portal-theme .closed-loop-track {
  gap: 12px !important;
}

body.lg-portal-theme .portal-footer .footer-inner {
  max-width: var(--od-container) !important;
  padding: 0 !important;
}

body.lg-portal-theme .portal-footer {
  padding-left: var(--od-gutter) !important;
  padding-right: var(--od-gutter) !important;
}

/* 其他页面统一页边距与区块节奏 */
body.od-page main {
  padding-left: var(--od-gutter) !important;
  padding-right: var(--od-gutter) !important;
}

body.od-page .site-header,
body.od-page .pilot-topbar,
body.od-page .app-bar {
  padding-left: var(--od-gutter) !important;
  padding-right: var(--od-gutter) !important;
}

/* 导航内容与页面内容栏左右对齐 */
body.lg-portal-theme .sidebar {
  padding-left: max(var(--od-gutter), calc((100vw - var(--od-container)) / 2)) !important;
  padding-right: max(var(--od-gutter), calc((100vw - var(--od-container)) / 2)) !important;
}

@media (max-width: 900px) {
  body.lg-portal-theme .sidebar {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ==========================================================================
   7. 功能页面统一皮肤（业务系统工作区 / 农事服务中台 / 各控制台）
   ========================================================================== */

/* 业务系统：应用外壳与侧栏 */
body.od-platform .app-shell {
  background: var(--bg) !important;
}

body.od-platform .app-shell .sidebar {
  background: var(--card) !important;
  border-right: 1px solid var(--line) !important;
  color: var(--text) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.od-platform .app-shell .sidebar-title {
  border-bottom-color: var(--line) !important;
}

body.od-platform .app-shell .sidebar-title::before {
  background: var(--ink) !important;
  color: var(--bg) !important;
  border-radius: 10px !important;
}

body.od-platform .module-nav button {
  border-radius: 999px !important;
  color: var(--muted) !important;
}

body.od-platform .module-nav button:hover {
  background: var(--soft) !important;
  color: var(--text) !important;
}

body.od-platform .module-nav button.active,
body.od-platform .app-shell .module-nav button.active,
body.od-platform .app-shell .module-nav button.active:hover,
body.od-platform .app-shell .module-nav [data-module].active {
  background: var(--ink) !important;
  background-image: none !important;
  color: var(--bg) !important;
}

body.od-platform .system-topbar > div:first-child,
body.od-platform .system-topbar > div:first-child .breadcrumb,
body.od-platform .system-topbar > div:first-child .breadcrumb * {
  background: transparent !important;
  color: var(--ink) !important;
}

body.od-platform .system-topbar .user-badge,
body.od-platform .system-topbar .user-badge * {
  background: transparent !important;
  color: var(--ink) !important;
}

body.od-platform .app-shell .module-nav button.active span,
body.od-platform .app-shell .module-nav button.active strong,
body.od-platform .app-shell .module-nav button.active em {
  color: var(--bg) !important;
}

body.od-platform .system-topbar .breadcrumb {
  background: var(--bone) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  padding: 5px 12px !important;
  color: var(--ink) !important;
}

body.od-platform .system-topbar .user-badge,
body.od-platform .system-topbar .user-badge select,
body.od-platform .system-topbar .user-badge button {
  background: transparent !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  color: var(--ink) !important;
}

body.od-platform .system-topbar .user-badge span,
body.od-platform .system-topbar .user-badge strong,
body.od-platform .system-topbar .user-badge em {
  color: var(--ink) !important;
}

body.od-platform #activeModuleCode,
body.od-platform .workspace-top > div > span {
  color: var(--muted) !important;
  background: transparent !important;
}

body.od-platform .module-nav button.active span,
body.od-platform .module-nav button.active strong,
body.od-platform .module-nav button.active em {
  color: currentColor !important;
}

body.od-platform .sidebar-footer {
  border-top-color: var(--line) !important;
}

/* 业务系统：顶部工作条与内容 */
body.od-platform .system-topbar {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

body.od-platform .topbar-nav-pill {
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: transparent !important;
  color: var(--text) !important;
}

body.od-platform .topbar-nav-pill:hover {
  background: var(--soft) !important;
}

body.od-platform .workspace {
  background: transparent !important;
}

body.od-platform .workspace-top h3 {
  font-family: var(--od-font-display) !important;
  letter-spacing: -0.02em !important;
}

body.od-platform .ops-quickbar {
  border-radius: 16px !important;
}

body.od-platform .terminal-tabs button,
body.od-platform .terminal-tabs > span {
  border-radius: 999px !important;
}

body.od-platform .module-panel,
body.od-platform .module-content .panel,
body.od-platform .module-content .card {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 22px !important;
  box-shadow: none !important;
}

body.od-platform .stat-grid article {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

body.od-platform .table-wrap {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

body.od-platform .table-wrap th {
  color: var(--muted) !important;
  font-size: 11px !important;
  letter-spacing: 0.06em;
}

body.od-platform .table-wrap td {
  border-bottom-color: var(--line) !important;
}

/* 业务系统：状态标签只统一形状，保留语义色 */
body.od-platform .tag,
body.od-platform .badge {
  border-radius: 999px !important;
}

/* 农事服务中台 */
body.od-service .section-head h2 {
  font-family: var(--od-font-display) !important;
  letter-spacing: -0.02em !important;
}

body.od-service .service-tabs button {
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: transparent !important;
  color: var(--muted) !important;
}

body.od-service .service-tabs button.active {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--bg) !important;
}

body.od-service .service-grid > *,
body.od-service .lane-grid > *,
body.od-service .role-grid article {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

body.od-service .dispatch-list article {
  border-radius: 16px !important;
}

body.od-service .policy-panel {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  box-shadow: none !important;
}

body.od-service .notice-list > * {
  border-radius: 16px !important;
}

html:root.dark body.od-service .hero-copy {
  background: linear-gradient(180deg, #121212, #0e0e0e) !important;
}

html:root.dark body.od-service .hero-copy h1 {
  color: #f4f4f4 !important;
}

html:root.dark body.od-service .hero-copy p {
  color: #a1a1a1 !important;
}

html:root.dark body.od-service .service-status-strip,
html:root.dark body.od-service .quick-search {
  background: #141414 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html:root.dark body.od-service .service-status-strip span {
  background: #161616 !important;
  color: #a1a1a1 !important;
}

html:root.dark body.od-service .service-status-strip b {
  color: #f4f4f4 !important;
}

html:root.dark body.od-service .service-status-strip span {
  color: #a1a1a1 !important;
}

/* 暗色下所有次级按钮 */
html:root.dark body.od-page .btn:not(.primary) {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #f4f4f4 !important;
}

/* 各控制台通用卡片 */
body.od-trace .card,
body.od-pilot .card,
body.od-sign .card {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

/* ==========================================================================
   8. 功能页版心对齐：统一到首页同一条 1240 内容栏
   ========================================================================== */
body.od-page main {
  max-width: calc(var(--od-container) + var(--od-gutter) * 2) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--od-gutter) !important;
  padding-right: var(--od-gutter) !important;
}

/* 页头品牌与正文左边缘对齐 */
body.od-page .site-header,
body.od-page .pilot-topbar,
body.od-page .trace-navbar {
  padding-left: max(var(--od-gutter), calc((100vw - var(--od-container)) / 2)) !important;
  padding-right: max(var(--od-gutter), calc((100vw - var(--od-container)) / 2)) !important;
}

body.od-page .site-header nav,
body.od-page .pilot-topbar nav,
body.od-page .trace-navbar nav {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none;
}

body.od-page .site-header > .brand,
body.od-page .pilot-topbar > .pilot-brand,
body.od-page .trace-navbar > .trace-brand {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

body.od-page .site-header > nav {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 900px) {
  body.od-page .site-header {
    height: auto !important;
    min-height: 64px !important;
    flex-wrap: wrap !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  body.od-page .site-header > nav {
    width: 100% !important;
    padding-top: 6px;
  }
  body.od-page .site-header .theme-switch {
    flex: 0 0 auto;
  }
}

body.od-page .site-header nav::-webkit-scrollbar,
body.od-page .pilot-topbar nav::-webkit-scrollbar,
body.od-page .trace-navbar nav::-webkit-scrollbar {
  display: none;
}

/* 各页面的顶部留白与底部留白统一 */
body.od-social main,
body.od-service main {
  padding-top: 32px !important;
  padding-bottom: 80px !important;
}

/* 业务系统是应用型界面，保留全宽工作区，只对齐页头 */
body.od-platform main {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 试运行控制台 */
body.od-pilot .pilot-shell {
  width: min(var(--od-container), calc(100% - var(--od-gutter) * 2)) !important;
  max-width: none !important;
  padding-top: 40px !important;
  padding-bottom: 80px !important;
}

/* 验真中心 */
body.od-trace .trace-main {
  max-width: calc(var(--od-container) + var(--od-gutter) * 2) !important;
  width: 100% !important;
  padding-left: var(--od-gutter) !important;
  padding-right: var(--od-gutter) !important;
}

/* ==========================================================================
   9. 全平台统一页头：同一高度、同一玻璃、同一品牌与导航样式
   ========================================================================== */
body.od-page {
  --header-height: var(--od-nav-height);
}

body.od-page .site-header,
body.od-page .pilot-topbar,
body.od-page .trace-navbar {
  height: var(--od-nav-height) !important;
  min-height: var(--od-nav-height) !important;
  max-height: none !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
}

html:root.dark body.od-page .site-header,
html:root.dark body.od-page .pilot-topbar,
html:root.dark body.od-page .trace-navbar {
  background: rgba(16, 16, 16, 0.92) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.od-page .site-header nav a,
body.od-page .pilot-topbar .pilot-nav a,
body.od-page .trace-navbar nav a {
  color: var(--muted) !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
}

body.od-page .site-header nav a:hover,
body.od-page .pilot-topbar .pilot-nav a:hover,
body.od-page .trace-navbar nav a:hover {
  background: var(--soft) !important;
  color: var(--text) !important;
}

body.od-page .site-header nav a.active,
body.od-page .pilot-topbar .pilot-nav a.active,
body.od-page .trace-navbar nav a.active {
  background: var(--ink) !important;
  color: var(--bg) !important;
}

body.od-page .site-header .brand strong,
body.od-page .pilot-topbar .brand-copy strong,
body.od-page .trace-navbar .trace-brand strong {
  font-size: 14px !important;
  color: var(--text) !important;
}

body.od-page .site-header .brand-mark,
body.od-page .pilot-topbar .brand-mark,
body.od-page .trace-navbar .brand-badge {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: var(--ink) !important;
  color: var(--bg) !important;
}

body.od-page .system-status-pill,
body.od-page .pilot-topbar .topbar-status,
body.od-page .trace-navbar .trace-status {
  background: var(--soft) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  color: var(--text) !important;
}

/* 业务系统工作区留白与模块内容对齐 */
body.od-platform .workspace {
  padding: 0 32px 72px !important;
}

body.od-platform .system-topbar {
  margin: 0 -32px 20px !important;
  padding: 0 32px !important;
  height: var(--od-nav-height) !important;
  min-height: var(--od-nav-height) !important;
  max-height: none !important;
}

body.od-platform .module-content,
body.od-platform .module-panel {
  max-width: 1240px;
}

/* ==========================================================================
   10. 子平台配色归一：试运行控制台 / 验真中心 改用平台墨黑+青柠
   ========================================================================== */
body.od-pilot {
  --paper: #fdfff7;
  --paper-strong: #ffffff;
  --ink: #262626;
  --ink-soft: #434343;
  --pine: #262626;
  --jade: #595959;
  --jade-pale: #fafafa;
  --cinnabar: #262626;
  --cinnabar-pale: #fafafa;
  --ochre: #262626;
  --ochre-pale: #fafafa;
  --line: #d9d9d9;
  --line-strong: #bfbfbf;
  --shadow: 0 30px 60px -30px rgba(38, 38, 38, 0.16);
  background: #fdfff7 !important;
}

body.od-trace {
  --brand-green: #262626;
  --brand-green-dark: #262626;
  --brand-green-light: #f5f5f5;
  --bg-page: #fdfff7;
  background: #fdfff7 !important;
}

html:root.dark body.od-pilot {
  --paper: #0d0f0b;
  --paper-strong: #171915;
  --ink: #f2f4ef;
  --ink-soft: #d7dbd3;
  --pine: #f2f4ef;
  --jade: #a5afa1;
  --jade-pale: #1d201c;
  --cinnabar: #f2f4ef;
  --cinnabar-pale: #1d201c;
  --ochre: #f2f4ef;
  --ochre-pale: #1d201c;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
  background: #0d0f0b !important;
}

html:root.dark body.od-trace {
  --brand-green: #f2f4ef;
  --brand-green-dark: #d7dbd3;
  --brand-green-light: rgba(255, 255, 255, 0.08);
  --bg-page: #0d0f0b;
  background: #0d0f0b !important;
}

/* ==========================================================================
   11. 时空一张图：左侧图层坞 OpenDesign 化
   ========================================================================== */
#overview .overview-left-panel {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #f0f0f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 60px -30px rgba(10, 10, 10, 0.35) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  backdrop-filter: blur(18px) !important;
}

html:root.dark body.lg-portal-theme #overview .overview-left-panel {
  background: rgba(16, 16, 16, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

#overview .gis-dock-title {
  font-family: var(--od-font-display) !important;
  font-size: 18px !important;
  letter-spacing: -0.02em !important;
  color: var(--od-ink) !important;
}

#overview .gis-dock-dot {
  background: var(--od-lime-deep) !important;
  box-shadow: 0 0 0 3px rgba(184, 255, 61, 0.22) !important;
}

#overview .gis-dock-count {
  background: var(--od-bone) !important;
  color: var(--od-muted) !important;
  border-radius: 999px !important;
  padding: 3px 9px !important;
}

#overview .gis-layer-item {
  padding: 10px 12px !important;
  border-radius: 12px !important;
}

#overview .gis-layer-item:hover,
#overview .gis-layer-item:has(input:checked) {
  background: var(--od-bone) !important;
}

#overview .gis-swatch {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: rgba(10, 10, 10, 0.28) !important;
}

#overview .gis-layer-item:has(input:checked) .gis-swatch {
  background: var(--od-lime-deep) !important;
  box-shadow: 0 0 0 3px rgba(184, 255, 61, 0.2) !important;
}

#overview .layer-name {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--od-ink) !important;
}

#overview .gis-layer-badge-conflict,
#overview .gis-layer-badge-info {
  background: var(--od-bone) !important;
  color: var(--od-ink) !important;
  border-radius: 999px !important;
  padding: 1px 8px !important;
}

#overview .gis-switch-slider {
  background: rgba(10, 10, 10, 0.14) !important;
}

#overview input:checked + .gis-switch-slider {
  background: #262626 !important;
}

html:root.dark body.lg-portal-theme #overview .gis-switch-slider {
  background: rgba(255, 255, 255, 0.18) !important;
}

html:root.dark body.lg-portal-theme #overview input:checked + .gis-switch-slider {
  background: #f4f4f4 !important;
}

#overview .gis-county-hud {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #f0f0f0 !important;
  border-radius: 999px !important;
}

html:root.dark body.lg-portal-theme #overview .gis-county-hud {
  background: rgba(16, 16, 16, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

#overview .county-pill.active {
  background: var(--od-ink) !important;
  color: var(--od-paper) !important;
}

/* ==========================================================================
   12. 综合工作台（#admin）对齐与配色收口
   ========================================================================== */
body.lg-portal-theme #admin {
  max-width: var(--od-container) !important;
  margin: 0 auto !important;
  padding: 24px 0 80px !important;
}

#admin .admin-hero {
  background: var(--od-paper) !important;
  border: 1px solid var(--od-line-soft) !important;
  border-radius: 24px !important;
  box-shadow: none !important;
  padding: 28px !important;
}

#admin .admin-kpi-item {
  background: var(--od-bone) !important;
  border: 1px solid var(--od-line-soft) !important;
  border-radius: 18px !important;
}

#admin .kpi-num,
#admin .kpi-num.ok,
#admin .kpi-num.blue,
#admin .kpi-num.purple {
  color: var(--od-ink) !important;
  font-family: var(--od-font-display) !important;
  letter-spacing: -0.02em !important;
}

#admin .kpi-lbl {
  color: var(--od-muted) !important;
}

#admin .role-filter-btn.active {
  background: var(--od-ink) !important;
  border-color: var(--od-ink) !important;
  color: var(--od-paper) !important;
}

#admin .admin-card {
  background: var(--od-paper) !important;
  border: 1px solid var(--od-line-soft) !important;
  border-radius: 22px !important;
  box-shadow: none !important;
}

#admin .admin-table th {
  color: var(--od-faint) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
}

#admin .admin-table td {
  border-bottom-color: var(--od-line-soft) !important;
}

/* ==========================================================================
   13. OpenDesign canonical alignment layer (2026-10-31)
   This layer is intentionally last: typography, surface, navigation, motion,
   and dark-theme values follow open-design.ai rather than the earlier prototype.
   ========================================================================== */
:root {
  --od-page: #fdfff7;
  --od-paper: #fafafa;
  --od-surface: #ffffff;
  --od-ink: #262626;
  --od-ink-soft: #434343;
  --od-muted: #595959;
  --od-faint: #8c8c8c;
  --od-line: #d9d9d9;
  --od-line-hover: #bfbfbf;
  --od-line-soft: #f0f0f0;
  --od-line-faint: #f5f5f5;
  --od-lime: #63fe13;
  --od-lime-soft: #83ff3b;
  --od-lime-deep: #218c00;
  --od-lime-tint: #d8ffb5;
  --od-primary-bg: #262626;
  --od-primary-fg: #ffffff;
  --od-accent-fg: #10140d;
  --od-container: 1360px;
  --od-gutter: clamp(16px, 4vw, 64px);
  --od-section-gap: clamp(72px, 8vw, 130px);
}

html {
  background: var(--od-page) !important;
  color: var(--od-ink);
  font-family: var(--od-font-sans) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lg-portal-theme,
body.od-page {
  background: var(--od-page) !important;
  color: var(--od-ink) !important;
  font-family: var(--od-font-sans) !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

body.lg-portal-theme main,
body.od-page main,
body.lg-portal-theme section,
body.od-page section {
  background-color: transparent;
}

body.lg-portal-theme .portal-section {
  max-width: calc(var(--od-container) + var(--od-gutter) * 2) !important;
  padding-inline: var(--od-gutter) !important;
  padding-bottom: var(--od-section-gap) !important;
}

body.od-page .wrap,
body.od-page .content,
body.od-page .page-wrap {
  max-width: var(--od-container) !important;
  padding-inline: var(--od-gutter) !important;
}

body.lg-portal-theme h1,
body.od-page:not(.lg-dash-theme) h1 {
  font-family: var(--od-font-display) !important;
  font-size: clamp(34px, 5.2vw, 54px) !important;
  line-height: 1.07 !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
  color: var(--od-ink) !important;
  text-wrap: balance;
}

body.lg-portal-theme h2,
body.od-page:not(.lg-dash-theme) h2 {
  font-family: var(--od-font-display) !important;
  font-size: clamp(27px, 3.6vw, 38px) !important;
  line-height: 1.17 !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  color: var(--od-ink) !important;
  text-wrap: balance;
}

body.lg-portal-theme h3,
body.od-page:not(.lg-dash-theme) h3 {
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 650 !important;
  letter-spacing: -0.014em !important;
  color: var(--od-ink) !important;
}

body.lg-portal-theme p,
body.od-page:not(.lg-dash-theme) p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--od-ink-soft);
}

.od-hero-sub,
.section-desc,
.portal-lead,
.hero-supporting-text {
  color: var(--od-muted) !important;
  font-size: clamp(16px, 1.35vw, 18px) !important;
  line-height: 1.65 !important;
  max-width: 68ch !important;
}

.portal-label,
.od-kicker,
.section-label,
.eyebrow {
  color: var(--od-muted) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  letter-spacing: 0.12em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

body.lg-portal-theme :is(a, button, .btn, .portal-btn, .panel, .card),
body.od-page :is(a, button, .btn, .panel, .card) {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: var(--od-duration-fast);
  transition-timing-function: var(--od-ease-standard);
}

body.lg-portal-theme a:not(.btn):not(.portal-btn):not(.brand):not(.db-nav-pill):not(.nav-login-pill),
body.od-page a:not(.btn):not(.portal-btn):not(.brand):not(.db-nav-pill):not(.nav-login-pill) {
  color: var(--od-lime-deep);
  text-decoration: none;
}

body.lg-portal-theme a:not(.btn):not(.portal-btn):hover,
body.od-page a:not(.btn):not(.portal-btn):hover {
  color: color-mix(in oklab, var(--od-lime-deep) 78%, var(--od-ink));
}

.site-header,
.pilot-topbar,
.trace-navbar,
.login-nav,
body.lg-portal-theme .sidebar {
  --od-nav-height: 54px;
  height: var(--od-nav-height) !important;
  min-height: var(--od-nav-height) !important;
  padding-inline: var(--od-gutter) !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border-bottom: 1px solid var(--od-line-faint) !important;
}

.site-header nav a,
.pilot-topbar nav a,
.trace-navbar nav a,
.login-nav .nav-link,
body.lg-portal-theme .sidebar nav button,
body.lg-portal-theme .sidebar nav .lg-navlink {
  min-height: 36px !important;
  padding: 8px 12px !important;
  border-radius: var(--od-pill) !important;
  color: var(--od-ink) !important;
  font-size: 14px !important;
  font-weight: 550 !important;
  letter-spacing: -0.01em;
}

.site-header nav a:hover,
.pilot-topbar nav a:hover,
.trace-navbar nav a:hover,
.login-nav .nav-link:hover,
body.lg-portal-theme .sidebar nav button:hover,
body.lg-portal-theme .sidebar nav .lg-navlink:hover {
  background: var(--od-paper-warm) !important;
  color: var(--od-ink) !important;
}

.site-header nav a.active,
.pilot-topbar nav a.active,
.trace-navbar nav a.active,
.login-nav .nav-link.active,
body.lg-portal-theme .sidebar nav button.active,
body.lg-portal-theme .sidebar nav .lg-navlink.active {
  background: var(--od-primary-bg) !important;
  border-color: transparent !important;
  color: var(--od-primary-fg) !important;
}

.btn,
.portal-btn,
.od-btn,
.submit,
.quick-search button,
.login-card button:not(.demo-chip),
.login-card .submit {
  min-height: 44px !important;
  padding: 12px 20px !important;
  border: 1px solid transparent !important;
  border-radius: var(--od-pill) !important;
  font-family: var(--od-font-sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.005em !important;
  transition: transform var(--od-duration-fast) var(--od-ease-standard),
              background-color var(--od-duration-fast) var(--od-ease-standard),
              color var(--od-duration-fast) var(--od-ease-standard),
              border-color var(--od-duration-fast) var(--od-ease-standard),
              box-shadow var(--od-duration-base) var(--od-ease-standard) !important;
}

.btn:hover:not(:disabled),
.portal-btn:hover:not(:disabled),
.od-btn:hover:not(:disabled),
.submit:hover:not(:disabled),
.od-pointer-active:hover {
  transform: translateY(-1px);
}

.btn:active:not(:disabled),
.portal-btn:active:not(:disabled),
.od-btn:active:not(:disabled),
.submit:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:not(.primary):not(.accent),
.portal-btn:not(.portal-btn-green):not(.portal-btn-dark),
.od-btn:not(.primary):not(.accent) {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink) !important;
  box-shadow: none !important;
}

.btn:not(.primary):not(.accent):hover,
.portal-btn:not(.portal-btn-green):not(.portal-btn-dark):hover {
  background: var(--od-paper) !important;
  border-color: var(--od-line-hover) !important;
}

.btn.primary,
.portal-btn-dark,
.od-btn.primary,
.submit,
.next-btn {
  background: var(--od-primary-bg) !important;
  border-color: transparent !important;
  color: var(--od-primary-fg) !important;
  box-shadow: 0 14px 26px -16px color-mix(in oklab, var(--od-ink) 42%, transparent) !important;
}

.btn.primary:hover,
.portal-btn-dark:hover,
.od-btn.primary:hover,
.submit:hover,
.next-btn:hover {
  background: color-mix(in oklab, var(--od-primary-bg) 86%, var(--od-surface)) !important;
}

.portal-btn-green,
.accent,
.btn.accent,
.od-btn.accent {
  background: var(--od-lime) !important;
  border-color: transparent !important;
  color: var(--od-accent-fg) !important;
  box-shadow: 0 14px 26px -16px color-mix(in oklab, var(--od-lime-deep) 42%, transparent) !important;
}

.card,
.panel,
.admin-card,
.od-hero-window,
.media-panel,
.portal-stage-card,
.key-scenario-card,
.closed-loop-step,
.priority-platform-card,
.opendesign-cap-card,
.dock-box,
.login-card {
  background: var(--od-surface) !important;
  border: 1px solid var(--od-line) !important;
  border-radius: var(--od-radius-lg) !important;
  box-shadow: var(--od-shadow-card) !important;
  overflow: hidden;
}

.card,
.panel {
  padding: 24px !important;
}

.priority-platform-card,
.key-scenario-card,
.opendesign-cap-card,
.media-panel {
  padding: 26px !important;
}

.card:hover,
.panel:hover,
.key-scenario-card:hover,
.priority-platform-card:hover,
.opendesign-cap-card:hover,
.portal-stage-card:hover {
  transform: translateY(-3px);
  border-color: var(--od-line-hover) !important;
  box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--od-ink) 22%, transparent) !important;
}

.closed-loop-step:hover {
  transform: translateY(-2px);
}

.section-head {
  max-width: 820px;
  margin-bottom: 36px !important;
}

input,
select,
textarea {
  min-height: 44px;
  border: 1px solid var(--od-line) !important;
  border-radius: var(--od-radius-md) !important;
  background: var(--od-surface) !important;
  color: var(--od-ink) !important;
  font: inherit !important;
  transition: border-color var(--od-duration-fast) var(--od-ease-standard),
              box-shadow var(--od-duration-fast) var(--od-ease-standard) !important;
}

input:focus,
select:focus,
textarea:focus,
.btn:focus-visible,
.portal-btn:focus-visible,
.od-btn:focus-visible,
a:focus-visible {
  outline: none;
  border-color: var(--od-line-hover) !important;
  box-shadow: 0 0 0 3px var(--od-lime-tint) !important;
}

label {
  color: var(--od-ink-soft) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.tag,
.badge,
.chip,
.status-pill,
.scenario-badge,
.cap-tag,
.priority-status-pill {
  border-radius: var(--od-pill) !important;
  border: 1px solid var(--od-line) !important;
  background: var(--od-surface) !important;
  color: var(--od-ink-soft) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 6px 10px !important;
}

/* OpenDesign 的进场只动 opacity / translate / scale 三个独立属性，
   把 transform 留给 hover 位移，因此 900ms 进场与 180ms 交互互不覆盖。 */
body.od-motion .od-reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 900ms var(--od-ease-metric) var(--reveal-delay, 0ms),
              translate 900ms var(--od-ease-metric) var(--reveal-delay, 0ms),
              scale 900ms var(--od-ease-metric) var(--reveal-delay, 0ms);
  will-change: opacity, translate;
}

body.od-motion .od-reveal[data-od-reveal="left"] { translate: -36px 0; }
body.od-motion .od-reveal[data-od-reveal="right"] { translate: 36px 0; }
body.od-motion .od-reveal[data-od-reveal="scale"] { scale: 0.965; }
body.od-motion .od-reveal[data-od-reveal="rise"] { translate: 0 22px; }
body.od-motion .od-reveal[data-od-reveal="rise-lg"] { translate: 0 52px; scale: 0.985; }

body.od-motion .od-reveal.od-revealed {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  will-change: auto;
}

/* OpenDesign keeps the brand green as a signal, not as a site-wide glow. */
.od-hero::before,
.od-hero::after,
.lg-aurora,
.lg-hero-aurora,
.cult-border-beam {
  opacity: 0.16 !important;
}

.topographic-flow-canvas {
  opacity: 0.24 !important;
}

.lg-glass-card,
.lg-liquid-panel,
.lg-pill,
.lg-hud-pill {
  background: color-mix(in oklab, var(--od-surface) 84%, transparent) !important;
  border-color: var(--od-line) !important;
  box-shadow: var(--od-shadow-card) !important;
  backdrop-filter: blur(20px) saturate(1.18) !important;
}

.portal-btn-green,
.pointer-toggle-pill {
  background: var(--od-lime) !important;
  border-color: transparent !important;
  color: var(--od-accent-fg) !important;
  box-shadow: none !important;
  transform: none !important;
}

.pointer-toggle-pill:hover {
  background: var(--od-lime-soft) !important;
  transform: translateY(-1px) !important;
}

html.dark {
  color-scheme: dark;
}

html.dark body.lg-portal-theme,
html.dark body.od-page {
  --od-page: #0d0f0b;
  --od-paper: #11120f;
  --od-surface: #171915;
  --od-ink: #f2f4ef;
  --od-ink-soft: #d7dbd3;
  --od-muted: #a5afa1;
  --od-faint: #788376;
  --od-line: #30332d;
  --od-line-hover: #42463f;
  --od-line-soft: #242723;
  --od-line-faint: #1d201c;
  --od-lime: #83ff3b;
  --od-lime-soft: #a9ff77;
  --od-lime-deep: #52d718;
  --od-lime-tint: rgba(99, 254, 19, 0.24);
  --od-primary-bg: #f2f4ef;
  --od-primary-fg: #11120f;
  --od-shadow-card: 0 30px 60px -30px rgba(0, 0, 0, 0.48);
  background: var(--od-page) !important;
  color: var(--od-ink) !important;
}

html.dark .site-header,
html.dark .pilot-topbar,
html.dark .trace-navbar,
html.dark .login-nav,
html.dark body.lg-portal-theme .sidebar {
  background: rgba(23, 25, 21, 0.82) !important;
  border-bottom-color: var(--od-line) !important;
}

html.dark .card,
html.dark .panel,
html.dark .admin-card,
html.dark .od-hero-window,
html.dark .priority-platform-card,
html.dark .key-scenario-card,
html.dark .opendesign-cap-card,
html.dark .closed-loop-step,
html.dark .login-card,
html.dark input,
html.dark select,
html.dark textarea,
html.dark .tag,
html.dark .badge,
html.dark .chip {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink) !important;
}

/* The 3D situation wall is a deliberately dark OpenDesign surface. */
body.lg-dash-theme {
  --od-page: #0d0f0b;
  --od-paper: #11120f;
  --od-surface: #171915;
  --od-ink: #f2f4ef;
  --od-ink-soft: #d7dbd3;
  --od-muted: #a5afa1;
  --od-faint: #788376;
  --od-line: #30332d;
  --od-line-hover: #42463f;
  --od-lime: #83ff3b;
  --od-lime-deep: #52d718;
  --db-bg: #0d0f0b !important;
  --db-bg-warm: #11120f !important;
  --db-hud-bg: rgba(23, 25, 21, 0.84) !important;
  --db-border-subtle: rgba(242, 244, 239, 0.13) !important;
  --db-border-hover: rgba(242, 244, 239, 0.25) !important;
  --db-border-active: #83ff3b !important;
  --brand-lime: #83ff3b !important;
  --brand-evergreen: #52d718 !important;
  --db-glow-lime: 0 0 18px rgba(131, 255, 59, 0.18) !important;
  background: var(--db-bg) !important;
  color: var(--od-ink) !important;
}

body.lg-dash-theme .db-nav-pills {
  gap: 6px !important;
}

body.lg-dash-theme .db-nav-pill {
  min-height: 32px !important;
  padding: 7px 11px !important;
  border: 1px solid var(--db-border-subtle) !important;
  border-radius: var(--od-pill) !important;
  background: rgba(242, 244, 239, 0.04) !important;
  color: var(--od-ink-soft) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  box-shadow: none !important;
  transition: transform var(--od-duration-fast) var(--od-ease-standard),
              background-color var(--od-duration-fast) var(--od-ease-standard) !important;
}

body.lg-dash-theme .db-nav-pill:hover {
  transform: translateY(-1px);
  background: rgba(242, 244, 239, 0.08) !important;
  color: #fff !important;
  box-shadow: none !important;
}

@media (max-width: 720px) {
  .site-header,
  .pilot-topbar,
  .trace-navbar,
  .login-nav,
  body.lg-portal-theme .sidebar {
    --od-nav-height: 60px;
    padding-inline: 16px !important;
  }

  body.lg-portal-theme h1,
  body.od-page:not(.lg-dash-theme) h1 {
    font-size: clamp(32px, 10vw, 42px) !important;
  }

  body.lg-portal-theme .portal-section,
  body.od-page .wrap,
  body.od-page .content,
  body.od-page .page-wrap {
    padding-inline: 16px !important;
  }

  .card,
  .panel,
  .priority-platform-card,
  .key-scenario-card,
  .opendesign-cap-card,
  .media-panel {
    padding: 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .od-reveal,
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    transition: none !important;
  }

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

/* ==========================================================================
   14. OpenDesign 首屏与节奏精修（2026-10-31 · 依据 open-design.ai 线上 shared.css 实测值）
   证据来源：--paper #fafafa / --bone #ffffff / --ink #262626 / --line #d9d9d9
            --coral #63fe13 / --coral-soft #83ff3b / --olive #218c00
            --nav-height 54px、.section padding-block clamp(56px,7vw,96px)、
            --gutter 64px、--radius 8px、.card padding 24px、
            .btn 药丸 min-height 44 / padding 14px 22px / font 14px、
            [data-reveal] 位移 28px + 900ms cubic-bezier(.22,1,.36,1) + 90ms 递进。
   本节把首页首屏从"蓝天麦田渐变 + 白字"改为 OpenDesign 的纸面浅色 + 墨黑标题。
   ========================================================================== */

:root {
  --od-gutter: clamp(18px, 4.5vw, 64px);
  --od-section-gap: clamp(56px, 7vw, 96px);
  --od-fs-h1: clamp(40px, 4.6vw, 64px);
  --od-fs-h2: clamp(30px, 3.2vw, 42px);
  --od-fs-h3: 20px;
  --od-fs-lead: 18px;
  --od-fs-meta: 13px;
  --od-shadow-card: 0 14px 26px -16px rgba(38, 38, 38, 0.42);
  --od-shadow-sheet: 0 30px 60px -30px rgba(38, 38, 38, 0.16);
  --od-tint: #d8ffb5;
}

/* ---------- 14.1 首屏：纸面浅色，取消蓝天麦田大幅渐变与压暗蒙版 ---------- */
body.lg-portal-theme .od-hero {
  background:
    radial-gradient(64% 44% at 12% 0%, rgba(99, 254, 19, 0.10) 0%, rgba(99, 254, 19, 0) 62%),
    radial-gradient(52% 40% at 88% 6%, rgba(216, 255, 181, 0.34) 0%, rgba(216, 255, 181, 0) 64%),
    linear-gradient(180deg, var(--od-page) 0%, #f7fbf1 58%, var(--od-paper) 100%) !important;
  border-bottom: 1px solid var(--od-line-soft);
  min-height: clamp(600px, 74vh, 780px);
  padding: 128px 32px 72px;
}

/* 麦田笔触与颗粒降到"几乎不可见"，只留纸感 */
body.lg-portal-theme .od-hero::before {
  opacity: 0.24 !important;
  background:
    repeating-linear-gradient(184deg, rgba(33, 140, 0, 0.05) 0 1px, rgba(0, 0, 0, 0) 1px 11px) !important;
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 72%, #000 100%) !important;
  mask-image: linear-gradient(180deg, transparent 30%, #000 72%, #000 100%) !important;
}

body.lg-portal-theme .od-hero::after {
  opacity: 0.16 !important;
}

/* 文案区的深蓝压暗蒙版直接移除：OpenDesign 不在浅色纸面上压暗块 */
body.lg-portal-theme .od-hero-inner::before {
  content: none !important;
}

body.lg-portal-theme .od-hero-art canvas,
body.lg-portal-theme .topographic-flow-canvas {
  opacity: 0.10 !important;
  mix-blend-mode: multiply;
}

body.lg-portal-theme .od-hero-art::before {
  background: linear-gradient(180deg, var(--od-page) 0%, rgba(253, 255, 247, 0) 100%) !important;
}

/* ---------- 14.2 首屏排版：墨黑大标题 + 青柠信号 ---------- */
body.lg-portal-theme .od-hero-inner {
  color: var(--od-ink);
}

body.lg-portal-theme .od-hero .od-hero-title,
body.lg-portal-theme .od-hero-title {
  color: var(--od-ink) !important;
  font-family: var(--od-font-display) !important;
  font-size: clamp(44px, 5vw, 78px) !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  text-shadow: none !important;
  margin: 22px 0 0 !important;
}

/* 标题里的强调词：OpenDesign 用 5px 青柠下划线，而不是绿字 */
body.lg-portal-theme .od-hero-title em,
body.lg-portal-theme .od-hero-title .od-accent-word {
  font-style: normal;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--od-lime);
  text-decoration-thickness: 5px;
  text-underline-offset: 8px;
}

body.lg-portal-theme .od-hero .od-hero-title span,
body.lg-portal-theme .od-hero-title > span {
  display: block;
  margin-top: 18px;
  font-size: var(--od-fs-meta) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: var(--od-lime-deep) !important;
}

body.lg-portal-theme .od-hero-sub {
  max-width: 62ch !important;
  margin: 20px auto 0 !important;
  font-size: var(--od-fs-lead) !important;
  line-height: 1.65 !important;
  color: var(--od-ink-soft) !important;
  text-shadow: none !important;
}

/* 顶部小标签：OpenDesign 的 label 语言（描边胶囊，非玻璃） */
body.lg-portal-theme .od-hero-chip {
  padding: 7px 14px !important;
  border: 1px solid var(--od-line) !important;
  border-radius: var(--od-pill) !important;
  background: var(--od-surface) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 3px 10px rgba(21, 20, 15, 0.04) !important;
  color: var(--od-ink) !important;
  font-size: var(--od-fs-meta) !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
}

body.lg-portal-theme .od-hero-chip i {
  background: var(--od-lime) !important;
  box-shadow: 0 0 0 3px rgba(99, 254, 19, 0.18) !important;
}

body.lg-portal-theme .od-hero-actions {
  margin-top: 32px !important;
  gap: 10px !important;
}

/* 五平台快捷入口条：OpenDesign .agent-logo-chip 语言 */
body.lg-portal-theme .od-hero-rail > * {
  min-height: 40px !important;
  padding: 8px 16px 8px 12px !important;
  border: 1px solid rgba(21, 20, 15, 0.09) !important;
  border-radius: var(--od-pill) !important;
  background: var(--od-surface) !important;
  box-shadow: 0 3px 10px rgba(21, 20, 15, 0.04) !important;
  color: var(--od-ink) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.lg-portal-theme .od-hero-rail > *:hover {
  transform: translateY(-2px) !important;
  border-color: var(--od-line-hover) !important;
  box-shadow: 0 8px 20px rgba(21, 20, 15, 0.08) !important;
  background: color-mix(in oklab, var(--od-tint) 40%, var(--od-surface)) !important;
}

body.lg-portal-theme .od-hero-rail b {
  color: var(--od-lime-deep) !important;
}

/* 悬浮产品窗口：白卡 + 1px 细线 + 单一柔和投影 */
body.lg-portal-theme .od-hero-window {
  background: var(--od-surface) !important;
  border: 1px solid var(--od-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--od-shadow-sheet) !important;
  color: var(--od-ink) !important;
}

/* ---------- 14.3 全站标题层级：800 字重 + 负字距 ---------- */
body.lg-portal-theme h1,
body.od-page:not(.lg-dash-theme) h1 {
  font-size: var(--od-fs-h1) !important;
  font-weight: 800 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.03em !important;
}

body.lg-portal-theme h2,
body.od-page:not(.lg-dash-theme) h2 {
  font-size: var(--od-fs-h2) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
}

html:root body.lg-portal-theme h3,
html:root body.od-page:not(.lg-dash-theme) h3 {
  font-size: var(--od-fs-h3) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.018em !important;
}

/* 深色叙事区（od-statement）改用墨白，不再使用米灰字 */
body.lg-portal-theme .od-statement h2,
body.lg-portal-theme .od-statement h2 strong {
  color: var(--od-ink) !important;
}

body.lg-portal-theme .od-statement {
  background: var(--od-page) !important;
  border-block: 1px solid var(--od-line-soft) !important;
}

/* 眉标题 / 小节标签 */
.portal-label,
.od-kicker,
.section-label,
.eyebrow,
.od-statement .od-statement-kicker {
  font-size: var(--od-fs-meta) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

/* ---------- 14.4 卡片与描边：标准卡 12px / 细线 #d9d9d9 / 2px 悬浮 ---------- */
body.od-page .card,
body.od-page .panel,
body.lg-portal-theme .card,
body.lg-portal-theme .panel,
body.lg-portal-theme .key-scenario-card,
body.lg-portal-theme .closed-loop-step,
body.lg-portal-theme .opendesign-cap-card {
  border-radius: 12px !important;
  border: 1px solid var(--od-line) !important;
  box-shadow: none !important;
  transition: transform var(--od-duration-base) var(--od-ease-standard),
              border-color var(--od-duration-base) var(--od-ease-standard),
              box-shadow var(--od-duration-base) var(--od-ease-standard) !important;
}

/* 用 html:root 提升权重，确保压过前文所有同名片段（本节是收口层） */
html:root body.lg-portal-theme .key-scenario-card,
html:root body.od-page .key-scenario-card,
html:root body.lg-portal-theme .opendesign-cap-card,
html:root body.lg-portal-theme .closed-loop-step {
  border: 1px solid var(--od-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  background: var(--od-surface) !important;
}

body.od-page .card:hover,
body.od-page .panel:hover,
body.lg-portal-theme .key-scenario-card:hover,
body.lg-portal-theme .opendesign-cap-card:hover,
body.lg-portal-theme .closed-loop-step:hover {
  transform: translateY(-2px) !important;
  border-color: var(--od-line-hover) !important;
  box-shadow: var(--od-shadow-card) !important;
}

/* 重点平台卡：OpenDesign 展示型大卡保留 18px 圆角，但描边回归细线 */
html:root body.lg-portal-theme .priority-platform-card {
  border: 1px solid var(--od-line) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

body.lg-portal-theme .priority-platform-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--od-shadow-sheet) !important;
}

html:root body.lg-portal-theme .priority-platform-card.is-lead {
  border-color: var(--od-ink) !important;
}

/* 卡片内边距回到 OpenDesign 的 24px 节奏 */
html:root body.lg-portal-theme .key-scenario-card,
html:root body.lg-portal-theme .opendesign-cap-card,
html:root body.lg-portal-theme .closed-loop-step {
  padding: 24px !important;
}

/* ---------- 14.5 按钮：药丸 44px / 14px/500 / 180ms / 1px 抬起 ---------- */
.btn,
.od-btn,
.portal-btn,
.od-hero-actions .od-btn,
body.od-page .btn,
body.lg-portal-theme .portal-btn {
  min-height: 44px !important;
  height: auto !important;
  padding: 14px 22px !important;
  border-radius: var(--od-pill) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: -0.005em !important;
  line-height: 1.15 !important;
  gap: 10px !important;
  box-shadow: none !important;
  transition: transform 180ms ease, background-color 180ms ease,
              color 180ms ease, border-color 180ms ease !important;
}

.od-btn-dark,
.od-btn-primary,
.btn-primary,
body.lg-portal-theme .portal-btn-green:not(.portal-btn-ghost) {
  background: var(--od-ink) !important;
  color: var(--od-surface) !important;
  border-color: transparent !important;
}

.od-btn-dark:hover,
.od-btn-primary:hover,
.btn-primary:hover {
  transform: translateY(-1px) !important;
  background: var(--od-ink-soft) !important;
  color: var(--od-surface) !important;
}

/* .btn-ghost：OpenDesign 同款——描边透明底，hover 落青柠浅底 */
.od-btn-glass,
.od-btn-plain,
.btn-ghost {
  background: transparent !important;
  color: var(--od-ink) !important;
  border: 1px solid var(--od-line) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.od-btn-glass:hover,
.od-btn-plain:hover,
.btn-ghost:hover {
  background: var(--od-tint) !important;
  border-color: color-mix(in oklab, var(--od-lime) 78%, var(--od-surface)) !important;
  color: var(--od-ink) !important;
  transform: translateY(-1px) !important;
}

/* ---------- 14.6 导航：统一 54px，登录页不再特殊放大 ---------- */
.login-nav,
body.od-page .login-nav.od-nav-glass,
body.od-page .login-nav.od-nav-glass.is-condensed {
  height: var(--od-nav-height) !important;
  min-height: var(--od-nav-height) !important;
  font-size: 14px !important;
}

.site-header nav a,
.pilot-topbar nav a,
.trace-navbar nav a,
.login-nav .nav-link,
body.od-page .site-header nav a {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--od-ink) !important;
  transition: color 180ms ease, background-color 180ms ease !important;
}

.site-header nav a:hover,
.pilot-topbar nav a:hover,
.trace-navbar nav a:hover,
.login-nav .nav-link:hover {
  color: var(--od-lime-deep) !important;
  background: transparent !important;
}

/* 业务系统顶栏右侧用户徽标：允许换行，避免把页面撑出横向滚动 */
body.od-platform .system-topbar {
  flex-wrap: wrap !important;
  row-gap: 10px !important;
}

body.od-platform .system-top-actions {
  min-width: 0 !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
}

body.od-platform .system-topbar .user-badge {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 13px !important;
}

body.od-platform .user-badge .role-quick-switch,
body.od-platform .user-badge select {
  max-width: 152px !important;
  font-size: 12.5px !important;
}

/* 移动端网签页应用栏：主栏压到 54px，步骤条独立成第二行细线 */
body.od-page .app-bar {
  padding: 10px var(--od-gutter) !important;
  row-gap: 8px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(12px) saturate(1.4) !important;
  border-bottom: 1px solid var(--od-line-soft) !important;
}

body.od-page .app-bar-brand strong {
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

body.od-page .app-bar-title {
  font-size: 14px !important;
  font-weight: 600 !important;
}

body.od-page .app-bar-sub {
  font-size: 12px !important;
  color: var(--od-muted) !important;
}

/* ---------- 14.7 内容栏与区块节奏 ---------- */
body.lg-portal-theme .section,
body.lg-portal-theme .portal-section {
  padding-block: var(--od-section-gap) !important;
  scroll-margin-top: calc(var(--od-nav-height) + 16px) !important;
}

body.lg-portal-theme .portal-section {
  padding-bottom: var(--od-section-gap) !important;
}

/* OpenDesign 用 1px 细线分隔叙事区块，而不是大色块 */
body.lg-portal-theme .section:not(.active) + .section,
body.lg-portal-theme #overview + #topics,
body.lg-portal-theme #topics + #datav3d,
body.lg-portal-theme #datav3d + #social {
  border-top: 1px solid var(--od-line-soft) !important;
}

/* 深色主题下首屏同样不使用彩色大图，而是近黑纸面 */
html:root.dark body.lg-portal-theme .od-hero {
  background:
    radial-gradient(60% 42% at 12% 0%, rgba(131, 255, 59, 0.10) 0%, rgba(131, 255, 59, 0) 62%),
    linear-gradient(180deg, #11120f 0%, #0d0f0b 100%) !important;
  border-bottom-color: var(--od-line) !important;
}

html:root.dark body.lg-portal-theme .od-hero .od-hero-title,
html:root.dark body.lg-portal-theme .od-hero-title {
  color: var(--od-ink) !important;
}

html:root.dark body.lg-portal-theme .od-hero-sub {
  color: var(--od-ink-soft) !important;
}

html:root.dark body.lg-portal-theme .od-hero-chip,
html:root.dark body.lg-portal-theme .od-hero-rail > * {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink) !important;
  box-shadow: none !important;
}

@media (max-width: 960px) {
  body.lg-portal-theme .od-hero {
    padding: 104px 20px 48px;
    min-height: auto;
  }

  body.lg-portal-theme .od-hero .od-hero-title,
  body.lg-portal-theme .od-hero-title {
    font-size: clamp(34px, 9vw, 46px) !important;
  }

  body.lg-portal-theme .od-hero-sub {
    font-size: 16px !important;
  }

  body.lg-portal-theme .priority-entry-rail {
    display: none;
  }
}

/* ==========================================================================
   15. 残留页面收口（2026-10-31）
   逐项来自 headless Chrome 实测缺陷：验真中心主按钮、综合工作台卡片、
   页头右侧主题切换被裁切、移动端网签应用栏过高、顶层架构总览未接入统一皮肤。
   ========================================================================== */

/* ---------- 15.1 验真中心：主按钮改成 OpenDesign 墨黑药丸 ---------- */
html:root body.od-trace .search-btn {
  height: 44px;
  min-height: 44px;
  padding: 14px 22px;
  background: var(--od-ink) !important;
  border: 1px solid transparent !important;
  border-radius: var(--od-pill) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  transition: transform 180ms ease, background-color 180ms ease !important;
}

html:root body.od-trace .search-btn:hover {
  background: var(--od-ink-soft) !important;
  transform: translateY(-1px);
  box-shadow: none !important;
}

html:root body.od-trace .quick-chips button,
html:root body.od-trace .chip,
html:root body.od-trace .tag {
  border-radius: var(--od-pill) !important;
  border: 1px solid var(--od-line) !important;
  background: var(--od-surface) !important;
  color: var(--od-ink) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

html:root body.od-trace .quick-chips button:hover {
  background: var(--od-tint) !important;
  border-color: color-mix(in oklab, var(--od-lime) 78%, var(--od-surface)) !important;
}

/* ---------- 15.2 综合工作台卡片：统一到 12px / #d9d9d9 / 白面 ---------- */
html:root body.od-page #admin .admin-card,
html:root body.lg-portal-theme #admin .admin-card,
html:root body.od-page #admin .admin-hero,
html:root body.lg-portal-theme #admin .admin-hero,
html:root body.od-page #admin .admin-kpi-item,
html:root body.lg-portal-theme #admin .admin-kpi-item {
  border-radius: 12px !important;
  border: 1px solid var(--od-line) !important;
  background: var(--od-surface) !important;
  box-shadow: none !important;
}

html:root body.od-page #admin .admin-hero,
html:root body.lg-portal-theme #admin .admin-hero {
  padding: 24px !important;
  border-radius: 16px !important;
  background: var(--od-page) !important;
}

html:root body.od-page #admin .admin-kpi-item,
html:root body.lg-portal-theme #admin .admin-kpi-item {
  border-radius: 10px !important;
  background: var(--od-paper) !important;
}

/* ---------- 15.3 页头：让导航真正能收缩，右侧主题切换不再被裁 ---------- */
html:root body.od-page .site-header,
html:root body.od-page .pilot-topbar,
html:root body.od-page .trace-navbar {
  gap: 18px !important;
}

html:root body.od-page .site-header > nav,
html:root body.od-page .pilot-topbar > nav,
html:root body.od-page .trace-navbar > nav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  scrollbar-width: none !important;
}

html:root body.od-page .site-header > nav::-webkit-scrollbar,
html:root body.od-page .pilot-topbar > nav::-webkit-scrollbar {
  display: none !important;
}

html:root body.od-page .site-header nav a,
html:root body.od-page .pilot-topbar nav a,
html:root body.od-page .trace-navbar nav a {
  padding: 7px 9px !important;
  white-space: nowrap;
}

/* 品牌区在窄屏优先让位，不再挤压导航 */
html:root body.od-page .site-header > .brand,
html:root body.od-page .pilot-topbar > .pilot-brand {
  min-width: 0 !important;
  overflow: hidden;
}

html:root body.od-page .theme-switch {
  flex: 0 0 auto !important;
  gap: 2px !important;
  padding: 3px !important;
  border: 1px solid var(--od-line) !important;
  border-radius: var(--od-pill) !important;
  background: var(--od-surface) !important;
}

html:root body.od-page .theme-switch button {
  min-height: 26px !important;
  padding: 4px 9px !important;
  border: 0 !important;
  border-radius: var(--od-pill) !important;
  background: transparent !important;
  color: var(--od-muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

html:root body.od-page .theme-switch button.active,
html:root body.od-page .theme-switch button:hover {
  background: var(--od-ink) !important;
  color: #fff !important;
}

/* ---------- 15.4 移动端网签应用栏：主栏 54px，步骤条独立成行 ---------- */
html:root body.od-page .app-bar {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 6px !important;
  padding: 0 var(--od-gutter) !important;
  min-height: var(--od-nav-height) !important;
  /* 网签页保留"凭证封面"的暗面，但换成 OpenDesign 的近黑暖灰，不再是深绿渐变 */
  background: #0d0f0b !important;
  backdrop-filter: blur(12px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.4) !important;
  border-bottom: 1px solid #30332d !important;
  color: #f2f4ef !important;
}

html:root body.od-page .app-bar-brand {
  grid-row: 1;
  grid-column: 1;
}

html:root body.od-page .app-bar-title {
  grid-row: 1;
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:root body.od-page .app-bar-sub {
  display: none;
}

html:root body.od-page .app-bar-steps,
html:root body.od-page .app-bar > div:not(.app-bar-brand):not(.app-bar-title) {
  grid-row: 2;
  grid-column: 1 / -1;
  padding-bottom: 8px;
  border-top: 1px solid #30332d;
  padding-top: 6px;
}

/* ---------- 15.5 顶层架构总览（/architecture）接入统一皮肤 ---------- */
html:root body.od-arch {
  background: var(--od-page) !important;
  color: var(--od-ink) !important;
  font-family: var(--od-font-sans) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

html:root body.od-arch header {
  background: var(--od-page) !important;
  color: var(--od-ink) !important;
  padding: 44px 0 32px !important;
  margin-bottom: 32px !important;
  border-bottom: 1px solid var(--od-line-soft) !important;
}

html:root body.od-arch header h1 {
  color: var(--od-ink) !important;
  font-size: clamp(32px, 4vw, 52px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

html:root body.od-arch header .sub {
  color: var(--od-ink-soft) !important;
  opacity: 1 !important;
  font-size: 18px !important;
}

html:root body.od-arch header .tag {
  background: var(--od-surface) !important;
  border: 1px solid var(--od-line) !important;
  color: var(--od-ink) !important;
  border-radius: var(--od-pill) !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
}

html:root body.od-arch h2.sec {
  color: var(--od-ink) !important;
  font-size: clamp(24px, 2.4vw, 30px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
}

html:root body.od-arch h2.sec::before {
  background: var(--od-lime) !important;
  width: 4px !important;
  height: 20px !important;
  border-radius: 2px !important;
}

html:root body.od-arch p.lead {
  color: var(--od-muted) !important;
}

html:root body.od-arch .arch,
html:root body.od-arch .card,
html:root body.od-arch .box,
html:root body.od-arch .panel,
html:root body.od-arch section > div {
  border-color: var(--od-line) !important;
}


/* ---------- 15.6 验证中心 / 试运行：小号辅助文字提对比 ---------- */
html:root body.od-trace .meta-cell-label,
html:root body.od-trace .brand-sub,
html:root body.od-trace small,
html:root body.od-trace .hero-pill-tag {
  color: var(--od-muted) !important;
}

html:root body.od-pilot .pilot-brand em,
html:root body.od-pilot .pilot-brand span,
html:root body.od-pilot .topbar-status,
html:root body.od-pilot .eyebrow {
  color: var(--od-muted) !important;
}

/* 深色展示面板：统一成 OpenDesign 近黑暖灰 + 浅墨，去掉青蓝渐变 */
body.od-page .terminal-headline,
body.lg-portal-theme .terminal-headline,
body.od-page .visual-card,
body.lg-portal-theme .visual-card {
  background: #11120f !important;
  border: 1px solid #30332d !important;
  border-radius: 16px !important;
  color: #f2f4ef !important;
  box-shadow: none !important;
}

body.od-page .terminal-headline :is(h1, h2, h3, h4, strong, b),
body.lg-portal-theme .terminal-headline :is(h1, h2, h3, h4, strong, b),
body.od-page .visual-card :is(h1, h2, h3, h4, strong, b),
body.lg-portal-theme .visual-card :is(h1, h2, h3, h4, strong, b) {
  color: #f2f4ef !important;
}

body.od-page .terminal-headline p,
body.lg-portal-theme .terminal-headline p,
body.od-page .visual-card p,
body.lg-portal-theme .visual-card p {
  color: #d7dbd3 !important;
}

body.od-page .terminal-headline :is(span, em, small),
body.lg-portal-theme .terminal-headline :is(span, em, small),
body.od-page .visual-card :is(span, em, small),
body.lg-portal-theme .visual-card :is(span, em, small) {
  color: #a5afa1 !important;
}

/* ---------- 15.7 品牌方标：深底浅字，统一青柠/墨黑两种底 ---------- */
html:root body.od-page .pilot-topbar .brand-mark,
html:root body.od-page .site-header .brand-mark,
html:root body.od-page .trace-navbar .brand-badge {
  background: var(--od-lime-deep) !important;
  border: 0 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* ---------- 15.8 动效与交互过渡解耦 ---------- */
/* .btn/.card 的 180ms 交互过渡不能覆盖 .od-reveal 的 900ms 进场 */
body.od-motion .od-reveal,
body.od-motion .od-reveal.od-revealed {
  transition-property: opacity, translate, scale !important;
  transition-duration: 900ms !important;
  transition-timing-function: var(--od-ease-metric) !important;
  transition-delay: var(--reveal-delay, 0ms) !important;
}

/* 表单类紧凑按钮：圆角回落到 OpenDesign 的 8px 直角语言 */
body.od-page .form-action button,
body.od-page .workspace-form button,
body.od-page .module-actions button {
  min-height: 40px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   16. 移动端收口（≤860px）
   实测：/platform 634px、/social.html 655px、/service-center 691px 在 390px
   视口下出现横向滚动，原因是页头与工作条按桌面单行排布、导航容器未真正裁剪。
   ========================================================================== */
@media (max-width: 860px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  /* 页头：品牌一行、导航一行，导航自身横向滚动，不再撑开页面 */
  html:root body.od-page .site-header,
  html:root body.od-page .pilot-topbar,
  html:root body.od-page .trace-navbar {
    flex-wrap: wrap !important;
    row-gap: 8px !important;
    height: auto !important;
    min-height: var(--od-nav-height) !important;
    padding-block: 8px !important;
  }

  html:root body.od-page .site-header > nav,
  html:root body.od-page .pilot-topbar > nav,
  html:root body.od-page .trace-navbar > nav {
    order: 3;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 0 100% !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  html:root body.od-page .site-header > .brand,
  html:root body.od-page .pilot-topbar > .pilot-brand,
  html:root body.od-page .trace-navbar > .trace-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  html:root body.od-page .theme-switch {
    order: 2;
    margin-left: auto;
  }

  /* 业务系统工作条：两栏合并成竖排，用户徽标回落整行 */
  html:root body.od-platform .system-topbar,
  html:root body.od-page .system-topbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  html:root body.od-platform .system-top-actions,
  html:root body.od-page .system-top-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 2px;
  }

  html:root body.od-platform .system-topbar .user-badge {
    flex: 0 0 auto !important;
  }

  html:root body.od-page .system-status-pill,
  html:root body.od-service .system-status-pill {
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  /* 左栏导航在窄屏改成顶部胶囊轨道 */
  html:root body.od-platform .app-shell,
  html:root body.od-platform .system-page.is-system-auth .app-shell {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  html:root body.od-platform .app-shell .sidebar {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--od-line) !important;
  }

  html:root body.od-platform .app-shell .module-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 6px;
  }

  html:root body.od-platform .app-shell .module-nav-section {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
  }

  /* 表格在窄屏一律可横向滚动，而不是撑破页面 */
  html:root body.od-page table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  /* 首屏在小屏收紧 */
  html:root body.lg-portal-theme .od-hero {
    padding: 88px 16px 40px !important;
    border-radius: 0 !important;
  }

  html:root body.lg-portal-theme .od-hero-sub {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  html:root body.lg-portal-theme .od-hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  html:root body.lg-portal-theme .od-hero-actions > * {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 860px) {
  /* 窄屏下侧栏胶囊里的 10.5px 标签提升到可读字号 */
  html:root body.od-platform .module-nav button span,
  html:root body.od-platform .module-nav button em,
  html:root body.od-platform .module-nav-section .sidebar-group-label {
    font-size: 11.5px !important;
  }

  html:root body.od-platform .module-nav button strong {
    font-size: 12.5px !important;
  }
}

@media (max-width: 860px) {
  /* 窄屏下 9.5–10.5px 的眉标统一抬到 11px，保证手机上可读 */
  html:root body .release-kicker,
  html:root body .eyebrow,
  html:root body .db-timestamp-tag,
  html:root body .db-date,
  html:root body .hint,
  html:root body .step-label,
  html:root body .app-bar-brand span {
    font-size: 11px !important;
  }
}

/* ==========================================================================
   17. 深色主题最终收口（2026-10-31）
   以 OpenDesign 暖墨黑为唯一暗色基底，清除旧页面遗留的纯黑、冷蓝和
   浅色硬编码；强调色只保留电光青柠，确保状态与操作在暗色下可辨。
   ========================================================================== */
html:root.dark {
  --od-page: #0d0f0b;
  --od-paper: #11120f;
  --od-surface: #171915;
  --od-ink: #f2f4ef;
  --od-ink-soft: #d7dbd3;
  --od-muted: #a5afa1;
  --od-faint: #788376;
  --od-line: #30332d;
  --od-line-hover: #42463f;
  --od-line-soft: #242723;
  --od-line-faint: #1d201c;
  --od-lime: #83ff3b;
  --od-lime-soft: #a9ff77;
  --od-lime-deep: #52d718;
  color-scheme: dark;
  background: var(--od-page) !important;
  color: var(--od-ink) !important;
}

html:root.dark body.od-page,
html:root.dark body.od-arch,
html:root.dark body.lg-portal-theme {
  background-color: var(--od-page) !important;
  color: var(--od-ink) !important;
}

/* 三态切换：暗色下选中项固定为浅墨底 + 深墨字，避免白字压浅底。 */
html:root.dark body.od-page .theme-switch,
html:root.dark body.lg-portal-theme .theme-switch {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
}

html:root.dark body.od-page .theme-switch button,
html:root.dark body.lg-portal-theme .theme-switch button {
  color: var(--od-muted) !important;
}

html:root.dark body.od-page .theme-switch button.active,
html:root.dark body.od-page .theme-switch button.active:hover,
html:root.dark body.lg-portal-theme .theme-switch button.active,
html:root.dark body.lg-portal-theme .theme-switch button.active:hover {
  background: var(--od-ink) !important;
  color: var(--od-page) !important;
}

/* 品牌方标统一为浅墨底深字，青柠只用于状态点与主操作。 */
html:root.dark body.od-page :is(.site-header, .pilot-topbar, .trace-navbar, .login-nav) .brand-mark,
html:root.dark body.od-page :is(.site-header, .trace-navbar) .brand-badge {
  background: var(--od-ink) !important;
  color: var(--od-page) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html:root.dark body.od-page :is(.site-header, .pilot-topbar, .trace-navbar, .login-nav) :is(.brand strong, .brand-copy strong, .trace-brand strong) {
  color: var(--od-ink) !important;
}

html:root.dark body.od-page :is(.site-header, .pilot-topbar, .trace-navbar, .login-nav) :is(.brand em, .brand span, .brand-copy em, .brand-copy span, .trace-brand span) {
  color: var(--od-muted) !important;
}

html:root.dark body.od-page :is(.site-header, .pilot-topbar, .trace-navbar, .login-nav) :is(.brand > .brand-mark, .brand > .brand-badge) {
  background: var(--od-ink) !important;
  color: var(--od-page) !important;
}

html:root.dark body.od-page :is(.site-header, .pilot-topbar, .trace-navbar, .login-nav) :is(.brand-copy, .brand-title-group) span {
  background: transparent !important;
  color: var(--od-muted) !important;
  -webkit-text-fill-color: var(--od-muted) !important;
}

/* 社会服务平台首屏英文眉标：保留青柠信号色，不被通用辅助文字规则压低。 */
html:root.dark body.od-social .op-subhead-badge {
  background: rgba(131, 255, 59, 0.1) !important;
  border-color: rgba(131, 255, 59, 0.26) !important;
  color: var(--od-lime) !important;
}

/* 业务系统：角色胶囊、用户徽标和县域态势底板。 */
html:root.dark body.od-platform .sidebar-role-indicator > div {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
}

html:root.dark body.od-platform .sidebar-role-indicator span[style*="background:var(--od-lime"] {
  background: var(--od-lime) !important;
  color: #11120f !important;
}

html:root.dark body.od-platform .system-topbar .user-badge {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
}

html:root.dark body.od-platform .system-topbar .user-badge :is(strong, .user-name-tag) {
  color: var(--od-ink) !important;
}

html:root.dark body.od-platform .system-topbar .user-badge :is(span, .user-role-chip) {
  background: rgba(131, 255, 59, 0.12) !important;
  border-color: rgba(131, 255, 59, 0.28) !important;
  color: var(--od-lime) !important;
}

html:root.dark body.od-platform .system-topbar .user-badge :is(button, select) {
  background-color: var(--od-line-faint) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink-soft) !important;
}

html:root.dark body.od-platform :is(.terminal-panel, .terminal-metric, .county-map-figure) {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink) !important;
}

html:root.dark body.od-platform .county-map-figure > strong {
  padding: 4px 10px;
  border: 1px solid var(--od-line);
  border-radius: var(--od-pill);
  background: var(--od-line-faint);
  color: var(--od-ink) !important;
}

/* 验真中心：旧版为浅色瓷面，暗色下按同一信息层级重排。 */
html:root.dark body.od-trace {
  background-image: none !important;
}

html:root.dark body.od-trace .trace-navbar nav a {
  background: transparent !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink-soft) !important;
}

html:root.dark body.od-trace .trace-navbar nav a:hover {
  background: var(--od-surface) !important;
  border-color: var(--od-line-hover) !important;
  color: var(--od-ink) !important;
}

html:root.dark body.od-trace .trace-hero {
  background:
    radial-gradient(760px 300px at 50% 0%, rgba(131, 255, 59, 0.08), transparent 78%),
    linear-gradient(180deg, var(--od-paper), var(--od-page)) !important;
  border-bottom-color: var(--od-line) !important;
}

html:root.dark body.od-trace :is(.hero-title, .flow-card-head h3, .voucher-title) {
  color: var(--od-ink) !important;
}

html:root.dark body.od-trace :is(.hero-subtitle, .quick-chips-hint, .meta-cell-label, .timeline-desc) {
  color: var(--od-ink-soft) !important;
}

html:root.dark body.od-trace .hero-pill-tag {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
  color: var(--od-lime) !important;
  box-shadow: none !important;
}

html:root.dark body.od-trace :is(.search-box-wrap, .chip-btn) {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink-soft) !important;
  box-shadow: none !important;
}

html:root.dark body.od-trace .search-input {
  background: transparent !important;
  color: var(--od-ink) !important;
}

html:root.dark body.od-trace .search-btn {
  background: var(--od-lime) !important;
  border-color: var(--od-lime) !important;
  color: #11120f !important;
  box-shadow: none !important;
}

html:root.dark body.od-trace .chip-btn:hover,
html:root.dark body.od-trace .chip-btn.active {
  background: var(--od-lime) !important;
  border-color: var(--od-lime) !important;
  color: #11120f !important;
}

html:root.dark body.od-trace :is(.flow-card, .quad-seal-card, .timeline-accordion-card, .voucher-summary-box, .gm-hash-deck) {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink) !important;
  box-shadow: none !important;
}

html:root.dark body.od-trace :is(.flow-card-head, .voucher-prehead, .voucher-structured-meta-bar, .timeline-accordion-head) {
  background: var(--od-line-faint) !important;
  border-color: var(--od-line) !important;
}

html:root.dark body.od-trace :is(.meta-cell-val, .timeline-head-left, .timeline-head-right, .quad-seal-name, .quad-seal-meta) {
  color: var(--od-ink-soft) !important;
}

html:root.dark body.od-trace .voucher-prehead :is(span, b) {
  color: var(--od-ink-soft) !important;
}

html:root.dark body.od-trace .voucher-prehead .flow-head-dot {
  background: var(--od-lime-deep) !important;
}

html:root.dark body.od-trace :is(.gm-hash-row, .meta-item, .timeline-accordion-body) {
  border-color: var(--od-line) !important;
}

/* 试运行控制台：硬编码的米白面板统一转暖墨，语义标签保留红黄警示。 */
html:root.dark body.od-pilot :is(.scope-board, .architecture-section, .workstream-board, .data-boundary-section, .release-board, .gate-board, .platform-card, .boundary-card, .skeleton-card) {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink) !important;
  box-shadow: none !important;
}

html:root.dark body.od-pilot .release-board {
  background:
    radial-gradient(320px 180px at 100% 0%, rgba(131, 255, 59, 0.08), transparent 70%),
    var(--od-surface) !important;
}

html:root.dark body.od-pilot .release-counts {
  background: var(--od-line-faint) !important;
  border-color: var(--od-line) !important;
}

html:root.dark body.od-pilot .release-counts > div {
  background: transparent !important;
  border-color: var(--od-line) !important;
}

html:root.dark body.od-pilot .release-counts :is(dt, dd, span) {
  color: var(--od-ink-soft) !important;
}

html:root.dark body.od-pilot .release-counts b {
  color: var(--od-ink) !important;
}

html:root.dark body.od-pilot :is(.release-board > strong, .section-heading h2, .gate-head h2, .platform-card h3, .boundary-card strong) {
  color: var(--od-ink) !important;
}

html:root.dark body.od-pilot :is(.release-board > p, .section-heading p, .gate-head p, .platform-card p, .boundary-card span, .release-note) {
  color: var(--od-ink-soft) !important;
}

html:root.dark body.od-pilot .flag-cinnabar {
  background: rgba(255, 126, 97, 0.12) !important;
  border-color: rgba(255, 126, 97, 0.42) !important;
  color: #ffb4a5 !important;
}

html:root.dark body.od-pilot .flag-ochre {
  background: rgba(255, 194, 92, 0.12) !important;
  border-color: rgba(255, 194, 92, 0.38) !important;
  color: #ffd37a !important;
}

html:root.dark body.od-pilot .flag-ink {
  background: var(--od-line-faint) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink-soft) !important;
}

html:root.dark body.od-pilot .release-kicker,
html:root.dark body.od-pilot .eyebrow,
html:root.dark body.od-pilot .section-index,
html:root.dark body.od-pilot .layer-label {
  color: var(--od-lime) !important;
}

html:root.dark body.od-pilot :is(.platform-switch, .workspace-form select, .project-field input, .impl-types-bar) {
  background: var(--od-line-faint) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink) !important;
}

/* 农事服务中心：把白瓷卡片映射为暗色表面，保留青柠状态线。 */
html:root.dark body.od-service {
  --green: var(--od-lime);
  --green-2: var(--od-lime-soft);
  --tl-brand-600: var(--od-lime);
  --tl-brand-700: var(--od-lime);
  background: var(--od-page) !important;
  background-image: none !important;
}

html:root.dark body.od-service :is(.hero-copy, .hero-visual, .section, .dispatch-copy, .dispatch-board, .policy-panel) {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
  box-shadow: none !important;
}

html:root.dark body.od-service .hero-copy {
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(131, 255, 59, 0.06), transparent 72%),
    var(--od-surface) !important;
}

html:root.dark body.od-service :is(.hero-stat, .lane-card, .service-card, .role-grid article, .notice-list article) {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink) !important;
  box-shadow: none !important;
}

html:root.dark body.od-service :is(.lane-card span, .service-card strong, .role-grid strong, .notice-list strong, .hero-stat b) {
  color: var(--od-ink) !important;
}

html:root.dark body.od-service :is(.lane-card em, .service-card p, .role-grid span, .notice-list em, .hero-stat span) {
  color: var(--od-ink-soft) !important;
}

html:root.dark body.od-service .service-tabs button {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink-soft) !important;
}

html:root.dark body.od-service .service-tabs button.active,
html:root.dark body.od-service .service-tabs button:hover {
  background: var(--od-ink) !important;
  border-color: var(--od-ink) !important;
  color: var(--od-page) !important;
}

html:root.dark body.od-service :is(.lane-card strong, .notice-list span) {
  background: var(--od-line-faint) !important;
  color: var(--od-lime) !important;
}

html:root.dark body.od-service .policy-panel {
  background:
    radial-gradient(320px 200px at 90% 12%, rgba(131, 255, 59, 0.08), transparent 72%),
    var(--od-surface) !important;
}

html:root.dark body.od-service .policy-panel :is(h2, strong) {
  color: var(--od-ink) !important;
}

html:root.dark body.od-service .policy-panel :is(p, em) {
  color: var(--od-ink-soft) !important;
}

html:root.dark body.od-service .system-status-pill {
  background: rgba(131, 255, 59, 0.09) !important;
  border-color: rgba(131, 255, 59, 0.24) !important;
  color: var(--od-lime) !important;
}

/* 合同手机网签：保留“凭证封面”的深墨顶栏，内容区使用暖墨纸面。 */
html:root.dark body.od-sign {
  --bg: var(--od-page);
  --card: var(--od-surface);
  --soft: var(--od-line-faint);
  --line: var(--od-line);
  --ink: var(--od-ink);
  --muted: var(--od-muted);
  --p: var(--od-lime);
  --p2: var(--od-lime-soft);
  background: var(--od-page) !important;
  color: var(--od-ink) !important;
}

html:root.dark body.od-sign :is(.card, .parcel-pick, .action-bar, .notice) {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink) !important;
  box-shadow: none !important;
}

html:root.dark body.od-sign .card-hd,
html:root.dark body.od-sign .info {
  background: var(--od-line-faint) !important;
  border-color: var(--od-line) !important;
}

html:root.dark body.od-sign :is(.field input, .field select, .sig-pad) {
  background: var(--od-line-faint) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink) !important;
}

html:root.dark body.od-sign .action-bar {
  border-top-color: var(--od-line) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
}

html:root.dark body.od-sign .btn.primary {
  background: var(--od-ink) !important;
  border-color: var(--od-ink) !important;
  color: var(--od-page) !important;
}

/* 顶层架构总览：覆盖文档内嵌的浅色 !important 皮肤。 */
html:root.dark body.od-arch {
  background: var(--od-page) !important;
  color: var(--od-ink) !important;
}

html:root.dark body.od-arch header {
  background: var(--od-page) !important;
  color: var(--od-ink) !important;
  border-bottom-color: var(--od-line) !important;
}

html:root.dark body.od-arch :is(header h1, h2.sec, .shift h4, .dbox b, .detail, .detail b) {
  color: var(--od-ink) !important;
}

html:root.dark body.od-arch :is(header .sub, p.lead, .wing .small, .shift .arr, .shift .gain, .dbox .desc, .phase li, footer) {
  color: var(--od-muted) !important;
}

html:root.dark body.od-arch :is(.arch, .shift, .dcol li, .chain, .dbox, .phase, table.map, .detail, .wing, .layer, .core, .core .obj) {
  background: var(--od-surface) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink) !important;
  box-shadow: none !important;
}

html:root.dark body.od-arch :is(.chip, .badge) {
  background: var(--od-line-faint) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink-soft) !important;
}

html:root.dark body.od-arch .layer.l-gate {
  background: var(--od-ink) !important;
  color: var(--od-page) !important;
}

html:root.dark body.od-arch .layer.l-gate .chip {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--od-page) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

html:root.dark body.od-arch .detail {
  border-left-color: var(--od-lime) !important;
}

html:root.dark body.od-arch .detail div[style] {
  color: var(--od-ink-soft) !important;
}

html:root.dark body.od-arch table.map th,
html:root.dark body.od-arch :is(.dcol.gov h3, .dcol.co h3, .phase .ph) {
  background: var(--od-ink) !important;
  color: var(--od-page) !important;
}

html:root.dark body.od-arch table.map tr:nth-child(even) td {
  background: var(--od-line-faint) !important;
}

html:root.dark body.od-arch .doc-back {
  background: var(--od-surface);
  border-color: var(--od-line);
  color: var(--od-ink);
}

html:root.dark body.od-arch .doc-back:hover {
  background: var(--od-ink);
  border-color: var(--od-ink);
  color: var(--od-page);
}

html:root.dark body.od-arch footer {
  border-top-color: var(--od-line) !important;
}

/* 态势大屏：保持固定暗色，但由冷黑切换为 OpenDesign 暖墨与青柠。 */
body.lg-dash-theme {
  --db-bg: #0d0f0b;
  --db-bg-warm: #11120f;
  --db-hud-bg: rgba(23, 25, 21, 0.88);
  --db-card-bg: rgba(23, 25, 21, 0.82);
  --db-border-subtle: rgba(242, 244, 239, 0.13);
  --db-border-hover: rgba(242, 244, 239, 0.26);
  --db-border-active: #83ff3b;
  --brand-lime: #63fe13;
  --brand-evergreen: #52d718;
  --green-glow: #83ff3b;
  --txt-dim: #a5afa1;
  --txt-muted: #788376;
  background: var(--db-bg) !important;
}

body.lg-dash-theme .db-logo {
  background: var(--od-ink) !important;
  border-color: transparent !important;
  color: var(--od-page) !important;
  box-shadow: none !important;
}

body.lg-dash-theme .db-title span,
body.lg-dash-theme :is(.db-nav-pill:hover, .db-status) {
  color: var(--od-lime) !important;
}

body.lg-dash-theme .db-nav-pill {
  background: rgba(242, 244, 239, 0.04) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink-soft) !important;
}

/* ==========================================================================
   18. 页头视觉复核收口（2026-10-31）
   统一品牌徽标；修复服务中心 / 试运行页导航被右对齐挤出视口，
   以及状态胶囊换行和过细的问题。
   ========================================================================== */
html:root body.od-page :is(.site-header, .pilot-topbar, .trace-navbar) :is(.brand-mark, .brand-badge) {
  background: var(--od-ink) !important;
  border-color: transparent !important;
  color: var(--od-page) !important;
  box-shadow: none !important;
}

html:root body.od-service .site-header > nav {
  justify-content: flex-start !important;
  gap: 4px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

html:root body.od-service .site-header > nav a {
  padding: 6px 8px !important;
  font-size: 12.5px !important;
}

html:root body.od-service .system-status-pill {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  background: var(--od-paper-warm) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink-soft) !important;
}

html:root body.od-pilot .pilot-topbar > nav {
  justify-content: flex-start !important;
  gap: 4px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

html:root body.od-pilot .pilot-topbar > nav a {
  padding: 6px 8px !important;
  font-size: 12.5px !important;
}

html:root body.od-pilot .pilot-topbar .topbar-status {
  justify-self: end !important;
  width: auto !important;
  min-height: 30px !important;
  padding: 5px 12px !important;
  white-space: nowrap !important;
  background: var(--od-paper-warm) !important;
  border: 1px solid var(--od-line) !important;
  border-radius: var(--od-pill) !important;
  color: var(--od-ink-soft) !important;
  font-weight: 600 !important;
}

html:root.dark body.od-service .system-status-pill,
html:root.dark body.od-pilot .pilot-topbar .topbar-status {
  background: var(--od-line-faint) !important;
  border-color: var(--od-line) !important;
  color: var(--od-ink-soft) !important;
}

/* ==========================================================================
   19. 合同手机网签页头重排
   原先把“返回业务平台 / 国密说明 / 品牌 / 标题 / 步骤”放进同一网格单元，
   导致桌面和手机端叠字。这里按 元信息 → 品牌与页标题 → 进度 三行排布。
   ========================================================================== */
html:root body.od-sign .app-bar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto auto auto !important;
  column-gap: 12px !important;
  row-gap: 4px !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 10px max(14px, calc((100vw - 620px) / 2)) 10px !important;
  border-radius: 0 !important;
  background: #11120f !important;
  border-bottom: 1px solid #30332d !important;
  box-shadow: none !important;
}

html:root body.od-sign .app-bar > div:first-child {
  grid-row: 1 !important;
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 !important;
}

html:root body.od-sign .app-bar > div:first-child > a {
  padding: 4px 10px !important;
  font-size: 11px !important;
}

html:root body.od-sign .app-bar > div:first-child > span {
  overflow: hidden;
  font-size: 11px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:root body.od-sign .app-bar-brand {
  grid-row: 2 !important;
  grid-column: 1 !important;
  min-width: 0 !important;
  gap: 9px !important;
}

html:root body.od-sign .app-badge {
  width: 32px !important;
  height: 32px !important;
  flex-basis: 32px !important;
  border-radius: 9px !important;
  background: var(--od-lime) !important;
  color: #11120f !important;
  font-size: 12px !important;
}

html:root body.od-sign .app-bar-brand > div:not(.app-badge) {
  min-width: 0;
}

html:root body.od-sign .app-bar-brand strong {
  overflow: hidden;
  max-width: 100%;
  font-size: clamp(13px, 3.7vw, 15px) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:root body.od-sign .app-bar-brand span {
  display: none !important;
}

html:root body.od-sign .app-bar-title {
  grid-row: 2 !important;
  grid-column: 2 !important;
  align-self: center !important;
  overflow: hidden;
  max-width: min(42vw, 180px);
  margin: 0 !important;
  font-size: clamp(14px, 4vw, 17px) !important;
  line-height: 1.25 !important;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:root body.od-sign .app-bar-sub {
  display: none !important;
}

html:root body.od-sign .app-bar-steps {
  grid-row: 3 !important;
  grid-column: 1 / -1 !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

html:root body.od-sign .step-label {
  grid-row: 4 !important;
  grid-column: 1 / -1 !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 11px !important;
}

@media (max-width: 420px) {
  html:root body.od-sign .app-bar {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  html:root body.od-sign .app-bar > div:first-child > span {
    max-width: 128px;
  }

  html:root body.od-sign .app-bar-title {
    max-width: 132px;
  }
}

@media (max-width: 640px) {
  body.od-social .site-header .brand-copy span {
    display: none !important;
  }
}

/* 桌面端首屏节奏：移除旧版 #portal 的 96px 顶部留白，让 Hero 紧随 54px 导航。 */
@media (min-width: 901px) {
  body.lg-portal-theme #portal.portal-section {
    padding-top: 64px !important;
  }

  body.lg-portal-theme #portal .od-hero {
    padding-top: 80px !important;
    padding-bottom: 56px !important;
  }

  body.lg-portal-theme #portal .od-hero-window {
    margin-top: 40px !important;
  }
}

/* ==========================================================================
   20. 门户全量架构展示（2026-10-31）
   用产品化分层结构呈现“1+5+1+1”，一期五平台优先，但不把总架构缩成
   一期范围说明。数据规模由 /api/v1/pilot/overview 动态更新。
   ========================================================================== */
body.lg-portal-theme .architecture-overview-section {
  position: relative;
  max-width: 1180px;
  margin: clamp(56px, 7vw, 92px) auto 0;
  padding: 0;
}

body.lg-portal-theme .architecture-overview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

body.lg-portal-theme .architecture-overview-head > div:first-child {
  min-width: 0;
  max-width: 710px;
}

body.lg-portal-theme .architecture-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--od-line);
  border-radius: 14px;
  background: var(--od-surface);
}

body.lg-portal-theme .architecture-summary article {
  min-width: 96px;
  padding: 13px 15px 12px;
  border-left: 1px solid var(--od-line-soft);
}

body.lg-portal-theme .architecture-summary article:first-child {
  border-left: 0;
}

body.lg-portal-theme .architecture-summary b,
body.lg-portal-theme .architecture-summary span {
  display: block;
}

body.lg-portal-theme .architecture-summary b {
  font-family: var(--od-font-display);
  font-size: 24px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--od-ink);
  font-variant-numeric: tabular-nums;
}

body.lg-portal-theme .architecture-summary span {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--od-muted);
  white-space: nowrap;
}

body.lg-portal-theme .architecture-board {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--od-line);
  border-radius: 24px;
  background:
    radial-gradient(52% 26% at 86% 0%, rgba(99, 254, 19, 0.10), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--od-tint) 16%, var(--od-surface)) 0%, var(--od-surface) 32%);
  box-shadow: var(--od-shadow-card);
}

body.lg-portal-theme .architecture-layer,
body.lg-portal-theme .architecture-platform-layer,
body.lg-portal-theme .architecture-domains {
  border: 1px solid var(--od-line);
  border-radius: 16px;
}

body.lg-portal-theme .architecture-portal-layer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 18px 20px;
  border-color: transparent;
  background: var(--od-ink);
  color: var(--od-page);
}

body.lg-portal-theme .architecture-layer-index {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 7%, transparent);
  font-family: var(--od-font-display);
  font-size: 19px;
  font-weight: 750;
  line-height: 1;
}

body.lg-portal-theme .architecture-portal-layer .architecture-layer-index {
  border-color: var(--od-lime);
  background: var(--od-lime);
  color: #11120f;
}

body.lg-portal-theme .architecture-layer-copy {
  min-width: 0;
}

body.lg-portal-theme .architecture-layer-copy small,
body.lg-portal-theme .architecture-layer-copy strong {
  display: block;
}

body.lg-portal-theme .architecture-layer-copy small {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, currentColor 64%, transparent);
}

body.lg-portal-theme .architecture-layer-copy strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.lg-portal-theme .architecture-layer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.lg-portal-theme .architecture-layer-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: var(--od-pill);
  background: color-mix(in srgb, currentColor 5%, transparent);
  color: inherit;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}

body.lg-portal-theme .architecture-connector {
  position: relative;
  width: 1px;
  height: 22px;
  margin: 0 auto;
  background: var(--od-line);
}

body.lg-portal-theme .architecture-connector span {
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--od-lime);
  translate: -50% 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--od-lime) 14%, transparent);
}

body.lg-portal-theme .architecture-platform-layer {
  padding: 18px;
  background: var(--od-surface);
}

body.lg-portal-theme .architecture-layer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

body.lg-portal-theme .architecture-layer-heading > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

body.lg-portal-theme .architecture-layer-heading b {
  font-family: var(--od-font-display);
  font-size: 28px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--od-ink);
}

body.lg-portal-theme .architecture-layer-heading span {
  font-size: 14px;
  font-weight: 650;
  color: var(--od-ink);
}

body.lg-portal-theme .architecture-layer-heading em {
  padding: 5px 10px;
  border-radius: var(--od-pill);
  background: color-mix(in srgb, var(--od-lime) 18%, var(--od-surface));
  color: var(--od-lime-deep);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}

body.lg-portal-theme .architecture-platform-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

body.lg-portal-theme .architecture-platform-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--od-line-soft);
  border-radius: 12px;
  background: var(--od-paper);
  color: var(--od-ink);
  font-family: var(--od-font-sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

body.lg-portal-theme .architecture-platform-item:hover {
  transform: translateY(-2px);
  border-color: var(--od-line-hover);
  background: var(--od-surface);
}

body.lg-portal-theme .architecture-platform-item.is-lead {
  border-color: var(--od-ink);
  background: var(--od-ink);
  color: var(--od-page);
}

body.lg-portal-theme .architecture-platform-item.is-lead:hover {
  background: var(--od-ink-soft);
}

body.lg-portal-theme .architecture-platform-code {
  font-family: var(--od-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--od-lime-deep);
}

body.lg-portal-theme .architecture-platform-item.is-lead .architecture-platform-code {
  color: var(--od-lime);
}

body.lg-portal-theme .architecture-platform-item strong {
  overflow: hidden;
  width: 100%;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.lg-portal-theme .architecture-platform-item small {
  overflow: hidden;
  width: 100%;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--od-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.lg-portal-theme .architecture-platform-item.is-lead small {
  color: color-mix(in srgb, currentColor 64%, transparent);
}

body.lg-portal-theme .architecture-platform-item em {
  margin-top: auto;
  padding-top: 12px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  color: var(--od-faint);
}

body.lg-portal-theme .architecture-platform-item.is-lead em {
  color: var(--od-lime);
}

body.lg-portal-theme .architecture-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 10px;
  margin-top: 10px;
}

body.lg-portal-theme .architecture-support-grid .architecture-layer {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 10px 14px;
  padding: 16px;
  background: var(--od-surface);
}

body.lg-portal-theme .architecture-support-grid .architecture-layer-chips {
  grid-column: 2;
  margin-top: 3px;
}

body.lg-portal-theme .architecture-data-layer {
  background: color-mix(in srgb, var(--od-tint) 17%, var(--od-surface)) !important;
}

body.lg-portal-theme .architecture-support-grid .architecture-layer-copy strong {
  white-space: normal;
}

body.lg-portal-theme .architecture-support-grid .architecture-layer-chips span {
  border-color: var(--od-line);
  background: color-mix(in srgb, var(--od-surface) 78%, transparent);
  color: var(--od-ink-soft);
}

body.lg-portal-theme .architecture-domains {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  padding: 16px;
  background: var(--od-surface);
}

body.lg-portal-theme .architecture-domains-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.lg-portal-theme .architecture-domains-title > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: var(--od-ink);
  color: var(--od-page);
  font-family: var(--od-font-display);
  font-size: 19px;
  font-weight: 750;
}

body.lg-portal-theme .architecture-domains-title strong,
body.lg-portal-theme .architecture-domains-title small {
  display: block;
}

body.lg-portal-theme .architecture-domains-title strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--od-ink);
}

body.lg-portal-theme .architecture-domains-title small {
  margin-top: 2px;
  font-size: 11px;
  color: var(--od-faint);
}

body.lg-portal-theme .architecture-domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

body.lg-portal-theme .architecture-domain-grid a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-areas:
    "code title"
    "code meta";
  align-items: center;
  gap: 2px 9px;
  min-width: 0;
  min-height: 60px;
  padding: 9px 10px;
  border: 1px solid var(--od-line-soft);
  border-radius: 11px;
  background: var(--od-paper);
  color: var(--od-ink) !important;
  text-decoration: none !important;
  transition:
    translate 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

body.lg-portal-theme .architecture-domain-grid a:hover {
  translate: 0 -1px;
  border-color: var(--od-line-hover);
  background: var(--od-surface);
  box-shadow: 0 12px 28px -22px rgba(20, 20, 16, 0.42);
}

body.lg-portal-theme .architecture-domain-grid b {
  grid-area: code;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--od-line-soft);
  border-radius: 9px;
  background: var(--od-surface);
  color: var(--od-lime-deep);
  font-family: var(--od-font-display);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

body.lg-portal-theme .architecture-domain-grid span {
  grid-area: title;
  overflow: hidden;
  min-width: 0;
  color: var(--od-ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.lg-portal-theme .architecture-domain-grid em {
  grid-area: meta;
  justify-self: start;
  padding: 1px 6px;
  border-radius: var(--od-pill);
  background: color-mix(in srgb, var(--od-tint) 42%, var(--od-surface));
  color: var(--od-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
}

body.lg-portal-theme .architecture-domain-grid a.is-priority {
  border-color: color-mix(in srgb, var(--od-lime-deep) 24%, var(--od-line));
}

body.lg-portal-theme .architecture-domain-grid a.is-priority b,
body.lg-portal-theme .architecture-domain-grid a.is-priority em {
  border-color: transparent;
  background: var(--od-lime);
  color: #1d3813;
}

body.lg-portal-theme .architecture-domain-grid a.is-service em {
  background: color-mix(in srgb, var(--od-lime) 18%, var(--od-surface));
  color: var(--od-lime-deep);
}

body.lg-portal-theme .architecture-domain-grid a.is-extended {
  border-style: dashed;
}

body.lg-portal-theme .architecture-domain-grid a.is-extended em {
  background: transparent;
  color: var(--od-faint);
}

body.lg-portal-theme .architecture-board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 0 4px;
}

body.lg-portal-theme .architecture-board-footer > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--od-muted);
}

body.lg-portal-theme .architecture-board-footer > span i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--od-lime);
}

body.lg-portal-theme .architecture-board-footer > a {
  flex: 0 0 auto;
  color: var(--od-ink);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

body.lg-portal-theme .architecture-board-footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

body.lg-portal-theme .architecture-board-footer-actions a {
  color: var(--od-ink);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

body.lg-portal-theme .architecture-board-footer > a:hover,
body.lg-portal-theme .architecture-board-footer-actions a:hover {
  color: var(--od-lime-deep);
}

html:root.dark body.lg-portal-theme .architecture-board {
  background:
    radial-gradient(52% 26% at 86% 0%, rgba(131, 255, 59, 0.08), transparent 70%),
    linear-gradient(180deg, #151812 0%, var(--od-surface) 34%);
}

html:root.dark body.lg-portal-theme .architecture-data-layer {
  background: #1a1e17 !important;
}

html:root.dark body.lg-portal-theme .architecture-platform-item {
  background: var(--od-paper);
}

html:root.dark body.lg-portal-theme .architecture-platform-item:hover {
  background: var(--od-surface);
}

html:root.dark body.lg-portal-theme .architecture-platform-item.is-lead {
  background: var(--od-ink);
  color: var(--od-page);
}

html:root.dark body.lg-portal-theme .architecture-domain-grid a {
  background: var(--od-paper);
}

html:root.dark body.lg-portal-theme .architecture-domain-grid a:hover {
  background: var(--od-surface);
}

html:root.dark body.lg-portal-theme .architecture-domain-grid b {
  background: var(--od-surface);
}

html:root.dark body.lg-portal-theme .architecture-domain-grid a.is-priority b,
html:root.dark body.lg-portal-theme .architecture-domain-grid a.is-priority em {
  background: var(--od-lime);
  color: #1d3813;
}

@media (max-width: 1040px) {
  body.lg-portal-theme .architecture-overview-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  body.lg-portal-theme .architecture-summary {
    width: min(100%, 380px);
  }

  body.lg-portal-theme .architecture-platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.lg-portal-theme .architecture-platform-item {
    min-height: 124px;
  }
}

@media (max-width: 760px) {
  body.lg-portal-theme .architecture-overview-section {
    margin-top: 48px;
  }

  body.lg-portal-theme .architecture-board {
    padding: 14px;
    border-radius: 18px;
  }

  body.lg-portal-theme .architecture-portal-layer {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
  }

  body.lg-portal-theme .architecture-portal-layer .architecture-layer-chips {
    grid-column: 1 / -1;
  }

  body.lg-portal-theme .architecture-layer-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  body.lg-portal-theme .architecture-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.lg-portal-theme .architecture-support-grid,
  body.lg-portal-theme .architecture-domains {
    grid-template-columns: 1fr;
  }

  body.lg-portal-theme .architecture-domains-title {
    margin-bottom: 2px;
  }

  body.lg-portal-theme .architecture-domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.lg-portal-theme .architecture-board-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  body.lg-portal-theme .architecture-board-footer-actions {
    flex-wrap: wrap;
    gap: 10px 14px;
  }
}

@media (max-width: 520px) {
  body.lg-portal-theme .architecture-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  body.lg-portal-theme .architecture-summary article {
    min-width: 0;
    padding: 11px 10px;
  }

  body.lg-portal-theme .architecture-summary b {
    font-size: 21px;
  }

  body.lg-portal-theme .architecture-summary span {
    font-size: 11px;
    white-space: normal;
  }

  body.lg-portal-theme .architecture-platform-grid {
    grid-template-columns: 1fr;
  }

  body.lg-portal-theme .architecture-platform-item {
    min-height: 112px;
  }

  body.lg-portal-theme .architecture-support-grid .architecture-layer {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 14px;
  }

  body.lg-portal-theme .architecture-domain-grid {
    grid-template-columns: 1fr;
  }

  body.lg-portal-theme .architecture-domain-grid span {
    white-space: normal;
  }

  body.lg-portal-theme .architecture-layer-index,
  body.lg-portal-theme .architecture-domains-title > span {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}
