/* 基础变量 - 基于原Tailwind配置 */
:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --emerald-50: #ecfdf5;
  --emerald-500: #10b981;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-200: #a5f3fc;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-600: #4f46e5;
  --violet-50: #f5f3ff;
  --violet-600: #7c3aed;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-600: #e11d48;
  --pink-50: #fdf2f8;
  --pink-600: #db2777;
  --radius: 0.625rem;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  line-height: 1.5;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: white;
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* WebView: 向下移动 header 以避免被系统 UI 遮挡 */
body.is-webview .header {
  padding-top: env(safe-area-inset-top, 0);
  margin-top: env(safe-area-inset-top, 0);
}

/* 如果 safe-area-inset-top 不可用，使用固定值 */
@supports not (padding-top: env(safe-area-inset-top)) {
  body.is-webview .header {
    padding-top: 1.5rem;
  }
}

/* 移动端 WebView 需要更多空间 */
@media (max-width: 768px) {
  body.is-webview .header {
    padding-top: calc(env(safe-area-inset-top, 0) + 1rem);
  }
  
  @supports not (padding-top: env(safe-area-inset-top)) {
    body.is-webview .header {
      padding-top: 2rem;
    }
  }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon-gradient {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(to bottom right, var(--purple-600), var(--blue-600));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text-ai {
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--slate-900);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 移动端：显示按钮文案并优化布局 */
@media (max-width: 768px) {
  .header-actions {
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
  }
  
  /* 移动端显示按钮文案（覆盖hidden-sm） */
  .header-actions .hidden-sm {
    display: inline !important;
  }
  
  /* 优化按钮样式，确保文案和图标都能显示 */
  .header-actions .btn-ghost,
  .header-actions .btn-gradient {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.1rem 0.1rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
  }
  
  /* 隐藏公众号链接，为按钮腾出空间 */
  .header-actions .info-link.wechat-link {
     
  }
  
  /* 确保logo区域可以收缩 */
  .logo-group {
    flex-shrink: 1;
    min-width: 0;
  }
  
  .logo-title {
    font-size: 1rem;
  }
  
  /* 下载提醒容器不收缩 */
  .header-actions .download-tip-container {
    flex-shrink: 0;
  }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  color: var(--slate-700);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-ghost:hover {
  background: var(--slate-100);
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.hidden-sm {
  display: none;
}

@media (min-width: 640px) {
  .hidden-sm {
    display: inline;
  }
}

.btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(to right, var(--purple-600), var(--blue-600));
  border: none;
  border-radius: var(--radius);
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-gradient:hover {
  background: linear-gradient(to right, var(--purple-700), var(--blue-700));
}

.download-tip-container {
  position: relative;
}

.download-tip-popup {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  display: none;
  z-index: 50;
  max-width: 400px;
  min-width: 300px;
}

.download-tip-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* PC端：图片更大更清晰 */
@media (min-width: 768px) {
  .download-tip-popup {
    max-width: 500px;
    min-width: 400px;
    padding: 1rem;
  }
  
  .download-tip-image {
    min-width: 400px;
  }
}

/* 移动端：适配小屏幕 */
@media (max-width: 767px) {
  .download-tip-popup {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90vw;
    min-width: 280px;
    padding: 0.5rem;
  }
  
  .download-tip-image {
    min-width: 280px;
  }
}

.download-tip-container:hover .download-tip-popup {
  display: block;
}

.tip-title {
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.tip-text {
  font-size: 0.75rem;
  color: var(--slate-600);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 0;
}

.step-section {
  display: none;
}

.step-section.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

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

/* Upload Section */
.upload-container {
  max-width: 42rem;
  margin: 0 auto;
}

.space-y-8 > * + * {
  margin-top: 1.25rem;
}

@media (max-width: 768px) {
  .space-y-8 > * + * {
    margin-top: 1rem;
  }
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .space-y-4 > * + * {
    margin-top: 0.875rem;
  }
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .space-y-3 > * + * {
    margin-top: 0.5rem;
  }
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .space-y-2 > * + * {
    margin-top: 0.375rem;
  }
}

.text-center {
  text-align: center;
}

.badge-gradient {
  display: inline-block;
  background: linear-gradient(to right, var(--purple-500), var(--blue-500));
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .badge-gradient {
    padding: 0.3125rem 0.75rem;
    font-size: 0.75rem;
  }
}

.upload-main-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--slate-900);
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .upload-main-title {
    font-size: 1rem;
    white-space: normal;
    line-height: 1.4;
  }
}

.upload-subtitle-text {
  font-size: 0.9375rem;
  color: var(--slate-600);
}

@media (max-width: 768px) {
  .upload-subtitle-text {
    font-size: 0.875rem;
  }
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.tag-gradient {
  padding: 0.375rem 0.875rem;
  background: linear-gradient(to right, var(--purple-500), var(--blue-500));
  color: white;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .tag-gradient {
    padding: 0.3125rem 0.75rem;
    font-size: 0.75rem;
  }
}

.upload-button {
  width: 100%;
  position: relative;
  padding: 1.5rem;
  border: 2px dashed var(--slate-300);
  border-radius: 0.75rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .upload-button {
    padding: 1.25rem;
    min-height: 160px;
  }
}

.upload-button:hover {
  border-color: var(--purple-500);
  background: var(--purple-50);
}

.upload-button-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.upload-icon-box {
  width: 3rem;
  height: 3rem;
  background: var(--purple-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.upload-button:hover .upload-icon-box {
  background: var(--purple-200);
}

.upload-icon-svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--purple-600);
}

.upload-text {
  text-align: center;
}

.upload-text-main {
  font-weight: 600;
  color: var(--slate-900);
}

.upload-text-hint {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.download-notice-box {
  background: linear-gradient(to right, var(--amber-50), var(--orange-50));
  border: 1px solid var(--amber-200);
  border-radius: 0.75rem;
  padding: 1rem;
}

@media (max-width: 768px) {
  .download-notice-box {
    padding: 0.875rem;
  }
}

.download-notice-content {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

@media (max-width: 768px) {
  .download-notice-content {
    gap: 0.75rem;
  }
}

.download-notice-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--amber-500);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .download-notice-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }
}

.download-notice-text {
  flex: 1;
}

.download-notice-title {
  font-weight: 600;
  color: var(--amber-900);
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .download-notice-title {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
  }
}

.download-notice-desc {
  font-size: 0.8125rem;
  color: var(--amber-800);
  margin-bottom: 0.625rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .download-notice-desc {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
}

.download-notice-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--amber-500);
  color: white;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.15s;
}

.download-notice-link:hover {
  background: var(--amber-600);
}

.info-notice-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  color: var(--slate-700);
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .info-notice-box {
    padding: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 0.875rem;
  }
}

.font-semibold {
  font-weight: 600;
}

/* Example Videos Section */
.example-videos-section {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
}

.example-videos-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  text-align: center;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .example-videos-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
}

.example-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .example-videos-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.example-video-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.example-video-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .example-video-label {
    font-size: 0.8125rem;
  }
}

.example-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.example-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.info-links-text {
  color: var(--slate-700);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .info-links-text {
    font-size: 0.8125rem;
    line-height: 1.4;
  }
}

.info-link {
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 600;
}

.info-link:hover {
  text-decoration: underline;
}

.company-info {
  border-top: 1px solid #e6e6e6;
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  background-color: white;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
}

.company-footer-line {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
  margin: 4px 0;
  padding: 0 10%;
  word-wrap: break-word;
  word-break: break-all;
}

.company-footer-line a {
  color: #0066cc;
  text-decoration: none;
}

.company-footer-line a:hover {
  color: #004499;
  text-decoration: underline;
}

.company-footer-line .icp-link {
  color: #0066cc;
}

.company-intro-line {
  margin: 4px 0;
  padding: 0 10%;
  font-size: 12px;
  color: #555;
  line-height: 1.4;
}

.company-intro-line b {
  color: #555;
  font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .company-footer-line {
    font-size: 12px;
    line-height: 1.4;
    padding: 0 5%;
  }
  
  .company-intro-line {
    font-size: 12px;
    padding: 0 5%;
  }
}

/* Workflow Section */
.workflow-container {
  max-width: 42rem;
  margin: 0 auto;
}

.progress-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.progress-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.step-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.15s;
  background: var(--slate-200);
  color: var(--slate-500);
  border: 2px solid var(--slate-300);
}

.step-circle.step-completed {
  background: var(--green-500);
  color: white;
  border-color: var(--green-500);
}

.step-circle.step-active {
  background: var(--purple-600);
  color: white;
  border-color: var(--purple-600);
}

/* 新增：未开始/未来步骤的置灰样式 */
.step-circle.step-inactive {
  background: var(--slate-100);
  color: var(--slate-400);
  border-color: var(--slate-200);
  opacity: 0.5;
}

.step-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
  text-align: center;
  max-width: 6rem;
  margin-top: 0.5rem;
}

/* 未来步骤的标签也置灰 */
.progress-step-item.step-inactive .step-label {
  color: var(--slate-400);
  opacity: 0.6;
}

.progress-line {
  height: 2px;
  background: var(--slate-200);
  flex: 1;
  margin: 0 0.5rem;
  transition: all 0.15s;
}

.progress-line.step-completed {
  background: var(--green-500);
}

/* 新增：未来步骤的连接线置灰样式 */
.progress-line.step-inactive {
  background: var(--slate-100);
  opacity: 0.3;
}

/* 为progress-step-item添加inactive类时应用样式 */
.progress-step-item.step-inactive {
  opacity: 0.5;
}

.file-info-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.file-info-text {
  font-size: 0.875rem;
  color: var(--slate-600);
}

.file-info-label {
  font-weight: 600;
  color: var(--slate-900);
}

.file-info-size {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

.modal-container {
  position: relative;
}

/* Card组件样式 - 用于模态框 */
.card {
  padding: 1.5rem;
  border: 2px solid;
  border-radius: var(--radius-lg);
  background: white;
}

.card-purple {
  border-color: var(--purple-200);
  background: linear-gradient(to bottom right, var(--purple-50), var(--blue-50));
}

.card-blue {
  border-color: var(--blue-200);
  background: linear-gradient(to bottom right, var(--blue-50), var(--purple-50));
}

.card-emerald {
  border-color: var(--emerald-50);
  background: linear-gradient(to bottom right, var(--emerald-50), var(--cyan-50));
}

.card-indigo {
  border-color: var(--indigo-100);
  background: linear-gradient(to bottom right, var(--indigo-50), var(--violet-50));
}

.card-rose {
  border-color: var(--rose-200);
  background: linear-gradient(to bottom right, var(--rose-50), var(--pink-50));
}

.card-space-y-6 > * + * {
  margin-top: 1.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.875rem;
  color: var(--slate-600);
}

/* Language Selection */
.language-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.language-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.language-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-900);
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 16rem;
  overflow-y: auto;
}

.language-option-btn {
  width: 100%;
  padding: 0.75rem;
  text-align: left;
  border-radius: var(--radius-lg);
  border: 2px solid var(--slate-200);
  background: white;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-option-btn:hover {
  border-color: var(--purple-400);
}

.language-option-btn.selected-purple {
  border-color: var(--purple-600);
  background: var(--purple-100);
  color: var(--slate-900);
}

.language-option-btn.selected-blue {
  border-color: var(--blue-600);
  background: var(--blue-100);
  color: var(--slate-900);
}

.language-flag {
  font-size: 1.125rem;
}

.language-name {
  font-weight: 500;
}

.btn-continue {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(to right, var(--purple-600), var(--blue-600));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-continue:hover:not(:disabled) {
  background: linear-gradient(to right, var(--purple-700), var(--blue-700));
}

.btn-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Subtitle Burn Modal */
.alert-box {
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
}

.alert-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--amber-600);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.alert-content {
  font-size: 0.875rem;
  color: var(--amber-800);
}

.alert-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.alert-list {
  list-style: disc;
  list-style-position: inside;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.alert-list li {
  margin-top: 0.25rem;
}

.option-button {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--slate-200);
  background: white;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.option-button:hover {
  border-color: var(--green-300);
}

.option-button.selected-green {
  border-color: var(--green-500);
  background: var(--green-50);
}

.option-button.selected-slate {
  border-color: var(--slate-400);
  background: var(--slate-50);
}

.option-title {
  font-weight: 600;
  color: var(--slate-900);
}

.option-desc {
  font-size: 0.75rem;
  color: var(--slate-600);
  margin-top: 0.25rem;
}

.btn-blue-purple {
  background: linear-gradient(to right, var(--blue-600), var(--purple-600));
}

.btn-blue-purple:hover:not(:disabled) {
  background: linear-gradient(to right, var(--blue-700), var(--purple-700));
}

/* Bilingual Modal */
.info-box {
  background: var(--cyan-50);
  border: 1px solid var(--cyan-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
}

.info-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--cyan-600);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.info-content {
  font-size: 0.875rem;
  color: var(--cyan-900);
}

.preview-box {
  background: var(--slate-900);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.preview-label {
  font-size: 0.75rem;
  color: var(--slate-400);
}

.preview-text {
  text-align: center;
  margin-top: 0.5rem;
}

.preview-text-main {
  font-size: 0.875rem;
}

.preview-text-sub {
  font-size: 0.875rem;
  color: var(--amber-400);
  margin-top: 0.25rem;
}

.option-button.selected-emerald {
  border-color: var(--emerald-500);
  background: var(--emerald-50);
}

.btn-emerald-cyan {
  background: linear-gradient(to right, var(--emerald-500), var(--cyan-600));
}

.btn-emerald-cyan:hover:not(:disabled) {
  background: linear-gradient(to right, #059669, #0e7490) !important;
}

/* Warning Modal Overlay */
.warning-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.warning-card {
  width: 100%;
  max-width: 28rem;
  padding: 1.5rem;
  border: 2px solid var(--amber-200);
  border-radius: var(--radius-lg);
  background: linear-gradient(to bottom right, var(--amber-50), var(--orange-50));
}

.warning-header {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.warning-icon-large {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--amber-600);
  flex-shrink: 0;
}

.warning-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--slate-900);
}

.warning-subtitle {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-top: 0.25rem;
}

.warning-content-box {
  background: white;
  border: 1px solid var(--amber-300);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-top: 1rem;
}

.warning-content-title {
  font-weight: 600;
  color: var(--amber-900);
  margin-bottom: 0.75rem;
}

.warning-content-text {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--slate-700);
}

.warning-list {
  margin-top: 0.5rem;
  margin-left: 1rem;
  list-style: disc;
  font-size: 0.75rem;
}

.warning-list li {
  margin-top: 0.5rem;
}

.warning-note {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--amber-800);
  margin-top: 0.75rem;
}

.warning-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-outline {
  flex: 1;
  padding: 0.75rem;
  background: white;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-outline:hover {
  background: var(--slate-50);
}

.btn-amber {
  flex: 1;
  padding: 0.75rem;
  background: var(--amber-600);
  border: none;
  border-radius: var(--radius);
  color: white;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-amber:hover {
   background: #b45309 !important;
}

/* Confirmation Modal */
.config-list {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--slate-100);
  transition: background-color 0.15s;
}

.config-item:last-child {
  border-bottom: none;
}

.config-item:hover {
  background: var(--slate-50);
}

.config-label {
  font-size: 0.875rem;
  color: var(--slate-600);
}

.config-value-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.config-value {
  font-weight: 600;
  color: var(--slate-900);
}

.edit-button {
  opacity: 0;
  padding: 0.25rem;
  background: transparent;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.15s;
}

.config-item:hover .edit-button {
  opacity: 1;
}

.edit-button:hover {
  background: var(--indigo-100);
}

.edit-icon {
  width: 1rem;
  height: 1rem;
  color: var(--indigo-600);
}

.btn-indigo-violet {
  background: linear-gradient(to right, var(--indigo-600), var(--violet-600));
}

.btn-indigo-violet:hover:not(:disabled) {
    background: linear-gradient(to right, #4338ca, #6d28d9) !important;
}

/* Balance Check Modal */
.balance-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
}

.wallet-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--blue-600);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.balance-info {
  flex: 1;
}

.balance-label {
  font-size: 0.75rem;
  color: var(--slate-600);
}

.balance-amount {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--slate-900);
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.balance-item {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  text-align: center;
}

.balance-item-label {
  font-size: 0.75rem;
  color: var(--slate-600);
  margin-bottom: 0.25rem;
}

.balance-item-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--slate-900);
}

.balance-item-value-green {
  color: var(--green-600);
}

.success-box {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
}

.success-icon-circle {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--green-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.success-icon-text {
  color: white;
  font-size: 0.75rem;
}

.success-content {
  font-size: 0.875rem;
}

.success-title {
  font-weight: 600;
  color: var(--green-900);
}

.success-desc {
  font-size: 0.75rem;
  color: var(--green-800);
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  accent-color: var(--rose-600);
}

.checkbox-text {
  font-size: 0.75rem;
  color: var(--slate-600);
}

.btn-rose-pink {
  background: linear-gradient(to right, var(--rose-600), var(--pink-600));
}

.btn-rose-pink:hover:not(:disabled) {
  background: linear-gradient(to right, #be123c, #be185d) !important;
}

.btn-rose-pink:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Processing Section */
.processing-section {
  margin-top: 1.5rem;
}

.processing-card {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.processing-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid var(--blue-300);
  border-top: 3px solid var(--blue-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.processing-text {
  color: var(--slate-700);
  font-weight: 600;
}

.processing-progress {
  margin-top: 1rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--slate-600);
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  background: var(--slate-200);
  border-radius: 9999px;
  height: 0.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--purple-600), var(--blue-600));
  width: 0%;
  transition: width 0.3s ease;
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.hidden {
  display: none !important;
}

/* Voiceover Section */
.voiceover-container {
  max-width: 42rem;
  margin: 0 auto;
}

.voiceover-header {
  text-align: center;
  margin-bottom: 2rem;
}

.badge-green {
  display: inline-block;
  background: linear-gradient(to right, var(--green-500), var(--emerald-500));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.voiceover-title {
  font-size: 1.875rem;
  font-weight: bold;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.voiceover-subtitle {
  color: var(--slate-600);
}

.voiceover-card {
  padding: 1.5rem;
  border: 2px solid;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.voiceover-card-green {
  border-color: var(--green-200);
  background: linear-gradient(to bottom right, var(--green-50), var(--emerald-50));
}

.voiceover-card-blue {
  border-color: var(--blue-200);
  background: linear-gradient(to bottom right, var(--blue-50), var(--cyan-50));
}

.voiceover-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.voiceover-progress-label {
  color: var(--slate-700);
  font-weight: 600;
}

.voiceover-progress-value {
  color: var(--green-600);
  font-weight: bold;
}

.voiceover-progress-bar {
  width: 100%;
  background: var(--slate-200);
  border-radius: 9999px;
  height: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.voiceover-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--green-500), var(--emerald-500));
  width: 100%;
}

.voiceover-progress-desc {
  font-size: 0.75rem;
  color: var(--slate-600);
}

.voiceover-option-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.voiceover-icon-circle {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--blue-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.voiceover-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.voiceover-option-title {
  font-weight: 600;
  color: var(--slate-900);
}

.voiceover-option-desc {
  font-size: 0.75rem;
  color: var(--slate-600);
}

.voiceover-option-content {
  background: white;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.voiceover-option-text {
  font-size: 0.875rem;
  color: var(--slate-700);
  margin-bottom: 1rem;
}

.btn-blue-cyan {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(to right, var(--blue-600), var(--cyan-600));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-blue-cyan:hover {
  background: linear-gradient(to right, #1d4ed8, #0e7490) !important;
}

.voiceover-actions {
  margin-top: 1.5rem;
}

.voiceover-actions-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.voiceover-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.btn-outline-slate {
  height: 3rem;
  background: white;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-outline-slate:hover {
  background: var(--slate-50);
}

/* Voiceover Complete Section */
.voiceover-complete-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .voiceover-complete-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.voiceover-video-card {
  padding: 1.5rem;
  border: 2px solid;
  border-radius: var(--radius-lg);
}

.voiceover-video-card-blue {
  border-color: var(--blue-200);
  background: linear-gradient(to bottom right, var(--blue-50), var(--cyan-50));
}

.voiceover-video-card-green {
  border-color: var(--green-200);
  background: linear-gradient(to bottom right, var(--green-50), var(--emerald-50));
}

.video-preview {
  background: var(--slate-900);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.video-preview-icon {
  width: 3rem;
  height: 3rem;
  color: rgba(255, 255, 255, 0.5);
}

.video-preview-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.video-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.video-info-item {
  display: flex;
  justify-content: space-between;
}

.video-info-label {
  color: var(--slate-600);
}

.video-info-value {
  font-weight: 600;
  color: var(--slate-900);
}

.video-info-value-green {
  color: var(--green-600);
}

.btn-download-blue {
  width: 100%;
  padding: 0.75rem;
  background: var(--blue-600);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-download-blue:hover {
  background: var(--blue-700);
}

.btn-download-green {
  background: var(--green-600);
}

.btn-download-green:hover {
  background: #15803d !important; 
}

/* Voice Effect Modal Overlay */
.voice-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.voice-modal-card {
  width: 100%;
  max-width: 42rem;
  padding: 1.5rem;
  border: 2px solid var(--purple-200);
  border-radius: var(--radius-lg);
  background: white;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.voice-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.15s;
}

.voice-modal-close:hover {
  background: var(--slate-100);
}

.voice-modal-close-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--slate-600);
}

.voice-modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.voice-modal-subtitle {
  color: var(--slate-600);
}

.voice-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .voice-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.voice-option-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--slate-200);
  background: white;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.voice-option-card:hover {
  border-color: var(--purple-300);
}

.voice-option-card.selected {
  border-color: var(--purple-600);
  background: var(--purple-50);
}

.voice-option-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.voice-option-icon-box {
  width: 2rem;
  height: 2rem;
  background: var(--purple-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.voice-option-icon {
  width: 1rem;
  height: 1rem;
  color: var(--purple-600);
}

.voice-option-info {
  flex: 1;
}

.voice-option-header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.voice-option-name {
  font-weight: 600;
  color: var(--slate-900);
}

.voice-option-badge {
  font-size: 0.75rem;
  background: var(--purple-500);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.voice-option-desc {
  font-size: 0.75rem;
  color: var(--slate-600);
  margin-top: 0.25rem;
}

.voice-custom-section {
  border-top: 1px solid var(--slate-200);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.voice-custom-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
  display: block;
}

.voice-custom-box {
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.voice-custom-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  outline: none;
}

.voice-custom-input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.voice-custom-hint {
  font-size: 0.75rem;
  color: var(--slate-600);
  margin-top: 0.5rem;
}

.voice-custom-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--purple-600);
  font-weight: 500;
  text-decoration: none;
  margin-top: 0.75rem;
}

.voice-custom-link:hover {
  color: var(--purple-700);
}

.voice-modal-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

/* Voice Processing */
.voice-processing-container {
  max-width: 42rem;
  margin: 0 auto;
}

.badge-blue {
  display: inline-block;
  background: linear-gradient(to right, var(--blue-500), var(--cyan-500));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.voice-processing-title {
  font-size: 1.875rem;
  font-weight: bold;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.voice-processing-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.voice-processing-icon-large {
  width: 3rem;
  height: 3rem;
  background: var(--blue-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.voice-processing-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.voice-processing-name {
  font-weight: 600;
  color: var(--slate-900);
}

.voice-processing-name-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
}

.voice-processing-progress-large {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.voice-processing-progress-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-900);
}

.voice-processing-progress-label small {
  font-size: 0.75rem;
  font-weight: normal;
  color: #f59e0b; /* 黄色 */
}

.voice-processing-progress-value {
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--blue-600);
}

.voice-processing-progress-bar-large {
  width: 100%;
  background: var(--slate-200);
  border-radius: 9999px;
  height: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.voice-processing-progress-fill-large {
  height: 100%;
  background: linear-gradient(to right, var(--blue-500), var(--cyan-500));
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.voice-processing-status-box {
  background: white;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
}

.voice-processing-status-text {
  font-size: 0.875rem;
  color: var(--slate-700);
}

.voice-processing-status-label {
  font-weight: 600;
}

.voice-processing-time-box {
  background: var(--blue-100);
  border: 1px solid var(--blue-300);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  font-size: 0.875rem;
  color: var(--blue-900);
}

.voice-processing-hint {
  padding: 1rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
}

.voice-processing-hint-text {
  font-size: 0.75rem;
  color: var(--slate-600);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    height: auto;
    padding: 0.75rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .upload-main-title {
    font-size: 1.125rem;
    white-space: normal;
  }

  .progress-indicator {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .step-label {
    max-width: none;
    font-size: 0.6875rem;
  }

  .language-grid-2 {
    grid-template-columns: 1fr;
  }

  .voiceover-complete-grid {
    grid-template-columns: 1fr;
  }

  .voice-options-grid {
    grid-template-columns: 1fr;
  }
}
