/* 体验版 · 一屏手机布局 */
:root {
  --exp-cyan: #22d3ee;
  --exp-teal: #2dd4bf;
  --exp-mint: #48c0a3;
  --exp-bg: #060a14;
  --exp-surface: rgba(14, 20, 36, 0.88);
  --exp-border: rgba(255, 255, 255, 0.09);
  --exp-topbar-h: 44px;
  --exp-dock-h: 50px;
  --exp-safe-b: env(safe-area-inset-bottom, 0px);
  --exp-safe-t: env(safe-area-inset-top, 0px);
  /* 8pt 移动端栅格 */
  --exp-space-1: 4px;
  --exp-space-2: 8px;
  --exp-space-3: 12px;
  --exp-touch: 44px;
  --exp-radius-sm: 8px;
  --exp-radius-md: 12px;
  --exp-radius-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

.exp-page {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: -apple-system, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--exp-bg);
  color: #e2e8f0;
  touch-action: manipulation;
}

.exp-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.exp-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.exp-bg-orb--1 {
  width: 280px;
  height: 280px;
  top: -60px;
  left: -40px;
  background: rgba(14, 165, 233, 0.4);
}

.exp-bg-orb--2 {
  width: 240px;
  height: 240px;
  bottom: 80px;
  right: -60px;
  background: rgba(72, 192, 163, 0.35);
}

/* ── 一屏容器 ── */
.exp-app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  height: 100vh; /* fallback */
  max-height: -webkit-fill-available;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  padding-top: var(--exp-safe-t);
}

@media (min-width: 520px) {
  .exp-app {
    border-left: 1px solid var(--exp-border);
    border-right: 1px solid var(--exp-border);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
  }
}

/* ── 顶栏 ── */
.exp-topbar {
  flex-shrink: 0;
  height: var(--exp-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 10px;
  border-bottom: 1px solid var(--exp-border);
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(12px);
}

.exp-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.exp-logo-wrap {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.exp-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
}

.exp-topbar-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.exp-topbar-title strong {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.exp-topbar-sub {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.exp-quota {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--exp-teal);
  background: rgba(45, 212, 191, 0.08);
  white-space: nowrap;
}

.exp-user {
  font-size: 10px;
  color: #cbd5e1;
  max-width: 4.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exp-cloud-notify {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-size: 0.82rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.exp-cloud-notify a {
  display: inline-block;
  margin-top: 6px;
  color: #67e8f9;
  font-weight: 600;
  text-decoration: none;
}

.exp-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* ── 菜单抽屉 ── */
.exp-sheet {
  position: fixed;
  inset: 0;
  z-index: 8000;
}

.exp-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.exp-sheet-panel {
  position: absolute;
  top: calc(var(--exp-safe-t) + var(--exp-topbar-h));
  right: 8px;
  min-width: 180px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--exp-border);
  background: rgba(18, 24, 40, 0.98);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.exp-sheet-panel--bottom {
  top: auto;
  right: 0;
  left: 0;
  bottom: 0;
  min-width: 0;
  padding: var(--exp-space-2) var(--exp-space-3) calc(var(--exp-space-3) + var(--exp-safe-b));
  border-radius: var(--exp-radius-lg) var(--exp-radius-lg) 0 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.exp-sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto var(--exp-space-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.exp-sheet-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--exp-touch);
  padding: 0 var(--exp-space-3);
  border: none;
  border-radius: var(--exp-radius-sm);
  background: transparent;
  color: #e2e8f0;
  font-size: 15px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.exp-sheet-item--muted {
  color: #94a3b8;
}

.exp-sheet-item:hover,
.exp-sheet-item:active {
  background: rgba(255, 255, 255, 0.06);
}

.exp-sheet-item--accent {
  color: var(--exp-mint);
}

/* ── 主舞台 ── */
.exp-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.exp-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: var(--exp-space-2);
  padding: var(--exp-space-2) var(--exp-space-3) var(--exp-space-1);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.exp-panel--active {
  opacity: 1;
  pointer-events: auto;
}

.exp-panel--overlay {
  background: rgba(6, 10, 20, 0.97);
  backdrop-filter: blur(8px);
  z-index: 2;
}

#expResult.exp-panel--overlay:not(.hidden) {
  z-index: 12;
}

.exp-panel--overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.exp-last-result {
  flex-shrink: 0;
  width: 100%;
  margin-bottom: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.1);
  color: var(--exp-teal);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.exp-last-result:active {
  background: rgba(45, 212, 191, 0.18);
}

  flex-shrink: 0;
  margin-bottom: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.35;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
  color: #fcd34d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-trial-strip.exp-trial-expired {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
}

.exp-lead {
  display: none;
}

/* ── 移动端卡片（Bento 单列） ── */
.exp-m-card {
  flex-shrink: 0;
  border: 1px solid var(--exp-border);
  border-radius: var(--exp-radius-md);
  background: var(--exp-surface);
  padding: var(--exp-space-2) var(--exp-space-3);
}

.exp-m-card--hero {
  order: -1;
}

.exp-m-card--hero .exp-compose-head {
  margin-bottom: var(--exp-space-1);
}

.exp-m-card--hero textarea,
#expPrompt {
  width: 100%;
  min-height: 64px;
  max-height: 96px;
  margin: 0;
  border: 1px solid var(--exp-border);
  border-radius: var(--exp-radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: #f1f5f9;
  padding: var(--exp-space-2) 10px;
  font-size: 16px;
  line-height: 1.35;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}

.exp-m-card--hero textarea:focus,
#expPrompt:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(0, 0, 0, 0.45);
}

.exp-m-card--hero textarea::placeholder,
#expPrompt::placeholder {
  color: #64748b;
  font-size: 13px;
}

.exp-m-card--settings {
  position: relative;
  padding-bottom: var(--exp-space-2);
}

.exp-m-card--bgm {
  padding: 0;
  border: none;
  background: transparent;
}

.exp-m-card--bgm .exp-bgm-block {
  border-radius: var(--exp-radius-md);
}

.exp-m-section {
  flex-shrink: 0;
}

.exp-m-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--exp-space-2);
  margin-bottom: var(--exp-space-1);
  padding: 0 2px;
}

.exp-m-field-label {
  margin: var(--exp-space-2) 0 var(--exp-space-1);
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.exp-m-field-label:first-child {
  margin-top: 0;
}

.exp-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* iOS 风格分段控件 */
.exp-seg {
  display: flex;
  gap: var(--exp-space-1);
  padding: 3px;
  border-radius: var(--exp-radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--exp-border);
}

.exp-seg--scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.exp-seg--scroll::-webkit-scrollbar {
  display: none;
}

.exp-seg--dual .exp-seg-btn {
  flex: 1;
}

.exp-seg-btn {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.exp-seg-btn--active {
  color: #ecfdf5;
  background: rgba(45, 212, 191, 0.22);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.exp-seg-btn[data-for="expStyle"][data-value="电影感"].exp-seg-btn--active {
  color: #f3e8ff;
  background: rgba(139, 92, 246, 0.28);
}

/* 模板横滑 */
.exp-template-block {
  flex-shrink: 0;
  margin-bottom: 4px;
}

.exp-template-block--film {
  margin-bottom: 6px;
}

.exp-template-label {
  margin: 0 0 3px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-template-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  color: #e9d5ff;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.exp-templates {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -12px 0;
  padding: 0 12px 1px;
}

.exp-templates::-webkit-scrollbar {
  display: none;
}

.exp-chip,
.exp-template-card {
  flex-shrink: 0;
  border: 1px solid var(--exp-border);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 11px;
  min-height: 34px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}

.exp-chip:active,
.exp-chip.exp-chip--active,
.exp-template-card.exp-template-active {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(45, 212, 191, 0.12);
  color: #a7f3d0;
}

.exp-chip--film {
  border-color: rgba(167, 139, 250, 0.28);
  background: rgba(139, 92, 246, 0.08);
  color: #ddd6fe;
}

.exp-chip--film:active,
.exp-chip--film.exp-chip--active {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(139, 92, 246, 0.18);
  color: #f3e8ff;
}

.exp-chip-divider {
  flex-shrink: 0;
  align-self: center;
  padding: 0 2px;
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  user-select: none;
  pointer-events: none;
}

/* 创作区（Hero 卡片内） */
.exp-compose {
  display: contents;
}

.exp-compose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.exp-compose-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.exp-assist-btn {
  flex-shrink: 0;
  min-height: 32px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 600;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.exp-assist-btn:active:not(:disabled) {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(167, 139, 250, 0.55);
}

.exp-assist-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.exp-prompt-counter {
  margin: -2px 0 0;
  font-size: 10px;
  color: #64748b;
  text-align: right;
}

.exp-compose textarea {
  width: 100%;
  border: 1px solid var(--exp-border);
  border-radius: var(--exp-radius-sm);
  background: rgba(0, 0, 0, 0.28);
  color: #f1f5f9;
  padding: var(--exp-space-2) 10px;
  font-size: 16px;
  line-height: 1.35;
  resize: none;
}

.exp-compose textarea:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.45);
}

.exp-compose textarea::placeholder {
  color: #475569;
  font-size: 13px;
}

.exp-row {
  flex-shrink: 0;
  display: flex;
  gap: 5px;
  align-items: center;
}

.exp-row--2 select {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--exp-border);
  background: rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 7px 6px;
  font-size: 12px;
}

.exp-row--2 select:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.4);
}

/* 项目配乐 */
.exp-bgm-block {
  flex-shrink: 0;
  padding: var(--exp-space-2);
  border-radius: var(--exp-radius-md);
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.1) 0%, rgba(15, 23, 42, 0.55) 48%, rgba(8, 12, 24, 0.75) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.exp-bgm-block--smart {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.12) 0%, rgba(15, 23, 42, 0.55) 50%, rgba(8, 12, 24, 0.75) 100%);
}

.exp-bgm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.exp-bgm-head-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.exp-bgm-title {
  font-size: 12px;
  font-weight: 700;
  color: #ecfdf5;
  letter-spacing: 0.02em;
}

.exp-bgm-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.exp-bgm-block--smart .exp-bgm-badge {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
}

.exp-bgm-now {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.exp-bgm-now-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 15px;
  color: #34d399;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.22), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.exp-bgm-block--smart .exp-bgm-now-icon {
  color: #38bdf8;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.08));
  border-color: rgba(56, 189, 248, 0.25);
}

.exp-bgm-now-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.exp-bgm-now-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.15;
}

.exp-bgm-now-text span {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exp-bgm-preview {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #042f2e;
  background: linear-gradient(135deg, #5eead4, #2dd4bf);
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35);
  cursor: pointer;
}

.exp-bgm-preview:active {
  transform: scale(0.96);
}

.exp-bgm-block--smart .exp-bgm-preview {
  color: #0c4a6e;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.exp-bgm-select-label {
  flex-shrink: 0;
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}

.exp-bgm-tabs {
  display: flex;
  gap: 4px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.exp-bgm-tab {
  border: none;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
}

.exp-bgm-tab--active {
  color: #ecfdf5;
  background: rgba(45, 212, 191, 0.25);
}

.exp-bgm-panel {
  display: flex;
  gap: 6px;
  align-items: center;
}

.exp-bgm-panel select {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--exp-border);
  background: rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
}

.exp-mini-btn {
  flex-shrink: 0;
  border: 1px solid var(--exp-border);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.exp-mini-btn--wide {
  flex: 1;
  text-align: center;
}

.exp-bgm-hint {
  flex: 1;
  min-width: 0;
  margin: 2px 0 0;
  font-size: 9px;
  line-height: 1.3;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-sheet-item--wechat {
  color: #86efac;
  font-weight: 600;
  border-bottom: 1px solid var(--exp-border);
  margin-bottom: 4px;
  padding-bottom: 12px;
}

.exp-share-intro {
  margin: 0 0 10px;
  font-size: 13px;
  color: #cbd5e1;
}

.exp-text-btn--accent {
  color: #86efac;
  width: 64px;
  text-align: right;
}

.exp-result-spacer {
  display: none;
}

.exp-row--3 select {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--exp-border);
  background: rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 7px 6px;
  font-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  text-align-last: center;
}

.exp-row--3 select:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.4);
}

.exp-row--meta {
  justify-content: space-between;
  min-height: 18px;
}

.exp-text-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--exp-cyan);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 0;
  cursor: pointer;
}

.exp-flow-hint {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: auto;
  padding-top: 3px;
  font-size: 9px;
  color: #475569;
}

.exp-flow-hint i {
  width: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.4), transparent);
}

/* ── 底部 Dock ── */
.exp-dock {
  flex-shrink: 0;
  padding: var(--exp-space-2) var(--exp-space-3) calc(var(--exp-space-2) + var(--exp-safe-b));
  border-top: 1px solid var(--exp-border);
  background: rgba(6, 10, 20, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.exp-dock-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.exp-dock-row .exp-primary {
  flex: 1;
  width: auto;
}

.exp-dock.hidden {
  display: none;
}

.exp-primary {
  position: relative;
  width: 100%;
  min-height: var(--exp-touch);
  overflow: hidden;
  border: none;
  border-radius: var(--exp-radius-md);
  padding: 0 var(--exp-space-3);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6, #48c0a3);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
  -webkit-tap-highlight-color: transparent;
}

.exp-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.exp-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.exp-primary-text {
  position: relative;
  z-index: 1;
}

.exp-primary-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: expShine 3s ease-in-out infinite;
}

@keyframes expShine {
  0% { left: -100%; }
  45%, 100% { left: 150%; }
}

.exp-primary--modal {
  margin-top: 6px;
  padding: 10px 14px;
  font-size: 14px;
}

/* ── 进度面板 ── */
.exp-progress-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.exp-progress-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.exp-progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.exp-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.exp-ring-fill {
  fill: none;
  stroke: url(#expRingGrad);
  stroke: var(--exp-teal);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 0.4s ease;
}

.exp-progress-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #f1f5f9;
}

.exp-progress-title {
  font-size: 16px;
  color: #a5f3fc;
  margin-bottom: 6px;
}

.exp-progress-msg {
  margin: 0 0 16px;
  font-size: 12px;
  color: #94a3b8;
  max-width: 260px;
}

.exp-progress-bar {
  width: 100%;
  max-width: 280px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#expProgressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0ea5e9, var(--exp-teal));
  transition: width 0.35s ease;
}

.exp-progress-elapsed {
  margin: 4px 0 0;
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

.exp-progress-cancel {
  margin-top: 14px;
  width: 100%;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  padding: 8px;
}

.exp-progress-cancel:active {
  color: #e2e8f0;
}

/* ── 成片面板 ── */
.exp-result-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.exp-result-top h3 {
  flex: 1;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-result-spacer {
  width: 64px;
  flex-shrink: 0;
}

.exp-video-wrap {
  position: relative;
  flex: 1;
  min-height: min(52vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exp-video {
  width: 100%;
  height: 100%;
  min-height: min(48vh, 380px);
  max-height: 100%;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--exp-border);
  object-fit: contain;
}

.exp-play-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(45, 212, 191, 0.35);
  pointer-events: none;
  z-index: 2;
}

.exp-play-hint.hidden {
  display: none !important;
}

.exp-narration {
  flex-shrink: 0;
  margin: 8px 0;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
  border-left: 2px solid var(--exp-teal);
  background: rgba(255, 255, 255, 0.03);
  max-height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.exp-result-actions {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
}

.exp-action-btn {
  flex: 1;
  border: 1px solid var(--exp-border);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.exp-action-btn--primary {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(45, 212, 191, 0.12);
  color: var(--exp-teal);
}

.exp-modal.hidden {
  display: none !important;
  pointer-events: none !important;
}

.exp-panel--overlay.hidden {
  pointer-events: none !important;
}

  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(2, 6, 23, 0.85);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 520px) {
  .exp-modal {
    align-items: center;
    padding: 20px;
  }
}

.exp-modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 85dvh;
  overflow-y: auto;
  background: rgba(18, 24, 40, 0.98);
  border: 1px solid var(--exp-border);
  border-radius: var(--exp-radius-lg) var(--exp-radius-lg) 0 0;
  padding: var(--exp-space-2) var(--exp-space-3) calc(var(--exp-space-3) + var(--exp-safe-b));
}

@media (min-width: 520px) {
  .exp-modal-card {
    border-radius: 20px;
    padding-bottom: 20px;
  }
}

.exp-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.exp-modal-head h3 {
  margin: 0;
  font-size: 15px;
}

.exp-modal-close {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

.exp-modal-hint {
  font-size: 10px;
  color: #64748b;
  margin: 0 0 8px;
}

.exp-modal-card--assist textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--exp-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: #f1f5f9;
  padding: 8px 10px;
  font-size: 16px;
  line-height: 1.35;
  resize: none;
  margin-bottom: 8px;
}

.exp-modal-card--assist textarea:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.45);
}

.exp-assist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.exp-assist-mode-label {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

.exp-assist-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.exp-assist-mode {
  flex: 1;
  min-width: calc(33% - 5px);
  min-height: 36px;
  border: 1px solid var(--exp-border);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 0 4px;
  border-radius: var(--exp-radius-sm);
  cursor: pointer;
  text-align: center;
}

.exp-assist-mode--active {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(139, 92, 246, 0.16);
  color: #f3e8ff;
}

.exp-assist-chip {
  border: 1px solid var(--exp-border);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.exp-assist-chip:active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(167, 139, 250, 0.4);
  color: #e9d5ff;
}

.exp-assist-error {
  font-size: 12px;
  color: #f87171;
  margin: 0 0 8px;
}

.exp-packages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-package {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--exp-border);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.exp-package strong {
  display: block;
  font-size: 14px;
}

.exp-package span {
  font-size: 11px;
  color: #94a3b8;
}

.exp-package em {
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  color: var(--exp-teal);
}

.exp-pay-dev {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--exp-border);
}

.exp-pay-order {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 10px;
}

.exp-share-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #cbd5e1;
}

.exp-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--exp-dock-h) + var(--exp-safe-b) + 12px);
  transform: translateX(-50%);
  z-index: 9500;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(12, 18, 32, 0.96);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: #f1f5f9;
  font-size: 13px;
  text-align: center;
}

.exp-secondary {
  border: 1px solid var(--exp-border);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* 小屏手机 */
@media (max-width: 519px) and (orientation: portrait) {
  .exp-flow-hint {
    display: none;
  }
}

@media (max-height: 680px) and (orientation: portrait) {
  .exp-m-card--hero textarea {
    min-height: 52px;
    max-height: 72px;
  }

  .exp-bgm-now-text span {
    display: none;
  }
}

/* 桌面：仍保持一屏，略放宽 */
@media (min-height: 700px) and (min-width: 520px) {
  .exp-compose textarea {
    max-height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exp-primary-shine {
    animation: none;
  }
  .exp-panel {
    transition: none;
  }
}

.exp-sheet-item--formal {
  color: #93c5fd;
  font-weight: 600;
}

.exp-full-platform-link {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  color: #93c5fd;
  text-decoration: none;
  line-height: 1.4;
}

.exp-full-platform-link:active {
  color: #bfdbfe;
}

.exp-dock {
  flex-direction: column;
  align-items: stretch;
}

/* 微信 / 朋友圈图标 */
.exp-menu-icon,
.exp-wx-icon,
.exp-wx-icon-inline {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.exp-menu-icon {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.exp-wx-icon,
.exp-wx-icon-inline {
  border-radius: 4px;
}

.exp-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.exp-sheet-item--wechat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exp-share-icon-btn {
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  line-height: 0;
  border-radius: 8px;
}

.exp-share-icon-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

/* 横屏 / 竖屏自适应 */
@media (orientation: landscape) and (max-height: 520px) {
  .exp-app {
    max-width: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: stretch;
  }

  .exp-topbar {
    width: 100%;
    flex: 0 0 var(--exp-topbar-h);
  }

  .exp-stage {
    flex: 1 1 55%;
    min-width: 0;
    min-height: 0;
  }

  .exp-dock {
    flex: 0 0 168px;
    width: 168px;
    border-top: none;
    border-left: 1px solid var(--exp-border);
    display: flex;
    align-items: center;
    padding: 12px;
  }

  .exp-dock-row {
    flex-direction: column;
    height: 100%;
    width: 100%;
    gap: 10px;
  }

  .exp-dock .exp-voice-btn--dock {
    width: 100%;
    min-height: 52px;
    flex-direction: row;
    gap: 6px;
  }

  .exp-dock .exp-primary {
    height: 100%;
    min-height: 120px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.08em;
    padding: 16px 12px;
  }

  .exp-panel {
    padding: 8px 12px 6px;
  }

  .exp-compose textarea {
    min-height: 56px;
    max-height: 72px;
  }

  .exp-bgm-block {
    padding: 8px;
  }

  .exp-flow-hint {
    display: none;
  }

  .exp-progress-center {
    padding: 8px;
  }

  .exp-progress-ring {
    width: 96px;
    height: 96px;
    margin-bottom: 12px;
  }

  .exp-video-wrap {
    max-height: calc(100dvh - var(--exp-topbar-h) - 100px);
  }

  .exp-result-actions {
    gap: 4px;
  }
}

@media (orientation: portrait) {
  .exp-app {
    flex-direction: column;
  }

  .exp-dock {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--exp-border);
  }

  .exp-dock .exp-primary {
    writing-mode: horizontal-tb;
    height: auto;
    min-height: 0;
  }
}

/* ── 惊艳体验增强 ── */
.exp-compose-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-voice-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--exp-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.exp-voice-btn--dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 84px;
  min-height: var(--exp-touch);
  padding: 8px 12px;
  border-radius: var(--exp-radius-md);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  color: var(--exp-text);
  -webkit-tap-highlight-color: transparent;
}

.exp-voice-btn--dock:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.exp-voice-icon {
  font-size: 18px;
  line-height: 1;
}

.exp-voice-label {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--exp-muted);
  line-height: 1.2;
  white-space: nowrap;
}

.exp-voice-btn--dock.exp-voice-btn--active .exp-voice-label {
  color: #f87171;
}

body.exp-voice-lock {
  overflow: hidden;
  touch-action: none;
}

.exp-voice-btn--active {
  border-color: rgba(248, 113, 113, 0.6);
  background: rgba(248, 113, 113, 0.15);
  animation: expVoicePulse 1s ease infinite;
}

@keyframes expVoicePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.exp-cinema-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 0;
  margin-top: 4px;
}

.exp-cinema-tags:empty {
  display: none;
}

.exp-cinema-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.25);
  animation: expTagIn 0.35s ease;
}

@keyframes expTagIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.exp-prod-timeline {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  width: 100%;
  max-width: 280px;
}

.exp-prod-timeline li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #475569;
  padding: 5px 0;
  transition: color 0.2s;
}

.exp-prod-timeline li span {
  width: 22px;
  text-align: center;
}

.exp-prod-timeline li.exp-prod-timeline--active {
  color: #5eead4;
  font-weight: 600;
}

.exp-prod-timeline li.exp-prod-timeline--done {
  color: #64748b;
}

.exp-progress-narr {
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
  max-width: 300px;
  margin: 0 0 8px;
  max-height: 48px;
  overflow: hidden;
}

.exp-director-board {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 42vh;
  overflow-y: auto;
}

.exp-director-shot {
  border: 1px solid var(--exp-border);
  border-radius: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.exp-director-shot-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
  color: #94a3b8;
}

.exp-director-shot strong {
  display: block;
  font-size: 13px;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.exp-director-shot p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
}

.exp-director-synopsis {
  font-size: 12px;
  line-height: 1.45;
  color: #cbd5e1;
  margin: 0 0 10px;
}

.exp-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.exp-compare-col {
  border: 1px solid var(--exp-border);
  border-radius: 10px;
  padding: 10px;
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
}

.exp-compare-col strong {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: #cbd5e1;
}

.exp-compare-col--us {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(45, 212, 191, 0.08);
}

.exp-compare-col--us strong {
  color: #5eead4;
}

.exp-cert-badge {
  text-align: center;
  font-size: 11px;
  color: #5eead4;
  margin: 6px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.06);
}
