:root {
  --dh-bg: #070b12;
  --dh-bg-soft: #0d1420;
  --dh-ink: #f4f0e8;
  --dh-muted: rgba(244, 240, 232, 0.72);
  --dh-line: rgba(255, 255, 255, 0.11);
  --dh-line-strong: rgba(255, 255, 255, 0.2);
  --dh-teal: #7ae6dc;
  --dh-amber: #f4c66a;
  --dh-coral: #ff7d68;
  --dh-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
  --dh-radius-xl: 40px;
  --dh-radius-l: 28px;
  --dh-radius-m: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dh-ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 12%, rgba(122, 230, 220, 0.16), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(244, 198, 106, 0.14), transparent 24%),
    linear-gradient(180deg, #05070d 0%, #090f18 34%, #070b12 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

.dh-shell {
  min-height: 100vh;
  padding: 22px;
}

.dh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--dh-line);
  border-radius: 999px;
  background: rgba(12, 18, 29, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--dh-shadow);
}

.dh-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dh-brand-mark {
  width: 126px;
  height: 44px;
  display: block;
  flex: 0 0 126px;
  padding: 8px 10px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(0, 107, 232, 0.18), rgba(90, 52, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 44px rgba(44, 28, 122, 0.28);
}

.dh-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.dh-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dh-brand-copy strong {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.dh-brand-copy em {
  margin-top: 4px;
  font-style: normal;
  color: var(--dh-muted);
  font-size: 0.9rem;
}

.dh-header-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dh-header-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--dh-line);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
}

.dh-main {
  max-width: 1320px;
  margin: 0 auto;
}

.dh-theatre {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
}

.dh-copy,
.dh-stage,
.dh-panel {
  position: relative;
  border: 1px solid var(--dh-line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--dh-shadow);
}

.dh-copy {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--dh-radius-xl);
  overflow: hidden;
}

.dh-copy::before,
.dh-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dh-copy::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(122, 230, 220, 0.12), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(244, 198, 106, 0.1), transparent 24%);
}

.dh-kicker {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
}

.dh-copy h1 {
  margin: 16px 0 0;
  font-family: "Songti SC", "STSong", "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.dh-summary {
  max-width: 46ch;
  margin: 18px 0 0;
  color: var(--dh-muted);
  line-height: 1.78;
  font-size: 1.02rem;
}

.dh-tabs,
.dh-actions,
.dh-status-strip,
.dh-meter-grid {
  display: grid;
  gap: 12px;
}

.dh-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.dh-tab,
.dh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--dh-line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.dh-tab:hover,
.dh-button:hover,
.dh-header-links a:hover {
  transform: translateY(-2px);
  border-color: var(--dh-line-strong);
}

.dh-tab.is-active {
  border-color: rgba(122, 230, 220, 0.5);
  background: rgba(122, 230, 220, 0.12);
}

.dh-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.dh-button-primary {
  background: linear-gradient(135deg, rgba(122, 230, 220, 0.24), rgba(244, 198, 106, 0.22));
}

.dh-button-secondary {
  color: rgba(255, 255, 255, 0.86);
}

.dh-status-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.dh-status-item {
  min-height: 88px;
  padding: 16px 18px;
  border-radius: var(--dh-radius-m);
  border: 1px solid var(--dh-line);
  background: rgba(255, 255, 255, 0.04);
}

.dh-status-item span {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dh-status-item strong {
  display: block;
  margin-top: 14px;
  font-size: 1.02rem;
}

.dh-stage {
  position: relative;
  border-radius: var(--dh-radius-xl);
  overflow: hidden;
  min-height: 760px;
  background:
    radial-gradient(circle at 50% 28%, rgba(244, 198, 106, 0.12), transparent 32%),
    radial-gradient(circle at 50% 88%, rgba(122, 230, 220, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(13, 20, 32, 0.88), rgba(6, 9, 14, 1));
}

.dh-stage[data-scene="welcome"] {
  --dh-stage-a: rgba(122, 230, 220, 0.22);
  --dh-stage-b: rgba(244, 198, 106, 0.12);
  --dh-curtain: rgba(34, 45, 76, 0.92);
}

.dh-stage[data-scene="showcase"] {
  --dh-stage-a: rgba(244, 198, 106, 0.2);
  --dh-stage-b: rgba(255, 125, 104, 0.11);
  --dh-curtain: rgba(58, 39, 65, 0.92);
}

.dh-stage[data-scene="expo"] {
  --dh-stage-a: rgba(255, 125, 104, 0.18);
  --dh-stage-b: rgba(122, 230, 220, 0.12);
  --dh-curtain: rgba(30, 54, 64, 0.92);
}

.dh-curtain,
.dh-spotlight,
.dh-stage-floor,
.dh-avatar,
.dh-subtitle-panel,
.dh-progress {
  position: absolute;
}

.dh-curtain {
  top: 0;
  width: 24%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 14%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 16px, rgba(255, 255, 255, 0.01) 16px 32px),
    var(--dh-curtain);
  filter: saturate(0.8);
}

.dh-curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.26));
}

.dh-curtain-left {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.dh-curtain-right {
  right: 0;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.dh-spotlight {
  left: 50%;
  width: 46%;
  height: 58%;
  transform: translateX(-50%);
  border-radius: 50% 50% 44% 44%;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.44), transparent 18%),
    radial-gradient(circle at 50% 30%, var(--dh-stage-a), transparent 58%),
    radial-gradient(circle at 50% 72%, var(--dh-stage-b), transparent 68%);
  filter: blur(12px);
  mix-blend-mode: screen;
  animation: dh-spotlight 7s ease-in-out infinite;
}

.dh-spotlight-a {
  top: -2%;
  opacity: 0.92;
}

.dh-spotlight-b {
  top: 6%;
  width: 28%;
  height: 42%;
  opacity: 0.56;
  animation-delay: -3s;
}

.dh-stage-floor {
  left: 10%;
  right: 10%;
  bottom: 12%;
  height: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.36), transparent 68%),
    radial-gradient(circle at center, rgba(122, 230, 220, 0.08), transparent 58%);
  transform: perspective(800px) rotateX(72deg);
}

.dh-avatar {
  left: 50%;
  top: 18%;
  width: min(42vw, 420px);
  aspect-ratio: 0.72;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 32px 46px rgba(0, 0, 0, 0.5));
}

.dh-avatar-orbit,
.dh-avatar-halo,
.dh-avatar-head,
.dh-avatar-neck,
.dh-avatar-body,
.dh-avatar-shoulders,
.dh-avatar-shadow {
  position: absolute;
}

.dh-avatar-orbit {
  inset: auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dh-avatar-orbit-a {
  width: 100%;
  height: 100%;
  animation: dh-spin 22s linear infinite;
}

.dh-avatar-orbit-b {
  width: 78%;
  height: 78%;
  border-style: dashed;
  animation: dh-spin-reverse 16s linear infinite;
}

.dh-avatar-halo {
  width: 74%;
  height: 74%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 66%);
  filter: blur(18px);
}

.dh-avatar-head {
  top: 8%;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 48% 48% 42% 42%;
  background:
    radial-gradient(circle at 38% 35%, rgba(255, 255, 255, 0.48), transparent 14%),
    radial-gradient(circle at 62% 35%, rgba(255, 255, 255, 0.42), transparent 14%),
    linear-gradient(180deg, rgba(240, 243, 246, 0.28), rgba(240, 243, 246, 0.08));
  box-shadow:
    inset 0 -16px 24px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dh-avatar-head::before,
.dh-avatar-head::after {
  content: "";
  position: absolute;
  top: 40%;
  width: 10%;
  height: 10%;
  border-radius: 50%;
  background: rgba(8, 11, 18, 0.58);
}

.dh-avatar-head::before {
  left: 28%;
}

.dh-avatar-head::after {
  right: 28%;
}

.dh-avatar-neck {
  top: 33%;
  width: 11%;
  height: 9%;
  border-radius: 40% 40% 44% 44%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
}

.dh-avatar-body {
  top: 39%;
  width: 48%;
  height: 34%;
  border-radius: 30% 30% 20% 20%;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04));
}

.dh-avatar-shoulders {
  top: 54%;
  width: 74%;
  height: 22%;
  border-radius: 48% 48% 30% 30%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(14, 19, 30, 0.74);
  box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.22);
}

.dh-avatar-shadow {
  bottom: 4%;
  width: 46%;
  height: 10%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.34);
  filter: blur(16px);
}

.dh-subtitle-panel {
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  width: min(78%, 640px);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 13, 22, 0.72);
  backdrop-filter: blur(18px);
}

.dh-live-dot {
  width: 14px;
  height: 14px;
  margin-top: 7px;
  border-radius: 50%;
  background: rgba(122, 230, 220, 0.9);
  box-shadow: 0 0 0 0 rgba(122, 230, 220, 0.36);
}

.dh-stage.is-speaking .dh-live-dot {
  animation: dh-pulse 1.1s ease-in-out infinite;
}

.dh-subtitle-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dh-subtitle {
  margin: 6px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.dh-progress {
  left: 18%;
  right: 18%;
  bottom: 4%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.dh-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(122, 230, 220, 0.92), rgba(244, 198, 106, 0.92), rgba(255, 125, 104, 0.92));
  transition: width 0.3s ease;
}

.dh-console {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  margin-top: 22px;
}

.dh-panel {
  padding: 24px;
  border-radius: var(--dh-radius-l);
}

.dh-panel-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dh-panel-head strong {
  display: block;
  margin-top: 10px;
  font-size: 1.22rem;
}

.dh-script-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.dh-script-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--dh-line);
  background: rgba(255, 255, 255, 0.04);
}

.dh-script-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(122, 230, 220, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.dh-script-title {
  margin: 4px 0 0;
  font-size: 1rem;
}

.dh-script-text {
  margin: 8px 0 0;
  color: var(--dh-muted);
  line-height: 1.68;
}

.dh-meter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.dh-meter {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--dh-line);
  background: rgba(255, 255, 255, 0.04);
}

.dh-meter label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.dh-meter-bar {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.dh-meter-bar span {
  display: block;
  width: var(--meter, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(122, 230, 220, 0.92), rgba(244, 198, 106, 0.92));
  transition: width 0.38s ease;
}

.dh-feedback-copy {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--dh-line);
  background: rgba(255, 255, 255, 0.04);
}

.dh-feedback-copy p {
  margin: 0;
  color: var(--dh-muted);
  line-height: 1.72;
}

.dh-stage.is-speaking .dh-avatar {
  animation: dh-breathe 1.4s ease-in-out infinite;
}

.dh-stage.is-speaking .dh-avatar-halo {
  animation: dh-glow 1.4s ease-in-out infinite;
}

.dh-stage.is-speaking .dh-progress span {
  width: 100%;
}

.dh-stage.is-speaking .dh-avatar-head {
  animation: dh-nod 0.92s ease-in-out infinite;
}

.dh-stage.is-speaking .dh-avatar-body {
  animation: dh-ripple 1.25s ease-in-out infinite;
}

.dh-stage.is-speaking .dh-spotlight-a {
  animation: dh-spotlight 3.8s ease-in-out infinite, dh-lift 1.8s ease-in-out infinite;
}

.dh-stage.is-speaking .dh-spotlight-b {
  animation: dh-spotlight 5.2s ease-in-out infinite reverse, dh-lift 2.4s ease-in-out infinite;
}

@keyframes dh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes dh-spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes dh-spotlight {
  0%, 100% { transform: translateX(-50%) scale(0.98); opacity: 0.84; }
  50% { transform: translateX(-50%) scale(1.03); opacity: 1; }
}

@keyframes dh-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(122, 230, 220, 0.34); }
  50% { box-shadow: 0 0 0 10px rgba(122, 230, 220, 0); }
}

@keyframes dh-breathe {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes dh-glow {
  0%, 100% { filter: blur(18px) brightness(1); }
  50% { filter: blur(24px) brightness(1.2); }
}

@keyframes dh-nod {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(3px) scale(0.99); }
}

@keyframes dh-ripple {
  0%, 100% { transform: translateX(-50%) scaleY(1); }
  50% { transform: translateX(-50%) scaleY(1.03); }
}

@keyframes dh-lift {
  0%, 100% { filter: blur(12px) brightness(1); }
  50% { filter: blur(16px) brightness(1.2); }
}

@media (max-width: 1080px) {
  .dh-theatre,
  .dh-console {
    grid-template-columns: 1fr;
  }

  .dh-stage {
    min-height: 680px;
  }

  .dh-avatar {
    width: min(58vw, 420px);
  }
}

@media (max-width: 820px) {
  .dh-shell {
    padding: 14px;
  }

  .dh-header {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .dh-header-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .dh-tabs,
  .dh-actions,
  .dh-status-strip,
  .dh-meter-grid {
    grid-template-columns: 1fr;
  }

  .dh-stage {
    min-height: 620px;
  }

  .dh-avatar {
    top: 20%;
    width: min(72vw, 360px);
  }

  .dh-subtitle-panel {
    width: calc(100% - 28px);
    bottom: 14%;
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
