/* ========== ClipAI Design Tokens & Base ========== */
/* 包含：CSS 变量 / Reset / 排版 / 容器 / 工具类 / 动画关键帧 */

:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #252525;
  --bg-elevated: #2a2a2a;
  --fg-primary: #f0f0f0;
  --fg-secondary: #a0a0a0;
  --fg-muted: #6e6e6e;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-bg: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --success: #22c55e;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --shadow: rgba(0, 0, 0, 0.4);
  --font-display: 'Noto Serif SC', 'Georgia', 'Crimson Text', serif;
  --font-body: 'Noto Sans SC', 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-fast: 0.1s;
  --transition-normal: 0.2s;
  --transition-slow: 0.3s;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--fg-primary);
  line-height: 1.6;
  letter-spacing: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 容器 */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 通用区块标题 */
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 48px;
}

/* 工具类 */
.hidden {
  display: none !important;
}

/* 动画关键帧 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 900px) {
  .section-title { font-size: 28px; }
}

@media (max-width: 640px) {
  .section-title { font-size: 26px; }
}

/* ========== ClipAI Shared Components ========== */
/* 导航 / 按钮 / 拖拽上传 / 预览 / 配置面板 / 进度 / 结果 / 页脚 / 视频背景 + 光效 */

/* ----- 导航栏 ----- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-slow);
}

.nav-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}

.brand-icon {
  width: 24px; height: 24px; color: var(--accent);
}

.brand-name {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--fg-primary);
}

.nav-links {
  display: flex; gap: 8px;
}

.nav-link {
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--fg-secondary); text-decoration: none;
  padding: 6px 14px; border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover { color: var(--fg-primary); background: var(--bg-tertiary); }
.nav-link.active { color: var(--accent); background: var(--accent-bg); }

/* ----- 按钮 ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  padding: 12px 24px; border-radius: var(--radius-md); border: none; cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none; min-height: 44px; min-width: 44px;
  position: relative; overflow: hidden;
}

.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--accent); color: #0f0f0f;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px rgba(245,158,11,0.3), 0 0 50px rgba(245,158,11,0.12);
}

.btn-ghost {
  background: var(--bg-tertiary); color: var(--fg-primary); border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--border-hover); }

.btn-large {
  padding: 14px 32px; font-size: 16px; width: 100%; max-width: 320px;
}

.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

.btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.2); border-top-color: currentColor;
  border-radius: 50%; animation: spin 0.8s linear infinite; display: none;
}

.btn.loading .btn-spinner { display: block; }
.btn.loading .btn-text { opacity: 0.7; }

/* ----- 拖拽上传区 ----- */
.dropzone {
  position: relative;
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 56px 32px; text-align: center;
  transition: border-color var(--transition-normal), background var(--transition-normal);
  cursor: pointer; background: var(--bg-primary);
}

.dropzone:hover { border-color: var(--border-hover); background: var(--bg-tertiary); }
.dropzone.drag-active { border-color: var(--accent); background: var(--accent-bg); }
.dropzone.drag-active .dropzone-content { opacity: 0; }
.dropzone.drag-active .dropzone-dragover { opacity: 1; }

.dropzone-content { transition: opacity var(--transition-normal); }

.dropzone-icon {
  width: 64px; height: 64px; color: var(--fg-muted); margin: 0 auto 20px;
  transition: color var(--transition-normal), transform var(--transition-slow);
}

.dropzone:hover .dropzone-icon { color: var(--accent); transform: translateY(-4px); }

.dropzone-text { font-size: 16px; color: var(--fg-primary); margin-bottom: 8px; }
.dropzone-browse { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.dropzone-hint { font-size: 13px; color: var(--fg-muted); letter-spacing: 0.01em; }

.dropzone-dragover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transition: opacity var(--transition-normal); pointer-events: none;
  color: var(--accent); font-weight: 600; font-size: 18px;
}

.dropzone-dragover svg {
  width: 48px; height: 48px;
  animation: bounceDown 0.6s ease-in-out infinite alternate;
}

@keyframes bounceDown {
  from { transform: translateY(-6px); }
  to { transform: translateY(6px); }
}

/* ----- 预览面板 ----- */
.preview-panel {
  margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-primary);
  animation: fadeSlideUp 0.4s ease-out;
}

.video-preview { position: relative; aspect-ratio: 16/9; background: var(--bg-tertiary); }
.video-preview video { width: 100%; height: 100%; object-fit: contain; display: block; }

.video-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.7); color: var(--fg-secondary);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-sm);
}

.video-info { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.video-name { font-size: 15px; font-weight: 500; color: var(--fg-primary); }
.video-meta { font-size: 13px; color: var(--fg-muted); letter-spacing: 0.01em; }

/* ----- 配置面板 ----- */
.config-panel {
  margin-top: 32px; padding: 32px; border-radius: var(--radius-lg);
  background: var(--bg-primary); border: 1px solid var(--border);
  animation: fadeSlideUp 0.4s ease-out 0.1s both;
  box-shadow: 0 0 0 1px rgba(245,158,11,0.04), 0 4px 24px rgba(0,0,0,0.3);
}

.config-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  margin-bottom: 28px; letter-spacing: -0.01em;
}

.config-row { margin-bottom: 24px; }
.config-row:last-of-type { margin-bottom: 32px; }

.config-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--fg-secondary);
  letter-spacing: 0.02em; margin-bottom: 10px; text-transform: uppercase;
}

.config-hint { font-size: 13px; color: var(--fg-muted); margin-top: 8px; line-height: 1.5; }

/* 分段选择器 */
.segmented-control { display: inline-flex; background: var(--bg-tertiary); border-radius: var(--radius-md); padding: 4px; gap: 4px; }

.segment {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 8px 16px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--fg-secondary); cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast); min-height: 40px;
}

.segment:hover { color: var(--fg-primary); }

.segment.active {
  background: var(--bg-elevated); color: var(--fg-primary);
  box-shadow: 0 1px 3px var(--shadow), 0 0 15px rgba(245,158,11,0.15);
}

/* 风格药丸 */
.style-pills { display: flex; gap: 8px; flex-wrap: wrap; }

.pill {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 8px 18px; border: 1px solid var(--border); border-radius: 100px;
  background: transparent; color: var(--fg-secondary); cursor: pointer;
  transition: all var(--transition-fast); min-height: 40px;
}

.pill:hover { border-color: var(--border-hover); color: var(--fg-primary); }

.pill.active {
  background: var(--accent-bg); border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 15px rgba(245,158,11,0.15);
}

/* 时长输入 */
.duration-input { display: inline-flex; align-items: center; gap: 8px; }

.duration-input input {
  width: 120px; padding: 10px 14px; font-size: 15px; font-family: var(--font-body);
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--fg-primary); outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.duration-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15), 0 0 20px rgba(245,158,11,0.08);
}

.duration-input input::placeholder { color: var(--fg-muted); }
.duration-unit { font-size: 14px; color: var(--fg-muted); }

/* 开关 */
.switches { display: flex; flex-direction: column; gap: 14px; }

.switch {
  display: flex; align-items: center; gap: 14px; cursor: pointer; user-select: none; min-height: 44px;
}

.switch input { appearance: none; width: 0; height: 0; opacity: 0; }

.switch-track {
  position: relative; width: 44px; height: 24px;
  background: var(--bg-tertiary); border-radius: 12px; border: 1px solid var(--border);
  transition: background var(--transition-normal), border-color var(--transition-normal); flex-shrink: 0;
}

.switch-thumb {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  background: var(--fg-secondary); border-radius: 50%;
  transition: transform var(--transition-normal), background var(--transition-normal);
}

.switch input:checked + .switch-track {
  background: var(--accent-bg); border-color: var(--accent);
  box-shadow: 0 0 10px rgba(245,158,11,0.2);
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(20px); background: var(--accent);
}

.switch-label { font-size: 15px; color: var(--fg-primary); }

/* 指令输入框 */
.instruction-input {
  width: 100%; padding: 14px 16px; font-size: 15px; font-family: var(--font-body);
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--fg-primary); outline: none;
  resize: vertical; min-height: 80px; line-height: 1.6;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.instruction-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15), 0 0 20px rgba(245,158,11,0.08);
}

.instruction-input::placeholder { color: var(--fg-muted); font-style: italic; }

/* ----- 进度面板 ----- */
.progress-panel {
  margin-top: 32px; padding: 48px 32px; border-radius: var(--radius-lg);
  background: var(--bg-primary); border: 1px solid var(--border);
  text-align: center; animation: fadeIn 0.3s ease-out;
}

.progress-ring { position: relative; width: 120px; height: 120px; margin: 0 auto 24px; }
.progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.progress-track {
  fill: none; stroke: var(--bg-tertiary); stroke-width: 6; stroke-linecap: round;
}

.progress-bar {
  fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease-out;
  filter: drop-shadow(0 0 5px rgba(245,158,11,0.5));
}

.progress-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px;
}

.progress-percent {
  font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--fg-primary); line-height: 1;
}

.progress-unit { font-size: 14px; color: var(--fg-muted); align-self: center; }
.progress-message { font-size: 15px; color: var(--fg-secondary); margin-bottom: 32px; }

.progress-steps { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.step {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-muted);
  transition: color var(--transition-normal);
}

.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-tertiary); font-size: 11px; font-weight: 600;
  transition: background var(--transition-normal), color var(--transition-normal);
}

.step.active { color: var(--accent); }
.step.active .step-num { background: var(--accent); color: #0f0f0f; }
.step.done { color: var(--success); }
.step.done .step-num { background: var(--success); color: #0f0f0f; }

/* ----- 结果面板 ----- */
.result-panel {
  margin-top: 32px; padding: 40px 32px; border-radius: var(--radius-lg);
  background: var(--bg-primary); border: 1px solid var(--border);
  text-align: center; animation: fadeSlideUp 0.5s ease-out;
  box-shadow: 0 0 0 1px rgba(34,197,94,0.06), 0 4px 24px rgba(0,0,0,0.3);
}

.result-success { margin-bottom: 28px; }

.result-check {
  width: 56px; height: 56px; color: var(--success); margin-bottom: 16px;
  animation: scaleIn 0.4s ease-out;
  filter: drop-shadow(0 0 15px rgba(34,197,94,0.5));
}

.result-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.result-desc { font-size: 15px; color: var(--fg-secondary); line-height: 1.6; }

.result-video {
  margin: 24px 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-tertiary);
  max-width: 560px; margin-left: auto; margin-right: auto;
}

.result-video video { width: 100%; display: block; }
.result-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ----- 错误面板 ----- */
.error-panel {
  margin-top: 32px; padding: 40px 32px; border-radius: var(--radius-lg);
  background: var(--bg-primary); border: 1px solid rgba(239,68,68,0.3);
  text-align: center; animation: fadeSlideUp 0.4s ease-out;
  box-shadow: 0 0 0 1px rgba(239,68,68,0.06), 0 4px 24px rgba(0,0,0,0.3);
}

.error-icon { width: 48px; height: 48px; color: var(--danger); margin-bottom: 16px; }
.error-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.error-desc { font-size: 14px; color: var(--fg-secondary); margin-bottom: 20px; }

/* ----- 页脚 ----- */
.footer { padding: 40px 0; text-align: center; border-top: 1px solid var(--border); color: var(--fg-muted); font-size: 14px; }
.footer-meta { margin-top: 4px; font-size: 12px; color: var(--fg-muted); opacity: 0.6; }

/* ----- 视频背景 + 光效（共享）---- */
.video-bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f1a 100%);
}

.video-bg video {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.3; transition: opacity 1s ease;
}

.video-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,15,0.55) 0%, rgba(15,15,15,0.35) 40%, rgba(15,15,15,0.75) 100%);
  backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px);
}

/* Dropzone hover 光晕 */
.dropzone:hover {
  box-shadow: 0 0 0 1px rgba(245,158,11,0.25), 0 0 50px rgba(245,158,11,0.06);
}

/* 导航底部微光 */
.navbar { border-bottom: 1px solid rgba(245,158,11,0.05); }

/* ----- 响应式 ----- */
@media (max-width: 640px) {
  .navbar { padding: 0 16px; }
  .nav-links { gap: 4px; }
  .nav-link { padding: 6px 10px; font-size: 13px; }
  .config-panel { padding: 24px 20px; }
  .segmented-control { width: 100%; }
  .segment { flex: 1; padding: 8px 10px; font-size: 13px; }
  .progress-steps { gap: 10px; }
  .step { font-size: 12px; }
  .result-actions { flex-direction: column; align-items: center; }
  .result-actions .btn { width: 100%; max-width: 280px; }
}

/* ========== ClipAI Studio — 高级感样式 ========== */
/* 动效背景 + 玻璃态卡片 + 光效粒子 + 丝滑滚动导航 */

:root {
  --studio-nav-height: 64px;
  --studio-glass-bg: rgba(15, 15, 15, 0.6);
  --studio-glass-border: rgba(255, 255, 255, 0.06);
  --studio-glass-border-hover: rgba(255, 255, 255, 0.12);
  --studio-glow-accent: rgba(245, 158, 11, 0.4);
  --studio-glow-blue: rgba(59, 130, 246, 0.3);
  --studio-glow-purple: rgba(139, 92, 246, 0.25);
}

/* ====== 动效视频背景 ====== */
.studio-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: linear-gradient(150deg, #0f0c29 0%, #1a1a3e 40%, #24243e 100%);
}

.studio-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(1.2) brightness(0.7);
}

.studio-bg-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(15,15,15,0.3) 0%, rgba(15,15,15,0.6) 100%);
}

.studio-bg-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ====== 浮动光粒子 ====== */
.light-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.light-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.4; }
  100% { transform: translate(var(--tx), var(--ty)) scale(1.5); opacity: 0; }
}

/* ====== 导航栏 — 丝滑滚动变换 ====== */
.studio-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 48px);
  max-width: 1100px;
  border-radius: 20px;
  transition: 
    background 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(15, 15, 15, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.studio-nav.scrolled {
  top: 0;
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  background: rgba(15, 15, 15, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.studio-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--studio-nav-height);
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.studio-brand-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.studio-brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
}

.studio-nav-links {
  display: flex;
  gap: 4px;
}

.studio-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 10px;
  transition: color 0.3s, background 0.3s;
  position: relative;
}

.studio-nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.studio-nav-link:hover {
  color: var(--fg-primary);
}

.studio-nav-link.active {
  color: var(--accent);
}

.studio-nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.studio-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0f0f0f;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 12px;
  background: var(--accent);
  transition: background 0.3s, box-shadow 0.3s, transform 0.15s;
}

.studio-nav-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--studio-glow-accent);
  transform: translateY(-1px);
}

.studio-nav-cta:active {
  transform: translateY(0) scale(0.97);
}

.studio-nav-cta svg {
  width: 16px;
  height: 16px;
}

.studio-nav-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--studio-glow-blue), var(--studio-glow-purple), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.studio-nav.scrolled .studio-nav-glow {
  opacity: 1;
}

/* ====== Hero 主视觉 ====== */
.studio-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 140px 48px 80px;
  overflow: hidden;
}

.studio-hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orb-1 {
  width: 600px;
  height: 600px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
  animation: orbPulse 12s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  bottom: -5%;
  left: -8%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 60%);
  animation: orbPulse 10s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
  animation: orbPulse 8s ease-in-out infinite 2s;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

.studio-hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  text-align: center;
}

.studio-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-secondary);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 32px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--studio-glow-accent);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.studio-hero-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero-line-reveal {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: revealLine 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.hero-line-reveal.accent {
  color: var(--accent);
  text-shadow: 0 0 40px var(--studio-glow-accent), 0 0 80px rgba(245, 158, 11, 0.15);
}

@keyframes revealLine {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.studio-hero-desc {
  font-size: 17px;
  color: var(--fg-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.studio-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Studio 按钮 */
.studio-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.3s;
}

.studio-btn:active {
  transform: scale(0.97);
}

.studio-btn-primary {
  background: var(--accent);
  color: #0f0f0f;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.studio-btn-primary:hover {
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.studio-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--fg-primary);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.studio-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.studio-btn-icon {
  width: 20px;
  height: 20px;
}

.studio-btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Hero 视觉元素 */
.studio-hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 360px;
  pointer-events: none;
}

.studio-hero-float-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-card-inner {
  position: relative;
  width: 200px;
  height: 240px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow: hidden;
  animation: floatCard 6s ease-in-out infinite;
}

.float-card-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.2));
  animation: waveMove 3s ease-in-out infinite;
}

.float-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), transparent, rgba(139, 92, 246, 0.2));
  z-index: -1;
  filter: blur(10px);
  animation: glowShift 4s ease-in-out infinite;
}

.float-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--fg-secondary);
  font-size: 13px;
}

.float-card-content svg {
  width: 40px;
  height: 40px;
  color: var(--accent);
  animation: floatCardIcon 2s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes waveMove {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glowShift {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes floatCardIcon {
  from { transform: scale(1) rotate(0deg); }
  to { transform: scale(1.1) rotate(10deg); }
}

.studio-hero-float-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  left: 50%;
  top: 50%;
  animation: ringSpin 20s linear infinite;
}

.ring-1 {
  width: 280px;
  height: 280px;
  margin-left: -140px;
  margin-top: -140px;
}

.ring-2 {
  width: 340px;
  height: 340px;
  margin-left: -170px;
  margin-top: -170px;
  animation-direction: reverse;
  animation-duration: 25s;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

/* ====== 工具卡片区域 ====== */
.studio-tools {
  position: relative;
  padding: 100px 0;
  background: rgba(15, 15, 15, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.studio-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.studio-section-title {
  text-align: center;
  margin-bottom: 64px;
}

.section-title-accent {
  font-family: var(--font-display);
  display: block;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  margin-bottom: 12px;
}

.section-title-sub {
  display: block;
  font-size: 16px;
  color: var(--fg-secondary);
  font-weight: 400;
}

.studio-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 工具卡片 */
.studio-tool-card {
  position: relative;
  padding: 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s,
              box-shadow 0.4s;
}

.studio-tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 40px rgba(139, 92, 246, 0.08),
              0 0 80px rgba(59, 130, 246, 0.04);
}

.tool-card-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
    rgba(139, 92, 246, 0.12) 0%, 
    transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.studio-tool-card:hover .tool-card-bg {
  opacity: 1;
}

.tool-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.15), 
    transparent 40%,
    transparent 60%,
    rgba(245, 158, 11, 0.1));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.studio-tool-card:hover .tool-card-glow {
  opacity: 1;
}

.tool-card-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: background 0.4s, transform 0.4s;
}

.studio-tool-card:hover .tool-card-icon {
  background: rgba(139, 92, 246, 0.25);
  transform: scale(1.05);
}

.tool-card-icon svg {
  width: 22px;
  height: 22px;
}

.tool-card-title {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--fg-primary);
}

.tool-card-desc {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-card-tags {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tool-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--fg-muted);
  transition: all 0.3s;
}

.studio-tool-card:hover .tool-tag {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--fg-secondary);
}

.tool-card-line {
  position: relative;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
  border-radius: 1px;
  transition: background 0.4s;
}

.studio-tool-card:hover .tool-card-line {
  background: linear-gradient(90deg, var(--accent), var(--studio-glow-purple), transparent);
}

/* ====== 上传区域 ====== */
.studio-upload {
  position: relative;
  padding: 100px 0;
  background: rgba(15, 15, 15, 0.3);
}

.studio-dropzone {
  background: rgba(255, 255, 255, 0.03) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  border: 2px dashed rgba(255, 255, 255, 0.08) !important;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s !important;
}

.studio-dropzone:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.08) !important;
}

.studio-dropzone.drag-active {
  border-color: var(--accent) !important;
  background: rgba(245, 158, 11, 0.08) !important;
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.15) !important;
}

.dropzone-glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--studio-glow-purple), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.studio-dropzone.drag-active .dropzone-glow-ring {
  opacity: 1;
  animation: glowRingPulse 1.5s ease-in-out infinite;
}

@keyframes glowRingPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ====== 创作流程 ====== */
.studio-showcase {
  position: relative;
  padding: 100px 0;
  background: rgba(15, 15, 15, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.studio-workflow {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.studio-workflow::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--studio-glow-purple), transparent);
}

.workflow-item {
  position: relative;
  display: flex;
  gap: 28px;
  padding-bottom: 48px;
}

.workflow-item:last-child {
  padding-bottom: 0;
}

.workflow-num {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-secondary);
  z-index: 1;
  transition: border-color 0.4s, color 0.4s, box-shadow 0.4s;
}

.workflow-item:hover .workflow-num {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.workflow-content {
  padding-top: 6px;
}

.workflow-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--fg-primary);
}

.workflow-desc {
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.6;
}

/* ====== 页脚 ====== */
.studio-footer {
  position: relative;
  padding: 48px 24px 32px;
  background: rgba(15, 15, 15, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.studio-footer-content {
  max-width: 1100px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.studio-footer-brand p {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 8px;
}

.studio-footer-links {
  display: flex;
  gap: 24px;
}

.studio-footer-links a {
  font-size: 14px;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.studio-footer-links a:hover {
  color: var(--fg-primary);
}

.studio-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.5;
}

/* ====== 响应式 ====== */
@media (max-width: 900px) {
  .studio-tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .studio-hero-title {
    font-size: 44px;
  }

  .studio-hero-visual {
    position: absolute;
    right: 50%;
    top: 55%;
    transform: translate(50%, -50%) scale(0.55);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
  }

  .studio-hero-content {
    position: relative;
    z-index: 1;
  }

  .studio-nav {
    width: calc(100% - 24px);
    top: 8px;
  }
}

@media (max-width: 640px) {
  .studio-tool-grid {
    grid-template-columns: 1fr;
  }

  .studio-hero-title {
    font-size: 32px;
  }

  .studio-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .studio-nav-links {
    gap: 0;
  }

  .studio-nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }

  .studio-nav-cta span {
    display: none;
  }

  .studio-nav-cta {
    padding: 8px 12px;
  }

  .studio-hero {
    padding: 120px 20px 60px;
  }

  .float-card-inner {
    width: 160px;
    height: 200px;
  }

  .studio-workflow {
    padding-left: 32px;
  }

  .studio-footer-content {
    flex-direction: column;
    gap: 24px;
  }
}

.subtitle-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.25s ease-out;
}
.subtitle-modal {
  width: 95vw; max-width: 1000px; max-height: 88vh;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: fadeSlideUp 0.3s ease-out;
}
.subtitle-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.subtitle-modal-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
}
.subtitle-modal-close {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border);
  color: var(--fg-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: all var(--transition-fast);
}
.subtitle-modal-close:hover {
  background: var(--bg-tertiary); color: var(--fg-primary);
}
.subtitle-modal-body {
  flex: 1; overflow-y: auto; padding: 16px 24px;
}

/* ===== 效果预览弹出框 ===== */
.effect-preview-tooltip {
  position: fixed;
  z-index: 2000;
  pointer-events: none;
  background: rgba(20,20,30,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: fadeIn 0.15s ease-out;
  text-align: center;
}
.effect-preview-tooltip .preview-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 10px;
}
.effect-preview-tooltip .preview-text {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  padding: 8px 0;
  border-radius: 6px;
}

/* ===== 字幕行 ===== */
.subtitle-row {
  display: grid;
  grid-template-columns: 100px 1fr 240px;
  gap: 12px; align-items: start;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}
.subtitle-row:hover { background: var(--bg-secondary); }
.subtitle-time {
  font-family: monospace; font-size: 11px;
  color: var(--fg-muted); padding-top: 10px;
  white-space: nowrap;
}
.subtitle-text-input {
  width: 100%; min-height: 40px;
  padding: 8px 12px; font-size: 14px;
  font-family: var(--font-body);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg-primary);
  resize: vertical; outline: none;
  transition: border-color var(--transition-fast);
}
.subtitle-text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.subtitle-effects {
  display: flex; flex-direction: column; gap: 5px;
}

/* ===== 效果选择器 ===== */
.subtitle-effect-select {
  width: 100%; padding: 5px 8px; font-size: 12px;
  font-family: var(--font-body);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg-primary); outline: none; cursor: pointer;
  transition: border-color var(--transition-fast);
}
.subtitle-effect-select:hover {
  border-color: var(--accent);
}
.subtitle-effect-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(245,158,11,0.2);
}
.subtitle-effect-select option {
  background: var(--bg-primary);
  color: var(--fg-primary);
}

/* ===== 预设按钮 ===== */
.subtitle-preset-btn {
  font-size: 11px; font-weight: 500;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent; color: var(--fg-secondary);
  cursor: pointer; white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
}
.subtitle-preset-btn:hover {
  border-color: var(--border-hover); color: var(--fg-primary);
  background: var(--bg-tertiary);
}
.subtitle-preset-btn.active {
  background: var(--accent-bg); border-color: var(--accent); color: var(--accent);
}

/* ===== 预设悬停预览 ===== */
.preset-preview-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.subtitle-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; gap: 12px; justify-content: flex-end;
  align-items: center;
}
.subtitle-bulk-row {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 12px 0; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.subtitle-bulk-label {
  font-size: 13px; font-weight: 600;
  color: var(--fg-secondary); white-space: nowrap;
  margin-right: 4px;
}

/* ===== 实时预览行 ===== */
.subtitle-live-preview {
  margin-top: 12px; padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 18px; font-weight: 600;
  text-align: center;
  font-family: var(--font-body);
  min-height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .subtitle-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .subtitle-time { padding-top: 0; }
  .subtitle-effects { flex-direction: row; flex-wrap: wrap; }
  .subtitle-modal { max-height: 95vh; }
  .subtitle-row { grid-template-columns: 1fr; }
  .effect-preview-tooltip { display: none !important; }
}

