/* ==========================================================================
   职业教育课程实训AI智能体（超级老师）系统运行架构图 样式表
   Super Teacher Architecture - Seamless Integration Edition
   ========================================================================== */

/* 架构图外层：与全站页面完全融为一体，不增加突兀的视窗边框或多余工具栏 */
.st-arch-sec {
  width: 100%;
  margin-top: 48px;
  position: relative;
}

/* 核心蓝图大展板：采用全站统一的 bcard 材质与圆角体系 */
.st-arch-board {
  position: relative;
  border-radius: var(--r-lg, 16px);
  background: var(--white, #ffffff);
  border: 1px solid var(--line-l, rgba(29, 63, 135, 0.14));
  padding: clamp(24px, 3.2vw, 42px);
  box-shadow: 0 16px 40px -20px rgba(29, 63, 135, 0.1);
  transition: background .4s var(--ease, ease), border-color .4s var(--ease, ease), box-shadow .5s var(--ease, ease);
  overflow: hidden;
}

.st-arch-board:hover {
  border-color: rgba(61, 115, 221, 0.35);
  box-shadow: 0 24px 50px -25px rgba(29, 63, 135, 0.2);
}

/* 顶部标题区：原图架构图标准大字排版，与全站字体排版高度契合 */
.st-arch-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-l, rgba(29, 63, 135, 0.1));
}

.st-arch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #11234f;
  color: #ffffff;
  font-family: var(--f-mono, ui-monospace, monospace);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 5px 18px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(17, 35, 79, 0.2);
  margin-bottom: 10px;
}

.st-arch-title {
  font-family: var(--f-disp, inherit);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  color: #10214a;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.35;
}

.st-arch-sub {
  font-size: 13px;
  color: #4b6284;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* 架构图五大层流主体容器 */
.st-arch-layers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* 单个层级横向网格：左侧标识胶囊 + 右侧模块内容 */
.st-layer-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  align-items: stretch;
}

/* 左侧层级标识大胶囊 */
.st-layer-badge {
  position: relative;
  background: linear-gradient(145deg, #10214a 0%, #162f6b 100%);
  border-radius: 12px;
  padding: 16px 14px 16px 20px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 18px -8px rgba(16, 33, 74, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.st-layer-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(16, 33, 74, 0.6);
}

.st-badge-accent-bar {
  position: absolute;
  left: 8px;
  top: 14px;
  bottom: 14px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.st-badge-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  margin-bottom: 0;
}

.st-badge-sub {
  font-size: 11px;
  color: rgba(215, 230, 255, 0.88);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* 右侧具体内容面板 */
.st-layer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* 层间过渡流向箭头 */
.st-layer-flow-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1px 0;
  color: #7b9ac7;
}

.st-layer-flow-arrow svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

/* 通用基础卡片 */
.st-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #cee0f4;
  border-radius: 8px;
  padding: 8px 10px;
  color: #1e385c;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(20, 45, 95, 0.02);
}

.st-card:hover {
  border-color: #3d73dd;
  background: #f7fbff;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 14px -4px rgba(61, 115, 221, 0.18);
}

/* ============ 第 1 层：感知交互层 ============ */
.st-layer-1-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.st-card-light-blue {
  background: #eef5fd;
  border: 1px solid #bad3f5;
  color: #173669;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
}

.st-card-light-blue:hover {
  background: #e4effc;
  border-color: #3d73dd;
}

.st-layer-1-bottom {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.st-pill-card {
  background: #ffffff;
  border: 1px solid #d2e0f0;
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 12.5px;
  color: #1c365b;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  transition: all 0.25s ease;
}

.st-pill-card:hover {
  border-color: #3d73dd;
  background: #f7fbff;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px -4px rgba(61, 115, 221, 0.18);
}

.st-pill-card small,
.st-exec-card small,
.st-support-card small {
  display: block;
  font-size: 10px;
  color: #64748b;
  font-weight: 400;
  line-height: 1.35;
}

/* ============ 第 2 层：超级老师智能体层 ============ */
/* 三大核心业务引擎网格 */
.st-engines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.st-engine-card {
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.25s ease;
}

.st-engine-card:hover {
  border-color: #3b82f6;
  background: #e0f2fe;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(61, 115, 221, 0.15);
}

.st-engine-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.st-engine-head b {
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 0;
}

.st-engine-tag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  writing-mode: horizontal-tb !important;
  margin-top: 1px !important;
}

.st-engine-learn .st-engine-tag { background: #1d4ed8 !important; }
.st-engine-teach .st-engine-tag { background: #d97706 !important; }
.st-engine-grade .st-engine-tag { background: #0284c7 !important; }

.st-engine-card p {
  font-size: 11px;
  color: #334155;
  line-height: 1.45;
  margin: 0;
  font-weight: 500;
}

/* 6 步单请求流水线工序网格 */
.st-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.st-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  color: #1d4ed8;
  transition: all 0.25s ease;
}

.st-agent-card:hover .st-step-badge {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.st-experts-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.st-expert-box {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.st-expert-industry {
  background: #fef7ee;
  border: 1px solid #f6d49e;
  color: #8c500c;
}

.st-expert-industry:hover {
  border-color: #d97706;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.st-expert-industry b {
  color: #8c500c;
  font-weight: 700;
  white-space: nowrap;
}

.st-expert-industry span {
  color: #9c601a;
  font-size: 12px;
}

.st-expert-pedagogy {
  background: #edf4fe;
  border: 1px solid #bdd7f8;
  color: #173e75;
}

.st-expert-pedagogy:hover {
  border-color: #3d73dd;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(61, 115, 221, 0.15);
}

.st-expert-pedagogy b {
  color: #14376c;
  font-weight: 700;
  white-space: nowrap;
}

.st-expert-pedagogy span {
  color: #2b5592;
  font-size: 12px;
}

.st-supervisor-bar {
  background: #e8effa;
  border: 1px solid #c8d9f1;
  border-radius: 8px;
  padding: 9px 16px;
  text-align: center;
  font-size: 13px;
  color: #143265;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.st-supervisor-bar:hover {
  border-color: #3d73dd;
  background: #dfe9f8;
  transform: translateY(-1.5px);
}

.st-supervisor-bar b {
  font-weight: 700;
  color: #0f2752;
}

.st-supervisor-bar span {
  font-size: 12px;
  color: #3b5680;
}

.st-collab-bar {
  background: #f7faff;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 11.5px;
  color: #27456d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  text-align: center;
  transition: all 0.25s ease;
}

.st-collab-bar b {
  color: #173b70;
  font-weight: 700;
}

.st-collab-flow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #194680;
  font-weight: 600;
}

.st-collab-note {
  color: #556f91;
}

/* 智能体矩阵行（助学 / 助教） */
.st-agent-matrix-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: stretch;
}

.st-tag-vertical {
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
}

.st-tag-learn {
  background: #1b4f85;
}

.st-tag-teach {
  background: #d97706;
}

.st-agent-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 64px;
  gap: 8px;
}

.st-agent-card {
  background: #ffffff;
  border: 1px solid #cce0f5;
  border-radius: 8px;
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.st-agent-card:hover {
  border-color: #3d73dd;
  background: #f7faff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(61, 115, 221, 0.22);
}

.st-agent-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #3d73dd;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.st-agent-card:hover::after {
  opacity: 1;
}

.st-agent-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #132f5e;
  margin-bottom: 3px;
  white-space: nowrap;
}

.st-agent-desc {
  font-size: 10px;
  color: #607695;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* 可扩展虚线框 */
.st-agent-card-more {
  border: 1.5px dashed #a5c2e8;
  background: rgba(240, 246, 255, 0.45);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6385af;
  font-size: 11px;
  font-weight: 600;
  cursor: default;
  transition: all 0.25s ease;
}

.st-agent-card-more .plus-ic {
  font-size: 16px;
  line-height: 1;
  margin-bottom: 2px;
  color: #3d73dd;
  font-weight: 400;
}

.st-agent-card-more:hover {
  background: #eef5fc;
  border-color: #3d73dd;
  color: #3d73dd;
}

/* ============ 第 3 层：执行服务层 ============ */
.st-service-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.st-channel-box {
  background: #ebf3fc;
  border: 1px solid #bad5f5;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #18386b;
  transition: all 0.25s ease;
}

.st-exec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.st-exec-card {
  background: #ffffff;
  border: 1px solid #cee0f4;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #1b365d;
  transition: all 0.25s ease;
}

.st-exec-card:hover {
  border-color: #3d73dd;
  background: #f5f9ff;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px -4px rgba(61, 115, 221, 0.16);
}

/* ============ 第 4 层：知识资源层 ============ */
.st-knowledge-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.st-knowledge-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.st-repo-card {
  background: #ffffff;
  border: 1px solid #cee0f4;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #173663;
  transition: all 0.25s ease;
  min-height: 44px;
}

.st-repo-card small {
  font-size: 10px;
  color: #637996;
  font-weight: 400;
  margin-top: 2px;
}

.st-repo-card:hover {
  border-color: #3d73dd;
  background: #f7faff;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px -4px rgba(61, 115, 221, 0.16);
}

/* ============ 第 5 层：支撑保障层 ============ */
.st-support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.st-support-card {
  background: #ffffff;
  border: 1px solid #cee0f4;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #153265;
  transition: all 0.25s ease;
}

.st-support-card:hover {
  border-color: #3d73dd;
  background: #f5f9ff;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 14px -4px rgba(61, 115, 221, 0.18);
}

/* 底部专业注释 */
.st-arch-footer-note {
  margin-top: 14px;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.6;
  padding: 9px 14px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #3d73dd;
}

.st-arch-footer-note b {
  color: #334155;
  font-weight: 600;
}

/* ============ 智能体节点详情交互模态窗 ============ */
.st-agent-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 48, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000005 !important;
  display: none;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.st-agent-modal-backdrop.is-open {
  display: grid;
  opacity: 1;
}

.st-agent-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(61, 115, 221, 0.25);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.st-agent-modal-backdrop.is-open .st-agent-modal-dialog {
  transform: translateY(0) scale(1);
}

.st-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: #f4f8fe;
  border-bottom: 1px solid rgba(61, 115, 221, 0.15);
}

.st-dialog-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.st-dialog-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--f-mono, ui-monospace, monospace);
  font-weight: 700;
  background: #1b4f85;
  color: #ffffff;
}

.st-dialog-title {
  font-size: 17px;
  font-weight: 700;
  color: #11234c;
}

.st-dialog-close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.st-dialog-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #0f172a;
}

.st-dialog-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}

.st-dialog-meta-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.st-dialog-meta-item {
  display: flex;
  gap: 10px;
  font-size: 13px;
}

.st-dialog-meta-label {
  font-weight: 600;
  color: #1e3a6a;
  min-width: 80px;
}

.st-dialog-meta-val {
  color: #475569;
}

.st-dialog-foot {
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

.st-dialog-ok-btn {
  background: #3d73dd;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.st-dialog-ok-btn:hover {
  background: #2b5ec2;
}

/* ==========================================================================
   全站主题双模自适应系统 (Dual-Mode Blueprint Theme Adaptation)
   在亮色模式下严格呈现明亮精密图纸，在暗色模式下自适应呈现科技夜空蓝图
   ========================================================================== */

/* 亮色模式显式保障与质感增强 */
[data-mode="light"] .st-arch-board,
body.bp-light .st-arch-board {
  background: #ffffff;
  border-color: rgba(29, 63, 135, 0.14);
  box-shadow: 0 16px 40px -20px rgba(29, 63, 135, 0.1);
}

[data-mode="light"] .st-arch-header,
body.bp-light .st-arch-header {
  border-bottom-color: rgba(29, 63, 135, 0.1);
}

[data-mode="light"] .st-arch-badge,
body.bp-light .st-arch-badge {
  background: #eef5fd;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  box-shadow: 0 2px 8px rgba(61, 115, 221, 0.1);
}

[data-mode="light"] .st-arch-title,
body.bp-light .st-arch-title {
  color: #10214a;
}

[data-mode="light"] .st-arch-sub,
body.bp-light .st-arch-sub {
  color: #4b6284;
}

[data-mode="light"] .st-card,
body.bp-light .st-card {
  background: #ffffff;
  border-color: #cee0f4;
  color: #1e385c;
}

[data-mode="light"] .st-card-light-blue,
body.bp-light .st-card-light-blue {
  background: #eef5fd;
  border-color: #bad3f5;
  color: #173669;
}

[data-mode="light"] .st-pill-card,
body.bp-light .st-pill-card {
  background: #ffffff;
  border-color: #d2e0f0;
  color: #1c365b;
}

[data-mode="light"] .st-expert-industry,
body.bp-light .st-expert-industry {
  background: #fef7ee;
  border-color: #f6d49e;
  color: #8c500c;
}
[data-mode="light"] .st-expert-industry b,
body.bp-light .st-expert-industry b {
  color: #8c500c;
}
[data-mode="light"] .st-expert-industry span,
body.bp-light .st-expert-industry span {
  color: #9c601a;
}

[data-mode="light"] .st-expert-pedagogy,
body.bp-light .st-expert-pedagogy {
  background: #edf4fe;
  border-color: #bdd7f8;
  color: #173e75;
}
[data-mode="light"] .st-expert-pedagogy b,
body.bp-light .st-expert-pedagogy b {
  color: #14376c;
}
[data-mode="light"] .st-expert-pedagogy span,
body.bp-light .st-expert-pedagogy span {
  color: #2b5592;
}

[data-mode="light"] .st-supervisor-bar,
body.bp-light .st-supervisor-bar {
  background: #e8effa;
  border-color: #c8d9f1;
  color: #143265;
}
[data-mode="light"] .st-supervisor-bar b,
body.bp-light .st-supervisor-bar b {
  color: #0f2752;
}
[data-mode="light"] .st-supervisor-bar span,
body.bp-light .st-supervisor-bar span {
  color: #3b5680;
}

[data-mode="light"] .st-collab-bar,
body.bp-light .st-collab-bar {
  background: #f7faff;
  border-color: #dce6f4;
  color: #27456d;
}
[data-mode="light"] .st-collab-bar b,
body.bp-light .st-collab-bar b {
  color: #173b70;
}
[data-mode="light"] .st-collab-flow,
body.bp-light .st-collab-flow {
  color: #194680;
}
[data-mode="light"] .st-collab-note,
body.bp-light .st-collab-note {
  color: #556f91;
}

[data-mode="light"] .st-agent-card,
body.bp-light .st-agent-card {
  background: #ffffff;
  border-color: #cce0f5;
}
[data-mode="light"] .st-agent-title,
body.bp-light .st-agent-title {
  color: #132f5e;
}
[data-mode="light"] .st-agent-desc,
body.bp-light .st-agent-desc {
  color: #607695;
}

[data-mode="light"] .st-channel-box,
body.bp-light .st-channel-box {
  background: #eef5fd;
  border-color: #bad3f5;
  color: #17386c;
}

[data-mode="light"] .st-exec-card,
body.bp-light .st-exec-card {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e385c;
}

[data-mode="light"] .st-repo-card,
body.bp-light .st-repo-card {
  background: #ffffff;
  border-color: #cce0f5;
  color: #1e385c;
}
[data-mode="light"] .st-repo-card small,
body.bp-light .st-repo-card small {
  color: #64748b;
}

[data-mode="light"] .st-support-card,
body.bp-light .st-support-card {
  background: #f1f6fd;
  border-color: #cce0f5;
  color: #17386c;
}

[data-mode="light"] .st-arch-footer-note,
body.bp-light .st-arch-footer-note {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}
[data-mode="light"] .st-arch-footer-note b,
body.bp-light .st-arch-footer-note b {
  color: #1e293b;
}

/* ==========================================================================
   全站暗色蓝图模式自适应 (Dark Blueprint Mode Adaptation)
   仅在页面处于暗色模式时激活，亮色模式下绝不误命中
   ========================================================================== */
[data-mode="dark"] .st-arch-board,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-arch-board {
  background: #081639;
  border-color: rgba(61, 115, 221, 0.35);
  box-shadow: 0 25px 60px -25px rgba(0, 0, 0, 0.7);
}

[data-mode="dark"] .st-arch-board:hover,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-arch-board:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 30px 70px -25px rgba(10, 25, 60, 0.9);
}

[data-mode="dark"] .st-arch-header,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-arch-header {
  border-bottom-color: rgba(61, 115, 221, 0.22);
}

[data-mode="dark"] .st-arch-badge,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-arch-badge {
  background: #1b3877;
  color: #ffffff;
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 4px 15px rgba(61, 115, 221, 0.3);
}

[data-mode="dark"] .st-arch-title,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-arch-title {
  color: #f1f5f9;
}

[data-mode="dark"] .st-arch-sub,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-arch-sub {
  color: #94a3b8;
}

[data-mode="dark"] .st-card,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-card {
  background: #0c1e47;
  border-color: rgba(61, 115, 221, 0.3);
  color: #e2e8f0;
}

[data-mode="dark"] .st-card:hover,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-card:hover {
  background: #132d66;
  border-color: #60a5fa;
}

[data-mode="dark"] .st-card-light-blue,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-card-light-blue {
  background: #102657;
  border-color: rgba(96, 165, 250, 0.35);
  color: #e0edff;
}

[data-mode="dark"] .st-pill-card,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-pill-card {
  background: #0d214d;
  border-color: rgba(61, 115, 221, 0.35);
  color: #cbd5e1;
}

[data-mode="dark"] .st-expert-industry,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-expert-industry {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}
[data-mode="dark"] .st-expert-industry b,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-expert-industry b {
  color: #f59e0b;
}
[data-mode="dark"] .st-expert-industry span,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-expert-industry span {
  color: #fef3c7;
}

[data-mode="dark"] .st-expert-pedagogy,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-expert-pedagogy {
  background: rgba(61, 115, 221, 0.18);
  border-color: rgba(96, 165, 250, 0.4);
  color: #bfdbfe;
}
[data-mode="dark"] .st-expert-pedagogy b,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-expert-pedagogy b {
  color: #93c5fd;
}
[data-mode="dark"] .st-expert-pedagogy span,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-expert-pedagogy span {
  color: #dbeafe;
}

[data-mode="dark"] .st-supervisor-bar,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-supervisor-bar {
  background: #0e2454;
  border-color: rgba(96, 165, 250, 0.3);
  color: #e2e8f0;
}
[data-mode="dark"] .st-supervisor-bar b,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-supervisor-bar b {
  color: #93c5fd;
}
[data-mode="dark"] .st-supervisor-bar span,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-supervisor-bar span {
  color: #cbd5e1;
}

[data-mode="dark"] .st-collab-bar,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-collab-bar {
  background: #0b1c42;
  border-color: rgba(61, 115, 221, 0.25);
  color: #cbd5e1;
}
[data-mode="dark"] .st-collab-bar b,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-collab-bar b {
  color: #93c5fd;
}
[data-mode="dark"] .st-collab-flow,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-collab-flow {
  color: #60a5fa;
}
[data-mode="dark"] .st-collab-note,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-collab-note {
  color: #94a3b8;
}

[data-mode="dark"] .st-agent-card,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-agent-card {
  background: #0c1e47;
  border-color: rgba(61, 115, 221, 0.3);
}
[data-mode="dark"] .st-agent-card:hover,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-agent-card:hover {
  background: #14306d;
  border-color: #60a5fa;
}
[data-mode="dark"] .st-agent-title,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-agent-title {
  color: #f1f5f9;
}
[data-mode="dark"] .st-agent-desc,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-agent-desc {
  color: #94a3b8;
}

[data-mode="dark"] .st-agent-card-more,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-agent-card-more {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(12, 30, 71, 0.5);
  color: #93c5fd;
}

[data-mode="dark"] .st-channel-box,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-channel-box {
  background: #0f2452;
  border-color: rgba(96, 165, 250, 0.3);
  color: #bfdbfe;
}

[data-mode="dark"] .st-exec-card,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-exec-card {
  background: #0c1e47;
  border-color: rgba(61, 115, 221, 0.3);
  color: #e2e8f0;
}
[data-mode="dark"] .st-exec-card:hover,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-exec-card:hover {
  background: #132d66;
  border-color: #60a5fa;
}

[data-mode="dark"] .st-repo-card,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-repo-card {
  background: #0c1e47;
  border-color: rgba(61, 115, 221, 0.3);
  color: #e2e8f0;
}
[data-mode="dark"] .st-repo-card small,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-repo-card small {
  color: #94a3b8;
}

[data-mode="dark"] .st-support-card,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-support-card {
  background: #0c1e47;
  border-color: rgba(61, 115, 221, 0.3);
  color: #f1f5f9;
}

[data-mode="dark"] .st-arch-footer-note,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-arch-footer-note {
  background: #0a1b42;
  border-color: rgba(61, 115, 221, 0.25);
  color: #94a3b8;
}
[data-mode="dark"] .st-arch-footer-note b,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-arch-footer-note b {
  color: #cbd5e1;
}

[data-mode="dark"] .st-agent-modal-dialog,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-agent-modal-dialog {
  background: #0c1c42;
  border-color: rgba(61, 115, 221, 0.4);
}
[data-mode="dark"] .st-dialog-header,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-dialog-header {
  background: #081533;
  border-bottom-color: rgba(61, 115, 221, 0.25);
}
[data-mode="dark"] .st-dialog-title,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-dialog-title {
  color: #f1f5f9;
}
[data-mode="dark"] .st-dialog-body,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-dialog-body {
  color: #cbd5e1;
}
[data-mode="dark"] .st-dialog-meta-list,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-dialog-meta-list {
  border-top-color: rgba(61, 115, 221, 0.25);
}
[data-mode="dark"] .st-dialog-meta-label,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-dialog-meta-label {
  color: #93c5fd;
}
[data-mode="dark"] .st-dialog-meta-val,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-dialog-meta-val {
  color: #94a3b8;
}
[data-mode="dark"] .st-dialog-foot,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-dialog-foot {
  background: #081533;
  border-top-color: rgba(61, 115, 221, 0.25);
}

[data-mode="dark"] .st-engine-card,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-engine-card {
  background: #0d2254;
  border-color: rgba(96, 165, 250, 0.35);
}
[data-mode="dark"] .st-engine-card:hover,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-engine-card:hover {
  background: #112d6c;
  border-color: #60a5fa;
}
[data-mode="dark"] .st-engine-head b,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-engine-head b {
  color: #93c5fd;
}
[data-mode="dark"] .st-engine-card p,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-engine-card p {
  color: #cbd5e1;
}
[data-mode="dark"] .st-step-badge,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-step-badge {
  background: #0f265c;
  border-color: rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}
[data-mode="dark"] .st-pill-card small,
[data-mode="dark"] .st-exec-card small,
[data-mode="dark"] .st-support-card small,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-pill-card small,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-exec-card small,
body.bp-dark:not([data-mode="light"]):not(.bp-light) .st-support-card small {
  color: #8da2c0;
}

/* ==========================================================================
   超级老师系统运行架构图 · 移动端交互视窗与控制台 (对齐动态路由图规范)
   ========================================================================== */

/* 1. PC 桌面端 (>900px)：保持与全站原生融合，隐藏移动端视窗工具栏与状态条 */
@media screen and (min-width: 901px) {
  .st-arch-window-frame:not(.is-maximized) {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
    overflow: visible;
  }

  .st-arch-window-frame:not(.is-maximized) .st-arch-win-toolbar,
  .st-arch-window-frame:not(.is-maximized) .st-arch-win-statusbar,
  .st-arch-window-frame:not(.is-maximized) .st-arch-pan-hint {
    display: none !important;
  }

  .st-arch-window-frame:not(.is-maximized) .st-arch-viewport-box {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
    cursor: default;
    touch-action: auto;
    background: transparent;
  }

  .st-arch-window-frame:not(.is-maximized) .st-arch-stage {
    position: static;
    transform: none !important;
    width: 100%;
  }

  .st-arch-window-frame:not(.is-maximized) .st-arch-board {
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
  }
}

/* 2. 移动端与平板端 (<=900px)：启用蓝图交互视窗小窗口与平移缩放 */
@media screen and (max-width: 900px) {
  .st-arch-window-frame {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 1.5px solid rgba(37, 99, 235, 0.22) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px -10px rgba(16, 33, 74, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.06) !important;
    overflow: hidden !important;
    margin-top: 14px !important;
  }

  body.bp-dark .st-arch-window-frame {
    background: #061129 !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(56, 189, 248, 0.15) !important;
  }

  /* 视窗顶部控制工具条 HUD */
  .st-arch-win-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    background: #f8fafd !important;
    border-bottom: 1px solid rgba(16, 33, 74, 0.08) !important;
    user-select: none !important;
    z-index: 20 !important;
  }

  body.bp-dark .st-arch-win-toolbar {
    background: #091a3d !important;
    border-bottom-color: rgba(56, 189, 248, 0.18) !important;
  }

  .st-arch-win-title {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
  }

  .st-arch-win-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    background: rgba(37, 99, 235, 0.09) !important;
    border: 1px solid rgba(37, 99, 235, 0.22) !important;
    padding: 2.5px 7px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  body.bp-dark .st-arch-win-badge {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.28) !important;
  }

  .st-arch-live-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    box-shadow: 0 0 6px #10b981 !important;
    animation: stArchLivePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
  }

  @keyframes stArchLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
  }

  .st-arch-win-tools {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
  }

  .st-arch-tool-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    height: 28px !important;
    padding: 0 8px !important;
    border-radius: 7px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(16, 33, 74, 0.12) !important;
    background: #ffffff !important;
    color: #334155 !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    user-select: none !important;
  }

  body.bp-dark .st-arch-tool-btn {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #cbd5e1 !important;
  }

  .st-arch-tool-btn:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
    color: #2563eb !important;
  }

  body.bp-dark .st-arch-tool-btn:hover {
    background: rgba(56, 189, 248, 0.18) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
  }

  .st-arch-tool-ratio {
    display: inline-block !important;
    font-family: var(--f-mono, monospace) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    min-width: 36px !important;
    text-align: center !important;
    user-select: none !important;
  }

  body.bp-dark .st-arch-tool-ratio {
    color: #9cb3ea !important;
  }

  .st-arch-btn-expand {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 650 !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
  }

  body.bp-dark .st-arch-btn-expand {
    background: #0284c7 !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35) !important;
  }

  /* 视窗可视区域 (Viewport Box) - 现代大气渐变背景（去网格化） */
  .st-arch-viewport-box {
    position: relative !important;
    width: 100% !important;
    height: clamp(270px, 76vw, 320px) !important;
    overflow: hidden !important;
    touch-action: none !important;
    user-select: none !important;
    cursor: grab !important;
    background: linear-gradient(135deg, #f8faff 0%, #edf3fc 40%, #e0ebf8 75%, #d4e2f5 100%) !important;
    background-image: linear-gradient(135deg, #f8faff 0%, #edf3fc 40%, #e0ebf8 75%, #d4e2f5 100%) !important;
    background-size: auto !important;
  }

  body.bp-dark .st-arch-viewport-box {
    background: linear-gradient(145deg, #0d2144 0%, #0a1b38 40%, #07152b 75%, #050e20 100%) !important;
    background-image: linear-gradient(145deg, #0d2144 0%, #0a1b38 40%, #07152b 75%, #050e20 100%) !important;
    background-size: auto !important;
  }

  .st-arch-viewport-box.is-dragging {
    cursor: grabbing !important;
  }

  .st-arch-stage {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform-origin: 0 0 !important;
    will-change: transform !important;
    pointer-events: auto !important;
    touch-action: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }

  .st-arch-viewport-box *,
  .st-arch-stage * {
    touch-action: none !important;
    -webkit-user-drag: none !important;
  }

  .st-arch-stage.with-transition {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* 移动端视窗内：保持 PC 完整 5 大层级蓝图尺寸 (1180px)，以供平移缩放漫游 */
  .st-arch-window-frame .st-arch-board {
    width: 1180px !important;
    min-width: 1180px !important;
    max-width: 1180px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 16px 14px !important;
  }

  /* 强制保持 5 层完整架构网格拓扑 */
  .st-arch-window-frame .st-layer-row {
    display: grid !important;
    grid-template-columns: 190px 1fr !important;
    gap: 14px !important;
    align-items: stretch !important;
    margin-bottom: 0 !important;
  }

  .st-arch-window-frame .st-layer-badge {
    padding: 16px 14px 16px 20px !important;
    border-radius: 12px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
  }

  .st-arch-window-frame .st-badge-accent-bar {
    left: 0 !important;
    top: 12px !important;
    bottom: 12px !important;
    width: 4px !important;
  }

  .st-arch-window-frame .st-badge-title {
    font-size: 16px !important;
  }

  .st-arch-window-frame .st-layer-1-top {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .st-arch-window-frame .st-card-light-blue {
    padding: 12px 14px !important;
    font-size: 12.5px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .st-arch-window-frame .st-layer-1-bottom {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
  }

  .st-arch-window-frame .st-pill-card {
    padding: 8px 10px !important;
    font-size: 12px !important;
    align-items: center !important;
    text-align: center !important;
  }

  .st-arch-window-frame .st-engines-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  .st-arch-window-frame .st-engine-card {
    padding: 12px 14px !important;
  }

  .st-arch-window-frame .st-collab-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    gap: 6px !important;
  }

  .st-arch-window-frame .st-pipeline-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 8px !important;
  }

  .st-arch-window-frame .st-agent-card {
    padding: 10px 8px !important;
  }

  .st-arch-window-frame .st-service-channels {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .st-arch-window-frame .st-agent-matrix-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .st-arch-window-frame .st-tag-vertical {
    writing-mode: vertical-rl !important;
    height: auto !important;
    padding: 8px 6px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    text-align: center !important;
  }

  .st-arch-window-frame .st-exec-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    flex: 1 !important;
  }

  .st-arch-window-frame .st-knowledge-top {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .st-arch-window-frame .st-knowledge-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
  }

  .st-arch-window-frame .st-support-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }

  /* 首次触控指引悬浮标签 */
  .st-arch-pan-hint {
    position: absolute !important;
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    color: #f8fafc !important;
    padding: 5px 12px !important;
    border-radius: 99px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    pointer-events: none !important;
    z-index: 10 !important;
    opacity: 1 !important;
    transition: opacity 0.5s ease !important;
  }

  .st-arch-pan-hint.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  /* 移动端视窗底部状态条 */
  .st-arch-win-statusbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 7px 12px !important;
    background: #f8fafd !important;
    border-top: 1px solid rgba(16, 33, 74, 0.08) !important;
    font-size: 10.5px !important;
    user-select: none !important;
    z-index: 20 !important;
  }

  body.bp-dark .st-arch-win-statusbar {
    background: #091a3d !important;
    border-top-color: rgba(56, 189, 248, 0.18) !important;
    color: #94a3b8 !important;
  }

  .st-arch-win-statusbar .statusbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #64748b !important;
  }

  body.bp-dark .st-arch-win-statusbar .statusbar-left {
    color: #9cb3ea !important;
  }

  .st-arch-win-statusbar .statusbar-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    box-shadow: 0 0 6px #10b981 !important;
  }

  .st-arch-win-statusbar .statusbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .st-arch-win-statusbar .statusbar-ext-link {
    color: #64748b !important;
    font-size: 10.5px !important;
    font-weight: 550 !important;
    text-decoration: none !important;
  }

  body.bp-dark .st-arch-win-statusbar .statusbar-ext-link {
    color: #94a3b8 !important;
  }

  .st-arch-win-statusbar .statusbar-expand-link {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #2563eb !important;
    font-size: 10.5px !important;
    font-weight: 650 !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
  }

  body.bp-dark .st-arch-win-statusbar .statusbar-expand-link {
    color: #38bdf8 !important;
  }

  /* 针对 400px 以下超窄屏移动端 (如折叠屏外屏、iPhone SE) 的精细微调 */
  @media screen and (max-width: 400px) {
    .st-arch-win-toolbar {
      padding: 6px 8px !important;
      gap: 4px !important;
    }
    .st-arch-win-badge {
      font-size: 10px !important;
      padding: 2px 5px !important;
      gap: 3px !important;
    }
    .st-arch-win-tools {
      gap: 3px !important;
    }
    .st-arch-tool-btn {
      height: 26px !important;
      padding: 0 5px !important;
      font-size: 11px !important;
    }
    .st-arch-tool-ratio {
      font-size: 10px !important;
      min-width: 28px !important;
    }
    .st-arch-btn-expand {
      padding: 0 6px !important;
    }
    .st-arch-win-statusbar {
      padding: 5px 8px !important;
      font-size: 9.5px !important;
    }
    .st-arch-win-statusbar .statusbar-left {
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
  }
}

/* 3. 放大窗口全屏模式 (Maximized Fullscreen Modal Viewport) */
.st-arch-sec:has(.st-arch-window-frame.is-maximized),
.sheet:has(.st-arch-window-frame.is-maximized),
.arch:has(.st-arch-window-frame.is-maximized) {
  z-index: 999999 !important;
}

.st-arch-window-frame.is-maximized {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 999999 !important;
  background: linear-gradient(135deg, #f8faff 0%, #edf3fc 40%, #e0ebf8 75%, #d4e2f5 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.95) !important;
  animation: stArchWinPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

body.bp-dark .st-arch-window-frame.is-maximized {
  background: linear-gradient(145deg, #0d2144 0%, #0a1b38 40%, #07152b 75%, #050e20 100%) !important;
}

@keyframes stArchWinPopIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.st-arch-window-frame.is-maximized .st-arch-win-toolbar {
  padding: max(22px, calc(12px + env(safe-area-inset-top, 16px))) 16px 14px 16px !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(16, 33, 74, 0.12) !important;
  box-shadow: 0 4px 16px rgba(16, 33, 74, 0.06) !important;
}

body.bp-dark .st-arch-window-frame.is-maximized .st-arch-win-toolbar {
  background: rgba(9, 26, 61, 0.98) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

.st-arch-window-frame.is-maximized .st-arch-viewport-box {
  flex: 1 !important;
  height: 100% !important;
  max-height: none !important;
  background: transparent !important;
}

.st-arch-window-frame.is-maximized .st-arch-win-statusbar {
  padding: 10px 16px max(14px, env(safe-area-inset-bottom, 14px)) 16px !important;
  background: #ffffff !important;
  border-top: 1px solid rgba(16, 33, 74, 0.12) !important;
}

body.bp-dark .st-arch-window-frame.is-maximized .st-arch-win-statusbar {
  background: rgba(9, 26, 61, 0.98) !important;
  border-top: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.st-arch-window-frame.is-maximized .ico-expand {
  display: none !important;
}

.st-arch-window-frame.is-maximized .ico-collapse {
  display: inline-block !important;
}

.st-arch-window-frame.is-maximized .st-arch-btn-expand {
  background: #e11d48 !important;
  border-color: #f43f5e !important;
  color: #ffffff !important;
}

.st-arch-window-frame.is-maximized .statusbar-expand-link {
  display: none !important;
}

/* 移动端小窗口：单指纵向滑动交还给页面滚动，双指拖动 / 缩放由脚本处理；全屏放大后仍为 touch-action: none */
@media screen and (max-width: 900px) {
  .st-arch-window-frame:not(.is-maximized) .st-arch-viewport-box,
  .st-arch-window-frame:not(.is-maximized) .st-arch-viewport-box * {
    touch-action: pan-y !important;
  }
}
