/* 大锤办公（projects/office）V1 珠光通透旗舰风样式 — 浅色珠光 ⇄ 深色星夜曜石 1:1 */

.office-body {
  --o-bg: #f5f7fb;
  --o-surface: #ffffff;
  --o-surface-inset: #f3f6fc;
  --o-surface-glass: rgba(255, 255, 255, 0.86);
  --o-ink: #0f172a;
  --o-muted: #525e75;
  --o-subtle: #78849a;
  --o-border: rgba(15, 23, 42, 0.085);
  --o-border-strong: rgba(15, 23, 42, 0.14);
  --o-obsidian: #111827;
  --o-obsidian-fg: #ffffff;
  --o-cobalt: #2350dc;
  --o-indigo: #4f46e5;
  --o-amber: #d97706;
  --o-danger: #dc2626;
  --o-success: #059669;
  --o-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.03), 0 10px 24px -14px rgba(15, 23, 42, 0.09);
  --o-shadow-md: 0 6px 18px rgba(15, 23, 42, 0.06), 0 24px 48px -22px rgba(15, 23, 42, 0.14);
  --o-radius: 1.25rem;
  --o-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --o-gutter: clamp(0.9rem, 3vw, 2.2rem);
  --o-width: min(82rem, calc(100% - var(--o-gutter) * 2));

  background: var(--o-bg);
  color: var(--o-ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.office-shell {
  width: var(--o-width);
  max-width: none;
  margin-inline: auto;
}

.office-main {
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

/* =========================================================================
   1. 60px 珠光毛玻璃顶栏
   ========================================================================= */
body.office-body > header.site-header.office-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-height: 3.75rem;
  padding-inline: max(var(--o-gutter), calc((100% - 82rem) / 2));
  background: var(--o-surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--o-border);
}

body.office-body > header.office-header .identity {
  gap: 0.6rem;
}
body.office-body > header.office-header .brand-icon {
  width: 30px;
  height: 30px;
}
body.office-body > header.office-header .wordmark {
  font-size: clamp(1.2rem, 2vw, 1.48rem);
}
body.office-body > header.office-header .brand-name {
  padding-left: 0.6rem;
  border-left-color: var(--o-border-strong);
  font-size: 0.88rem;
  color: var(--o-muted);
}
body.office-body > header.office-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.65rem);
}
body.office-body > header.office-header nav > a {
  display: inline-flex;
  align-items: center;
  color: var(--o-muted);
  font-size: 0.92rem;
  font-weight: 560;
  padding-block: 0.3rem;
}
body.office-body > header.office-header nav > a:hover {
  color: var(--o-ink);
}
body.office-body > header.office-header nav > a::after {
  background: var(--o-obsidian);
}
.office-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0;
  width: 34px;
  height: 34px;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface);
  color: var(--o-ink);
  font-size: 0.92rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.18s var(--o-ease), border-color 0.18s var(--o-ease), background 0.18s var(--o-ease);
}
.office-theme-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(35, 80, 220, 0.35);
}

/* =========================================================================
   2. 按钮体系（黑曜 ⇄ 珠白签名胶囊 + 磨砂白瓷次按钮）
   ========================================================================= */
.o-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.68rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 620;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--o-ease), box-shadow 0.2s var(--o-ease), background 0.18s var(--o-ease), border-color 0.18s var(--o-ease), color 0.18s var(--o-ease);
}
.o-btn:hover {
  transform: translateY(-1px);
}
.o-btn:active {
  transform: translateY(0);
}
.o-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.o-btn-primary {
  background: var(--o-obsidian);
  color: var(--o-obsidian-fg);
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.45);
}
.o-btn-primary:hover {
  box-shadow: 0 12px 24px -10px rgba(35, 80, 220, 0.45);
}
.o-btn-glass {
  background: rgba(255, 255, 255, 0.85);
  color: var(--o-ink);
  border-color: var(--o-border-strong);
  box-shadow: var(--o-shadow-sm);
}
.o-btn-glass:hover {
  border-color: rgba(35, 80, 220, 0.35);
  color: var(--o-cobalt);
}
.o-btn-subtle {
  background: var(--o-surface);
  color: var(--o-ink);
  border-color: var(--o-border-strong);
}
.o-btn-subtle:hover {
  border-color: rgba(35, 80, 220, 0.35);
  color: var(--o-cobalt);
}
.o-btn-subtle.is-active {
  background: rgba(35, 80, 220, 0.11);
  border-color: rgba(35, 80, 220, 0.45);
  color: var(--o-cobalt);
}
.o-btn-ghost {
  background: transparent;
  color: var(--o-muted);
  border-color: transparent;
}
.o-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--o-ink);
}
.o-btn-danger {
  background: rgba(220, 38, 38, 0.1);
  color: var(--o-danger);
  border-color: rgba(220, 38, 38, 0.28);
}
.o-btn-danger:hover {
  background: var(--o-danger);
  color: #ffffff;
}
.o-btn-sm {
  padding: 0.48rem 0.92rem;
  font-size: 0.84rem;
}
.o-btn-xs {
  padding: 0.34rem 0.72rem;
  font-size: 0.78rem;
}

.o-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding-inline: 0.34rem;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}
.o-badge.is-zero {
  background: rgba(15, 23, 42, 0.12);
  color: var(--o-muted);
}
.o-badge-soft {
  background: rgba(35, 80, 220, 0.12);
  color: var(--o-cobalt);
}

/* =========================================================================
   3. Band 1 · 珠光网格日光首屏（可折叠）
   ========================================================================= */
.office-hero-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 62% 72% at 78% 34%, rgba(69, 120, 255, 0.12), transparent 66%),
    radial-gradient(ellipse 46% 54% at 88% 82%, rgba(255, 194, 88, 0.14), transparent 62%),
    radial-gradient(ellipse 42% 52% at 10% 18%, rgba(139, 92, 246, 0.06), transparent 64%),
    linear-gradient(128deg, #ffffff 16%, #f4f7ff 56%, #faf8ff 100%);
  border-bottom: 1px solid var(--o-border);
}
.office-hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 84% 82% at 50% 42%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 84% 82% at 50% 42%, #000 30%, transparent 90%);
}
.office-hero-band > .office-shell {
  position: relative;
  z-index: 1;
}

.office-hero-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.58rem;
}
.office-hero-compact[hidden] { display: none; }
.hero-compact-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.hero-compact-left img {
  border-radius: 7px;
  flex-shrink: 0;
}
.hero-compact-tag {
  font-size: 0.8rem;
  color: var(--o-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-compact-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.office-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(1.3rem, 3.2vw, 2.8rem);
  padding-block: clamp(1.3rem, 2.4vw, 2.05rem);
}
.office-hero-inner[hidden] { display: none; }

.office-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}
.office-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--o-border-strong);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--o-muted);
}
.office-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2350dc, #f59e0b);
}
.office-collapse-btn {
  border: 0;
  background: transparent;
  color: var(--o-subtle);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.office-collapse-btn:hover { color: var(--o-ink); }

.office-hero-copy h1.display {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.office-gradient-text {
  background: linear-gradient(108deg, #2350dc 0%, #4f46e5 54%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.office-hero-lead {
  margin: 0 0 1.15rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--o-muted);
  max-width: 38rem;
}
.office-hero-lead code {
  padding: 0.08rem 0.35rem;
  border-radius: 6px;
  background: rgba(35, 80, 220, 0.09);
  color: var(--o-cobalt);
  font-size: 0.88em;
}
.office-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.office-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 34rem;
  margin: 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--o-border);
}
.office-hero-metrics dt {
  font-size: 0.76rem;
  color: var(--o-subtle);
  margin-bottom: 0.16rem;
}
.office-hero-metrics dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.office-hero-metrics dd strong {
  font-size: 1rem;
  color: var(--o-ink);
}
.office-hero-metrics dd span {
  font-size: 0.78rem;
  color: var(--o-muted);
}

.office-dropzone-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid var(--o-border-strong);
  border-radius: 1.4rem;
  padding: 0.75rem;
  box-shadow: var(--o-shadow-md);
  transition: border-color 0.2s var(--o-ease), box-shadow 0.2s var(--o-ease), transform 0.2s var(--o-ease);
}
.office-dropzone-card.is-dragover {
  border-color: var(--o-cobalt);
  box-shadow: 0 0 0 4px rgba(35, 80, 220, 0.18), var(--o-shadow-md);
  transform: scale(1.01);
}
.office-hero-figure {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eaf0ff;
}
.office-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.office-drop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.7rem;
  padding: 0.62rem 0.78rem;
  border-radius: 0.95rem;
  border: 1px dashed rgba(35, 80, 220, 0.28);
  background: var(--o-surface-inset);
}
.office-drop-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.office-drop-copy strong {
  font-size: 0.86rem;
  color: var(--o-ink);
}
.office-drop-copy span {
  font-size: 0.76rem;
  color: var(--o-muted);
}
.office-recent-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--o-border);
  overflow-x: auto;
}
.office-recent-bar[hidden] { display: none; }
.recent-label {
  font-size: 0.75rem;
  color: var(--o-subtle);
  flex-shrink: 0;
}
.recent-chips {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.recent-chip {
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface);
  color: var(--o-muted);
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-chip:hover {
  border-color: var(--o-cobalt);
  color: var(--o-cobalt);
}

/* =========================================================================
   4. Band 2 · 主阅片提词与排练工作台
   ========================================================================= */
.office-workbench-band {
  padding-top: clamp(0.95rem, 1.8vw, 1.45rem);
}

.office-share-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.05rem;
  margin-bottom: 0.85rem;
  border-radius: 1rem;
  background: linear-gradient(110deg, rgba(35, 80, 220, 0.1), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(35, 80, 220, 0.22);
  font-size: 0.86rem;
}
.office-share-banner.is-expired {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.26);
}
.office-share-banner[hidden] { display: none; }
.share-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.office-progress-bar {
  margin-bottom: 0.85rem;
  padding: 0.72rem 1rem;
  border-radius: 0.95rem;
  background: var(--o-surface);
  border: 1px solid var(--o-border-strong);
  box-shadow: var(--o-shadow-sm);
}
.office-progress-bar[hidden] { display: none; }
.progress-text {
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--o-cobalt);
}
.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--o-surface-inset);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2350dc, #4f46e5, #f59e0b);
  transition: width 0.2s ease;
}

/* 悬浮毛玻璃指令坞 */
.office-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.6rem 0.78rem;
  margin-bottom: 0.95rem;
  border-radius: 1.15rem;
  background: var(--o-surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--o-border-strong);
  box-shadow: var(--o-shadow-sm);
}
.dock-left, .dock-center, .dock-right {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: nowrap;
}
.dock-left {
  min-width: 0;
  flex: 1 1 12rem;
}
.dock-doc-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.deck-title-label {
  font-size: 0.88rem;
  font-weight: 700;
  max-width: 13.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deck-source-badge {
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  background: rgba(35, 80, 220, 0.1);
  color: var(--o-cobalt);
  font-size: 0.73rem;
  font-weight: 650;
  flex-shrink: 0;
}

.dock-seg {
  display: inline-flex;
  padding: 0.18rem;
  border-radius: 999px;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
}
.dock-seg-btn {
  padding: 0.34rem 0.78rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--o-muted);
  font-size: 0.82rem;
  font-weight: 620;
  cursor: pointer;
  transition: background 0.18s var(--o-ease), color 0.18s var(--o-ease);
}
.dock-seg-btn.is-active {
  background: var(--o-obsidian);
  color: var(--o-obsidian-fg);
}

/* 排练计时器胶囊 */
.dock-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.45rem;
  border-radius: 999px;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border-strong);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dock-timer.is-running {
  border-color: rgba(35, 80, 220, 0.42);
  background: rgba(35, 80, 220, 0.08);
}
.dock-timer.is-warn {
  border-color: rgba(217, 119, 6, 0.55);
  background: rgba(245, 158, 11, 0.14);
}
.dock-timer.is-overtime {
  border-color: rgba(220, 38, 38, 0.6);
  background: rgba(239, 68, 68, 0.14);
}
.timer-chip {
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  border: 0;
  background: var(--o-surface);
  color: var(--o-muted);
  font-size: 0.74rem;
  font-weight: 650;
  cursor: pointer;
}
.timer-select {
  border: 0;
  background: transparent;
  color: var(--o-ink);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.2rem;
}
.timer-display {
  font-variant-numeric: tabular-nums;
  font-size: 0.96rem;
  font-weight: 760;
  min-width: 3.4rem;
  text-align: center;
  color: var(--o-ink);
}
.dock-timer.is-warn .timer-display { color: #b45309; }
.dock-timer.is-overtime .timer-display { color: #dc2626; }
.timer-play-btn, .timer-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 0.78rem;
}
.timer-play-btn {
  background: var(--o-obsidian);
  color: var(--o-obsidian-fg);
}
.timer-reset-btn {
  background: transparent;
  color: var(--o-muted);
}
.timer-reset-btn:hover { background: rgba(15, 23, 42, 0.07); color: var(--o-ink); }

/* =========================================================================
   5. 主双栏舞台（左幻灯片 + 右提词/批注）
   ========================================================================= */
.office-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(20rem, 0.92fr);
  gap: 1rem;
  align-items: start;
}
.office-review-grid[hidden] { display: none; }
.office-stage-col,
.office-side-col {
  min-width: 0;
  max-width: 100%;
}

.stage-card {
  background: var(--o-surface);
  border: 1px solid var(--o-border);
  border-radius: var(--o-radius);
  padding: 0.85rem;
  box-shadow: var(--o-shadow-sm);
}

.stage-viewport-wrap {
  background: #e9eef7;
  border-radius: 0.9rem;
  padding: clamp(0.35rem, 1vw, 0.65rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-canvas-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--slide-ratio, 1.7778);
  border-radius: 0.65rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.22);
  container-type: inline-size;
  user-select: none;
}
.slide-canvas-frame.is-pin-mode {
  cursor: crosshair;
  outline: 2.5px solid #ef4444;
  outline-offset: 2px;
}

.slide-render-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slide-overlay-img, .slide-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.slide-bg-img { object-fit: cover; }

.slide-el {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
}
.slide-el-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35em;
  padding: 0.4cqw 0.6cqw;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.slide-el-text.valign-middle {
  justify-content: center;
}
.slide-el-text p {
  margin: 0;
}
.slide-el-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.slide-el-table {
  overflow: auto;
  border-radius: 0.7cqw;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.94);
}
.slide-el-table table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  font-size: 1.35cqw;
  color: #0f172a;
}
.slide-el-table th, .slide-el-table td {
  padding: 0.75cqw 1cqw;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  line-height: 1.3;
}
.slide-el-table tr:first-child th,
.slide-el-table tr:first-child td {
  background: #eff4ff;
  font-weight: 700;
  color: #1e3a8a;
}

/* 画面图钉 Pin 层 */
.slide-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.slide-pin-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2.5px solid #ffffff;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.18s var(--o-ease);
}
.slide-pin-dot:hover,
.slide-pin-dot.is-active {
  transform: translate(-50%, -50%) scale(1.2);
}
.slide-pin-dot.is-done {
  background: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.slide-pin-dot.is-pending {
  background: #f59e0b;
  animation: pinPulse 1.2s ease-in-out infinite;
}
@keyframes pinPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.18); }
}

.slide-pin-hint {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.slide-pin-hint[hidden] { display: none; }

.stage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.stage-nav-group, .stage-tool-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.slide-counter {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 3.4rem;
  text-align: center;
}
.stage-dwell-pill {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--o-surface-inset);
  color: var(--o-muted);
  font-size: 0.78rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

/* 缩略图胶片带 */
.filmstrip-wrap {
  margin-top: 0.75rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: var(--o-surface);
  border: 1px solid var(--o-border);
  border-radius: 1.05rem;
  padding: 0.58rem;
  box-shadow: var(--o-shadow-sm);
}
.slide-filmstrip {
  display: flex;
  gap: 0.52rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}
.thumb-item {
  position: relative;
  flex: 0 0 8.6rem;
  text-align: left;
  padding: 0.42rem 0.52rem;
  border-radius: 0.78rem;
  border: 1.5px solid var(--o-border);
  background: var(--o-surface-inset);
  color: var(--o-ink);
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.thumb-item:hover {
  border-color: rgba(35, 80, 220, 0.4);
  transform: translateY(-1px);
}
.thumb-item.is-active {
  border-color: var(--o-cobalt);
  background: rgba(35, 80, 220, 0.08);
  box-shadow: 0 0 0 2px rgba(35, 80, 220, 0.14);
}
.thumb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 0.26rem;
}
.thumb-num {
  font-size: 0.72rem;
  font-weight: 760;
  color: var(--o-cobalt);
}
.thumb-badges {
  display: flex;
  align-items: center;
  gap: 0.24rem;
}
.thumb-time {
  font-size: 0.68rem;
  color: var(--o-subtle);
  font-variant-numeric: tabular-nums;
}
.thumb-ann-dot {
  padding: 0.04rem 0.34rem;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
}
.thumb-title {
  font-size: 0.75rem;
  line-height: 1.32;
  color: var(--o-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2rem;
}

/* 右侧提词与批注面板 */
.side-panel-card {
  background: var(--o-surface);
  border: 1px solid var(--o-border);
  border-radius: var(--o-radius);
  box-shadow: var(--o-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 31rem;
}
.side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--o-border);
  background: var(--o-surface-inset);
  padding: 0.32rem;
  gap: 0.32rem;
}
.side-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.56rem 0.6rem;
  border: 0;
  border-radius: 0.85rem;
  background: transparent;
  color: var(--o-muted);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.side-tab.is-active {
  background: var(--o-surface);
  color: var(--o-ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.side-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.9rem 1rem 1rem;
  gap: 0.75rem;
}
.side-pane[hidden] { display: none; }

.notes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.notes-meta {
  font-size: 0.78rem;
  color: var(--o-subtle);
  font-variant-numeric: tabular-nums;
}
.notes-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.notes-reader {
  flex: 1;
  min-height: 19rem;
  max-height: 30rem;
  overflow-y: auto;
  padding: 0.95rem 1.05rem;
  border-radius: 0.95rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
  font-size: var(--notes-font-size, 1.08rem);
  line-height: 1.85;
  color: var(--o-ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.notes-reader mark.note-hl {
  padding: 0.08em 0.32em;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.34);
  color: inherit;
  font-weight: 650;
}
.notes-empty-placeholder {
  color: var(--o-subtle);
  font-size: 0.92rem;
  line-height: 1.65;
}
.notes-editor {
  flex: 1;
  min-height: 19rem;
  resize: vertical;
  padding: 0.95rem 1.05rem;
  border-radius: 0.95rem;
  border: 1.5px solid var(--o-cobalt);
  background: var(--o-surface);
  color: var(--o-ink);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.75;
}
.notes-footer-tip {
  font-size: 0.75rem;
  color: var(--o-subtle);
}
.notes-footer-tip code {
  padding: 0.06rem 0.3rem;
  border-radius: 4px;
  background: var(--o-surface-inset);
  color: var(--o-muted);
}

/* 批注区 */
.ann-composer {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--o-border);
}
.ann-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}
.ann-tag-chip {
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface-inset);
  color: var(--o-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.ann-tag-chip.is-selected {
  background: var(--o-obsidian);
  border-color: var(--o-obsidian);
  color: var(--o-obsidian-fg);
}
.pending-pin-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.38rem 0.68rem;
  border-radius: 0.65rem;
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.78rem;
  color: #b45309;
  font-weight: 600;
}
.pending-pin-chip[hidden] { display: none; }
.o-link-btn {
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  font-size: inherit;
  cursor: pointer;
}
.ann-input-row {
  display: flex;
  gap: 0.45rem;
}
.ann-input {
  flex: 1;
  min-width: 0;
  padding: 0.52rem 0.8rem;
  border-radius: 0.78rem;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface);
  color: var(--o-ink);
  font: inherit;
  font-size: 0.86rem;
}
.ann-input:focus {
  outline: none;
  border-color: var(--o-cobalt);
}

.ann-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 21rem;
  overflow-y: auto;
}
.ann-card {
  display: flex;
  align-items: flex-start;
  gap: 0.58rem;
  padding: 0.68rem 0.75rem;
  border-radius: 0.88rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
  transition: border-color 0.16s ease;
}
.ann-card.is-highlighted {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.16);
}
.ann-card.is-done {
  opacity: 0.65;
}
.ann-card input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 17px;
  height: 17px;
  accent-color: #059669;
  cursor: pointer;
  flex-shrink: 0;
}
.ann-card-body {
  flex: 1;
  min-width: 0;
}
.ann-card-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.22rem;
}
.ann-tag-pill {
  padding: 0.1rem 0.46rem;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 700;
}
.ann-card.is-done .ann-tag-pill {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}
.ann-pin-pill {
  padding: 0.08rem 0.42rem;
  border-radius: 6px;
  background: rgba(35, 80, 220, 0.1);
  color: var(--o-cobalt);
  font-size: 0.7rem;
  font-weight: 650;
}
.ann-card-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--o-ink);
  word-break: break-word;
}
.ann-card.is-done .ann-card-text {
  text-decoration: line-through;
  color: var(--o-subtle);
}
.ann-del-btn {
  border: 0;
  background: transparent;
  color: var(--o-subtle);
  cursor: pointer;
  padding: 0.15rem 0.3rem;
  font-size: 0.85rem;
}
.ann-del-btn:hover { color: var(--o-danger); }
.ann-empty {
  text-align: center;
  padding: 2rem 0.75rem;
  color: var(--o-subtle);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* =========================================================================
   6. 视图 B · 排练每页耗时分布复盘
   ========================================================================= */
.office-analytics-view {
  background: var(--o-surface);
  border: 1px solid var(--o-border);
  border-radius: var(--o-radius);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  box-shadow: var(--o-shadow-sm);
}
.office-analytics-view[hidden] { display: none; }
.analytics-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.analytics-header-row h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}
.analytics-header-row p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--o-muted);
}
.analytics-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.kpi-card {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
}
.kpi-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--o-subtle);
  margin-bottom: 0.3rem;
}
.kpi-card strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: var(--o-ink);
}
.kpi-card.is-warn strong { color: #d97706; }
.kpi-card.is-danger strong { color: #dc2626; }
.kpi-card.is-ok strong { color: #059669; }

.analytics-bars-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.bar-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(7rem, 15rem) minmax(0, 1fr) 4.4rem 5.4rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--o-border);
  background: var(--o-surface);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
  text-align: left;
  width: 100%;
  font: inherit;
  color: var(--o-ink);
}
.bar-row:hover {
  border-color: var(--o-cobalt);
  background: var(--o-surface-inset);
}
.bar-page {
  font-weight: 750;
  color: var(--o-cobalt);
  font-size: 0.84rem;
}
.bar-title {
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: var(--o-surface-inset);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2350dc, #4f46e5);
}
.bar-fill.is-long {
  background: linear-gradient(90deg, #ef4444, #f97316);
}
.bar-sec {
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
}
.bar-status {
  font-size: 0.75rem;
  font-weight: 650;
  text-align: right;
  color: var(--o-subtle);
}
.bar-status.is-long { color: #dc2626; }
.bar-status.is-good { color: #059669; }

/* =========================================================================
   7. Band 3 · 晴空微光生态收口带
   ========================================================================= */
.office-eco-band {
  margin-top: clamp(1.8rem, 3.6vw, 2.8rem);
}
.office-eco-card {
  padding: clamp(1.3rem, 2.8vw, 2.1rem);
  border-radius: 1.55rem;
  background:
    radial-gradient(ellipse 65% 75% at 88% 12%, rgba(56, 189, 248, 0.16), transparent 65%),
    radial-gradient(ellipse 55% 65% at 12% 90%, rgba(35, 80, 220, 0.1), transparent 65%),
    linear-gradient(135deg, #f0f7ff 0%, #ffffff 54%, #f5f7ff 100%);
  border: 1px solid var(--o-border-strong);
}
.office-eco-head h2 {
  margin: 0.55rem 0 0.35rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}
.office-eco-head p {
  margin: 0 0 1.2rem;
  color: var(--o-muted);
  font-size: 0.92rem;
}
.office-eco-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.eco-tile {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  padding: 0.85rem 1rem;
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--o-border);
  text-decoration: none;
  color: var(--o-ink);
  transition: transform 0.18s var(--o-ease), border-color 0.18s var(--o-ease), box-shadow 0.18s var(--o-ease);
}
.eco-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(35, 80, 220, 0.35);
  box-shadow: var(--o-shadow-sm);
}
.eco-tile img {
  border-radius: 10px;
  flex-shrink: 0;
}
.eco-tile strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.16rem;
}
.eco-tile span {
  display: block;
  font-size: 0.78rem;
  color: var(--o-muted);
  line-height: 1.4;
}

/* =========================================================================
   8. 沉浸全屏提词剧场（深曜石无干扰）
   ========================================================================= */
.teleprompter-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #070b14;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
}
.teleprompter-overlay[hidden] { display: none; }

.tp-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 15, 25, 0.92);
}
.tp-hud-left, .tp-hud-center, .tp-hud-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.tp-badge {
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 700;
}
.tp-title {
  font-size: 0.95rem;
  max-width: 24rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.55rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.04em;
}
.tp-timer.is-warn { color: #fbbf24; }
.tp-timer.is-overtime { color: #f87171; }
.tp-ctrl-btn, .tp-exit-btn {
  padding: 0.38rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.tp-ctrl-btn.is-active {
  background: #2350dc;
  border-color: #60a5fa;
}
.tp-exit-btn:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(248, 113, 113, 0.5);
}

.tp-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(17rem, 0.38fr) minmax(0, 0.62fr);
  gap: 1.25rem;
  padding: 1.15rem 1.4rem;
}
.tp-visual-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 0;
}
.tp-current-label, .tp-next-label {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.tp-stage-box {
  position: relative;
  width: 100%;
  aspect-ratio: var(--slide-ratio, 1.7778);
  border-radius: 0.8rem;
  overflow: hidden;
  background: #ffffff;
  container-type: inline-size;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.tp-next-wrap {
  margin-top: auto;
}
.tp-next-card {
  margin-top: 0.4rem;
  padding: 0.78rem 0.95rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.tp-script-col {
  min-height: 0;
  display: flex;
}
.tp-script-scroll {
  flex: 1;
  overflow-y: auto;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: clamp(1.35rem, calc(var(--notes-font-size, 1.08rem) * 1.42), 2.5rem);
  line-height: 1.82;
  color: #f8fafc;
  white-space: pre-wrap;
}
.tp-script-scroll mark.note-hl {
  background: rgba(251, 191, 36, 0.28);
  color: #fde68a;
  padding: 0.06em 0.3em;
  border-radius: 8px;
}

.tp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 15, 25, 0.94);
}
.tp-hint {
  font-size: 0.8rem;
  color: #94a3b8;
}
.tp-nav-btn {
  padding: 0.58rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
}
.tp-nav-primary {
  background: #f8fafc;
  color: #0b0f19;
  border-color: #f8fafc;
}

/* =========================================================================
   9. 弹窗（修改清单 / 自毁短链 / 微信飞书导出）
   ========================================================================= */
.office-dialog {
  width: min(44rem, calc(100vw - 1.5rem));
  max-height: min(88dvh, 56rem);
  padding: 0;
  border: 1px solid var(--o-border-strong);
  border-radius: 1.35rem;
  background: var(--o-surface);
  color: var(--o-ink);
  box-shadow: 0 32px 70px -24px rgba(15, 23, 42, 0.38);
  overflow: hidden;
}
.office-dialog-wide {
  width: min(56rem, calc(100vw - 1.5rem));
}
.office-dialog::backdrop {
  background: rgba(9, 13, 22, 0.56);
  backdrop-filter: blur(6px);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem 0.9rem;
  border-bottom: 1px solid var(--o-border);
}
.dialog-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}
.dialog-head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--o-muted);
}
.dialog-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface-inset);
  color: var(--o-ink);
  cursor: pointer;
  flex-shrink: 0;
}
.dialog-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.72rem 1.3rem;
  border-bottom: 1px solid var(--o-border);
  background: var(--o-surface-inset);
}
.dialog-seg {
  display: inline-flex;
  gap: 0.25rem;
}
.dialog-seg-btn {
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--o-muted);
  font-size: 0.8rem;
  font-weight: 620;
  cursor: pointer;
}
.dialog-seg-btn.is-active {
  background: var(--o-obsidian);
  color: var(--o-obsidian-fg);
}
.dialog-body {
  padding: 1.15rem 1.3rem 1.35rem;
  overflow-y: auto;
  max-height: calc(88dvh - 8rem);
}

.fix-group {
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
}
.fix-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  gap: 0.5rem;
}
.fix-group-head strong {
  font-size: 0.9rem;
}

/* 自毁短链弹窗 */
.share-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.share-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 680;
  margin-bottom: 0.5rem;
}
.retention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.retention-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.95rem;
  border: 1.5px solid var(--o-border-strong);
  background: var(--o-surface-inset);
  color: var(--o-ink);
  cursor: pointer;
  text-align: left;
}
.retention-card strong { font-size: 0.94rem; }
.retention-card span { font-size: 0.74rem; color: var(--o-muted); }
.retention-card.is-active {
  border-color: var(--o-cobalt);
  background: rgba(35, 80, 220, 0.08);
  box-shadow: 0 0 0 2px rgba(35, 80, 220, 0.14);
}
.share-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.share-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--o-muted);
  cursor: pointer;
}
.share-check input {
  margin-top: 0.16rem;
  accent-color: var(--o-cobalt);
}
.share-create-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.share-size-hint {
  font-size: 0.8rem;
  color: var(--o-subtle);
}
.share-result-box {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(5, 150, 105, 0.07);
  border: 1px solid rgba(5, 150, 105, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.share-result-box[hidden] { display: none; }
.share-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.share-ok-tag { color: #059669; font-size: 0.9rem; }
.share-exp-pill {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  font-size: 0.76rem;
  font-weight: 650;
}
.share-url-row {
  display: flex;
  gap: 0.45rem;
}
.share-url-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--o-border-strong);
  background: var(--o-surface);
  color: var(--o-ink);
  font-size: 0.84rem;
}
.share-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.my-shares-section {
  border-top: 1px solid var(--o-border);
  padding-top: 0.85rem;
}
.my-shares-section[hidden] { display: none; }
.my-shares-section h3 {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  color: var(--o-muted);
}
.my-shares-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.my-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.58rem 0.75rem;
  border-radius: 0.8rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
  font-size: 0.82rem;
}
.my-share-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.my-share-meta strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-share-meta span {
  font-size: 0.74rem;
  color: var(--o-subtle);
}
.my-share-btns {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* 导出弹窗 */
.export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.export-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1.05rem;
  background: var(--o-surface-inset);
  border: 1px solid var(--o-border);
}
.export-badge {
  display: inline-block;
  padding: 0.18rem 0.56rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.export-badge-blue {
  background: rgba(35, 80, 220, 0.12);
  color: var(--o-cobalt);
}
.export-badge-green {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}
.export-card h3 {
  margin: 0 0 0.28rem;
  font-size: 1rem;
}
.export-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--o-muted);
  line-height: 1.5;
}
.export-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}
.export-md-preview {
  margin: 0;
  padding: 0.72rem;
  border-radius: 0.78rem;
  background: var(--o-surface);
  border: 1px solid var(--o-border);
  font-size: 0.75rem;
  line-height: 1.55;
  max-height: 12rem;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--o-muted);
}
.export-png-preview-wrap {
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--o-border-strong);
  max-height: 14rem;
  overflow-y: auto;
  background: #ffffff;
}
.export-png-preview-wrap[hidden] { display: none; }
.export-png-preview-wrap img {
  width: 100%;
  display: block;
}

/* Toast */
.office-toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: #090d16;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 16px 36px rgba(9, 13, 22, 0.35);
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.office-toast[hidden] { display: none; }

/* 页脚与手机底坞 */
.office-footer {
  border-top: 1px solid var(--o-border);
  padding-block: 1.4rem;
}
.office-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.4rem;
  font-size: 0.86rem;
  color: var(--o-muted);
}
.mobile-bottom-dock {
  display: none;
}

/* =========================================================================
   10. 1:1 深色模式（#0b0f19 星夜曜石）
   ========================================================================= */
html[data-theme="dark"] .office-body {
  --o-bg: #0b0f19;
  --o-surface: #111827;
  --o-surface-inset: #161f33;
  --o-surface-glass: rgba(11, 15, 25, 0.86);
  --o-ink: #f8fafc;
  --o-muted: #a3b1c8;
  --o-subtle: #7c8ca8;
  --o-border: rgba(255, 255, 255, 0.09);
  --o-border-strong: rgba(255, 255, 255, 0.16);
  --o-obsidian: #f8fafc;
  --o-obsidian-fg: #0b0f19;
  --o-cobalt: #60a5fa;
  --o-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.32);
  --o-shadow-md: 0 14px 36px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] body.office-body > header.office-header .wordmark {
  background: linear-gradient(108deg, #f8fafc 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] body.office-body > header.office-header .brand-name {
  color: #cbd5e1;
}
html[data-theme="dark"] body.office-body > header.office-header nav > a {
  color: #cbd5e1;
}
html[data-theme="dark"] body.office-body > header.office-header nav > a:hover {
  color: #ffffff;
}
html[data-theme="dark"] .office-body .site-account-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}
html[data-theme="dark"] .office-hero-band {
  background:
    radial-gradient(ellipse 62% 72% at 78% 34%, rgba(59, 130, 246, 0.18), transparent 66%),
    radial-gradient(ellipse 46% 54% at 88% 82%, rgba(245, 158, 11, 0.12), transparent 62%),
    linear-gradient(128deg, #0b0f19 16%, #0f172a 58%, #111827 100%);
}
html[data-theme="dark"] .office-hero-band::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}
html[data-theme="dark"] .office-eyebrow,
html[data-theme="dark"] .office-dropzone-card,
html[data-theme="dark"] .o-btn-glass,
html[data-theme="dark"] .eco-tile {
  background: rgba(17, 24, 39, 0.88);
}
html[data-theme="dark"] .office-gradient-text {
  background: linear-gradient(108deg, #93c5fd 0%, #a5b4fc 54%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="dark"] .stage-viewport-wrap {
  background: #070b14;
}
html[data-theme="dark"] .office-eco-card {
  background:
    radial-gradient(ellipse 65% 75% at 88% 12%, rgba(56, 189, 248, 0.14), transparent 65%),
    linear-gradient(135deg, #0f172a 0%, #090d16 100%);
}
html[data-theme="dark"] .office-toast {
  background: #f8fafc;
  color: #0b0f19;
}
html[data-theme="dark"] .dock-timer.is-warn .timer-display { color: #fbbf24; }
html[data-theme="dark"] .dock-timer.is-overtime .timer-display { color: #f87171; }
html[data-theme="dark"] .pending-pin-chip { color: #fde68a; }
html[data-theme="dark"] .share-exp-pill { color: #fde68a; }
html[data-theme="dark"] .ann-tag-pill { color: #fca5a5; background: rgba(239, 68, 68, 0.18); }

/* =========================================================================
   11. 响应式适配（平板 / 手机 390px / 360px 零溢出）
   ========================================================================= */
@media (max-width: 1080px) {
  .office-hero-inner {
    grid-template-columns: 1fr;
  }
  .dock-left, .dock-center, .dock-right {
    flex-wrap: wrap;
  }
  .office-review-grid {
    grid-template-columns: 1fr;
  }
  .side-panel-card {
    min-height: 22rem;
  }
  .analytics-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .office-eco-grid {
    grid-template-columns: 1fr;
  }
  .export-grid {
    grid-template-columns: 1fr;
  }
  .tp-body {
    grid-template-columns: 1fr;
  }
  .tp-visual-col {
    max-height: 30dvh;
    flex-direction: row;
    align-items: center;
  }
  .tp-stage-box {
    width: 46%;
  }
  .tp-next-wrap {
    margin-top: 0;
    flex: 1;
  }
}

@media (max-width: 768px) {
  body.office-body > header.office-header {
    padding-inline: 0.75rem;
  }
  body.office-body > header.office-header .brand-name {
    display: none;
  }
  body.office-body > header.office-header nav {
    gap: 0.58rem;
  }
  body.office-body > header.office-header nav > a {
    font-size: 0.82rem;
  }
  .office-main {
    padding-bottom: 5.5rem;
  }
  .office-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .office-hero-metrics dd strong {
    font-size: 0.88rem;
  }
  .office-hero-metrics dd span {
    font-size: 0.72rem;
  }
  .office-dock {
    padding: 0.55rem 0.65rem;
    gap: 0.5rem;
  }
  .dock-left, .dock-center, .dock-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .deck-title-label {
    max-width: 10.5rem;
  }
  .retention-grid {
    grid-template-columns: 1fr;
  }
  .bar-row {
    grid-template-columns: 2.8rem minmax(0, 1fr) 3.8rem;
  }
  .bar-title, .bar-status {
    display: none;
  }
  .mobile-bottom-dock {
    position: fixed;
    left: 0.65rem;
    right: 0.65rem;
    bottom: max(0.55rem, env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.15fr 0.9fr 1fr;
    gap: 0.35rem;
    padding: 0.38rem;
    border-radius: 1.05rem;
    background: var(--o-surface-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--o-border-strong);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
  }
  .mbd-btn, .mbd-center {
    border: 0;
    border-radius: 0.78rem;
    padding: 0.48rem 0.3rem;
    background: transparent;
    color: var(--o-ink);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
    text-align: center;
  }
  .mbd-next {
    background: var(--o-obsidian);
    color: var(--o-obsidian-fg);
  }
  .mbd-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
    background: var(--o-surface-inset);
  }
  .mbd-center strong { font-size: 0.78rem; }
  .mbd-center span { font-size: 0.72rem; color: var(--o-cobalt); font-variant-numeric: tabular-nums; }
  .office-toast {
    bottom: 5rem;
  }
  .tp-hud {
    flex-wrap: wrap;
    padding: 0.6rem 0.8rem;
  }
  .tp-title { display: none; }
  .tp-visual-col { display: none; }
}

/* =========================================================================
   12. 专业双栏讲义 PDF 打印排版（@media print）
   ========================================================================= */
.office-print-sheet {
  display: none;
}

@media print {
  body.office-body > *:not(#office-print-sheet) {
    display: none !important;
  }
  #office-print-sheet {
    display: block !important;
    background: #ffffff;
    color: #0f172a;
    padding: 0;
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  }
  .print-doc-header {
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .print-doc-header h1 {
    margin: 0;
    font-size: 18pt;
  }
  .print-doc-header span {
    font-size: 9pt;
    color: #475569;
  }
  .print-slide-row {
    display: grid;
    grid-template-columns: 46% 52%;
    gap: 2%;
    padding: 12px 0;
    border-bottom: 1px solid #cbd5e1;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .print-slide-visual {
    position: relative;
    width: 100%;
    aspect-ratio: var(--slide-ratio, 1.7778);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    container-type: inline-size;
  }
  .print-slide-right h3 {
    margin: 0 0 6px;
    font-size: 11pt;
  }
  .print-slide-notes {
    margin: 0 0 8px;
    font-size: 9.5pt;
    line-height: 1.55;
    white-space: pre-wrap;
    color: #1e293b;
  }
  .print-slide-anns {
    margin: 0;
    padding-left: 16px;
    font-size: 9pt;
    color: #dc2626;
    line-height: 1.5;
  }
  .print-slide-anns li.is-done {
    color: #059669;
    text-decoration: line-through;
  }
}
