:root {
  color-scheme: dark;
  --ink: #f9f3e7;
  --muted: #c9beb4;
  --deep: #121016;
  --panel: rgba(18, 16, 22, 0.78);
  --panel-solid: #19151b;
  --line: rgba(255, 255, 255, 0.18);
  --gold: #f1c76b;
  --red: #cc4d4d;
  --teal: #58d7c6;
  --violet: #8b74ff;
  --hot-pink: #ff3df2;
  --sky: #00bbff;
  --lime: #9cff2e;
  --orange: #ff9f1c;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.44);
}

/* Keep the supplied Lili comic artwork bright and color-accurate. */
.stage[data-course="lililvyou"] .scene-art,
.stage[data-course="lililvyou"].is-speaking .scene-art,
.stage[data-course="lililvyou"].is-speaking[data-emotion] .scene-art {
  filter: none !important;
  animation: none !important;
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.34),
    0 0 0 999px rgba(4, 3, 6, 0.08) !important;
}

.stage[data-course="lililvyou"].has-intro .scene-art {
  filter: blur(2px) brightness(0.86) !important;
}

.stage[data-course="lililvyou"] .scene-shade {
  background: transparent !important;
}

.stage[data-course="lililvyou"] .role-light {
  opacity: 0 !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Segoe UI",
    Arial,
    sans-serif;
  background: #0e0c10;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

[hidden] {
  display: none !important;
}

.product-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: clamp(252px, 14.5vw, 282px) minmax(0, 1fr);
  color: #152033;
  background:
    linear-gradient(135deg, rgba(255, 236, 188, 0.5), transparent 34%),
    linear-gradient(45deg, rgba(88, 215, 198, 0.22), transparent 42%),
    #f4f7fb;
}

.product-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100svh;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border-right: 1px solid rgba(42, 63, 90, 0.1);
  box-shadow: 12px 0 40px rgba(67, 91, 122, 0.08);
}

.product-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 8px;
  color: #121827;
  background: transparent;
  border-radius: 14px;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: 25px;
  font-weight: 900;
  text-align: left;
}

.product-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #111827;
  background: linear-gradient(135deg, #ffe587, #5de0d0);
  border: 2px solid #ffffff;
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(36, 188, 173, 0.24);
  font-size: 18px;
}

.product-nav {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.nav-group-label {
  margin: 10px 8px 0;
  color: #92a0b3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.nav-group-label:first-child {
  margin-top: 0;
}

.product-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: #526173;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 700;
  text-align: left;
}

.product-nav-item svg,
.back-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-nav-item:hover,
.product-nav-item.is-active {
  color: #111827;
  background: #e8f2ff;
  border-color: rgba(56, 112, 255, 0.22);
  box-shadow: 0 10px 24px rgba(54, 108, 233, 0.12);
}

.sidebar-card {
  margin-top: 28px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 225, 141, 0.42), rgba(255, 255, 255, 0.9)),
    #fff;
  border: 1px solid rgba(241, 199, 107, 0.36);
  border-radius: 16px;
}

.sidebar-card span,
.product-kicker,
.course-card-body span,
.unlock-note {
  color: #6d7a90;
  font-size: 13px;
  font-weight: 800;
}

.sidebar-card strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 26px;
}

.sidebar-card p {
  margin-top: 8px;
  color: #607086;
  font-size: 13px;
  line-height: 1.55;
}

.product-main {
  min-width: 0;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 18px clamp(16px, 2vw, 26px) 40px;
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 17px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.1);
}

.product-top h1,
.home-hero h2,
.section-head h2,
.course-detail-copy h2,
.placeholder-panel h2 {
  margin: 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  overflow: visible;
  text-shadow: none;
  text-overflow: clip;
  white-space: normal;
  -webkit-text-stroke: 0;
}

.product-top h1 {
  margin-top: 4px;
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.18;
}

.product-actions,
.hero-actions,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.product-feedback-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-feedback-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.solid-action,
.ghost-action,
.text-action,
.category-chip,
.back-link {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  font-weight: 850;
}

.solid-action {
  color: #06120f;
  background: linear-gradient(180deg, #76eee2, #48d6c7);
  border: 1px solid rgba(43, 183, 169, 0.44);
  box-shadow: 0 14px 28px rgba(42, 199, 183, 0.22);
}

.ghost-action,
.text-action,
.category-chip,
.back-link {
  color: #243149;
  background: #ffffff;
  border: 1px solid rgba(40, 58, 86, 0.12);
}

.ghost-action.is-favorite {
  color: #241400;
  background: linear-gradient(180deg, #ffe58e, #ffd165);
  border-color: rgba(223, 162, 39, 0.42);
  box-shadow: 0 12px 24px rgba(223, 162, 39, 0.18);
}

.text-action {
  color: #1e67e8;
  box-shadow: none;
}

.back-link {
  margin-bottom: 14px;
}

.solid-action:hover,
.ghost-action:hover,
.text-action:hover,
.category-chip:hover,
.back-link:hover {
  transform: translateY(-1px);
}

.product-view {
  display: none;
}

.product-view.is-active {
  display: block;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.66fr);
  gap: 16px;
  align-items: stretch;
}

.home-hero-copy,
.hero-preview,
.market-panel,
.course-detail,
.episode-panel,
.placeholder-panel,
.stat-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.1);
}

.home-hero-copy {
  padding: clamp(22px, 2.5vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 230, 121, 0.36), rgba(255, 255, 255, 0.64) 48%),
    linear-gradient(45deg, rgba(255, 79, 216, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.9);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: #111827;
  background: #ffe27a;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.home-hero h2 {
  max-width: 580px;
  margin-top: 16px;
  font-size: clamp(30px, 2.7vw, 42px);
  line-height: 1.1;
}

.home-hero p {
  max-width: 560px;
  margin-top: 14px;
  color: #526173;
  font-size: 15px;
  line-height: 1.68;
}

.hero-actions {
  margin-top: 20px;
}

.hero-preview {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #10131b;
}

.hero-preview img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-line {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 13px 14px;
  color: #fff;
  background: rgba(10, 11, 16, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(14px);
}

.hero-line span {
  color: #58d7c6;
  font-size: 13px;
  font-weight: 900;
}

.hero-line strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.hero-line p {
  margin-top: 8px;
  color: #fff2c9;
  font-size: 15px;
  line-height: 1.35;
}

.home-conversion-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.2), transparent 48%),
    linear-gradient(45deg, rgba(255, 226, 122, 0.32), transparent 56%),
    #ffffff;
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.1);
}

.home-conversion-strip span,
.home-conversion-strip strong {
  display: block;
}

.home-conversion-strip span {
  color: #087a71;
  font-size: 12px;
  font-weight: 950;
}

.home-conversion-strip strong {
  margin-top: 4px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.home-conversion-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.stat-card {
  padding: 15px;
  overflow: hidden;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  color: #111827;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1;
}

.stat-card p {
  margin-top: 10px;
  color: #728197;
  font-size: 13px;
}

.referral-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.26), transparent 48%),
    linear-gradient(45deg, rgba(255, 226, 122, 0.5), rgba(255, 255, 255, 0.86)),
    #ffffff;
  border: 1px solid rgba(88, 215, 198, 0.32);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(87, 109, 140, 0.12);
}

.referral-banner[hidden] {
  display: none;
}

.referral-banner span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #06120f;
  background: #58d7c6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.referral-banner strong,
.referral-banner p {
  display: block;
}

.referral-banner strong {
  margin-top: 8px;
  color: #111827;
  font-size: 20px;
}

.referral-banner p {
  margin-top: 6px;
  color: #536176;
  font-size: 14px;
  line-height: 1.6;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 11px;
}

.section-head h2 {
  margin-top: 5px;
  font-size: clamp(20px, 1.8vw, 26px);
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.category-chip.is-active {
  color: #06120f;
  background: #ffe27a;
  border-color: rgba(241, 199, 107, 0.5);
}

.tool-entry-chip {
  color: #052f2b;
  background: linear-gradient(135deg, #5eead4, #ffe27a);
  border-color: rgba(20, 184, 166, 0.34);
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.16);
}

.course-grid {
  display: grid;
  grid-template-columns: 1fr repeat(2, minmax(230px, 0.78fr));
  gap: 14px;
}

.course-grid-compact {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.course-card {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.11);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.course-card:hover,
.course-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(45, 133, 118, 0.42);
  box-shadow: 0 22px 52px rgba(67, 100, 133, 0.17);
  outline: none;
}

.course-card.is-favorite::after {
  content: "已收藏";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  color: #191000;
  background: linear-gradient(180deg, #ffe78f, #ffd36b);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(96, 65, 10, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.course-card img {
  width: 100%;
  height: 152px;
  object-fit: cover;
  background: #10131b;
}

.course-card video {
  width: 100%;
  height: 152px;
  object-fit: cover;
  background: #10131b;
  display: block;
}

.video-course-placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  width: 100%;
  height: 152px;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 72% 22%, rgba(90, 215, 199, 0.44), transparent 28%),
    linear-gradient(135deg, #1b2440 0%, #10131b 52%, #251539 100%);
}

.video-course-placeholder span {
  justify-self: center;
  padding: 4px 10px;
  color: #08100f;
  background: #58d7c6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.video-course-placeholder strong {
  font-size: 22px;
  font-weight: 950;
}

.course-card.is-featured img {
  height: 198px;
}

.course-card.is-featured video {
  height: 198px;
}

.course-card.is-featured .video-course-placeholder {
  height: 198px;
}

.course-card.is-coming-soon {
  cursor: default;
}

.course-card.is-coming-soon:hover,
.course-card.is-coming-soon:focus-visible {
  transform: none;
}

.course-card-body {
  padding: 16px;
}

.course-card-body h3 {
  margin: 7px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 900;
}

.course-card-body p {
  margin-top: 9px;
  min-height: 66px;
  color: #59687c;
  font-size: 14px;
  line-height: 1.6;
}

.course-empty {
  margin-top: 14px;
  padding: 24px;
  color: #243149;
  background:
    linear-gradient(135deg, rgba(255, 226, 122, 0.24), rgba(88, 215, 198, 0.18)),
    rgba(255, 255, 255, 0.88);
  border: 1px dashed rgba(42, 63, 90, 0.18);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 14px 32px rgba(87, 109, 140, 0.08);
}

.course-empty strong {
  display: block;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: 21px;
  font-weight: 900;
}

.course-empty p {
  max-width: 520px;
  margin: 8px auto 0;
  color: #607086;
  font-size: 14px;
  line-height: 1.7;
}

.video-lesson-page {
  display: grid;
  gap: 14px;
}

.video-lesson-head {
  margin-bottom: 0;
}

.video-lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.local-video-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: center;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(18px, 2.2vw, 26px);
  background:
    radial-gradient(circle at 7% 14%, rgba(88, 215, 198, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 226, 122, 0.18), rgba(255, 255, 255, 0.9) 44%, rgba(221, 252, 247, 0.92));
  border: 1px solid rgba(88, 215, 198, 0.34);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(87, 109, 140, 0.13);
}

.local-video-tool-copy {
  display: grid;
  gap: 8px;
}

.local-video-tool-copy h3 {
  margin: 0;
  color: #0f172a;
  font-family: "Microsoft YaHei", "YouYuan", sans-serif;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 950;
  line-height: 1.18;
}

.local-video-tool-copy p {
  max-width: 620px;
  margin: 0;
  color: #526179;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.local-video-limit-note {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 14px;
  color: #14312b;
  background: linear-gradient(135deg, rgba(255, 226, 122, 0.86), rgba(88, 215, 198, 0.72));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.4;
}

.local-video-upload-grid {
  display: grid;
  gap: 10px;
}

.local-video-file {
  display: grid;
  gap: 8px;
  padding: 14px;
  color: #111827;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed rgba(42, 63, 90, 0.22);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.local-video-file span {
  color: #152033;
  font-size: 13px;
  font-weight: 950;
}

.local-video-file input {
  width: 100%;
  color: #526179;
  font-size: 13px;
  font-weight: 800;
}

.local-video-file input::file-selector-button {
  min-height: 38px;
  margin-right: 10px;
  padding: 0 16px;
  color: #071310;
  background: #58d7c6;
  border: 0;
  border-radius: 999px;
  font-weight: 950;
  cursor: pointer;
}

.local-video-action-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.local-video-action-row small {
  color: #526179;
  font-size: 12px;
  font-weight: 900;
}

.local-video-ai-button {
  flex: 0 1 auto;
  min-height: 40px;
  padding: 0 18px;
  color: #071310;
  background: linear-gradient(135deg, #ffe27a, #58d7c6);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(88, 215, 198, 0.24);
  font-weight: 950;
  cursor: pointer;
}

.local-video-download-button {
  flex: 0 1 auto;
  min-height: 40px;
  padding: 0 18px;
  color: #152033;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(42, 63, 90, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(87, 109, 140, 0.11);
  font-weight: 950;
  cursor: pointer;
}

.local-video-download-button:disabled {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
  cursor: not-allowed;
}

.local-video-ai-button:disabled {
  color: #8290a4;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: none;
  cursor: not-allowed;
}

.local-video-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 14px;
  color: #607086;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.local-video-status.is-ok {
  color: #006f61;
  background: rgba(88, 215, 198, 0.22);
  border-color: rgba(88, 215, 198, 0.42);
}

.local-video-status.is-error {
  color: #9a3412;
  background: rgba(255, 226, 122, 0.22);
  border-color: rgba(251, 146, 60, 0.34);
}

.video-lesson-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.video-stage-card,
.video-drill-card {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.11);
}

.video-stage-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.12), transparent 52%),
    #10131b;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 1040px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #05070d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05070d;
  display: block;
}

.video-start-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 10px;
  color: #10131b;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 226, 122, 0.32), transparent 30%),
    rgba(3, 5, 10, 0.34);
  border: 0;
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.video-start-overlay[hidden] {
  display: none;
}

.video-start-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  color: #121019;
  background: linear-gradient(180deg, #fff1a8, #58d7c6);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), 0 0 0 8px rgba(88, 215, 198, 0.12);
  font-family: "Microsoft YaHei", "YouYuan", sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 950;
}

.video-start-overlay small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.58);
}

.video-frame-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.video-frame-label span,
.video-frame-label strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #06120f;
  background: rgba(88, 215, 198, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.video-frame-label [hidden] {
  display: none;
}

.video-frame-label strong {
  color: #221400;
  background: rgba(255, 226, 122, 0.94);
}

.video-subtitle-mask {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 2.5%;
  z-index: 2;
  height: 15%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 50%, rgba(88, 215, 198, 0.22), transparent 35%),
    linear-gradient(180deg, rgba(4, 7, 14, 0.58), rgba(4, 7, 14, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(7px);
}

.video-subtitle-mask[hidden] {
  display: none;
}

.video-hover-controls {
  position: absolute;
  left: 50%;
  bottom: 54px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(92%, 520px);
  padding: 10px;
  background: rgba(5, 8, 15, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(12px);
}

.video-frame:hover .video-hover-controls,
.video-frame:focus-within .video-hover-controls,
.video-hover-controls.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.video-hover-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.video-hover-button:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 215, 198, 0.64);
  background: rgba(88, 215, 198, 0.18);
}

.video-hover-button.primary {
  color: #06120f;
  background: linear-gradient(135deg, #ffe27a, #58d7c6);
  border-color: rgba(255, 255, 255, 0.5);
}

.video-hover-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-hover-button.primary .icon-play path {
  fill: currentColor;
  stroke: none;
}

.video-toggle-icon.icon-pause {
  display: none;
}

.video-hover-button.is-playing .icon-play {
  display: none;
}

.video-hover-button.is-playing .icon-pause {
  display: block;
}

.video-progress-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(100%, 980px);
  min-height: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.video-progress-row input[type="range"] {
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  accent-color: #58d7c6;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.video-progress-row input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background:
    linear-gradient(90deg, #58d7c6 var(--video-progress, 0%), rgba(255, 255, 255, 0.16) var(--video-progress, 0%));
  border-radius: 999px;
}

.video-progress-row input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -6px;
  background: linear-gradient(135deg, #ffe27a, #58d7c6);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  -webkit-appearance: none;
}

.video-progress-row input[type="range"]::-moz-range-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.video-progress-row input[type="range"]::-moz-range-progress {
  height: 8px;
  background: #58d7c6;
  border-radius: 999px;
}

.video-progress-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ffe27a, #58d7c6);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.video-under-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(100%, 980px);
}

.video-under-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.video-under-button:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 215, 198, 0.58);
  background: rgba(88, 215, 198, 0.16);
}

.video-under-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-under-button.primary {
  color: #06120f;
  background: linear-gradient(135deg, #ffe27a, #58d7c6);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 14px 26px rgba(88, 215, 198, 0.25);
}

.video-under-button.is-active:not(.primary) {
  color: #08140f;
  background: rgba(255, 226, 122, 0.92);
  border-color: rgba(255, 255, 255, 0.48);
}

.video-preview-subtitle {
  width: min(100%, 980px);
  min-height: 44px;
  padding: 10px 18px;
  color: #ffffff;
  background: rgba(3, 5, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  font-family: "Microsoft YaHei", "YouYuan", sans-serif;
  font-size: clamp(16px, 1.8vw, 23px);
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.video-preview-subtitle[hidden] {
  display: none;
}

#videoLessonNote {
  width: min(100%, 1040px);
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.6;
}

.video-drill-card {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 390px;
  padding: clamp(20px, 2.5vw, 34px);
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 226, 122, 0.2), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(88, 215, 198, 0.18), transparent 34%),
    #11131c;
}

.video-drill-card.is-previewing {
  min-height: 230px;
  align-content: center;
}

.video-drill-card.is-previewing .video-answer-box,
.video-drill-card.is-previewing .video-hint-panel,
.video-drill-card.is-previewing .video-control-dock {
  display: none;
}

.video-drill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.video-drill-top span,
.video-drill-top strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.video-drill-top span {
  color: #06120f;
  background: #58d7c6;
}

.video-drill-top strong {
  color: #281900;
  background: #ffe27a;
}

.video-line-copy {
  text-align: center;
}

.video-line-copy p {
  margin: 0 auto;
  max-width: 760px;
  color: #ffffff;
  font-family: "Microsoft YaHei", "YouYuan", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.24;
}

.video-line-copy small {
  display: block;
  min-height: 22px;
  margin-top: 12px;
  color: #9deee5;
  font-size: 13px;
  font-weight: 800;
}

.video-answer-box {
  position: relative;
  z-index: 1;
  min-height: 96px;
  padding: 10px;
  background: transparent;
}

.video-answer-box .word-line {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: center;
  gap: 14px 10px;
  max-width: 100%;
}

.video-hint-panel {
  position: relative;
  z-index: 1;
  padding: 16px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.18), transparent 48%),
    rgba(4, 6, 11, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.video-hint-panel span {
  color: #58d7c6;
  font-size: 12px;
  font-weight: 950;
}

.video-hint-panel strong {
  display: block;
  margin-top: 8px;
  color: #fff8cb;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.3;
}

.video-hint-panel p {
  margin-top: 8px;
  color: #d9e5f2;
  font-size: 14px;
  line-height: 1.65;
}

.video-success-layer {
  position: absolute;
  inset: 0;
}

.video-control-dock {
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, 52px);
  gap: 10px;
  padding: 10px;
  background: rgba(2, 3, 8, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

.video-focus-line {
  margin: 0;
  color: #9deee5;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.course-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.course-meta strong,
.detail-tags span {
  padding: 6px 10px;
  color: #243149;
  background: #eef5ff;
  border-radius: 999px;
  font-size: 12px;
}

.course-progress {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.course-progress div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #6d7a90;
  font-size: 13px;
  font-weight: 800;
}

.course-progress strong {
  color: #16a394;
}

.course-progress i {
  display: block;
  height: 7px;
  overflow: hidden;
  background: #e8eef7;
  border-radius: 999px;
}

.course-progress i::before {
  content: "";
  display: block;
  width: var(--course-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, #58d7c6, #ffe27a, #ff7bc8);
  border-radius: inherit;
  transition: width 260ms ease;
}

.market-panel,
.episode-panel,
.placeholder-panel {
  padding: 18px;
}

.market-panel .section-head,
.episode-panel .section-head {
  margin-top: 0;
}

.course-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.course-detail-cover {
  overflow: hidden;
  min-height: 250px;
  border-radius: 16px;
  background: #10131b;
}

.course-detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.course-detail-copy {
  align-self: center;
}

.course-detail-copy h2 {
  margin-top: 14px;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.08;
}

.course-detail-copy p {
  max-width: 660px;
  margin-top: 14px;
  color: #526173;
  font-size: 16px;
  line-height: 1.68;
}

.locked-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  color: #fff7e4;
  background:
    linear-gradient(135deg, rgba(255, 61, 242, 0.18), transparent 42%),
    linear-gradient(45deg, rgba(88, 215, 198, 0.2), transparent 50%),
    #151925;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(16, 24, 39, 0.18);
}

.locked-teaser .product-kicker {
  color: #ffe27a;
}

.locked-teaser h2 {
  margin: 8px 0 0;
  color: #ffffff;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 900;
}

.locked-teaser p {
  max-width: 760px;
  margin-top: 10px;
  color: #e6edf7;
  font-size: 15px;
  line-height: 1.68;
}

.teaser-preview {
  display: grid;
  gap: 6px;
  max-width: 560px;
  margin-top: 14px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #58d7c6;
  border-radius: 14px;
}

.teaser-preview strong {
  color: #fff4c9;
  font-size: 18px;
}

.teaser-preview span {
  color: #cbd6e6;
  font-size: 13px;
}

.teaser-value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.teaser-value-grid span {
  padding: 7px 10px;
  color: #0b151b;
  background: #58d7c6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.teaser-actions {
  display: grid;
  gap: 10px;
  min-width: 190px;
}

.teaser-offer-card {
  padding: 14px;
  color: #fff7e4;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
}

.teaser-offer-card span {
  display: inline-flex;
  padding: 4px 8px;
  color: #111827;
  background: #ffe27a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.teaser-offer-card strong {
  display: block;
  margin-top: 9px;
  color: #ffffff;
  font-size: 17px;
}

.teaser-offer-card p {
  margin-top: 6px;
  color: #cbd6e6;
  font-size: 12px;
  line-height: 1.55;
}

.episode-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.episode-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 13px;
  color: #243149;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 16px;
  text-align: left;
}

.episode-item.is-open {
  background:
    linear-gradient(90deg, rgba(88, 215, 198, 0.18), rgba(255, 255, 255, 0.96)),
    #f7faff;
  border-color: rgba(88, 215, 198, 0.34);
}

.episode-item.is-locked {
  background:
    linear-gradient(90deg, rgba(255, 226, 122, 0.16), rgba(255, 255, 255, 0.96)),
    #fffaf0;
  border-color: rgba(241, 199, 107, 0.34);
}

.episode-item.is-unlocked {
  background:
    linear-gradient(90deg, rgba(88, 215, 198, 0.2), rgba(255, 226, 122, 0.16), rgba(255, 255, 255, 0.96)),
    #f4fffb;
  border-color: rgba(88, 215, 198, 0.42);
}

.episode-item.is-unlocked .episode-index {
  background: linear-gradient(135deg, #58d7c6, #ffe27a);
}

.episode-item.is-planned {
  color: #728197;
  background: #f7f8fb;
}

.episode-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(87, 109, 140, 0.12);
}

.episode-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #06120f;
  background: #ffe27a;
  border-radius: 14px;
  font-weight: 900;
}

.episode-item h3 {
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.episode-item p {
  margin-top: 4px;
  color: #728197;
  font-size: 12px;
}

.episode-lock {
  color: #9aa6b8;
  font-size: 13px;
  font-weight: 800;
}

.episode-item.is-open .episode-lock {
  color: #16a394;
}

.episode-item.is-locked .episode-lock {
  color: #d07a00;
}

.episode-item.is-unlocked .episode-lock {
  color: #16a394;
}

.placeholder-panel {
  max-width: 680px;
  margin: 80px auto 0;
  text-align: center;
}

.placeholder-panel h2 {
  margin-top: 16px;
  font-size: clamp(28px, 4vw, 46px);
}

.placeholder-panel p {
  margin: 12px auto 22px;
  color: #59687c;
  font-size: 16px;
  line-height: 1.75;
}

.legal-page {
  display: grid;
  gap: 18px;
}

.legal-hero,
.legal-document,
.legal-tabs {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.1);
}

.legal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(255, 226, 122, 0.22), transparent 46%),
    #ffffff;
}

.legal-hero h2 {
  max-width: 860px;
  margin: 12px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 950;
  line-height: 1.12;
}

.legal-hero p {
  max-width: 920px;
  margin-top: 12px;
  color: #536072;
  font-size: 15px;
  line-height: 1.75;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.legal-tabs {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.legal-tab {
  min-height: 44px;
  padding: 0 14px;
  color: #526173;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
}

.legal-tab:hover,
.legal-tab.is-active {
  color: #06120f;
  background: linear-gradient(135deg, #ffe27a, #58d7c6);
  border-color: rgba(88, 215, 198, 0.36);
}

.legal-document {
  padding: 26px;
}

.legal-document h2 {
  margin: 10px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 950;
}

.legal-body {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.legal-block {
  padding: 18px;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
}

.legal-block strong {
  display: block;
  color: #111827;
  font-size: 17px;
}

.legal-block p,
.legal-block li {
  color: #59687c;
  font-size: 14px;
  line-height: 1.75;
}

.legal-block p {
  margin-top: 8px;
}

.legal-block ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 18px;
}

.my-dashboard {
  display: grid;
  gap: 18px;
}

.profile-card,
.learning-panel,
.member-panel,
.today-plan-panel,
.review-panel,
.study-calendar-panel,
.product-modal {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.11);
}

.profile-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: #111827;
  background:
    linear-gradient(135deg, #ffe27a, #58d7c6 56%, #ff88d7);
  border: 4px solid #fff;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(88, 215, 198, 0.28);
  font-size: 28px;
  font-weight: 900;
}

.profile-card h2,
.learning-panel h2,
.member-panel h2,
.product-modal h2 {
  margin: 5px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.profile-card h2 {
  font-size: clamp(24px, 2.4vw, 34px);
}

.profile-card p,
.member-panel p,
.product-modal p {
  margin-top: 8px;
  color: #59687c;
  font-size: 15px;
  line-height: 1.7;
}

.my-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.learning-center-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.7fr);
  gap: 16px;
}

.my-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.learning-panel,
.member-panel,
.today-plan-panel,
.review-panel,
.study-calendar-panel {
  padding: 20px;
}

.learning-panel .section-head,
.today-plan-panel .section-head,
.review-panel .section-head,
.study-calendar-panel .section-head {
  margin-top: 0;
}

.calendar-month {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #06120f;
  background: #ffe27a;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.calendar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.calendar-summary div {
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.14), rgba(255, 255, 255, 0.95)),
    #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 16px;
}

.calendar-summary span,
.calendar-summary strong {
  display: block;
}

.calendar-summary span {
  color: #66758a;
  font-size: 12px;
  font-weight: 900;
}

.calendar-summary strong {
  margin-top: 7px;
  color: #111827;
  font-size: 23px;
  line-height: 1;
}

.study-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekday,
.calendar-empty-day,
.calendar-day {
  min-height: 54px;
  border-radius: 16px;
}

.calendar-weekday {
  display: grid;
  place-items: center;
  min-height: 30px;
  color: #8a97aa;
  font-size: 12px;
  font-weight: 950;
}

.calendar-day {
  display: grid;
  gap: 4px;
  place-items: center;
  color: #728197;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
}

.calendar-day strong,
.calendar-day span {
  display: block;
}

.calendar-day strong {
  color: #34445c;
  font-size: 16px;
}

.calendar-day span {
  min-height: 14px;
  color: #8a97aa;
  font-size: 11px;
  font-weight: 850;
}

.calendar-day.is-studied {
  color: #06120f;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.24), rgba(255, 226, 122, 0.32)),
    #ffffff;
  border-color: rgba(88, 215, 198, 0.36);
  box-shadow: 0 10px 24px rgba(88, 215, 198, 0.14);
}

.calendar-day.is-studied span {
  color: #16a394;
}

.calendar-day.is-today {
  border-color: rgba(255, 159, 28, 0.5);
  outline: 2px solid rgba(255, 226, 122, 0.34);
}

.continue-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.18), rgba(255, 255, 255, 0.94)),
    #f7faff;
  border: 1px solid rgba(88, 215, 198, 0.24);
  border-radius: 18px;
}

.continue-card h3 {
  margin: 6px 0 0;
  color: #111827;
  font-size: 20px;
}

.continue-card p {
  margin-top: 6px;
  color: #5f6f84;
  font-size: 14px;
  line-height: 1.55;
}

.task-list,
.review-list {
  display: grid;
  gap: 10px;
}

.task-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 16px;
}

.task-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-item strong {
  color: #111827;
  font-size: 15px;
}

.task-item span {
  color: #607086;
  font-size: 13px;
  font-weight: 850;
}

.task-item i {
  display: block;
  overflow: hidden;
  height: 8px;
  background: #e8eef7;
  border-radius: 999px;
}

.task-item i::before {
  content: "";
  display: block;
  width: var(--task-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, #58d7c6, #ffe27a);
  border-radius: inherit;
}

.task-item.is-gold i::before {
  background: linear-gradient(90deg, #ffe27a, #ff9f1c);
}

.task-item.is-pink i::before {
  background: linear-gradient(90deg, #ff88d7, #8b74ff);
}

.review-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: #243149;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 16px;
  text-align: left;
}

.review-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(87, 109, 140, 0.12);
}

.review-row > span:first-child {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: #111827;
  background: #ffe27a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.review-row strong,
.review-row em {
  display: block;
}

.review-row strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
}

.review-row em {
  margin-top: 4px;
  color: #6d7a90;
  font-size: 13px;
  font-style: normal;
}

.review-empty {
  padding: 16px;
  color: #66758a;
  background: #f7faff;
  border: 1px dashed rgba(42, 63, 90, 0.18);
  border-radius: 16px;
  font-size: 14px;
}

.my-course-list {
  display: grid;
  gap: 12px;
}

.my-course-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  color: #243149;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 16px;
  text-align: left;
}

.my-course-row.is-favorite {
  background:
    linear-gradient(90deg, rgba(255, 226, 122, 0.22), rgba(255, 255, 255, 0.94)),
    #fffaf0;
  border-color: rgba(241, 199, 107, 0.34);
}

.my-course-row img {
  width: 92px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: #10131b;
}

.my-course-row h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
}

.my-course-row p {
  margin-top: 6px;
  color: #6d7a90;
  font-size: 13px;
}

.review-dashboard {
  display: grid;
  gap: 18px;
}

.review-hero,
.review-score-card,
.review-bank-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.11);
}

.review-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.32fr);
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.2), transparent 40%),
    linear-gradient(45deg, rgba(255, 226, 122, 0.38), transparent 62%),
    rgba(255, 255, 255, 0.92);
}

.review-hero h2 {
  max-width: 760px;
  margin: 12px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 900;
  line-height: 1.08;
}

.review-hero p {
  max-width: 720px;
  margin-top: 12px;
  color: #526173;
  font-size: 16px;
  line-height: 1.75;
}

.review-score-card {
  display: grid;
  align-content: center;
  min-height: 170px;
  padding: 18px;
  color: #fff7e4;
  background:
    linear-gradient(145deg, rgba(88, 215, 198, 0.2), transparent 46%),
    #151925;
}

.review-score-card span {
  color: #8ee8dd;
  font-size: 13px;
  font-weight: 900;
}

.review-score-card strong {
  margin-top: 10px;
  color: #ffe27a;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
}

.review-score-card p {
  color: #d8e1ee;
  font-size: 14px;
}

.review-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.review-center-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.review-bank-card {
  padding: 20px;
}

.review-bank-card .section-head {
  margin-top: 0;
}

.review-bank-card h2 {
  font-size: clamp(22px, 2.4vw, 34px);
}

.review-bank-list {
  display: grid;
  gap: 10px;
}

.review-deck-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  color: #243149;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
  text-align: left;
}

.review-deck-row:hover,
.word-review-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(87, 109, 140, 0.12);
}

.review-deck-row > span:first-child {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: #06120f;
  background: #ffe27a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.review-deck-row strong,
.review-deck-row em,
.review-deck-row i {
  display: block;
}

.review-deck-row strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
}

.review-deck-row em {
  margin-top: 5px;
  color: #5f6e82;
  font-size: 14px;
  font-style: normal;
}

.review-deck-row i {
  margin-top: 9px;
  color: #16a394;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.55;
}

.word-review-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.word-review-card {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 13px;
  color: #243149;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.14), transparent 58%),
    #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
  text-align: left;
}

.word-review-card span {
  width: fit-content;
  padding: 4px 8px;
  color: #06120f;
  background: #58d7c6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.word-review-card strong {
  color: #111827;
  font-size: 20px;
  line-height: 1.1;
}

.word-review-card em {
  color: #66758a;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.word-review-card.word-verb span,
.word-review-card.word-predicate span {
  background: #00f0a8;
}

.word-review-card.word-subject span,
.word-review-card.word-name span {
  background: #31d7ff;
}

.word-review-card.word-drama span {
  background: #ff88d7;
}

.word-review-card.word-time span {
  background: #ffe27a;
}

.member-panel {
  position: sticky;
  top: 22px;
  background:
    linear-gradient(135deg, rgba(255, 226, 122, 0.35), rgba(255, 255, 255, 0.85) 48%),
    rgba(255, 255, 255, 0.92);
}

.member-panel h2 {
  margin-top: 16px;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.12;
}

.member-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.member-benefits span {
  padding: 7px 10px;
  color: #111827;
  background: rgba(88, 215, 198, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.membership-page {
  display: grid;
  gap: 16px;
}

.membership-hero,
.membership-plan-card,
.membership-benefit-grid article,
.membership-rule-panel,
.membership-rule-grid article,
.membership-partner-panel,
.partner-rule-list article,
.membership-score-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.11);
}

.membership-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.2), transparent 38%),
    linear-gradient(45deg, rgba(255, 226, 122, 0.4), transparent 60%),
    rgba(255, 255, 255, 0.92);
}

.membership-hero h2 {
  max-width: 720px;
  margin: 12px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 900;
  line-height: 1.08;
}

.membership-hero p {
  max-width: 680px;
  margin-top: 12px;
  color: #536176;
  font-size: 16px;
  line-height: 1.75;
}

.membership-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.membership-score-card {
  display: grid;
  align-content: center;
  min-height: 170px;
  padding: 18px;
  background:
    linear-gradient(160deg, #151925, #222b3b);
  color: #fff7e4;
}

.membership-score-card span {
  color: #8ee8dd;
  font-size: 13px;
  font-weight: 900;
}

.membership-score-card strong {
  margin-top: 10px;
  color: #ffe27a;
  font-size: clamp(34px, 3.5vw, 46px);
  line-height: 1;
}

.membership-score-card p {
  color: #d8e1ee;
}

.membership-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.membership-plan-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 188px;
  padding: 18px;
  color: #172133;
  text-align: left;
}

.membership-plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(87, 109, 140, 0.16);
}

.membership-plan-card.is-recommended {
  color: #fff7e4;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.32), transparent 44%),
    #151925;
  border-color: rgba(88, 215, 198, 0.36);
}

.membership-plan-card span,
.membership-plan-card em {
  width: fit-content;
  padding: 6px 10px;
  background: rgba(88, 215, 198, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.membership-plan-card.is-recommended span,
.membership-plan-card.is-recommended em {
  color: #111827;
  background: #ffe27a;
}

.membership-plan-card strong {
  font-size: clamp(31px, 3.4vw, 42px);
  line-height: 1;
}

.membership-plan-card p {
  color: #66758a;
  font-size: 15px;
  line-height: 1.65;
}

.membership-plan-card.is-recommended p {
  color: #d8e1ee;
}

.membership-card-list {
  display: grid;
  gap: 7px;
}

.membership-card-list b {
  position: relative;
  display: block;
  padding-left: 18px;
  color: #324052;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.membership-card-list b::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 7px;
  height: 7px;
  background: #58d7c6;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(88, 215, 198, 0.15);
}

.membership-plan-card.is-recommended .membership-card-list b {
  color: #fff7dc;
}

.membership-plan-card.is-recommended .membership-card-list b::before {
  background: #ffe27a;
  box-shadow: 0 0 0 4px rgba(255, 226, 122, 0.18);
}

.membership-rule-panel,
.membership-partner-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.membership-rule-panel {
  background:
    linear-gradient(135deg, rgba(67, 107, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.9);
}

.membership-rule-panel .section-head {
  margin: 0;
}

.membership-rule-panel h2,
.membership-partner-panel h2 {
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.12;
}

.membership-rule-grid,
.partner-rule-list {
  display: grid;
  gap: 12px;
}

.membership-rule-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.membership-rule-grid article,
.partner-rule-list article {
  padding: 16px;
}

.membership-rule-grid article span,
.partner-rule-list article span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #0d786f;
  background: rgba(88, 215, 198, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.membership-rule-grid article strong,
.partner-rule-list article strong {
  display: block;
  margin-top: 10px;
  color: #111827;
  font-size: 19px;
  line-height: 1.2;
}

.membership-rule-grid article p,
.partner-rule-list article p,
.membership-partner-panel > div > p {
  margin-top: 9px;
  color: #66758a;
  font-size: 14px;
  line-height: 1.7;
}

.membership-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.membership-benefit-grid article {
  padding: 18px;
}

.membership-benefit-grid strong {
  color: #111827;
  font-size: 18px;
}

.membership-benefit-grid p {
  margin-top: 8px;
  color: #66758a;
  font-size: 14px;
  line-height: 1.7;
}

.membership-partner-panel {
  background:
    linear-gradient(135deg, rgba(255, 226, 122, 0.34), transparent 44%),
    linear-gradient(160deg, rgba(88, 215, 198, 0.16), transparent 62%),
    rgba(255, 255, 255, 0.92);
}

.partner-rule-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-rule-list article:nth-child(2) span,
.partner-rule-list article:nth-child(3) span {
  color: #975a00;
  background: rgba(255, 226, 122, 0.36);
}

.partner-rule-list article strong {
  font-size: clamp(20px, 2.2vw, 30px);
}

.partner-dashboard {
  display: grid;
  gap: 18px;
}

.partner-hero,
.partner-panel,
.partner-materials,
.invite-card,
.partner-stat-card,
.script-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.11);
}

.partner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 22px;
  align-items: stretch;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.18), transparent 38%),
    linear-gradient(45deg, rgba(255, 226, 122, 0.34), transparent 60%),
    rgba(255, 255, 255, 0.9);
}

.partner-hero h2,
.partner-panel h2,
.partner-materials h2 {
  margin: 12px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(30px, 3.8vw, 56px);
  font-weight: 900;
  line-height: 1.06;
}

.partner-hero p {
  max-width: 760px;
  margin-top: 14px;
  color: #526173;
  font-size: 16px;
  line-height: 1.75;
}

.invite-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 61, 242, 0.12), transparent 45%),
    #111827;
  color: #fff;
}

.invite-card span {
  color: #cbd6e6;
  font-size: 13px;
  font-weight: 900;
}

.invite-card strong {
  color: #ffe27a;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.invite-card p {
  margin: 0;
  color: #8ee8dd;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.partner-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.partner-stat-card {
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.9);
}

.partner-stat-card.is-money {
  background:
    linear-gradient(135deg, rgba(255, 226, 122, 0.34), transparent 58%),
    rgba(255, 255, 255, 0.9);
}

.partner-stat-card.is-time {
  background:
    linear-gradient(135deg, rgba(255, 136, 215, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.9);
}

.partner-stat-card span {
  color: #6d7a90;
  font-size: 13px;
  font-weight: 900;
}

.partner-stat-card strong {
  display: block;
  margin-top: 12px;
  color: #111827;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1;
}

.partner-stat-card p {
  margin-top: 10px;
  color: #728197;
  font-size: 13px;
}

.partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.58fr);
  gap: 18px;
  align-items: start;
}

.partner-panel,
.partner-materials {
  padding: 22px;
}

.partner-panel .section-head,
.partner-materials .section-head {
  margin-top: 0;
}

.partner-panel h2,
.partner-materials h2 {
  font-size: clamp(22px, 2.4vw, 34px);
}

.partner-table {
  display: grid;
  gap: 8px;
}

.partner-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr 0.8fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  color: #526173;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 14px;
  font-size: 14px;
}

.partner-row.is-head {
  min-height: 36px;
  color: #8a97aa;
  background: transparent;
  border-color: transparent;
  font-size: 12px;
  font-weight: 900;
}

.partner-row strong {
  color: #16a394;
}

.withdraw-card {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 16px;
  color: #fff7e4;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.24), transparent 44%),
    linear-gradient(45deg, rgba(255, 226, 122, 0.28), transparent 62%),
    #151925;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(16, 24, 39, 0.15);
}

.withdraw-card span {
  color: #8ee8dd;
  font-size: 12px;
  font-weight: 950;
}

.withdraw-card strong {
  color: #ffe27a;
  font-size: 42px;
  line-height: 1;
}

.withdraw-card p {
  margin: 0;
  color: #d8e1ee;
  font-size: 13px;
  line-height: 1.55;
}

.withdraw-card .solid-action {
  width: fit-content;
}

.withdraw-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.withdraw-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 14px;
}

.withdraw-list span {
  color: #66758a;
  font-size: 12px;
  font-weight: 850;
}

.withdraw-list strong {
  color: #16a394;
}

.rule-list {
  display: grid;
  gap: 10px;
}

.rule-list div {
  padding: 14px;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 16px;
}

.rule-list strong {
  color: #111827;
  font-size: 15px;
}

.rule-list p {
  margin-top: 6px;
  color: #59687c;
  font-size: 13px;
  line-height: 1.65;
}

.script-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.script-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.script-card span {
  color: #16a394;
  font-size: 13px;
  font-weight: 900;
}

.script-card p {
  color: #526173;
  font-size: 14px;
  line-height: 1.75;
}

.product-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 30;
  min-width: 220px;
  padding: 12px 16px;
  color: #06120f;
  background: linear-gradient(180deg, #fff3b0, #58d7c6);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(16, 24, 39, 0.22);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
  animation: toastIn 1600ms ease both;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-hero,
.admin-quick-card,
.admin-stat-card,
.admin-tabs,
.admin-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(87, 109, 140, 0.1);
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.34fr);
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.92);
}

.admin-hero h2 {
  max-width: 900px;
  margin: 12px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 900;
  line-height: 1.08;
}

.admin-hero p,
.admin-quick-card p {
  margin-top: 12px;
  color: #526173;
  font-size: 15px;
  line-height: 1.7;
}

.admin-quick-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 226, 122, 0.32), transparent 58%),
    #ffffff;
}

.admin-quick-card span,
.admin-stat-card span {
  color: #6d7a90;
  font-size: 13px;
  font-weight: 900;
}

.admin-quick-card strong {
  color: #111827;
  font-size: 64px;
  line-height: 0.95;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat-card {
  padding: 18px;
}

.admin-stat-card strong {
  display: block;
  margin-top: 11px;
  color: #111827;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.admin-stat-card p {
  margin-top: 9px;
  color: #728197;
  font-size: 13px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
}

.admin-tab {
  min-height: 40px;
  padding: 0 15px;
  color: #526173;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
}

.admin-tab:hover,
.admin-tab.is-active {
  color: #06120f;
  background: #ffe27a;
  border-color: rgba(241, 199, 107, 0.45);
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.54fr);
  gap: 18px;
}

.admin-card {
  padding: 20px;
}

.admin-card .section-head {
  margin-top: 0;
}

.admin-card h2 {
  font-size: clamp(22px, 2.3vw, 32px);
}

.admin-task-list,
.pipeline-list {
  display: grid;
  gap: 10px;
}

.admin-task-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 14px;
}

.admin-task-list strong {
  color: #111827;
  font-size: 15px;
}

.admin-task-list span {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #16a394;
  background: rgba(88, 215, 198, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.pipeline-list span {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 14px;
  color: #243149;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 14px;
  font-weight: 850;
}

.pipeline-list span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--p, 0%);
  height: 5px;
  background: linear-gradient(90deg, #58d7c6, #ffe27a);
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-empty-state {
  border: 1px dashed rgba(83, 224, 205, 0.36);
  border-radius: 18px;
  padding: 24px;
  color: #536072;
  background: linear-gradient(135deg, rgba(83, 224, 205, 0.09), rgba(255, 210, 106, 0.1));
  font-weight: 800;
  line-height: 1.7;
}

.admin-user-summary,
.admin-order-summary,
.admin-partner-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-user-summary div,
.admin-order-summary div,
.admin-partner-summary div {
  padding: 14px;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 16px;
}

.admin-user-summary span,
.admin-order-summary span,
.admin-partner-summary span {
  color: #66758a;
  font-size: 12px;
  font-weight: 900;
}

.admin-user-summary strong,
.admin-order-summary strong,
.admin-partner-summary strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 30px;
  line-height: 1;
}

.admin-user-summary p,
.admin-order-summary p,
.admin-partner-summary p {
  margin-top: 8px;
  color: #8a97aa;
  font-size: 12px;
}

.admin-user-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 14px;
  align-items: start;
}

.admin-row {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.85fr 0.95fr 88px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  color: #526173;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 14px;
  font-size: 14px;
}

.admin-row.is-selected {
  background:
    linear-gradient(90deg, rgba(88, 215, 198, 0.18), rgba(255, 255, 255, 0.95)),
    #f7faff;
  border-color: rgba(88, 215, 198, 0.32);
}

.admin-row.is-head {
  min-height: 36px;
  color: #8a97aa;
  background: transparent;
  border-color: transparent;
  font-size: 12px;
  font-weight: 900;
}

.admin-row strong {
  color: #111827;
}

.admin-row button {
  min-height: 34px;
  color: #243149;
  background: #ffffff;
  border: 1px solid rgba(40, 58, 86, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-actions button {
  min-width: 48px;
}

.admin-withdraw-table {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(42, 63, 90, 0.18);
}

.admin-feedback-list {
  display: grid;
  gap: 12px;
}

.feedback-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px;
  background: rgba(247, 250, 255, 0.86);
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
}

.feedback-filter-group,
.feedback-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-filter {
  min-height: 34px;
  padding: 0 13px;
  color: #526173;
  background: #ffffff;
  border: 1px solid rgba(40, 58, 86, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.feedback-filter:hover,
.feedback-filter.is-active {
  color: #06120f;
  background: linear-gradient(180deg, #ffe58e, #ffd165);
  border-color: rgba(223, 162, 39, 0.38);
  box-shadow: 0 10px 22px rgba(223, 162, 39, 0.14);
}

.feedback-admin-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  color: #243149;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.12), transparent 52%),
    #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 18px;
}

.feedback-admin-item.is-resolved {
  opacity: 0.72;
}

.feedback-admin-head,
.feedback-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feedback-admin-head span,
.feedback-admin-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.feedback-admin-head span {
  color: #06120f;
  background: #58d7c6;
}

.feedback-admin-head strong {
  color: #422b00;
  background: #ffe27a;
}

.feedback-admin-item.is-resolved .feedback-admin-head strong {
  color: #526173;
  background: #edf2f8;
}

.feedback-admin-item p {
  color: #111827;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.65;
}

.feedback-admin-meta {
  display: grid;
  gap: 6px;
  color: #66758a;
  font-size: 12px;
  line-height: 1.55;
}

.feedback-admin-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.feedback-admin-actions button {
  min-height: 34px;
  padding: 0 12px;
  color: #243149;
  background: #ffffff;
  border: 1px solid rgba(40, 58, 86, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.invite-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.invite-admin-list {
  display: grid;
  gap: 12px;
}

.invite-admin-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.12), transparent 44%),
    #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
}

.invite-admin-head,
.invite-admin-meta,
.invite-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invite-admin-head strong {
  color: #111827;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.invite-admin-head span {
  padding: 6px 10px;
  color: #06120f;
  background: #ffe27a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.invite-admin-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
  color: #66758a;
  font-size: 12px;
  font-weight: 850;
}

.invite-admin-actions button {
  min-height: 34px;
  padding: 0 12px;
  color: #243149;
  background: #ffffff;
  border: 1px solid rgba(40, 58, 86, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.invite-create-card {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.admin-soft-note {
  color: #66758a;
  font-size: 13px;
  line-height: 1.7;
}

.admin-user-detail {
  position: sticky;
  top: 18px;
  padding: 18px;
  color: #fff7e4;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.2), transparent 45%),
    #151925;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(16, 24, 39, 0.16);
}

.admin-user-detail h3 {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: 26px;
}

.admin-user-detail p {
  margin-top: 8px;
  color: #d8e1ee;
  font-size: 13px;
  line-height: 1.65;
}

.admin-user-progress {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.admin-user-progress i {
  display: block;
  overflow: hidden;
  height: 9px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.admin-user-progress i::before {
  content: "";
  display: block;
  width: var(--admin-user-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, #58d7c6, #ffe27a);
  border-radius: inherit;
}

.admin-user-progress span {
  color: #8ee8dd;
  font-size: 12px;
  font-weight: 900;
}

.admin-user-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.admin-user-detail-grid div {
  padding: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.admin-user-detail-grid strong,
.admin-user-detail-grid span {
  display: block;
}

.admin-user-detail-grid strong {
  color: #fff4c9;
  font-size: 18px;
}

.admin-user-detail-grid span {
  margin-top: 4px;
  color: #aebed1;
  font-size: 12px;
  font-weight: 850;
}

.admin-user-detail em {
  display: block;
  margin-top: 14px;
  color: #ffe27a;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.admin-user-actions button,
.admin-user-actions span {
  min-height: 34px;
  padding: 0 12px;
  color: #fff8d8;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.admin-user-actions button:hover {
  color: #06120f;
  background: linear-gradient(135deg, #58d7c6, #ffe27a);
  border-color: rgba(255, 226, 122, 0.4);
}

.admin-user-actions span {
  display: inline-flex;
  align-items: center;
  color: #c7d5e6;
}

.data-model-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.44fr);
  gap: 18px;
  align-items: start;
}

.data-flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.data-flow-list div {
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.16), rgba(255, 226, 122, 0.16)),
    #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 16px;
}

.data-flow-list strong,
.data-flow-list span {
  display: block;
}

.data-flow-list strong {
  color: #111827;
  font-size: 15px;
}

.data-flow-list span {
  margin-top: 7px;
  color: #66758a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
}

.schema-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.schema-card {
  padding: 16px;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
}

.schema-card span {
  color: #16a394;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.schema-card h3 {
  margin: 8px 0 0;
  color: #111827;
  font-size: 19px;
}

.schema-card p {
  margin-top: 8px;
  color: #5d6b80;
  font-size: 13px;
  line-height: 1.65;
}

.field-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.field-pills i {
  padding: 5px 8px;
  color: #34445c;
  background: #ffffff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.data-snapshot-card {
  position: sticky;
  top: 18px;
}

.data-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.data-snapshot-card pre {
  overflow: auto;
  max-height: 520px;
  margin: 0;
  padding: 16px;
  color: #d8fff8;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.1), transparent 42%),
    #111827;
  border: 1px solid rgba(88, 215, 198, 0.2);
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.script-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.script-editor-card {
  display: grid;
  gap: 16px;
}

.script-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.script-status-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: #6b7280;
  background: #f4f7fb;
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.script-status-pill.is-draft {
  color: #9b6515;
  background: rgba(255, 226, 122, 0.2);
  border-color: rgba(236, 188, 50, 0.36);
}

.script-status-pill.is-published {
  color: #087a71;
  background: rgba(88, 215, 198, 0.18);
  border-color: rgba(88, 215, 198, 0.46);
}

.script-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.input-shell select,
.input-shell textarea {
  width: 100%;
  padding: 12px 14px;
  color: #111827;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.12);
  border-radius: 14px;
  outline: none;
}

.input-shell select {
  min-height: 48px;
}

.input-shell textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
}

.input-shell select:focus,
.input-shell textarea:focus {
  border-color: rgba(88, 215, 198, 0.8);
  box-shadow: 0 0 0 4px rgba(88, 215, 198, 0.14);
}

.script-import-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 226, 122, 0.2), transparent 48%),
    rgba(247, 250, 255, 0.88);
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 18px;
}

.script-import-head,
.script-import-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.script-import-head strong {
  display: block;
  margin-top: 5px;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.script-import-panel textarea {
  width: 100%;
  min-height: 150px;
  padding: 13px 14px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(42, 63, 90, 0.12);
  border-radius: 16px;
  outline: none;
  resize: vertical;
  line-height: 1.65;
}

.script-import-panel textarea:focus {
  border-color: rgba(88, 215, 198, 0.8);
  box-shadow: 0 0 0 4px rgba(88, 215, 198, 0.14);
}

.script-import-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

#scriptImportStatus {
  margin: 0;
  color: #66758a;
  font-size: 13px;
  line-height: 1.65;
}

#scriptImportStatus[data-status="ok"] {
  color: #087a71;
  font-weight: 850;
}

#scriptImportStatus[data-status="error"] {
  color: #d92d4b;
  font-weight: 850;
}

.script-preview-card {
  position: sticky;
  top: 22px;
  padding: 20px;
  color: #fff7e4;
  background:
    linear-gradient(135deg, rgba(255, 61, 242, 0.18), transparent 42%),
    linear-gradient(45deg, rgba(88, 215, 198, 0.2), transparent 50%),
    #151925;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(16, 24, 39, 0.18);
}

.script-preview-card h2 {
  margin: 16px 0 0;
  color: #ffffff;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.1;
}

.script-preview-card p {
  margin-top: 12px;
  color: #e6edf7;
  font-size: 15px;
  line-height: 1.75;
}

.script-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.script-quality-grid div {
  min-height: 72px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.script-quality-grid strong,
.script-quality-grid span {
  display: block;
}

.script-quality-grid strong {
  color: #fff8cb;
  font-size: 20px;
}

.script-quality-grid span {
  margin-top: 4px;
  color: #9deee5;
  font-size: 12px;
  font-weight: 850;
}

.script-audit-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.script-audit-toolbar button {
  flex: 1 1 130px;
}

.script-audit-report {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.script-audit-empty {
  padding: 14px;
  color: #d8e1ee;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.65;
}

.script-audit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.2), transparent 52%),
    rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
}

.script-audit-head span,
.script-audit-head strong,
.script-audit-head p {
  display: block;
}

.script-audit-head span {
  color: #9deee5;
  font-size: 12px;
  font-weight: 900;
}

.script-audit-head strong {
  margin-top: 2px;
  color: #fff8cb;
  font-size: 34px;
  line-height: 1;
}

.script-audit-head p {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  text-align: right;
}

.script-audit-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.script-audit-metrics div {
  min-height: 58px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.script-audit-metrics strong,
.script-audit-metrics span {
  display: block;
}

.script-audit-metrics strong {
  color: #ffffff;
  font-size: 19px;
  line-height: 1;
}

.script-audit-metrics span {
  margin-top: 6px;
  color: #9deee5;
  font-size: 11px;
  font-weight: 900;
}

.script-audit-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.script-audit-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
}

.script-audit-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 7px;
  color: #06120f;
  background: #d7fff6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.script-audit-item p {
  margin: 0;
  color: #e6edf7;
  font-size: 12px;
  line-height: 1.58;
}

.script-audit-item.is-error span {
  color: #ffffff;
  background: #f04461;
}

.script-audit-item.is-warn span {
  color: #422b00;
  background: #ffe27a;
}

.script-audit-item.is-info span {
  color: #10213b;
  background: #bfe0ff;
}

.script-audit-item.is-ok span {
  color: #06120f;
  background: #58d7c6;
}

.script-checklist {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.script-checklist div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
}

.script-checklist strong {
  color: #fff4c9;
  font-size: 13px;
}

.script-checklist span {
  color: #8ee8dd;
  font-size: 12px;
  font-weight: 850;
}

@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.96);
  }
  12%,
  82% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.98);
  }
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 16, 28, 0.5);
  backdrop-filter: blur(12px);
}

.product-modal {
  position: relative;
  width: min(560px, 100%);
  padding: 26px;
  color: #152033;
  animation: modalEnter 180ms ease-out both;
}

.pay-modal {
  width: min(760px, 100%);
}

.feedback-modal {
  width: min(660px, 100%);
}

.product-modal h2 {
  margin-top: 16px;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #59687c;
  background: #f2f5fa;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.auth-fields {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.auth-method-row,
.auth-gender-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding: 5px;
  background: rgba(21, 32, 51, 0.06);
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
}

.auth-gender-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.auth-choice {
  min-height: 42px;
  padding: 0 12px;
  color: #526173;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  font-weight: 900;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.auth-choice:hover {
  color: #142033;
  transform: translateY(-1px);
}

.auth-choice.is-active {
  color: #111827;
  background: linear-gradient(135deg, #ffe57d, #58d7c6);
  box-shadow: 0 10px 24px rgba(88, 215, 198, 0.22);
}

.feedback-fields {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.auth-status {
  margin-top: 14px;
  padding: 11px 12px;
  color: #087a71;
  background: rgba(88, 215, 198, 0.14);
  border: 1px solid rgba(88, 215, 198, 0.28);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 850;
}

.feedback-context-card {
  margin-top: 14px;
  padding: 13px 14px;
  color: #0b6f67;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.18), rgba(255, 226, 122, 0.24)),
    #f7fffb;
  border: 1px solid rgba(88, 215, 198, 0.28);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.65;
}

.input-shell {
  display: grid;
  gap: 8px;
}

.input-shell span {
  color: #526173;
  font-size: 13px;
  font-weight: 850;
}

.input-shell .field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #526173;
}

.input-shell .field-label-row span {
  color: inherit;
  font-size: 13px;
  font-weight: 850;
}

.inline-refresh {
  min-height: 28px;
  padding: 0 10px;
  color: #087a71;
  background: rgba(88, 215, 198, 0.16);
  border: 1px solid rgba(88, 215, 198, 0.32);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.inline-refresh:hover {
  background: rgba(88, 215, 198, 0.26);
}

.input-shell input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: #111827;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.12);
  border-radius: 14px;
  outline: none;
}

.input-shell select,
.input-shell textarea {
  width: 100%;
  padding: 13px 14px;
  color: #111827;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.12);
  border-radius: 14px;
  outline: none;
  font: inherit;
}

.input-shell select {
  min-height: 48px;
}

.input-shell textarea {
  resize: vertical;
  line-height: 1.65;
}

.input-shell input:focus,
.input-shell select:focus,
.input-shell textarea:focus {
  border-color: rgba(88, 215, 198, 0.8);
  box-shadow: 0 0 0 4px rgba(88, 215, 198, 0.14);
}

.code-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.code-input-row .ghost-action {
  min-width: 112px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.price-card {
  display: grid;
  gap: 8px;
  min-height: 178px;
  padding: 18px;
  color: #243149;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 18px;
  text-align: left;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(87, 109, 140, 0.14);
}

.price-card.is-highlighted {
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.28), rgba(255, 226, 122, 0.42)),
    #fff;
  border-color: rgba(88, 215, 198, 0.44);
  box-shadow: 0 16px 34px rgba(88, 215, 198, 0.18);
}

.price-card.is-owned,
.price-card:disabled {
  cursor: default;
  color: #617089;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.18), rgba(255, 255, 255, 0.94)),
    #f5fbfa;
  border-color: rgba(88, 215, 198, 0.34);
  box-shadow: none;
}

.price-card.is-owned:hover,
.price-card:disabled:hover {
  transform: none;
  box-shadow: none;
}

.price-card span {
  color: #526173;
  font-size: 13px;
  font-weight: 900;
}

.price-card strong {
  color: #111827;
  font-size: 34px;
  line-height: 1;
}

.price-card.is-owned strong,
.price-card:disabled strong {
  color: #16a394;
}

.price-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.payment-live-panel {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(88, 215, 198, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(88, 215, 198, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(255, 226, 122, 0.22), rgba(247, 250, 255, 0.96));
  box-shadow: 0 20px 44px rgba(31, 41, 55, 0.12);
}

.payment-live-panel[hidden] {
  display: none;
}

.payment-qr-frame {
  width: 150px;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(42, 63, 90, 0.1), 0 14px 30px rgba(42, 63, 90, 0.13);
}

.payment-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.payment-live-copy {
  display: grid;
  gap: 8px;
}

.payment-live-copy span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #073b35;
  background: #58d7c6;
  font-size: 12px;
  font-weight: 900;
}

.payment-live-copy strong {
  color: #111827;
  font-size: 22px;
  line-height: 1.25;
}

.payment-live-copy p {
  margin: 0;
  color: #526173;
  font-size: 14px;
}

.payment-live-copy code {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 10px;
  color: #2b3547;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

@media (max-width: 640px) {
  .payment-live-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .payment-live-copy {
    justify-items: center;
  }

  .intro-panel {
    top: calc(var(--scene-top) + 14px);
    width: calc(100vw - 28px);
    min-width: 0;
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 16px;
  }

  .intro-copy strong {
    font-size: 18px;
  }

  .intro-copy p {
    font-size: 13px;
    line-height: 1.65;
  }

  .intro-actions {
    position: absolute;
    right: 12px;
    top: 12px;
  }
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-shell {
  min-height: 100svh;
  background: #0e0c10;
}

.stage {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  --scene-top: 8px;
  --scene-width: clamp(600px, 34vw, 680px);
  --scene-height: clamp(337px, 19.125vw, 383px);
  --scene-gap: 4px;
  --story-strip-height: 108px;
  --dialogue-gap: 6px;
  --dialogue-width: clamp(600px, 44vw, 800px);
  --dialogue-top: calc(
    var(--scene-top) + var(--scene-height) + var(--scene-gap) + var(--story-strip-height) + var(--dialogue-gap)
  );
  min-height: max(100svh, calc(var(--dialogue-top) + 340px));
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
}

.stage.has-intro {
  overflow: hidden;
}

.stage.has-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 13;
  background:
    linear-gradient(180deg, rgba(5, 3, 9, 0.34), rgba(5, 3, 9, 0.64)),
    radial-gradient(circle at 50% 20%, rgba(88, 215, 198, 0.18), transparent 46%);
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.stage.has-intro .scene-art {
  filter: blur(3px) brightness(0.58) saturate(0.88);
}

.scene-art,
.scene-shade,
.role-light,
.talk-effect,
.success-layer {
  position: absolute;
  inset: 0;
}

.scene-art {
  inset: auto;
  top: var(--scene-top);
  left: 50%;
  z-index: -4;
  width: var(--scene-width);
  height: var(--scene-height);
  --shot-scale: 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow:
    0 32px 95px rgba(0, 0, 0, 0.62),
    0 0 0 999px rgba(4, 3, 6, 0.22);
  filter: saturate(1.04) contrast(1.04);
  transform: translateX(-50%) scale(var(--shot-scale));
  opacity: 1;
  transition:
    object-position 620ms ease,
    transform 620ms ease,
    filter 620ms ease,
    opacity 180ms ease;
  transform-origin: center top;
}

.scene-art.is-changing {
  opacity: 0.55;
}

.intro-panel {
  position: absolute;
  top: calc(var(--scene-top) + 32px);
  left: 50%;
  z-index: 16;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  width: min(820px, calc(100vw - 440px));
  min-width: 520px;
  padding: 22px 20px 22px 24px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(255, 226, 122, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(16, 13, 24, 0.92), rgba(22, 18, 31, 0.82) 52%, rgba(9, 25, 29, 0.8));
  border: 1px solid rgba(255, 226, 122, 0.26);
  border-radius: 26px;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.58),
    0 0 56px rgba(88, 215, 198, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.intro-panel[hidden] {
  display: none;
}

.intro-panel.is-playing {
  animation: introPulse 1800ms ease-in-out infinite;
}

.intro-copy {
  display: grid;
  gap: 12px;
}

.intro-copy strong {
  color: #fff4bd;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  text-shadow: 0 0 22px rgba(255, 226, 122, 0.18);
}

.intro-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

.intro-actions {
  display: flex;
  gap: 10px;
}

.intro-control {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.intro-control:hover {
  transform: translateY(-1px);
  color: #10100d;
  background: linear-gradient(135deg, #58d7c6, #ffe27a);
  box-shadow: 0 16px 34px rgba(88, 215, 198, 0.3);
}

.intro-control svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-muted-mark {
  opacity: 0;
}

.intro-mute.is-muted {
  color: #17110a;
  background: #ffe27a;
}

.intro-mute.is-muted .intro-wave {
  opacity: 0;
}

.intro-mute.is-muted .intro-muted-mark {
  opacity: 1;
}

@keyframes introPulse {
  0%,
  100% {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 0 36px rgba(88, 215, 198, 0.14);
  }
  50% {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 0 58px rgba(88, 215, 198, 0.28);
  }
}

@media (max-width: 640px) {
  .intro-panel {
    top: calc(var(--scene-top) + 10px);
    width: calc(100vw - 28px);
    min-width: 0;
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 14px;
  }

  .intro-copy strong {
    font-size: 18px;
  }

  .intro-copy p {
    padding-right: 78px;
    font-size: 13px;
    line-height: 1.65;
  }

  .intro-actions {
    position: absolute;
    right: 12px;
    top: 12px;
  }

  .intro-control {
    width: 38px;
    height: 38px;
  }
}

.stage[data-shot="wide"] .scene-art {
  object-position: center;
  --shot-scale: 1;
}

.stage[data-shot="wide"] {
  --talk-scale: 1;
}

.stage[data-shot="left"] .scene-art {
  object-position: 34% center;
  --shot-scale: 1.05;
}

.stage[data-shot="left"] {
  --talk-scale: 1.05;
}

.stage[data-shot="right"] .scene-art {
  object-position: 68% center;
  --shot-scale: 1.06;
}

.stage[data-shot="right"] {
  --talk-scale: 1.06;
}

.stage[data-shot="object"] .scene-art {
  object-position: center;
  --shot-scale: 1.04;
}

.stage[data-shot="object"] {
  --talk-scale: 1.04;
}

.stage.is-speaking .scene-art {
  filter: saturate(1.12) contrast(1.08) brightness(1.05);
}

.scene-shade {
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(8, 7, 10, 0.62), rgba(8, 7, 10, 0.08) 28%, rgba(8, 7, 10, 0.72) 100%),
    radial-gradient(circle at 50% 62%, rgba(241, 199, 107, 0.08), transparent 34%);
}

.stage[data-emotion="cold"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(4, 10, 18, 0.68), rgba(4, 10, 18, 0.18) 38%, rgba(4, 10, 18, 0.74)),
    radial-gradient(circle at 75% 34%, rgba(88, 215, 198, 0.22), transparent 28%);
}

.stage[data-emotion="hurt"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(18, 8, 13, 0.6), rgba(18, 8, 13, 0.12) 34%, rgba(18, 8, 13, 0.75)),
    radial-gradient(circle at 31% 44%, rgba(255, 61, 242, 0.2), transparent 26%);
}

.stage[data-emotion="anger"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(22, 3, 5, 0.62), rgba(22, 3, 5, 0.12) 34%, rgba(22, 3, 5, 0.78)),
    radial-gradient(circle at 34% 44%, rgba(255, 77, 109, 0.28), transparent 30%);
}

.stage[data-emotion="suspicion"] .scene-shade,
.stage[data-emotion="shock"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(8, 7, 10, 0.68), rgba(12, 5, 8, 0.12) 34%, rgba(8, 7, 10, 0.78)),
    radial-gradient(circle at 58% 42%, rgba(255, 159, 28, 0.23), transparent 26%);
}

.stage[data-emotion="resolve"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(8, 7, 10, 0.58), rgba(8, 7, 10, 0.1) 34%, rgba(8, 7, 10, 0.72)),
    radial-gradient(circle at 32% 44%, rgba(156, 255, 46, 0.17), transparent 28%);
}

.stage[data-emotion="reveal"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(16, 10, 3, 0.55), rgba(16, 10, 3, 0.08) 34%, rgba(16, 10, 3, 0.72)),
    radial-gradient(circle at 68% 35%, rgba(241, 199, 107, 0.34), transparent 30%);
}

.stage.is-speaking[data-emotion="anger"] .scene-art {
  animation: angerShake 420ms ease-in-out infinite alternate;
}

.stage.is-speaking[data-emotion="hurt"] .scene-art,
.stage.is-speaking[data-emotion="cold"] .scene-art,
.stage.is-speaking[data-emotion="resolve"] .scene-art {
  animation: emotionBreath 1400ms ease-in-out infinite alternate;
}

.stage.is-speaking[data-emotion="shock"] .scene-art,
.stage.is-speaking[data-emotion="reveal"] .scene-art {
  animation: revealFlash 1200ms ease-in-out infinite alternate;
}

@keyframes emotionBreath {
  from {
    filter: saturate(1.1) contrast(1.06) brightness(1.01);
  }
  to {
    filter: saturate(1.2) contrast(1.1) brightness(1.1);
  }
}

@keyframes angerShake {
  from {
    transform: translate(calc(-50% - 3px), 1px) scale(var(--shot-scale));
    filter: saturate(1.22) contrast(1.16) brightness(1.05);
  }
  to {
    transform: translate(calc(-50% + 3px), -1px) scale(var(--shot-scale));
    filter: saturate(1.32) contrast(1.2) brightness(1.08);
  }
}

@keyframes revealFlash {
  from {
    filter: saturate(1.12) contrast(1.08) brightness(1.04);
    box-shadow:
      0 32px 95px rgba(0, 0, 0, 0.62),
      0 0 0 999px rgba(4, 3, 6, 0.22);
  }
  to {
    filter: saturate(1.28) contrast(1.14) brightness(1.18);
    box-shadow:
      0 32px 95px rgba(0, 0, 0, 0.58),
      0 0 38px rgba(241, 199, 107, 0.5),
      0 0 0 999px rgba(4, 3, 6, 0.18);
  }
}

.role-light {
  z-index: -2;
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.role-left {
  background: radial-gradient(circle at 22% 54%, rgba(241, 199, 107, 0.32), transparent 28%);
}

.role-right {
  background: radial-gradient(circle at 76% 42%, rgba(88, 215, 198, 0.26), transparent 28%);
}

.stage[data-speaker="ella"] .role-left,
.stage[data-speaker="ceo"] .role-right,
.stage[data-speaker="officer"] .role-right {
  opacity: 1;
}

.talk-effect {
  inset: auto;
  top: var(--scene-top);
  left: 50%;
  z-index: -1;
  width: var(--scene-width);
  height: var(--scene-height);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) scale(var(--talk-scale, 1));
  transform-origin: center top;
  transition: opacity 180ms ease;
}

.talk-effect span {
  position: absolute;
  left: var(--talk-x, 50%);
  top: var(--talk-y, 30%);
  width: var(--talk-size, 50px);
  height: var(--talk-size, 50px);
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  animation: talkPulse 1.25s ease-out infinite;
}

.talk-effect span:nth-child(2) {
  animation-delay: 0.22s;
}

.talk-effect span:nth-child(3) {
  animation-delay: 0.44s;
}

.talk-left span {
  border-color: rgba(255, 61, 242, 0.82);
  box-shadow: 0 0 28px rgba(255, 61, 242, 0.36);
}

.talk-right span {
  border-color: rgba(88, 215, 198, 0.86);
  box-shadow: 0 0 30px rgba(88, 215, 198, 0.38);
}

.stage[data-speaker="ella"] {
  --talk-x: 40%;
  --talk-y: 39%;
}

.stage[data-speaker="ella"][data-shot="left"] {
  --talk-x: 53%;
  --talk-y: 42%;
}

.stage[data-speaker="ella"][data-shot="wide"] {
  --talk-x: 36%;
  --talk-y: 39%;
}

.stage[data-speaker="ella"][data-shot="object"] {
  --talk-x: 46%;
  --talk-y: 38%;
}

.stage[data-speaker="ceo"] {
  --talk-x: 66%;
  --talk-y: 31%;
}

.stage[data-speaker="ceo"][data-shot="right"] {
  --talk-x: 58%;
  --talk-y: 32%;
}

.stage[data-speaker="ceo"][data-shot="wide"] {
  --talk-x: 66%;
  --talk-y: 31%;
}

.stage.is-speaking[data-speaker="ella"] .talk-left,
.stage.is-speaking[data-speaker="ceo"] .talk-right,
.stage.is-speaking[data-speaker="officer"] .talk-right {
  opacity: 1;
}

.stage.is-speaking:not([data-speaker="ella"]) .talk-right {
  opacity: 1;
}

.stage[data-cue-mode="ambient"] .talk-effect span {
  border-color: rgba(255, 218, 112, 0.72);
  box-shadow: 0 0 46px rgba(255, 218, 112, 0.22);
  animation-duration: 1.65s;
}

@keyframes talkPulse {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.28);
  }
  70% {
    opacity: 0.22;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.55);
  }
}

.topbar,
.side-panel,
.story-beat,
.dialogue-panel,
.lesson-panel {
  position: relative;
  z-index: 1;
}

.top-hint-panel {
  position: fixed;
  z-index: 5;
  top: 14px;
  left: 50%;
  width: min(720px, calc(100vw - 28px));
  max-height: min(44svh, 360px);
  overflow: auto;
  transform: translateX(-50%);
  padding: 18px 20px;
  background: rgba(22, 27, 34, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
  text-align: left;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 260px) repeat(5, 44px);
  align-items: center;
  gap: 14px;
}

.brand-block {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 10px 12px;
  width: fit-content;
  max-width: 100%;
  background: rgba(15, 13, 18, 0.56);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    filter 360ms ease;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  position: relative;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(88, 215, 198, 0.2) 0 42%, rgba(241, 199, 107, 0.18) 42%);
  box-shadow: 0 0 18px rgba(241, 199, 107, 0.18);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px 4px auto;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 10px);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 5px;
  height: 8px;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--teal);
}

.eyebrow,
.panel-label,
.answer-heading span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  overflow: hidden;
  color: #fff7dc;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 900;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 18px rgba(241, 199, 107, 0.2),
    0 2px 18px rgba(0, 0, 0, 0.62);
  white-space: nowrap;
  -webkit-text-stroke: 0.25px currentColor;
}

.brand-block h1 {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", "PingFang SC", sans-serif;
  font-weight: 950;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
  -webkit-text-stroke: 0;
}

.progress-block {
  padding: 10px 12px;
  background: rgba(15, 13, 18, 0.58);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.progress-block span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
  transition: width 260ms ease;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: rgba(15, 13, 18, 0.64);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.icon-button span {
  font-size: 22px;
  line-height: 1;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.is-active {
  color: var(--teal);
  border-color: rgba(88, 215, 198, 0.44);
  background: rgba(88, 215, 198, 0.12);
}

.theme-toggle-button .theme-icon-moon {
  display: none;
}

.theme-toggle-button.is-active .theme-icon-sun {
  display: none;
}

.theme-toggle-button.is-active .theme-icon-moon {
  display: block;
}

.side-panel {
  align-self: start;
  width: min(390px, 38vw);
  display: grid;
  gap: 12px;
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    filter 360ms ease;
}

.stage.is-immersive .brand-block,
.stage.is-immersive .side-panel {
  opacity: 0;
  filter: blur(3px);
  pointer-events: none;
  transform: translateX(-24px) scale(0.98);
}

.mode-panel,
.speed-panel,
.sound-panel,
.plot-panel,
.story-beat,
.dialogue-panel,
.lesson-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.mode-panel,
.speed-panel,
.sound-panel,
.plot-panel,
.story-beat {
  padding: 14px;
}

.speed-row,
.sound-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.speed-row strong,
.sound-row strong {
  color: var(--teal);
  font-size: 16px;
  font-weight: 900;
}

.volume-control {
  display: grid;
  gap: 9px;
  margin-top: 11px;
}

.volume-control span {
  color: rgba(255, 248, 232, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.volume-control input {
  width: 100%;
  height: 6px;
  accent-color: var(--teal);
  cursor: pointer;
}

.speed-segmented {
  grid-template-columns: repeat(3, 1fr);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.07);
}

.segment {
  min-height: 40px;
  color: #e7ddd3;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}

.segment:hover {
  color: #fff8e8;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.16);
}

.segment:active {
  transform: translateY(1px);
}

.segment.is-active {
  color: #171217;
  background:
    linear-gradient(180deg, #ffe18d, var(--gold));
  border-color: rgba(255, 244, 192, 0.7);
  font-weight: 800;
  box-shadow:
    0 10px 22px rgba(241, 199, 107, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.story-beat p {
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

.plot-panel,
.plot-panel strong,
.plot-panel p,
.story-strip,
.story-strip p {
  font-family: "YouYuan", "幼圆", "Microsoft YaHei UI Light", "Microsoft YaHei Light", "Microsoft YaHei", "微软雅黑", sans-serif !important;
  font-weight: 300 !important;
}

.plot-panel {
  background:
    linear-gradient(180deg, rgba(88, 215, 198, 0.08), rgba(18, 16, 22, 0.82) 38%),
    var(--panel);
}

.plot-panel strong {
  display: block;
  margin-top: 8px;
  color: #fff8e8;
  font-size: 17px;
  font-weight: 400 !important;
  line-height: 1.35;
}

.plot-panel p {
  margin-top: 0;
  color: #eadfd4;
  font-size: 15px;
  font-weight: 300 !important;
  line-height: 1.8;
  text-indent: 2em;
}

.story-strip {
  position: absolute;
  top: calc(var(--scene-top) + var(--scene-height) + var(--scene-gap));
  left: 50%;
  justify-self: center;
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: var(--scene-width);
  min-height: var(--story-strip-height);
  margin-top: 0;
  padding: 14px 20px;
  border-radius: 12px;
  overflow: hidden;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(241, 199, 107, 0.12), rgba(18, 16, 22, 0.86) 28%),
    var(--panel);
}

.story-strip .panel-label {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.story-strip p {
  margin: 0;
  color: #fff8e8;
  font-size: clamp(15px, 0.95vw, 17px);
  font-weight: 300 !important;
  line-height: 1.45;
}

.plot-panel *,
.story-strip * {
  font-family: "YouYuan", "幼圆", "Microsoft YaHei UI Light", "Microsoft YaHei Light", "Microsoft YaHei", "微软雅黑", sans-serif !important;
  font-weight: 300 !important;
}

.dialogue-panel {
  position: absolute;
  top: var(--dialogue-top);
  left: 50%;
  justify-self: center;
  width: min(var(--dialogue-width), calc(100vw - 36px));
  padding: 10px 16px 12px;
  text-align: center;
  transform: translateX(-50%);
}

.lesson-panel {
  position: absolute;
  top: calc(var(--dialogue-top) + 8px);
  right: 18px;
  width: clamp(270px, 18vw, 350px);
  max-height: calc(100svh - var(--dialogue-top) - 28px);
  overflow: auto;
  padding: 15px;
  background:
    linear-gradient(180deg, rgba(241, 199, 107, 0.08), rgba(18, 16, 22, 0.88) 34%),
    rgba(18, 16, 22, 0.84);
  animation: lessonEnter 420ms ease-out both;
}

.lesson-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.lesson-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-close-button {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
}

.lesson-close-button:hover,
.lesson-close-button:focus-visible {
  color: #171217;
  background: var(--gold);
  border-color: var(--gold);
  outline: none;
}

.lesson-close-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.lesson-head span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.lesson-head strong {
  flex: 0 0 auto;
  padding: 4px 9px;
  color: #171217;
  background: var(--teal);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.lesson-en {
  color: #fff9e8;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
}

.lesson-cn {
  margin-top: 7px;
  color: #d9cec5;
  font-size: 13px;
  line-height: 1.5;
}

.lesson-notes {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.lesson-note {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.lesson-note span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.lesson-note p {
  color: #efe4d8;
  font-size: 13px;
  line-height: 1.55;
}

@keyframes lessonEnter {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.speaker-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.speaker-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  color: #171217;
  background: var(--teal);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.stage[data-speaker="ceo"] .speaker-tag {
  background: var(--gold);
}

.lesson-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 34px;
  color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(6, 7, 10, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease,
    opacity 160ms ease;
}

.lesson-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lesson-toggle:disabled {
  opacity: 0.38;
}

.lesson-toggle:not(:disabled):hover,
.lesson-toggle.is-active {
  color: #071411;
  background:
    linear-gradient(180deg, #75f0df, var(--teal));
  border-color: rgba(137, 255, 236, 0.72);
  box-shadow:
    0 10px 28px rgba(88, 215, 198, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.lesson-toggle:not(:disabled):active {
  transform: translateY(1px);
}

h2 {
  margin-top: 6px;
  color: #fff9ee;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05;
}

.answer-reveal {
  margin: 12px auto 0;
  max-width: 760px;
  padding: 14px;
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  text-align: left;
}

.answer-reveal.is-subtitle {
  max-width: 820px;
  margin-top: 22px;
  border-left-color: var(--gold);
  background: rgba(0, 0, 0, 0.44);
  box-shadow: inset 0 0 0 1px rgba(241, 199, 107, 0.1);
}

.answer-reveal.is-subtitle .english-line {
  color: #fff8d8;
}

.english-line {
  color: #fff;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 800;
  line-height: 1.35;
}

.chinese-line,
.focus-line {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.focus-line {
  color: #f8df9f;
}

.answer-box {
  display: grid;
  margin-top: 16px;
}

.word-blanks {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: center;
  gap: 14px 10px;
  max-width: 100%;
}

.word-slot {
  --slot-color: #fff;
  --slot-glow: rgba(255, 255, 255, 0.24);
  display: block;
  align-items: end;
  width: var(--slot-width);
  min-width: 2.3ch;
  max-width: 15ch;
  font-size: clamp(26px, 2.6vw, 36px);
}

.word-input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 2px 7px;
  color: var(--slot-color);
  background: transparent;
  border: 0;
  border-bottom: 4px solid rgba(255, 255, 255, 0.28);
  outline: none;
  border-radius: 0;
  caret-color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: inherit;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 16px var(--slot-glow), 0 3px 12px rgba(0, 0, 0, 0.6);
}

.word-input:focus {
  border-bottom-color: var(--slot-color);
  box-shadow: 0 10px 26px -18px var(--slot-glow);
}

.word-slot.is-mismatch {
  position: relative;
  padding: 4px 5px;
  margin: -4px -5px;
  background: rgba(255, 92, 92, 0.16);
  outline: 2px solid rgba(255, 116, 116, 0.72);
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(255, 77, 109, 0.24);
  animation: mismatchLocate 520ms ease-out both;
}

.word-slot.is-mismatch::after {
  content: attr(data-error-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  z-index: 2;
  padding: 3px 7px;
  color: #2a090d;
  background: #ff9a9a;
  border-radius: 999px;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateX(-50%);
}

.word-slot.is-mismatch .word-input {
  border-bottom-color: #ff7474;
}

.video-answer-box .word-slot.is-mismatch {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 226, 122, 0.26), transparent 58%),
    rgba(255, 77, 109, 0.22);
  outline-color: rgba(255, 74, 128, 0.9);
  box-shadow: 0 0 32px rgba(255, 77, 109, 0.34), 0 0 18px rgba(255, 226, 122, 0.18);
}

.video-answer-box .word-slot.is-mismatch::after {
  display: none;
}

@keyframes mismatchLocate {
  from {
    opacity: 0.55;
    transform: translateY(4px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.practice-cn {
  margin: 20px auto 0;
  max-width: 860px;
  color: #fff;
  font-size: clamp(25px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.word-subject {
  --slot-color: #ff4fd8;
  --slot-glow: rgba(255, 79, 216, 0.4);
  --slot-bg: rgba(255, 79, 216, 0.16);
}

.word-predicate {
  --slot-color: #27e6a3;
  --slot-glow: rgba(39, 230, 163, 0.42);
  --slot-bg: rgba(39, 230, 163, 0.15);
}

.word-name {
  --slot-color: #b985ff;
  --slot-glow: rgba(185, 133, 255, 0.42);
  --slot-bg: rgba(185, 133, 255, 0.16);
}

.word-verb {
  --slot-color: var(--teal);
  --slot-glow: rgba(88, 215, 198, 0.38);
  --slot-bg: rgba(88, 215, 198, 0.16);
}

.word-drama {
  --slot-color: var(--orange);
  --slot-glow: rgba(255, 159, 28, 0.4);
  --slot-bg: rgba(255, 159, 28, 0.16);
}

.word-time {
  --slot-color: var(--lime);
  --slot-glow: rgba(156, 255, 46, 0.34);
  --slot-bg: rgba(156, 255, 46, 0.15);
}

.word-small {
  --slot-color: var(--sky);
  --slot-glow: rgba(0, 187, 255, 0.34);
  --slot-bg: rgba(0, 187, 255, 0.14);
}

.word-plain {
  --slot-color: #ffe66d;
  --slot-glow: rgba(255, 230, 109, 0.34);
  --slot-bg: rgba(255, 230, 109, 0.14);
}

.control-dock {
  display: inline-grid;
  grid-template-columns: repeat(6, 44px);
  gap: 10px;
  margin-top: 18px;
  padding: 12px 18px;
  background: rgba(8, 9, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
}

.dock-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.dock-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-button:hover,
.dock-button.is-active,
.icon-button:hover {
  color: var(--teal);
  background: rgba(88, 215, 198, 0.12);
  border-color: rgba(88, 215, 198, 0.44);
}

.dock-button.is-primary {
  color: #06120f;
  background: var(--teal);
  border-color: transparent;
}

.test-skip-button {
  color: #1f1300;
  background: linear-gradient(135deg, #ffe27a, #ffb84d);
  border-color: rgba(255, 226, 122, 0.65);
  font-size: 16px;
  font-weight: 900;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.test-skip-button:hover {
  color: #1f1300;
  background: linear-gradient(135deg, #fff1a6, #ffd166);
  border-color: rgba(255, 241, 166, 0.9);
}

.feedback {
  min-height: 24px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.feedback.is-good {
  color: var(--teal);
}

.feedback.is-warn {
  color: #ffd07e;
}

.feedback.is-bad {
  color: #ff9a9a;
}

.episode-report {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  padding: 26px;
  background:
    radial-gradient(circle at 45% 24%, rgba(88, 215, 198, 0.18), transparent 34%),
    radial-gradient(circle at 58% 72%, rgba(255, 210, 96, 0.16), transparent 32%),
    rgba(4, 3, 8, 0.64);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.episode-report[hidden] {
  display: none;
}

.episode-celebration-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.episode-firework {
  position: absolute;
  left: var(--burst-x);
  top: var(--burst-y);
  width: 6px;
  height: 6px;
  animation: episodeFireworkCore 1350ms ease-out var(--burst-delay) both;
}

.episode-firework i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 15px;
  background: var(--victory-color);
  border-radius: 999px;
  box-shadow: 0 0 13px var(--victory-color);
  transform-origin: 50% 100%;
  animation: episodeFireworkRay 1350ms cubic-bezier(0.16, 0.78, 0.28, 1) var(--burst-delay) both;
}

.episode-confetti {
  position: absolute;
  left: var(--confetti-x);
  top: -24px;
  width: 9px;
  height: 17px;
  background: var(--victory-color);
  border-radius: 2px;
  box-shadow: 0 0 10px color-mix(in srgb, var(--victory-color) 68%, transparent);
  animation: episodeConfettiFall var(--confetti-duration) cubic-bezier(0.15, 0.7, 0.38, 1) var(--confetti-delay) both;
}

@keyframes episodeFireworkCore {
  0%, 10% {
    opacity: 0;
    transform: scale(0.2);
  }
  18% {
    opacity: 1;
    transform: scale(1.4);
    box-shadow: 0 0 26px 10px rgba(255, 238, 157, 0.72);
  }
  100% {
    opacity: 0;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 238, 157, 0);
  }
}

@keyframes episodeFireworkRay {
  0%, 10% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--ray-angle)) translateY(0) scaleY(0.3);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--ray-angle)) translateY(var(--ray-distance)) scaleY(0.72);
  }
}

@keyframes episodeConfettiFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--confetti-drift), 108vh, 0) rotate(var(--confetti-spin));
  }
}

.episode-report-card {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100vw - 32px));
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.12), transparent 28%),
    linear-gradient(315deg, rgba(255, 216, 111, 0.18), transparent 34%),
    rgba(17, 13, 22, 0.94);
  border: 1px solid rgba(255, 226, 122, 0.24);
  border-radius: 30px;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.58),
    0 0 70px rgba(88, 215, 198, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: episodeReportIn 260ms ease-out both;
}

.episode-report-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.episode-report-close:hover {
  color: #10100d;
  background: linear-gradient(135deg, #58d7c6, #ffe27a);
  transform: translateY(-1px);
}

.episode-report-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.episode-report-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  color: #111009;
  background: linear-gradient(135deg, #ffe27a, #68f2df);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(88, 215, 198, 0.22);
}

.episode-report-card h2 {
  margin: 18px 54px 8px 0;
  color: #fff;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.episode-report-card > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.episode-report-ending {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding: 15px 17px;
  background: rgba(88, 215, 198, 0.1);
  border: 1px solid rgba(88, 215, 198, 0.26);
  border-radius: 18px;
}

.episode-report-ending[hidden] {
  display: none;
}

.episode-report-ending-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.episode-report-ending-head span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.episode-report-ending-head button {
  min-height: 32px;
  padding: 0 12px;
  color: #071411;
  background: var(--teal);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.episode-report-ending p {
  color: #fff9e8;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
}

.episode-report-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.episode-report-stat {
  min-height: 104px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.episode-report-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
}

.episode-report-stat strong {
  display: block;
  margin-top: 8px;
  color: #58d7c6;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 950;
}

.episode-report-stat:first-child strong {
  font-size: 23px;
  letter-spacing: -0.6px;
  white-space: nowrap;
}

.episode-report-stat small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.35;
}

.episode-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.episode-report-actions .solid-action,
.episode-report-actions .ghost-action {
  min-height: 48px;
  border-radius: 999px;
}

.episode-report-actions .solid-action {
  flex: 1 1 190px;
}

.episode-report-actions .ghost-action {
  flex: 1 1 150px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.episode-report-actions .ghost-action:hover {
  color: #10100d;
  background: rgba(255, 226, 122, 0.9);
}

@keyframes episodeReportIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .episode-report {
    align-items: end;
    padding: 14px;
  }

  .episode-report-card {
    width: 100%;
    padding: 22px 16px 18px;
    border-radius: 24px;
  }

  .episode-report-close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .episode-report-card h2 {
    margin-right: 48px;
    font-size: 28px;
  }

  .episode-report-card > p {
    font-size: 14px;
  }

  .episode-report-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .episode-report-stat {
    min-height: 92px;
    padding: 14px;
    border-radius: 18px;
  }

  .episode-report-stat strong {
    font-size: 26px;
  }

  .episode-report-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.hint-en {
  margin-top: 10px;
  color: #fff;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.35;
}

.hint-topline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hint-topline #blankHint {
  flex: 0 0 auto;
  margin-left: auto;
  color: #071411;
  background: var(--teal);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.hint-close-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.hint-close-button:hover {
  transform: translateY(-1px);
  color: #09120f;
  background: var(--teal);
  border-color: rgba(88, 215, 198, 0.7);
}

.hint-close-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hint-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hint-word {
  --slot-color: #fff;
  --slot-bg: rgba(255, 255, 255, 0.08);
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 90px;
  padding: 9px 12px 12px;
  background:
    linear-gradient(180deg, var(--slot-bg), rgba(255, 255, 255, 0.045)),
    rgba(10, 11, 16, 0.58);
  border: 1px solid color-mix(in srgb, var(--slot-color) 62%, rgba(255, 255, 255, 0.12));
  border-bottom: 4px solid var(--slot-color);
  border-radius: 13px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    0 0 22px -12px var(--slot-color);
}

.hint-word.word-subject {
  --slot-color: #ff4fd8;
  --slot-glow: rgba(255, 79, 216, 0.46);
  --slot-bg: rgba(255, 79, 216, 0.2);
}

.hint-word.word-predicate {
  --slot-color: #27e6a3;
  --slot-glow: rgba(39, 230, 163, 0.48);
  --slot-bg: rgba(39, 230, 163, 0.2);
}

.hint-word.word-name {
  --slot-color: #b985ff;
  --slot-glow: rgba(185, 133, 255, 0.48);
  --slot-bg: rgba(185, 133, 255, 0.2);
}

.hint-word.word-verb {
  --slot-color: #58d7c6;
  --slot-glow: rgba(88, 215, 198, 0.5);
  --slot-bg: rgba(88, 215, 198, 0.2);
}

.hint-word.word-drama {
  --slot-color: #ff9f1c;
  --slot-glow: rgba(255, 159, 28, 0.5);
  --slot-bg: rgba(255, 159, 28, 0.2);
}

.hint-word.word-time {
  --slot-color: #9cff2e;
  --slot-glow: rgba(156, 255, 46, 0.44);
  --slot-bg: rgba(156, 255, 46, 0.18);
}

.hint-word.word-small {
  --slot-color: #00bbff;
  --slot-glow: rgba(0, 187, 255, 0.46);
  --slot-bg: rgba(0, 187, 255, 0.18);
}

.hint-word.word-plain {
  --slot-color: #ffe66d;
  --slot-glow: rgba(255, 230, 109, 0.42);
  --slot-bg: rgba(255, 230, 109, 0.18);
}

.hint-word::before {
  content: "名词";
  justify-self: start;
  padding: 3px 8px;
  color: #080b0e;
  background: var(--slot-color);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.hint-word.word-subject::before {
  content: "主语";
}

.hint-word.word-predicate::before {
  content: "谓语";
}

.hint-word.word-verb::before {
  content: "动词";
}

.hint-word.word-drama::before {
  content: "关键词";
}

.hint-word.word-time::before {
  content: "场景词";
}

.hint-word.word-small::before {
  content: "小词";
}

.hint-word.word-plain::before {
  content: "名词";
}

.hint-word strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-shadow:
    0 0 18px var(--slot-glow),
    0 2px 10px rgba(0, 0, 0, 0.44);
}

.hint-gloss {
  color: color-mix(in srgb, var(--slot-color) 88%, white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hint-cn,
.hint-focus {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hint-focus {
  color: #f8df9f;
}

.success-layer {
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  left: 50%;
  bottom: 20%;
  width: 10px;
  height: 22px;
  background: var(--spark-color, var(--gold));
  opacity: 0;
  border-radius: 2px;
  box-shadow: 0 0 18px var(--spark-color, var(--gold));
  transform: translate(-50%, 0) rotate(var(--spin, 0deg));
  animation: spark 1080ms ease-out forwards;
}

@keyframes spark {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) rotate(var(--spin, 0deg)) scale(0.7);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), var(--dy)) rotate(calc(var(--spin) + 210deg)) scale(1);
  }
}

.dialogue-panel.pulse {
  animation: panelPulse 760ms ease-out;
}

@keyframes panelPulse {
  0% {
    box-shadow:
      var(--shadow),
      0 0 0 0 rgba(88, 215, 198, 0.68),
      0 0 0 0 rgba(241, 199, 107, 0.46);
  }
  36% {
    box-shadow:
      var(--shadow),
      0 0 0 12px rgba(88, 215, 198, 0.24),
      0 0 48px rgba(241, 199, 107, 0.3);
  }
  100% {
    box-shadow:
      var(--shadow),
      0 0 0 34px rgba(88, 215, 198, 0),
      0 0 72px rgba(241, 199, 107, 0);
  }
}

.answer-box.shake .word-input {
  animation: shake 260ms ease;
  border-bottom-color: #ff4d6d;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.stage.is-light-mode {
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(36, 84, 94, 0.18);
  --ink: #172033;
  --muted: #607089;
  --shadow: 0 18px 48px rgba(31, 54, 78, 0.14);
  color: #172033;
  background:
    radial-gradient(circle at 74% 14%, rgba(88, 215, 198, 0.2), transparent 34%),
    radial-gradient(circle at 8% 42%, rgba(255, 226, 122, 0.24), transparent 36%),
    linear-gradient(135deg, #f8fbff 0%, #fffdf6 47%, #eafffa 100%);
}

.stage.is-light-mode.has-intro::before {
  background:
    linear-gradient(180deg, rgba(247, 252, 255, 0.42), rgba(235, 255, 250, 0.62)),
    radial-gradient(circle at 50% 20%, rgba(88, 215, 198, 0.16), transparent 46%);
}

.stage.is-light-mode .scene-art,
.stage.is-light-mode.is-speaking .scene-art,
.stage.is-light-mode.is-speaking[data-emotion] .scene-art {
  filter: saturate(1.1) contrast(1.02) brightness(1.06);
  box-shadow:
    0 24px 68px rgba(30, 55, 84, 0.2),
    0 0 0 999px rgba(250, 254, 255, 0.68);
}

.stage.is-light-mode.has-intro .scene-art {
  filter: blur(2px) brightness(0.9) saturate(1.02);
}

.stage.is-light-mode .scene-shade,
.stage.is-light-mode[data-emotion="cold"] .scene-shade,
.stage.is-light-mode[data-emotion="hurt"] .scene-shade,
.stage.is-light-mode[data-emotion="anger"] .scene-shade,
.stage.is-light-mode[data-emotion="suspicion"] .scene-shade,
.stage.is-light-mode[data-emotion="shock"] .scene-shade,
.stage.is-light-mode[data-emotion="resolve"] .scene-shade,
.stage.is-light-mode[data-emotion="reveal"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 34%, rgba(255, 255, 255, 0.28)),
    radial-gradient(circle at 72% 32%, rgba(88, 215, 198, 0.15), transparent 30%),
    radial-gradient(circle at 18% 58%, rgba(255, 226, 122, 0.18), transparent 36%);
}

.stage.is-light-mode .brand-block,
.stage.is-light-mode .progress-block,
.stage.is-light-mode .icon-button,
.stage.is-light-mode .mode-panel,
.stage.is-light-mode .speed-panel,
.stage.is-light-mode .sound-panel,
.stage.is-light-mode .plot-panel,
.stage.is-light-mode .story-beat,
.stage.is-light-mode .story-strip,
.stage.is-light-mode .dialogue-panel,
.stage.is-light-mode .lesson-panel {
  color: #172033;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 255, 253, 0.78)),
    rgba(255, 255, 255, 0.8);
  border-color: rgba(36, 84, 94, 0.18);
  box-shadow: 0 18px 46px rgba(31, 54, 78, 0.14);
}

.stage.is-light-mode .top-hint-panel {
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(88, 215, 198, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(17, 25, 38, 0.96), rgba(8, 14, 24, 0.94));
  border-color: rgba(88, 215, 198, 0.22);
  box-shadow:
    0 24px 70px rgba(30, 55, 84, 0.26),
    0 0 0 999px rgba(248, 253, 255, 0.38);
}

.stage.is-light-mode .brand-block h1,
.stage.is-light-mode h2,
.stage.is-light-mode .speaker-name,
.stage.is-light-mode .practice-cn,
.stage.is-light-mode .story-strip p,
.stage.is-light-mode .plot-panel strong,
.stage.is-light-mode .plot-panel p,
.stage.is-light-mode .english-line {
  color: #121a2a;
  text-shadow: none;
}

.stage.is-light-mode .eyebrow,
.stage.is-light-mode .panel-label,
.stage.is-light-mode .chinese-line,
.stage.is-light-mode .hint-cn {
  color: #607089;
}

.stage.is-light-mode .progress-block span,
.stage.is-light-mode .icon-button,
.stage.is-light-mode .volume-control span {
  color: #253348;
}

.stage.is-light-mode .progress-track,
.stage.is-light-mode .segmented {
  background: rgba(19, 32, 48, 0.06);
  border-color: rgba(36, 84, 94, 0.12);
}

.stage.is-light-mode .segment {
  color: #4d5b6f;
  background: rgba(255, 255, 255, 0.62);
}

.stage.is-light-mode .segment:hover {
  color: #172033;
  background: rgba(255, 255, 255, 0.94);
}

.stage.is-light-mode .segment.is-active {
  color: #171217;
  background:
    linear-gradient(180deg, #ffe889, #f1c76b);
  border-color: rgba(189, 134, 20, 0.36);
  box-shadow:
    0 10px 22px rgba(217, 158, 37, 0.2),
    0 0 0 2px rgba(88, 215, 198, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transform: translateY(-1px);
}

.stage.is-light-mode .story-strip {
  background:
    linear-gradient(90deg, rgba(255, 226, 122, 0.34), rgba(255, 255, 255, 0.92) 30%),
    rgba(255, 255, 255, 0.86);
}

.stage.is-light-mode .answer-reveal {
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 0 0 1px rgba(36, 84, 94, 0.08);
}

.stage.is-light-mode .answer-reveal.is-subtitle {
  background: rgba(255, 250, 232, 0.72);
}

.stage.is-light-mode .word-blanks {
  width: fit-content;
  max-width: min(860px, 100%);
  margin-inline: auto;
  padding: 16px 18px 14px;
  background:
    radial-gradient(circle at 18% 22%, rgba(88, 215, 198, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(17, 25, 38, 0.92), rgba(12, 20, 31, 0.86));
  border: 1px solid rgba(88, 215, 198, 0.16);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(30, 55, 84, 0.16);
}

.stage.is-light-mode .word-time {
  --slot-color: #b5ff58;
  --slot-glow: rgba(181, 255, 88, 0.58);
}

.stage.is-light-mode .word-plain {
  --slot-color: #ffe16a;
  --slot-glow: rgba(255, 225, 106, 0.6);
}

.stage.is-light-mode .word-input {
  text-shadow: 0 0 14px var(--slot-glow), 0 3px 10px rgba(0, 0, 0, 0.46);
  caret-color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.36);
}

.stage.is-light-mode .hint-word {
  background:
    linear-gradient(180deg, var(--slot-bg), rgba(255, 255, 255, 0.04)),
    rgba(9, 13, 21, 0.78);
  border-color: color-mix(in srgb, var(--slot-color) 64%, rgba(255, 255, 255, 0.1));
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    0 0 24px -13px var(--slot-color);
}

.stage.is-light-mode .hint-en {
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.stage.is-light-mode .hint-word strong {
  color: #ffffff;
  text-shadow: 0 0 16px var(--slot-glow), 0 2px 8px rgba(0, 0, 0, 0.46);
}

.stage.is-light-mode .hint-gloss {
  color: rgba(255, 255, 255, 0.86);
}

.stage.is-light-mode .top-hint-panel .panel-label,
.stage.is-light-mode .top-hint-panel .hint-cn {
  color: rgba(255, 255, 255, 0.82);
}

.stage.is-light-mode .hint-focus {
  color: #ffe084;
}

.stage.is-light-mode .hint-close-button {
  color: #253348;
  background: rgba(19, 32, 48, 0.06);
  border-color: rgba(36, 84, 94, 0.16);
}

.stage.is-light-mode .top-hint-panel .hint-close-button {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.stage.is-light-mode .episode-report-card {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.16), transparent 28%),
    linear-gradient(315deg, rgba(255, 216, 111, 0.2), transparent 34%),
    rgba(17, 13, 22, 0.96);
  border-color: rgba(255, 226, 122, 0.34);
}

.stage.is-light-mode .episode-report-card h2 {
  color: #fff8d8;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.54);
}

.stage.is-light-mode .episode-report-card > p {
  color: rgba(255, 255, 255, 0.84);
}

.stage.is-light-mode .episode-report-stat {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
}

.stage.is-light-mode .episode-report-stat span,
.stage.is-light-mode .episode-report-stat small {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1100px) {
  .product-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .product-sidebar {
    padding: 14px 10px;
  }

  .product-brand {
    justify-content: center;
  }

  .product-brand span:last-child,
  .product-nav-item {
    font-size: 0;
  }

  .product-nav-item {
    justify-content: center;
    padding: 0;
  }

  .product-nav-item svg {
    width: 23px;
    height: 23px;
  }

  .sidebar-card {
    display: none;
  }

  .home-hero,
  .course-detail,
  .locked-teaser,
  .membership-hero,
  .review-hero {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .course-grid-compact,
  .episode-list,
  .membership-plan-grid,
  .review-stat-grid,
  .word-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-content-grid,
  .learning-center-grid,
  .review-center-grid {
    grid-template-columns: 1fr;
  }

  .partner-hero,
  .partner-grid,
  .admin-hero,
  .admin-grid,
  .admin-user-layout,
  .data-model-layout,
  .legal-layout,
  .video-lesson-shell,
  .invite-admin-layout,
  .script-studio {
    grid-template-columns: 1fr;
  }

  .my-stat-grid,
  .calendar-summary,
  .partner-stat-grid,
  .admin-stat-grid,
  .admin-user-summary,
  .admin-order-summary,
  .admin-partner-summary,
  .data-flow-list,
  .pricing-grid,
  .membership-benefit-grid,
  .membership-rule-grid,
  .partner-rule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .script-grid {
    grid-template-columns: 1fr;
  }

  .member-panel {
    position: static;
  }

  .script-preview-card {
    position: static;
  }

  .invite-create-card {
    position: static;
  }

  .data-snapshot-card {
    position: static;
  }

  .legal-tabs {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .product-shell {
    display: block;
  }

  .product-sidebar {
    position: static;
    min-height: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
  }

  .product-brand {
    justify-content: start;
    width: auto;
  }

  .product-brand span:last-child {
    display: none;
  }

  .product-nav {
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    gap: 6px;
    margin-top: 0;
  }

  .product-main {
    padding: 14px 12px 36px;
  }

  .product-top,
  .section-head,
  .legal-hero,
  .referral-banner,
  .home-conversion-strip,
  .script-import-head,
  .video-drill-top,
  .video-lesson-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-conversion-actions,
  .home-conversion-actions button,
  .script-import-actions button {
    width: 100%;
  }

  .legal-tabs {
    display: flex;
    overflow-x: auto;
    padding: 8px;
  }

  .legal-tab {
    flex: 0 0 auto;
    min-width: 108px;
    text-align: center;
  }

  .legal-document {
    padding: 20px;
  }

  .product-top h1 {
    font-size: 26px;
  }

  .home-hero h2 {
    font-size: 38px;
  }

  .stats-grid,
  .my-stat-grid,
  .learning-center-grid,
  .partner-stat-grid,
  .admin-stat-grid,
  .admin-user-summary,
  .admin-order-summary,
  .admin-partner-summary,
  .data-summary,
  .data-flow-list,
  .schema-grid,
  .course-grid,
  .course-grid-compact,
  .episode-list,
  .review-stat-grid,
  .review-center-grid,
  .word-review-grid,
  .pricing-grid,
  .membership-plan-grid,
  .membership-benefit-grid,
  .membership-rule-grid,
  .partner-rule-list {
    grid-template-columns: 1fr;
  }

  .partner-row,
  .admin-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px;
  }

  .feedback-admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .feedback-export-actions .ghost-action {
    flex: 1 1 150px;
  }

  .partner-row.is-head,
  .admin-row.is-head {
    display: none;
  }

  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .admin-tab {
    flex: 0 0 auto;
  }

  .admin-user-detail {
    position: static;
  }

  .script-editor-grid {
    grid-template-columns: 1fr;
  }

  .local-video-tool {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .local-video-ai-button,
  .local-video-download-button {
    width: 100%;
  }

  .local-video-limit-note {
    width: 100%;
  }

  .video-stage-card {
    padding: 12px;
  }

  .video-frame {
    width: 100%;
  }

  .video-hover-controls {
    bottom: 40px;
    width: calc(100% - 24px);
    border-radius: 18px;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .video-hover-button {
    flex: 1 1 92px;
    min-height: 40px;
    padding: 0 10px;
  }

  .video-progress-row {
    width: 100%;
    gap: 8px;
  }

  .video-subtitle-mask {
    left: 5%;
    right: 5%;
    bottom: 3.5%;
    height: 17%;
  }

  .video-under-button {
    flex: 1 1 150px;
    min-height: 42px;
  }

  .video-drill-card {
    min-height: auto;
    padding: 20px 14px;
    border-radius: 20px;
  }

  .video-line-copy p {
    font-size: clamp(26px, 8vw, 36px);
  }

  .video-control-dock {
    grid-template-columns: repeat(3, 48px);
  }

  .script-audit-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .script-audit-item {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .my-course-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .review-deck-row {
    grid-template-columns: 1fr;
  }

  .continue-card {
    grid-template-columns: 1fr;
  }

  .code-input-row {
    grid-template-columns: 1fr;
  }

  .my-course-row .episode-lock {
    grid-column: 1 / -1;
  }

  .study-calendar {
    gap: 5px;
  }

  .calendar-weekday,
  .calendar-empty-day,
  .calendar-day {
    min-height: 42px;
    border-radius: 12px;
  }

  .calendar-day strong {
    font-size: 14px;
  }

  .calendar-day span {
    font-size: 10px;
  }

  .product-modal {
    padding: 20px;
  }

  .hero-preview,
  .hero-preview img {
    min-height: 300px;
  }

  .course-detail {
    padding: 14px;
  }

  .locked-teaser {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .teaser-actions {
    min-width: 0;
  }

  .course-detail-cover,
  .course-detail-cover img {
    min-height: 260px;
  }

  .stage {
    min-height: max(100svh, calc(var(--dialogue-top) + 760px));
    --scene-top: 132px;
    --scene-width: calc(100vw - 20px);
    --scene-height: min(42svh, 420px);
    --story-strip-height: 118px;
    padding: 10px;
    gap: 10px;
  }

  .scene-art {
    left: 50%;
    width: var(--scene-width);
    height: var(--scene-height);
    top: var(--scene-top);
    object-position: 52% center;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) repeat(5, 44px);
  }

  .progress-block {
    grid-column: 1 / -1;
    order: 3;
  }

  .side-panel {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .story-strip {
    position: absolute;
    top: calc(var(--scene-top) + var(--scene-height) + var(--scene-gap));
    left: 50%;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-top: 0;
    padding: 12px;
    transform: translateX(-50%);
  }

  .dialogue-panel {
    position: absolute;
    top: var(--dialogue-top);
    left: 50%;
    width: 100%;
    padding: 14px;
    transform: translateX(-50%);
  }

  .lesson-panel {
    top: calc(var(--dialogue-top) + 440px);
    left: 50%;
    right: auto;
    width: 100%;
    max-height: none;
    transform: translateX(-50%);
  }

  .lesson-panel:not([hidden]) {
    animation: mobileLessonEnter 360ms ease-out both;
  }

  .practice-cn {
    margin-top: 26px;
  }

  .control-dock {
    grid-template-columns: repeat(6, 42px);
    gap: 8px;
    margin-top: 34px;
    padding: 10px 12px;
  }

  .word-input {
    font-size: inherit;
  }

  .brand-block {
    width: 100%;
  }

  h1 {
    font-size: 18px;
  }
}

@keyframes mobileLessonEnter {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 430px) {
  .answer-box {
    padding: 12px;
  }

  .word-blanks {
    gap: 14px 8px;
  }

  .word-slot {
    width: var(--slot-width);
    max-width: 12ch;
    font-size: clamp(24px, 8vw, 34px);
  }

  .word-input {
    height: 48px;
  }

  .control-dock {
    grid-template-columns: repeat(5, 38px);
    gap: 7px;
    padding: 9px;
  }

  .dock-button {
    width: 38px;
    height: 38px;
  }

  .dock-button svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 760px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  .product-sidebar {
    position: sticky;
    top: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px 10px 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
  }

  .product-brand {
    justify-content: start;
    min-height: 44px;
    padding: 5px 4px;
    font-size: 22px;
  }

  .product-brand span:last-child {
    display: inline;
    font-size: 20px;
  }

  .product-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
  }

  .nav-group-label {
    display: none;
  }

  .product-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(68px, 1fr);
    grid-template-columns: none;
    gap: 6px;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .product-nav::-webkit-scrollbar {
    display: none;
  }

  .product-nav-item {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    padding: 6px 7px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }

  .product-nav-item svg {
    width: 20px;
    height: 20px;
  }

  .product-main {
    width: 100%;
    padding: 12px 10px calc(34px + env(safe-area-inset-bottom));
  }

  .product-top {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
    padding: 13px;
    border-radius: 18px;
  }

  .product-top h1 {
    font-size: 24px;
  }

  .product-actions,
  .hero-actions,
  .detail-actions,
  .membership-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .solid-action,
  .ghost-action,
  .text-action,
  .back-link,
  .category-chip {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 16px;
  }

  .home-hero {
    gap: 12px;
  }

  .home-hero-copy {
    padding: 20px 18px;
  }

  .home-hero h2 {
    font-size: clamp(29px, 8vw, 34px);
    line-height: 1.12;
  }

  .home-hero p {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .hero-preview,
  .hero-preview img {
    min-height: 230px;
  }

  .hero-line {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .hero-line strong {
    font-size: 18px;
  }

  .hero-line p {
    font-size: 13px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    padding: 13px;
    border-radius: 18px;
  }

  .stat-card strong {
    font-size: 25px;
  }

  .section-head {
    gap: 8px;
    margin: 18px 0 10px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .category-strip {
    flex-wrap: nowrap;
    margin: 0 -10px 14px;
    overflow-x: auto;
    padding: 0 10px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-strip::-webkit-scrollbar {
    display: none;
  }

  .category-chip {
    flex: 0 0 auto;
  }

  .course-grid,
  .course-grid-compact {
    gap: 12px;
  }

  .course-card img {
    height: 164px;
  }

  .course-card.is-featured img {
    height: 188px;
  }

  .course-card-body {
    padding: 14px;
  }

  .course-card-body p {
    min-height: 0;
  }

  .course-detail {
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
  }

  .course-detail-cover {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .course-detail-cover img {
    height: 100%;
    min-height: 0;
  }

  .course-detail-copy h2 {
    font-size: clamp(28px, 8vw, 34px);
  }

  .course-detail-copy p {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .detail-tags span {
    padding: 6px 9px;
    font-size: 12px;
  }

  .market-panel,
  .episode-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .episode-list {
    gap: 9px;
  }

  .episode-item {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    min-height: 70px;
    padding: 11px;
    border-radius: 15px;
  }

  .episode-index {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .episode-item h3 {
    font-size: 15px;
    line-height: 1.28;
    white-space: normal;
  }

  .episode-item p {
    line-height: 1.35;
  }

  .locked-teaser {
    margin-top: 12px;
    border-radius: 18px;
  }

  .teaser-actions,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .modal-layer {
    place-items: end center;
    padding: 10px;
  }

  .product-modal {
    width: 100%;
    max-height: calc(100svh - 20px);
    overflow: auto;
    padding: 18px;
    border-radius: 22px;
  }

  .product-modal h2 {
    margin-top: 12px;
    font-size: clamp(25px, 7vw, 32px);
  }

  .pricing-grid {
    gap: 10px;
  }

  .price-card {
    min-height: auto;
    padding: 15px;
    border-radius: 16px;
  }

  .price-card strong {
    font-size: 30px;
  }

  .stage {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100svh;
    padding: 10px 10px calc(18px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    --scene-width: 100%;
    --scene-height: auto;
    --story-strip-height: auto;
  }

  .topbar {
    order: 1;
    grid-template-columns: minmax(0, 1fr) repeat(5, 40px);
    gap: 8px;
  }

  .brand-block {
    width: 100%;
    padding: 8px 10px;
    border-radius: 13px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  h1 {
    font-size: 18px;
  }

  .progress-block {
    grid-column: 1 / -1;
    order: 3;
    padding: 9px 10px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .side-panel {
    order: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .plot-panel {
    display: none;
  }

  .mode-panel,
  .speed-panel,
  .sound-panel {
    padding: 8px;
    border-radius: 14px;
  }

  .panel-label {
    font-size: 11px;
  }

  .speed-row strong,
  .sound-row strong {
    font-size: 13px;
  }

  .volume-control {
    gap: 6px;
    margin-top: 7px;
  }

  .volume-control span {
    font-size: 11px;
  }

  .segmented {
    gap: 4px;
    margin-top: 6px;
    padding: 4px;
    border-radius: 14px;
  }

  .segment {
    min-height: 32px;
    border-radius: 10px;
    font-size: 12px;
  }

  .scene-art {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    order: 3;
    z-index: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.54);
    transform: none;
  }

  .stage[data-shot="wide"] .scene-art,
  .stage[data-shot="left"] .scene-art,
  .stage[data-shot="right"] .scene-art,
  .stage[data-shot="object"] .scene-art {
    transform: none;
  }

  .talk-effect {
    display: none;
  }

  .story-strip {
    position: relative;
    top: auto;
    left: auto;
    order: 4;
    width: 100%;
    min-height: auto;
    max-height: 128px;
    overflow: auto;
    padding: 10px 12px;
    border-radius: 14px;
    transform: none;
  }

  .story-strip p {
    font-size: 14.5px;
    line-height: 1.45;
  }

  .dialogue-panel {
    position: relative;
    top: auto;
    left: auto;
    order: 5;
    width: 100%;
    padding: 14px 12px 12px;
    border-radius: 18px;
    transform: none;
  }

  .lesson-panel {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    order: 6;
    width: 100%;
    max-height: none;
    padding: 14px;
    border-radius: 16px;
    transform: none;
  }

  .lesson-panel:not([hidden]) {
    animation: none;
  }

  .speaker-row {
    align-items: center;
  }

  .speaker-tag {
    min-height: 23px;
    font-size: 12px;
  }

  h2 {
    font-size: clamp(23px, 7vw, 29px);
  }

  .practice-cn {
    margin-top: 14px;
    font-size: clamp(24px, 7.4vw, 31px);
    line-height: 1.22;
  }

  .answer-reveal {
    margin-top: 12px;
    padding: 12px;
  }

  .english-line {
    font-size: clamp(18px, 5.5vw, 22px);
  }

  .answer-box {
    margin-top: 14px;
    padding: 4px 0;
  }

  .word-blanks {
    gap: 13px 8px;
  }

  .word-slot {
    max-width: 13ch;
    font-size: clamp(25px, 7vw, 32px);
  }

  .word-input {
    height: 44px;
    border-bottom-width: 3px;
  }

  .control-dock {
    width: min(100%, 310px);
    grid-template-columns: repeat(5, minmax(42px, 1fr));
    gap: 8px;
    margin-top: 24px;
    padding: 10px;
    border-radius: 18px;
  }

  .dock-button {
    width: 100%;
    height: 42px;
    border-radius: 13px;
  }

  .feedback {
    min-height: 20px;
    font-size: 13px;
  }

  .top-hint-panel {
    top: 8px;
    width: calc(100vw - 16px);
    max-height: 58svh;
    padding: 14px;
    border-radius: 16px;
  }

  .hint-en {
    font-size: clamp(20px, 6vw, 25px);
  }

  .hint-tokens {
    gap: 8px;
  }

  .hint-word {
    min-width: calc(50% - 4px);
    padding: 8px 10px 10px;
  }

  .hint-word strong {
    font-size: 18px;
  }

  .hint-gloss {
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .product-brand span:last-child {
    font-size: 19px;
  }

  .product-nav {
    grid-auto-columns: minmax(62px, 1fr);
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-card strong {
    font-size: 23px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) repeat(5, 38px);
    gap: 7px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .control-dock {
    grid-template-columns: repeat(5, minmax(38px, 1fr));
  }
}

@media (max-width: 760px) {
  .product-shell {
    display: block;
    min-height: 100svh;
  }

  .product-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
    padding: 9px 10px 8px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(53, 77, 112, 0.08);
    box-shadow: 0 14px 34px rgba(68, 86, 121, 0.1);
    backdrop-filter: blur(18px);
  }

  .product-brand {
    justify-content: start;
    min-height: 38px;
    width: 100%;
    padding: 2px 0;
  }

  .product-brand span:last-child {
    display: inline;
    font-size: 19px;
  }

  .product-logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .product-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(66px, 1fr);
    grid-template-columns: none;
    gap: 6px;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .product-nav::-webkit-scrollbar {
    display: none;
  }

  .product-nav-item {
    min-height: 52px;
    padding: 6px 7px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .product-main {
    padding: 10px 10px calc(30px + env(safe-area-inset-bottom));
  }

  .product-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 20px;
  }

  .product-top h1 {
    font-size: clamp(23px, 6.8vw, 30px);
    line-height: 1.16;
  }

  .product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .product-actions .solid-action {
    grid-column: 1 / -1;
  }

  .hero-actions,
  .detail-actions,
  .membership-hero-actions,
  .teaser-actions,
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .solid-action,
  .ghost-action,
  .text-action,
  .back-link,
  .category-chip {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
  }

  .home-hero-copy,
  .course-detail,
  .market-panel,
  .episode-panel,
  .locked-teaser,
  .membership-hero,
  .membership-plan-card,
  .membership-benefit-grid article,
  .membership-rule-panel,
  .membership-rule-grid article,
  .membership-partner-panel,
  .partner-rule-list article,
  .membership-score-card {
    border-radius: 20px;
  }

  .course-card img {
    height: 150px;
  }

  .course-card.is-featured img {
    height: 170px;
  }

  .course-card-body {
    gap: 10px;
    padding: 14px;
  }

  .episode-item {
    min-height: 72px;
    padding: 12px;
    border-radius: 17px;
  }

  .episode-index {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .membership-hero {
    gap: 14px;
    padding: 16px;
  }

  .membership-hero h2 {
    font-size: clamp(26px, 7.4vw, 34px);
    line-height: 1.12;
  }

  .membership-hero p {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .membership-score-card {
    min-height: 128px;
    padding: 16px;
  }

  .membership-plan-card {
    min-height: auto;
    padding: 16px;
  }

  .membership-plan-card strong {
    font-size: clamp(30px, 8vw, 38px);
  }

  .membership-card-list {
    gap: 6px;
  }

  .membership-card-list b {
    font-size: 13px;
  }

  .membership-rule-panel,
  .membership-partner-panel {
    gap: 13px;
    padding: 16px;
  }

  .membership-rule-grid,
  .partner-rule-list {
    gap: 10px;
  }

  .membership-rule-grid article,
  .partner-rule-list article {
    padding: 14px;
  }

  .membership-rule-grid article strong,
  .partner-rule-list article strong {
    font-size: 18px;
  }

  .membership-benefit-grid article {
    padding: 15px;
  }

  .modal-layer {
    place-items: end center;
    padding: 8px;
  }

  .product-modal {
    width: 100%;
    max-height: calc(100svh - 16px);
    overflow: auto;
    padding: 18px;
    border-radius: 22px;
  }

  .stage {
    gap: 8px;
    padding: 8px 10px calc(16px + env(safe-area-inset-bottom));
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) repeat(5, 42px);
    gap: 6px;
    align-items: stretch;
  }

  .brand-block {
    min-height: 42px;
    padding: 7px 8px;
    border-radius: 16px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .topbar h1 {
    font-size: clamp(16px, 4.8vw, 18px);
  }

  .topbar .eyebrow {
    font-size: 10px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .progress-block {
    padding: 8px 10px;
    border-radius: 14px;
  }

  .side-panel {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .sound-panel {
    grid-column: 1 / -1;
  }

  .mode-panel,
  .speed-panel,
  .sound-panel {
    padding: 10px;
    border-radius: 18px;
  }

  .segmented {
    border-radius: 18px;
  }

  .segment {
    min-height: 38px;
    border-radius: 14px;
    font-size: 13px;
  }

  .scene-art {
    border-radius: 16px;
  }

  .story-strip {
    margin-top: -3px;
    max-height: 126px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .story-strip p {
    font-size: 15px;
    line-height: 1.55;
  }

  .dialogue-panel {
    padding: 16px 12px 14px;
    border-radius: 22px;
  }

  .speaker-tag {
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
  }

  h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .practice-cn {
    margin-top: 16px;
    font-size: clamp(24px, 7vw, 31px);
    line-height: 1.22;
  }

  .answer-box {
    margin-top: 14px;
    padding: 4px 0;
  }

  .word-blanks {
    justify-content: center;
    gap: 14px 10px;
  }

  .word-slot {
    width: min(max(var(--slot-width), 4ch), 46vw);
    min-width: min(32vw, 4.4ch);
    max-width: 46vw;
    font-size: clamp(23px, 7.3vw, 31px);
  }

  .word-input {
    height: 50px;
    padding-bottom: 8px;
    border-bottom-width: 3px;
  }

  .control-dock {
    position: sticky;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 3;
    width: min(100%, 340px);
    grid-template-columns: repeat(5, minmax(46px, 1fr));
    gap: 8px;
    margin-top: 20px;
    padding: 10px;
    border-radius: 20px;
  }

  .dock-button {
    width: 100%;
    height: 46px;
    border-radius: 15px;
  }

  .feedback {
    min-height: 20px;
    font-size: 13px;
  }

  .top-hint-panel {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100vw - 14px);
    max-height: 72svh;
    padding: 14px 12px 16px;
    border-radius: 20px;
  }

  .hint-topline {
    position: sticky;
    top: -14px;
    z-index: 1;
    margin: -2px 0 10px;
    padding: 2px 0 10px;
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.98) 0%, rgba(22, 27, 34, 0.86) 72%, transparent);
    backdrop-filter: blur(8px);
  }

  .hint-close-button {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .hint-en {
    font-size: clamp(22px, 6.5vw, 28px);
    line-height: 1.16;
  }

  .hint-tokens {
    gap: 8px;
  }

  .hint-word {
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
    padding: 9px 10px 10px;
    border-radius: 14px;
  }

  .hint-word strong {
    overflow-wrap: anywhere;
    font-size: 18px;
    line-height: 1.12;
  }

  .hint-gloss,
  .hint-cn,
  .hint-focus {
    font-size: 14px;
    line-height: 1.55;
  }

  .intro-panel {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    width: calc(100vw - 18px);
    min-width: 0;
    max-height: calc(100svh - 20px);
    overflow: auto;
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 22px;
  }

  .intro-copy p {
    padding-right: 88px;
    font-size: 14.5px;
    line-height: 1.75;
  }

  .intro-actions {
    position: absolute;
    right: 14px;
    top: 14px;
  }

  .intro-control {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 430px) {
  .product-sidebar {
    padding: 8px;
  }

  .product-brand span:last-child {
    font-size: 18px;
  }

  .product-nav {
    grid-auto-columns: minmax(60px, 1fr);
  }

  .product-nav-item {
    min-height: 50px;
    font-size: 11px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) repeat(5, 39px);
    gap: 5px;
  }

  .icon-button {
    width: 39px;
    height: 39px;
  }

  .brand-block {
    padding: 7px;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
  }

  .topbar h1 {
    font-size: 16px;
  }

  .control-dock {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }

  .dock-button {
    height: 44px;
  }

  .word-slot {
    width: min(max(var(--slot-width), 4ch), 48vw);
    max-width: 48vw;
    font-size: clamp(23px, 7.6vw, 30px);
  }

  .story-strip {
    max-height: 116px;
  }

  .practice-cn {
    font-size: clamp(23px, 7.5vw, 29px);
  }
}
