/* 三体游戏风 · 黑白宇宙 + 磨砂玻璃 + 副色点缀（青/琥珀） */

:root {
  --void: #030308;
  --ink: #0a0a0f;
  --mist: rgba(255, 255, 255, 0.06);
  --glass: rgba(12, 12, 18, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.35);
  --warn: #fbbf24;
  --vignette-strength: 0.75;
  --sidebar-w: min(300px, 88vw);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 页面主题：由 html.site-theme-* 覆盖玻璃与强调色 */
html.site-theme-void {
  --glass: rgba(12, 12, 18, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.35);
  --mist: rgba(255, 255, 255, 0.06);
  --vignette-strength: 0.75;
}

html.site-theme-ember {
  --glass: rgba(18, 8, 4, 0.42);
  --glass-border: rgba(255, 171, 64, 0.2);
  --accent: #ffab40;
  --accent-dim: rgba(255, 171, 64, 0.38);
  --mist: rgba(255, 160, 90, 0.07);
  --vignette-strength: 0.82;
}

html.site-theme-aurora {
  --glass: rgba(8, 14, 28, 0.5);
  --glass-border: rgba(129, 200, 255, 0.18);
  --accent: #67e8f9;
  --accent-dim: rgba(103, 232, 249, 0.32);
  --mist: rgba(80, 160, 220, 0.06);
  --vignette-strength: 0.72;
}

html.site-theme-eclipse {
  --glass: rgba(10, 8, 6, 0.52);
  --glass-border: rgba(251, 191, 36, 0.16);
  --accent: #fbbf24;
  --accent-dim: rgba(251, 191, 36, 0.28);
  --mist: rgba(255, 200, 120, 0.055);
  --vignette-strength: 0.78;
}

html.site-theme-nebula {
  --glass: rgba(16, 8, 22, 0.48);
  --glass-border: rgba(192, 132, 252, 0.2);
  --accent: #c084fc;
  --accent-dim: rgba(192, 132, 252, 0.34);
  --mist: rgba(180, 140, 250, 0.06);
  --vignette-strength: 0.74;
}

html.site-theme-singularity {
  --glass: rgba(4, 8, 20, 0.62);
  --glass-border: rgba(100, 150, 255, 0.14);
  --accent: #7dd3fc;
  --accent-dim: rgba(125, 211, 252, 0.28);
  --mist: rgba(100, 140, 200, 0.045);
  --vignette-strength: 0.85;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--void);
}

/* 字号：作用于 html，使全站 rem 生效（含标题字号档位） */
html.font-scale-sm {
  font-size: 14px;
}

html.font-scale-md {
  font-size: 16px;
}

html.font-scale-lg {
  font-size: 18px;
}

.app.app-layer {
  transition: opacity 1s ease, filter 1s ease;
}

.app.app-dimmed {
  opacity: 0.32;
  filter: grayscale(0.25) blur(0.5px);
  pointer-events: none;
}

.static-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 40%, #0f172a 0%, #020617 45%, #000 100%);
  pointer-events: none;
}

.app.bg-static .static-bg {
  display: block;
}

.app.bg-static .blackhole-canvas {
  opacity: 0;
  visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— 登录页 —— */
.login-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 30%, #0c0c12 0%, #020203 55%, #000 100%);
  overflow: hidden;
}

.three-body-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  display: block;
}

.login-scanlines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 2px,
    rgba(0, 0, 0, 0.18) 4px
  );
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.login-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, 96vw);
  display: grid;
  grid-template-columns: 1fr min(380px, 36vw);
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: center;
  min-height: min(90vh, 880px);
  padding: 1.25rem 0.75rem;
}

.login-hero {
  text-align: left;
  padding-right: 0.5rem;
}

.login-hero-tag {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  color: rgba(161, 161, 170, 0.85);
}

.login-logo-mark {
  width: min(200px, 42vw);
  margin: 0 0 1rem;
  filter: drop-shadow(0 0 20px rgba(255, 171, 64, 0.25));
}

.login-logo-svg {
  width: 100%;
  height: auto;
  display: block;
}

.login-hero-title {
  margin: 0;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.login-hero-cn {
  background: linear-gradient(125deg, #fff8f0 0%, #ffab40 45%, #e65100 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 28px rgba(255, 171, 64, 0.35));
}

.login-hero-line {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  line-height: 1.6;
  max-width: 26rem;
}

.login-aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.login-panel-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #e4e4e7;
}

.login-screen.login-fade-out {
  pointer-events: none;
  transition: opacity 0.65s ease, filter 0.65s ease;
  opacity: 0;
  filter: saturate(0.85) blur(2px);
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.login-card {
  padding: 1.75rem 1.5rem;
  border-radius: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.login-error {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #fca5a5;
}

.btn-enter {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  cursor: pointer;
  color: #020617;
  background: linear-gradient(135deg, #e5e5e5 0%, #a3a3a3 100%);
  box-shadow: 0 0 24px var(--accent-dim);
  transition: transform 0.15s, filter 0.15s;
}

.btn-enter:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.login-hint {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.85;
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1rem;
  }

  .login-hero {
    text-align: center;
    order: 1;
  }

  .login-logo-mark {
    margin-left: auto;
    margin-right: auto;
  }

  .login-hero-line {
    margin-left: auto;
    margin-right: auto;
  }

  .login-aside {
    order: 2;
  }
}

/* —— 全屏过渡（进入 / 退出站点） —— */
.app-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  background: radial-gradient(ellipse 85% 70% at 50% 45%, #1a0c06 0%, #060402 48%, #000 100%);
}

.app-transition-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.app-transition-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(255, 140, 60, 0.08) 0%,
    transparent 42%,
    rgba(0, 0, 0, 0.65) 100%
  );
  pointer-events: none;
}

.app-transition-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
  padding: 2rem;
}

.p2-transition-logo {
  width: min(200px, 52vw);
  animation: p2-logo-breathe 2.8s ease-in-out infinite;
}

.p2-transition-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 28px rgba(255, 171, 64, 0.45));
}

.p2-tri-spin {
  transform-origin: 60px 60px;
  animation: p2-tri-orbit 14s linear infinite;
}

.app-transition-overlay.mode-exit .p2-transition-logo {
  animation: p2-logo-exit 1s cubic-bezier(0.55, 0.06, 0.35, 1) forwards;
}

.app-transition-overlay.mode-exit .app-transition-caption {
  animation: p2-caption-fade 0.8s ease forwards;
}

@keyframes p2-tri-orbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes p2-logo-breathe {
  0%,
  100% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 22px rgba(255, 171, 64, 0.38));
  }
  50% {
    transform: scale(1.045) translateY(-4px);
    filter: drop-shadow(0 0 38px rgba(255, 200, 120, 0.55));
  }
}

@keyframes p2-logo-exit {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.82);
    opacity: 0.35;
  }
}

@keyframes p2-caption-fade {
  to {
    opacity: 0.55;
  }
}

.p2-transition-core {
  animation: p2-core-glow 2.6s ease-in-out infinite;
}

.p2-transition-core-inner {
  animation: p2-core-glow 2.6s ease-in-out infinite 0.12s;
}

@keyframes p2-core-glow {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}

.app-transition-caption {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.35em;
  color: rgba(200, 190, 180, 0.85);
  text-transform: uppercase;
  transition: opacity 0.35s ease;
}

/* —— 主应用 · CJX 黑橙视界 —— */
.app.app-shell-p2 {
  --accent: #ffab40;
  --accent-dim: rgba(255, 171, 64, 0.38);
}

.app-shell-p2 .app-vignette {
  background: radial-gradient(
    ellipse 130% 100% at 50% 38%,
    transparent 0%,
    rgba(60, 24, 8, 0.22) 42%,
    rgba(0, 0, 0, var(--vignette-strength, 0.82)) 100%
  );
}

.app-shell-p2 .static-bg {
  background: radial-gradient(ellipse 130% 90% at 50% 42%, #1f0f08 0%, #080402 50%, #000 100%);
}

.app-shell-p2 .glass-panel {
  background: rgba(18, 8, 4, 0.48);
  border-color: rgba(255, 171, 64, 0.18);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 200, 120, 0.06);
}

.app-shell-p2 .avatar-ring {
  background: linear-gradient(145deg, #fff5e6 0%, #ffab40 45%, #3d1508 100%);
}

/* —— 主应用 —— */
.app {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.blackhole-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.app-vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse at 50% 45%,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, var(--vignette-strength, 0.75)) 100%
  );
}

.app-topbar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  pointer-events: auto;
}

.app-topbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.app-topbar-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 18px var(--accent-dim);
}

.app-topbar-btn .peek-icon-open {
  display: block;
}

.app-topbar-btn .peek-icon-closed {
  display: none;
}

.app-bh-immersive .app-topbar-btn .peek-icon-open {
  display: none;
}

.app-bh-immersive .app-topbar-btn .peek-icon-closed {
  display: block;
}

.btn-exit-site {
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.45);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-exit-site:hover {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
  background: rgba(40, 10, 10, 0.55);
}

.app-bh-immersive .layout {
  display: none;
}

.app-bh-immersive .app-vignette {
  opacity: 0;
  visibility: hidden;
}

.app.bg-static.app-bh-immersive .static-bg {
  display: none !important;
}

.app.bg-static.app-bh-immersive .blackhole-canvas {
  opacity: 1 !important;
  visibility: visible !important;
}

.layout {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
}

/* 左栏：固定不随右侧滚动 */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  border-left: none;
}

.sidebar-top {
  flex-shrink: 0;
}

.avatar-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 auto 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.avatar-btn:hover {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.avatar-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.avatar-btn.avatar-readonly {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.9;
}

.avatar-ring {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #fff 0%, var(--accent) 50%, #171717 100%);
  box-shadow: 0 0 32px var(--accent-dim);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--ink);
}

.profile-name {
  margin: 0;
  text-align: center;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.profile-role {
  margin: 0.35rem 0 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.profile-role.tag-c-aurora {
  background: linear-gradient(118deg, #22d3ee, #67e8f9 40%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-role.tag-c-solar {
  background: linear-gradient(95deg, #fbbf24, #f97316, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-role.tag-c-nebula {
  background: linear-gradient(125deg, #e879f9, #6366f1, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-role.tag-c-pulsar {
  background: linear-gradient(90deg, #34d399, #2dd4bf, #e9d5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-role.tag-c-quasar {
  background: linear-gradient(100deg, #f472b6, #fbbf24, #f87171);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-role.tag-c-eventide {
  background: linear-gradient(135deg, #1e3a5f, #22d3ee 55%, #64748b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-brief {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

.sidebar-bottom {
  flex-shrink: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.nav-label {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-label-center {
  text-align: center;
  width: 100%;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.side-nav .nav-ico {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  opacity: 0.9;
}

.side-nav a:hover {
  color: var(--text);
  background: var(--mist);
  border-color: var(--glass-border);
}

.sidebar-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-ghost {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost.small {
  font-size: 0.8rem;
}

.btn-ghost.accent {
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* 右栏：独立滚动 */
.main-scroll {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  overflow-y: auto;
  padding: 2rem 1.5rem 3rem;
}

.main-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  border-radius: 16px;
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.main-inner.main-crossfade-out {
  opacity: 0;
  transform: translateY(10px);
}

.main-inner.main-crossfade-in {
  animation: mainInnerCrossfade 0.48s ease forwards;
}

@keyframes mainInnerCrossfade {
  from {
    opacity: 0.45;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-block {
  margin-bottom: 2.5rem;
  scroll-margin-top: 1.5rem;
}

.content-block:last-of-type {
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--warn);
  opacity: 0.9;
}

.mega-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.12);
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.lead.muted {
  color: var(--muted);
}

.block-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.prose {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #d4d4d8;
}

.prose p {
  margin: 0 0 0.85rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.main-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* —— 创意导航图标（SVG 内联于背景） —— */
.nav-icon {
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  vertical-align: middle;
  background: center / contain no-repeat;
  filter: drop-shadow(0 0 6px var(--accent-dim));
}

.eyebrow-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.block-title-with-icon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.zone-title {
  margin-top: 0.5rem;
}

.nav-icon-welcome {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23f4f4f5'/%3E%3Cstop offset='100%25' stop-color='%2322d3ee'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='3' fill='url(%23g)'/%3E%3Cpath d='M16 4 A12 12 0 0 1 28 16' fill='none' stroke='%23e5e7eb' stroke-width='1.2' opacity='.85'/%3E%3Cpath d='M16 8 A8 8 0 0 1 24 16' fill='none' stroke='%2322d3ee' stroke-width='1' opacity='.7'/%3E%3Cpath d='M4 16h6M22 16h6M16 4v4M16 24v4' stroke='%23fbbf24' stroke-width='.8' opacity='.6'/%3E%3C/svg%3E");
}

.nav-icon-about {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse cx='16' cy='22' rx='10' ry='4' fill='none' stroke='%2322d3ee' stroke-width='1.2' opacity='.9'/%3E%3Ccircle cx='16' cy='10' r='4' fill='%23f4f4f5' opacity='.95'/%3E%3Cpath d='M16 14v6' stroke='%23fbbf24' stroke-width='1'/%3E%3Ccircle cx='26' cy='8' r='1.5' fill='%23a1a1aa'/%3E%3C/svg%3E");
}

.nav-icon-stack {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 12 L16 7 L26 12 L16 17 Z' fill='none' stroke='%23e5e7eb' stroke-width='1.2'/%3E%3Cpath d='M6 18 L16 13 L26 18 L16 23 Z' fill='none' stroke='%2322d3ee' stroke-width='1.2' opacity='.85'/%3E%3Cpath d='M6 24 L16 19 L26 24 L16 29 Z' fill='none' stroke='%23fbbf24' stroke-width='1' opacity='.6'/%3E%3C/svg%3E");
}

.nav-icon-b3 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 6 L26 26 L6 26 Z' fill='none' stroke='%2322d3ee' stroke-width='1.4'/%3E%3Ccircle cx='16' cy='18' r='2' fill='%23fbbf24' opacity='.9'/%3E%3C/svg%3E");
}

.nav-icon-b4 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 4 L28 16 L16 28 L4 16 Z' fill='none' stroke='%23e5e7eb' stroke-width='1.2'/%3E%3Ccircle cx='16' cy='16' r='2.5' fill='%2322d3ee'/%3E%3Ccircle cx='16' cy='8' r='1.5' fill='%23fbbf24'/%3E%3C/svg%3E");
}

.nav-icon-b5 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='8' r='2' fill='%23e5e7eb'/%3E%3Ccircle cx='26' cy='14' r='2' fill='%2322d3ee'/%3E%3Ccircle cx='22' cy='24' r='2' fill='%23fbbf24'/%3E%3Ccircle cx='10' cy='24' r='2' fill='%23e5e7eb'/%3E%3Ccircle cx='6' cy='14' r='2' fill='%2322d3ee'/%3E%3Cpath d='M16 8 L26 14 L22 24 L10 24 L6 14 Z' fill='none' stroke='%23ffffff' stroke-width='.6' opacity='.35'/%3E%3C/svg%3E");
}

.dynamic-zone {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  transition: opacity 0.36s ease, transform 0.36s ease;
}

.dynamic-zone.dynamic-zone--fade-out {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.dynamic-zone.dynamic-zone--fade-in {
  animation: dynamicZoneFadeIn 0.48s ease forwards;
}

@keyframes dynamicZoneFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dynamic-pages {
  min-height: 120px;
}

.dynamic-block {
  margin-bottom: 2rem;
  scroll-margin-top: 1.5rem;
}

.dynamic-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.dynamic-block-title {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-tiny {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  cursor: pointer;
}

.btn-tiny:hover {
  color: var(--text);
  border-color: var(--accent-dim);
}

.add-hint-wrap {
  text-align: center;
  padding: 2rem 1rem;
}

.add-hint-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.add-hint-btn:hover {
  color: var(--accent);
}

.add-hint-readonly {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.dynamic-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.pagination-core {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-jump {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.28);
}

.page-jump-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.page-jump-input {
  width: 3.25rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-size: 0.85rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.page-jump-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.page-jump-go {
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.page-jump-msg {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: #f87171;
  min-height: 1.1em;
}

.page-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-indicator {
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 4rem;
  text-align: center;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-root[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: auto;
  cursor: pointer;
}

.modal-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(92vw, 720px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.modal-panel {
  pointer-events: auto;
  width: 100%;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 900px);
  transform: translateY(48px);
  opacity: 0;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.72s ease;
}

.modal-root.modal-open .modal-backdrop {
  opacity: 1;
}

.modal-root.modal-open .modal-panel {
  transform: translateY(0);
  opacity: 1;
}

.modal-panel-43 {
  aspect-ratio: 4 / 3;
  max-height: min(72vh, 560px);
}

.modal-panel-tall {
  max-height: min(88vh, 720px);
  aspect-ratio: auto;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}

.modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.modal-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.modal-close:hover {
  color: var(--text);
  background: var(--mist);
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.modal-body-form .field {
  margin-bottom: 1rem;
}

.modal-body-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.9rem;
  resize: vertical;
  font-family: inherit;
}

.modal-save {
  margin-top: 0.5rem;
}

.setting-row {
  margin-bottom: 1.5rem;
}

.setting-row:last-child {
  margin-bottom: 0;
}

.setting-label {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.setting-hint {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.page-theme-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.page-theme-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.page-theme-btn:hover {
  transform: scale(1.06);
}

.page-theme-btn.active {
  box-shadow: 0 0 0 2px var(--accent), 0 0 16px var(--accent-dim);
}

.pt-void {
  background: linear-gradient(135deg, #0a0a10, #1a1a22 60%, #22d3ee);
}

.pt-ember {
  background: linear-gradient(135deg, #1a0804, #3d1508, #ffab40);
}

.pt-aurora {
  background: linear-gradient(135deg, #0c1428, #1e3a5f, #67e8f9);
}

.pt-eclipse {
  background: linear-gradient(135deg, #0a0a06, #1c1508, #fbbf24);
}

.pt-nebula {
  background: linear-gradient(135deg, #14081c, #3b1f4a, #c084fc);
}

.pt-singularity {
  background: linear-gradient(135deg, #020616, #0f172a, #7dd3fc);
}

.segmented {
  display: flex;
  gap: 0.35rem;
}

.seg-btn {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.seg-btn:hover {
  color: var(--text);
}

.seg-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.toggle-row input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.85;
}

.tag-color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-swatch {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.tag-swatch:hover {
  transform: scale(1.08);
}

.tag-swatch.active {
  box-shadow: 0 0 0 2px var(--accent), 0 0 18px var(--accent-dim);
}

.sw-aurora {
  background: conic-gradient(from 200deg, #22d3ee, #a78bfa, #22d3ee);
}

.sw-solar {
  background: conic-gradient(from 0deg, #fbbf24, #f97316, #fb7185);
}

.sw-nebula {
  background: conic-gradient(from 90deg, #e879f9, #6366f1, #38bdf8);
}

.sw-pulsar {
  background: conic-gradient(from 45deg, #34d399, #2dd4bf, #c4b5fd);
}

.sw-quasar {
  background: conic-gradient(from 120deg, #f472b6, #fbbf24, #f87171);
}

.sw-eventide {
  background: conic-gradient(from 270deg, #0f172a, #1e3a5f, #22d3ee);
}

.profile-links-rows {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.link-pair {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.link-pair-short {
  flex: 0 0 32%;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.85rem;
}

.link-pair-long {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.85rem;
}

.avatar-crop-wrap {
  margin-top: 0.75rem;
  text-align: center;
}

.avatar-crop-canvas {
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35), 0 12px 40px rgba(0, 0, 0, 0.45);
}

.avatar-crop-canvas:active {
  cursor: grabbing;
}

.crop-zoom-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
  justify-content: center;
}

.crop-zoom-label input[type="range"] {
  flex: 1;
  max-width: 200px;
  accent-color: var(--accent);
}

.avatar-history-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.avatar-history-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid var(--glass-border);
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.avatar-history-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-history-btn:hover {
  border-color: var(--accent);
}

.modal-profile-scroll {
  max-height: min(72vh, 640px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, 0.7) rgba(15, 23, 42, 0.4);
}

.modal-profile-scroll::-webkit-scrollbar {
  width: 10px;
}

.modal-profile-scroll::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(3, 7, 18, 0.85));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-profile-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(224, 231, 255, 0.95),
    rgba(34, 211, 238, 0.65),
    rgba(15, 23, 42, 0.9)
  );
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.25);
}

.modal-profile-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    #fff,
    rgba(34, 211, 238, 0.85),
    rgba(30, 41, 59, 0.95)
  );
}

.modal-panel-narrow {
  max-width: min(92vw, 420px);
}

.layout-icon-field {
  margin-bottom: 0.5rem;
}

.layout-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.layout-icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.32);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.layout-icon-option .nav-icon {
  width: 1.65rem;
  height: 1.65rem;
}

.layout-icon-option:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.layout-icon-option.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px var(--accent-dim);
}

.layout-icon-label {
  text-align: center;
  line-height: 1.15;
}

.layout-zone-title-field {
  margin-bottom: 0.75rem;
}

.zone-header-wrap {
  margin-bottom: 0.5rem;
}

.zone-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.zone-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  flex: 1;
  min-width: 0;
}

.zone-header-title.title-align-center {
  justify-content: center;
  text-align: center;
}

.zone-header-title.title-fz-sm {
  font-size: 1.05rem;
}

.zone-header-title.title-fz-md {
  font-size: 1.25rem;
}

.zone-header-title.title-fz-lg {
  font-size: 1.45rem;
}

.zone-header-title.title-fz-xl {
  font-size: 1.65rem;
}

.dynamic-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex-shrink: 0;
  justify-content: flex-end;
}

.dynamic-block-title.title-align-center {
  justify-content: center;
  text-align: center;
}

.dynamic-block-title.title-fz-sm {
  font-size: 1rem;
}

.dynamic-block-title.title-fz-md {
  font-size: 1.15rem;
}

.dynamic-block-title.title-fz-lg {
  font-size: 1.3rem;
}

.dynamic-block-title.title-fz-xl {
  font-size: 1.45rem;
}

.prose.body-align-center {
  text-align: center;
}

.hidden-icon .nav-icon {
  display: none !important;
}

/* 移动端：侧栏改为顶部块 */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .main-scroll {
    margin-left: 0;
  }

  .sidebar-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* 区块嵌入图片与右键菜单 */
.modal-block-image-root {
  z-index: 220;
}

.block-img-ctx-menu {
  position: fixed;
  z-index: 400;
  min-width: 7.5rem;
  padding: 0.35rem;
  border-radius: 10px;
  background: rgba(12, 10, 8, 0.92);
  border: 1px solid rgba(255, 171, 64, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.block-img-ctx-item {
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  text-align: left;
  cursor: pointer;
}

.block-img-ctx-item:hover {
  background: rgba(255, 171, 64, 0.18);
}

.modal-stage-block-img {
  max-width: min(92vw, 440px);
}

.modal-panel-block-img {
  max-height: min(90vh, 720px);
}

.block-img-preview-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: min(42vh, 280px);
  max-height: min(48vh, 360px);
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: auto;
}

.block-img-preview-inner {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.field-val {
  font-weight: 600;
  color: rgba(255, 200, 140, 0.95);
  letter-spacing: 0.04em;
}

.block-import-img-row .field-hint {
  margin: 0.35rem 0 0;
}

.prose .dyn-block-img {
  user-select: none;
  outline: none;
}

.prose .dyn-block-img-inner {
  max-width: 100%;
}

/* 区块编辑：幻灯片画布（类 PPT） */
#modal-block .modal-stage {
  max-width: min(98vw, 1120px);
}

.modal-panel-block-slide {
  max-height: min(92vh, 860px);
}

.block-tab-pane {
  margin-top: 0.5rem;
}

.block-slide-editor-layout {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  min-height: min(58vh, 520px);
}

.block-slide-editor-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.block-slide-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.block-slide-hint {
  margin: 0;
  font-size: 0.72rem;
}

.block-slide-viewport {
  position: relative;
  flex: 1;
  min-height: 280px;
  border-radius: 12px;
  border: 1px solid rgba(255, 171, 64, 0.2);
  background: rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.block-slide-scaled {
  position: relative;
  transform-origin: 0 0;
}

.block-slide-stage-editor {
  background: linear-gradient(165deg, rgba(36, 18, 10, 0.95) 0%, rgba(8, 4, 2, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.block-slide-el {
  position: absolute;
  box-sizing: border-box;
  cursor: grab;
}

.block-slide-el.is-selected {
  z-index: 30;
  box-shadow: 0 0 0 2px rgba(255, 171, 64, 0.85);
}

.block-slide-text-inner {
  box-sizing: border-box;
  padding: 0.35rem 0.45rem;
  outline: none;
}

.block-slide-img-box {
  line-height: 0;
}

.block-slide-handles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.block-slide-handle {
  position: absolute;
  width: 11px;
  height: 11px;
  background: #ffab40;
  border-radius: 2px;
  pointer-events: auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.block-slide-handle-nw {
  left: -5px;
  top: -5px;
  cursor: nwse-resize;
}
.block-slide-handle-ne {
  right: -5px;
  top: -5px;
  cursor: nesw-resize;
}
.block-slide-handle-sw {
  left: -5px;
  bottom: -5px;
  cursor: nesw-resize;
}
.block-slide-handle-se {
  right: -5px;
  bottom: -5px;
  cursor: nwse-resize;
}

.block-slide-props {
  width: min(280px, 34vw);
  flex-shrink: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  max-height: min(70vh, 620px);
  overflow: auto;
}

.block-slide-props-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: rgba(200, 190, 180, 0.9);
  text-transform: uppercase;
}

.block-slide-props-hint {
  margin: 0;
  font-size: 0.8rem;
}

.block-slide-body-wrap {
  margin-top: 0.35rem;
}

.block-slide-view-host {
  width: 100%;
}

.block-slide-viewport {
  position: relative;
  width: 100%;
}

.block-slide-view-scaled {
  position: relative;
}

.block-slide-view-el {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
}

.block-slide-view-text {
  padding: 0.35rem 0.45rem;
  line-height: 1.35;
}

.slide-fallback-p {
  margin: 0;
}

/* 欢迎区：翻牌时钟 + 分区编号行 */
.section-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.section-eyebrow-row .eyebrow {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.eyebrow-label {
  letter-spacing: inherit;
}

.welcome-extra-eyebrows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.65rem 0 0.25rem;
}

.section-eyebrow-row--extra .eyebrow {
  opacity: 0.92;
}

.dynamic-page-eyebrow {
  margin: 0.25rem 0 0.75rem;
}

.cosmic-flip-clock {
  margin-top: 1.1rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(40, 18, 8, 0.55) 0%, rgba(8, 4, 2, 0.72) 50%, rgba(4, 2, 1, 0.85) 100%);
  border: 1px solid rgba(255, 171, 64, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 200, 140, 0.07),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.flip-clock-label {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.38em;
  color: rgba(255, 200, 160, 0.75);
  text-align: center;
  text-transform: uppercase;
}

.flip-clock-core {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  flex-wrap: wrap;
}

.flip-slot {
  width: 2.05rem;
  height: 2.75rem;
  perspective: 200px;
}

.flip-slot-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #2a1810 0%, #120805 48%, #0a0503 100%);
  border: 1px solid rgba(255, 171, 64, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.45);
}

.flip-char {
  display: block;
  font-family: "Segoe UI", ui-monospace, "Cascadia Mono", "Microsoft YaHei", monospace;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  color: #fff5e6;
  text-shadow:
    0 0 18px rgba(255, 171, 64, 0.35),
    0 1px 0 rgba(0, 0, 0, 0.8);
  transform-origin: center bottom;
}

.flip-slot-inner.is-tick .flip-char {
  animation: cosmicFlipTick 0.52s cubic-bezier(0.42, 0.02, 0.18, 1) forwards;
}

@keyframes cosmicFlipTick {
  0% {
    transform: rotateX(0deg) scale(1);
    filter: brightness(1);
  }
  42% {
    transform: rotateX(-86deg) scale(0.9);
    filter: brightness(0.55);
  }
  52% {
    transform: rotateX(86deg) scale(0.9);
    filter: brightness(0.55);
  }
  100% {
    transform: rotateX(0deg) scale(1);
    filter: brightness(1);
  }
}

.flip-sep {
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 1.55rem;
  font-weight: 300;
  color: rgba(255, 171, 64, 0.55);
  padding: 0 0.12rem 0.35rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 140, 60, 0.25);
}

.settings-eyebrow-dynamic-list {
  max-height: 12rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.settings-eyebrow-extra-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.settings-eyebrow-extra-row .settings-eyebrow-extra-inp {
  flex: 1;
  min-width: 0;
}

@media (max-width: 820px) {
  .block-slide-editor-layout {
    flex-direction: column;
  }

  .block-slide-props {
    width: 100%;
    max-height: none;
  }
}

/* —— 欢迎区 / 简介行内编辑入口 —— */
.welcome-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.welcome-title-row .mega-title {
  margin-bottom: 0;
  flex: 1;
  min-width: min(100%, 14rem);
}

.about-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
}

.about-title-inline {
  margin: 0;
}

.mono-textarea {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
}

/* —— 管理员编辑（右下角） —— */
.admin-mode-dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 160;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  pointer-events: none;
}

.admin-mode-dock > * {
  pointer-events: auto;
}

.admin-mode-fab {
  margin: 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 171, 64, 0.35);
  background: linear-gradient(145deg, rgba(40, 18, 8, 0.55), rgba(8, 4, 2, 0.85));
  color: rgba(255, 235, 210, 0.95);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-mode-fab:hover {
  border-color: rgba(255, 171, 64, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 140, 60, 0.2),
    0 12px 36px rgba(255, 100, 40, 0.15);
  transform: translateY(-1px);
}

.admin-mode-panel {
  min-width: 220px;
  max-width: min(92vw, 280px);
  padding: 0.85rem 1rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 171, 64, 0.28);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.admin-mode-panel-head {
  margin: 0 0 0.65rem;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 200, 160, 0.75);
}

.admin-mode-action {
  display: block;
  width: 100%;
  margin: 0 0 0.45rem;
  padding: 0.45rem 0.6rem;
  text-align: left;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-mode-action:last-child {
  margin-bottom: 0;
}

.admin-mode-action:hover {
  background: rgba(255, 171, 64, 0.1);
  border-color: rgba(255, 171, 64, 0.25);
}

html.admin-edit-on .content-block {
  scroll-margin-top: 2rem;
}

html.admin-edit-on .main-inner .content-block {
  outline: 1px dashed rgba(255, 171, 64, 0.35);
  outline-offset: 6px;
  border-radius: 12px;
}

html.admin-edit-on .sidebar.glass-panel {
  outline: 1px dashed rgba(255, 171, 64, 0.28);
  outline-offset: 4px;
}
