/* ============================================================
   FormatLab - 统一样式�?   设计原则：简洁、统一、专�?   ============================================================ */

/* ---- CSS 变量：统一设计令牌 ---- */
:root {
  /* 主题�?*/
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --primary-border: rgba(37, 99, 235, 0.15);

  /* 功能�?*/
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* 背景 */
  --bg-page: #f5f7fa;
  --bg-card: #ffffff;
  --bg-hover: #f8fafc;

  /* 文本 */
  --text-primary: #1a1a2e;
  --text-secondary: #5a6170;
  --text-muted: #8b919e;

  /* 边框 */
  --border: #e5e7eb;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);

  /* 圆角 */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;

  /* 过渡 */
  --transition: 0.2s ease;
}

/* ---- 统一字体大小体系 ---- */
/* 
  14px - 正文/按钮/输入�?标签/提示
  16px - 小标�?(card title)
  20px - 中标�?(section title)
  24px - 大标�?(page title)  
  28px - 特大标题 (hero)
  12px - 辅助文字 (badge/meta)
*/

/* ---- 基础重置 ---- */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 25%, #f5f9ff 50%, #f8fafc 75%, #f0f4f8 100%);
  min-height: 100vh;
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* 全局动态背景装�?*/
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  animation: globalFloat 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 600px;
  height: 600px;
  top: -150px;
  right: -150px;
  animation-delay: 0s;
}

body::after {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: -100px;
  animation-delay: -6s;
}

/* 额外的背景装饰层 */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* 背景网格纹理 */
.page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* 全局动画 */
@keyframes globalFloat {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.5;
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(3deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-30px) translateX(5px) rotate(-2deg);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-15px) translateX(-10px) rotate(2deg);
    opacity: 0.7;
  }
}

@keyframes globalPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

/* ---- 页头 ---- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: linear-gradient(135deg, var(--bg-card) 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right .tag {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.header-right .header-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.header-right .login-btn {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

.header-right .login-btn:hover {
  background: var(--primary-hover);
}

.header-right .register-btn {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.header-right .register-btn:hover {
  background: var(--primary-light);
}

/* ---- 主体 ---- */
.main {
  flex: 1;
  padding: 32px 24px;
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* ---- Hero 区域 ---- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 30%, #dbeafe 60%, #f0f9ff 100%);
  border-radius: 0 0 40px 40px;
  margin: 0 -24px;
  padding: 48px 24px;
  overflow: hidden;
}

/* 动态背景元�?*/
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.1) 70%);
  animation: float 8s ease-in-out infinite;
}

.hero-section::before {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-section::after {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -50px;
  animation-delay: -4s;
}

/* 额外的光斑效�?*/
.hero-section .hero-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  animation: pulse 6s ease-in-out infinite;
}

.hero-section .hero-glow:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 50%;
  right: 20%;
  animation-delay: 0s;
}

.hero-section .hero-glow:nth-child(2) {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 30%;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.8;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; max-width: 600px; }

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 30%, #3b82f6 60%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  line-height: 1.1;
}

.hero h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #1e3a5f;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}

.hero h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 2px;
}

.subtitle {
  font-size: 15px;
  color: #4b5563;
  margin: 0 0 24px;
  line-height: 1.8;
  max-width: 520px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

.hero-btn {
  font-size: 14px;
  padding: 12px 28px;
  white-space: nowrap;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.highlight-tag {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 20px;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.highlight-tag:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.hero-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-element {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.document-icon { font-size: 80px; }

.format-icons { display: none; }

/* ---- 按钮系统 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.45);
}

.btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px 0 rgba(37, 99, 235, 0.3);
}

.btn.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-sm:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---- 通用卡片 ---- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

/* ---- 上传卡片 ---- */
.upload-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 32px;
  margin-bottom: 32px;
  width: 100%;
}

.upload-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.upload-left, .upload-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- 表单元素 ---- */
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.select, .form-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: var(--transition);
}

.select:focus, .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ---- 上传区域 ---- */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-hover);
  cursor: pointer;
  transition: var(--transition);
}

.dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dropzone-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.dropzone-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 4px;
}

.dropzone-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* 格式输入区域 */
.format-input-container {
  position: relative;
}

.format-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: var(--transition);
  background: var(--card-background);
  color: var(--text-primary);
}

.format-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.format-textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.format-tips {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.04) 100%);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--primary);
}

.tip-icon {
  font-size: 14px;
}

/* 格式修改区域 */
#dropzone { border-color: rgba(37, 99, 235, 0.3); }
#dropzone:hover { border-color: var(--primary); }

/* 文件转换区域 */
#conversion-dropzone { border-color: rgba(99, 102, 241, 0.3); }
#conversion-dropzone:hover { border-color: #6366f1; }

/* ---- 文件信息 ---- */
.file-info {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-hover);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.file-info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
}

.file-info-label { color: var(--text-secondary); }
.file-info-value { color: var(--text-primary); }

.file-name {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  padding: 6px 10px;
  background: var(--primary-light);
  border-radius: var(--radius);
}

/* ---- 提示 ---- */
.tip {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--primary-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

/* ---- 状�?结果卡片 ---- */
.status-card, .result-card, .preview-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.status-card h2, .result-card h2, .preview-card h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.status-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* ---- 进度�?---- */
.progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--primary-light);
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-inner {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--primary);
  transition: width 0.4s ease;
}

/* ---- 评分 ---- */
.score {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.score-bar-container {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.score-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.score-bar.excellent { background: var(--success); }
.score-bar.good { background: var(--primary); }
.score-bar.average { background: var(--warning); }
.score-bar.poor { background: var(--error); }

.score-reason {
  padding: 12px;
  background: var(--bg-hover);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.score-reason h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.score-reason ul { margin: 0; padding-left: 18px; }
.score-reason li { margin-bottom: 2px; }

/* ---- 问题列表 ---- */
.issue-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.issue-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.issue-list::-webkit-scrollbar { width: 5px; }
.issue-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.issue-item {
  padding: 10px 12px;
  margin-bottom: 6px;
  background: var(--bg-hover);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
  font-size: 13px;
}

.issue-item:last-child { margin-bottom: 0; }
.issue-type { font-weight: 600; color: var(--primary); }
.issue-severity-minor { color: #6366f1; }
.issue-severity-major { color: var(--warning); }
.issue-severity-critical { color: var(--error); }

.result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- 结果卡片完成状态：更醒目的颜色变化 ---- */
.result-card.success {
  border: 2px solid var(--success);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), var(--shadow-lg);
  animation: resultCardPopIn 0.5s ease;
}

@keyframes resultCardPopIn {
  0% { transform: scale(0.95); opacity: 0; }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- 跳动手指指向下载按钮 ---- */
.finger-pointer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  animation: fingerBounce 1.2s ease-in-out infinite;
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
}

.finger-pointer .finger-icon {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

.finger-pointer .finger-text {
  white-space: nowrap;
}

@keyframes fingerBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- 欢迎卡片 ---- */
.welcome-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.welcome-card h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text-primary);
  text-align: center;
}

.welcome-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.welcome-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.welcome-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  background: var(--bg-hover);
  border-radius: var(--radius);
}

.feature-item p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 4px 0 0;
}

.feature-icon { font-size: 20px; }

/* ---- 功能卡片�?---- */
.features-section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto 32px;
  max-width: 500px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.feature-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, #fafafa 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.2);
}

.feature-icon-large, .feature-card .feature-icon.large {
  font-size: 36px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 14px;
}

/* 特性列�?*/
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 10px 8px 30px;
  position: relative;
  background: var(--bg-hover);
  border-radius: var(--radius);
  border-left: 2px solid var(--primary);
}

.feature-list li::before {
  content: '�?;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
}

.feature-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}

.feature-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ---- 使用场景 ---- */
.scenarios-section {
  margin-bottom: 48px;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.scenario-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.scenario-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.scenario-icon { font-size: 36px; margin-bottom: 12px; }

.scenario-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.scenario-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ---- 操作流程 ---- */
.process-section {
  margin-bottom: 48px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border);
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.process-step {
  background: var(--bg-hover);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  min-width: 140px;
  border: 1px solid var(--border);
}

.step-number {
  background: var(--primary);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin: 0 auto 10px;
}

.process-step h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.process-step p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.process-arrow {
  font-size: 20px;
  color: var(--primary);
}

/* ---- 图表生成 ---- */
.chart-generator-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.chart-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.chart-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-icon { font-size: 22px; color: var(--primary); }

.chart-section-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.chart-generator-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.chart-control-panel { display: flex; flex-direction: column; gap: 14px; }

/* ---- 照片内容处理功能 ---- */
.photo-processing-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.photo-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.photo-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-icon { font-size: 22px; color: var(--primary); }

.photo-section-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.photo-processing-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.photo-control-panel { display: flex; flex-direction: column; gap: 14px; }

.photo-preview-panel {
  background: var(--bg-hover);
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-function-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.photo-function-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.photo-function-btn:hover { border-color: var(--primary); }

.photo-function-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.photo-function-btn i { font-size: 16px; }

.format-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.resize-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.size-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.size-input-group label {
  font-size: 12px;
  color: var(--text-secondary);
}

.filter-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.filter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.filter-btn:hover { border-color: var(--primary); }

.filter-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.filter-btn i { font-size: 16px; }

.ocr-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ocr-result-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  border: 1px solid var(--border);
}

.ocr-result-panel h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.ocr-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-hover);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  margin-bottom: 12px;
}

#photo-canvas-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 420px;
  overflow: auto;
  padding: 16px;
}

#photo-preview {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.photo-preview-panel .preview-footer {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

@media (max-width: 992px) {
  .photo-processing-container { grid-template-columns: 1fr; }
}

.control-section {
  background: var(--bg-hover);
  border-radius: var(--radius);
  padding: 16px;
}

.control-section.hidden { display: none; }

.control-section h3.section-title {
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.chart-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.chart-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.chart-type-btn:hover { border-color: var(--primary); }

.chart-type-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.chart-type-btn i { font-size: 16px; }

.input-field {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: var(--transition);
  resize: vertical;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.code-textarea {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  min-height: 120px !important;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.color-item { display: flex; flex-direction: column; gap: 4px; }
.color-item label { font-size: 12px; color: var(--text-secondary); }

.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-picker-wrapper input[type="color"] {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}

.color-value {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Consolas', monospace;
}

.action-buttons { display: flex; gap: 10px; }

.chart-preview-panel {
  background: var(--bg-hover);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 双图表预览盒子 */
.chart-preview-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  flex: 1;
}

.chart-preview-box .preview-content {
  min-height: 280px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-preview-box canvas {
  width: 100% !important;
  height: 260px !important;
}

/* 图表内联类型选择器 */
.chart-type-select-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
}

.chart-type-select-inline label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.select-inline {
  padding: 6px 28px 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b919e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color var(--transition);
}

.select-inline:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* 双图表占位符 */
#chart-placeholder-1,
#chart-placeholder-2 {
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#chart-placeholder-1 h4,
#chart-placeholder-2 h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}

#chart-placeholder-1 p,
#chart-placeholder-2 p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.preview-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.preview-status {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-radius: 20px;
  font-weight: 500;
}

.preview-content {
  padding: 16px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}

#chart-canvas-1, #chart-canvas-2 { max-width: 100%; max-height: 320px; }

#chart-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.placeholder-icon i { font-size: 28px; color: var(--primary); }

#chart-placeholder h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}

#chart-placeholder p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.preview-footer {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.preview-footer .btn { flex: 1; }

.chart-preview-footer {
  flex-direction: column;
  gap: 10px;
}

.chart-preview-footer .btn {
  width: 100%;
  flex: none;
}

/* ---- 会员专区 ---- */
.membership-section {
  margin-bottom: 32px;
}

.membership-section h2 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.membership-benefits {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.benefit-item {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.benefit-item .icon { font-size: 24px; margin-bottom: 4px; }

.membership-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.plan-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.plan-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 4px;
}

.plan-card .price {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.plan-card .desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.member-status-box {
  text-align: center;
  padding: 14px;
  background: var(--primary-light);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---- 封面预览 ---- */
.preview-container {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  background: var(--bg-card);
}

.document-preview {
  width: 100%;
  height: 500px;
  border: none;
}

/* ---- 文档内容 ---- */
.document-content {
  line-height: 1.7;
  font-size: 14px;
  color: var(--text-primary);
}

.document-content img {
  max-width: 100%;
  border-radius: var(--radius);
}

.document-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.document-content th, .document-content td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: left;
  font-size: 13px;
}

.document-content th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.document-content tr:nth-child(even) { background: var(--bg-hover); }

/* ---- 模态窗�?---- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: var(--transition);
}

.close-btn:hover { color: var(--error); }

.modal-body { padding: 20px; }

/* ---- 隐藏 ---- */
.hidden { display: none !important; }

/* ---- 加载 ---- */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 12px;
}

.loading p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

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

/* ---- 用户菜单 ---- */
#user-menu { position: relative; }

#username-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

#username-display:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  overflow: hidden;
}

.user-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.user-dropdown a:hover {
  background: var(--bg-hover);
  color: var(--primary);
}

.user-dropdown a:last-child {
  border-bottom: none;
  color: var(--error);
}

.admin-link { color: var(--warning) !important; font-weight: 600; }

/* ---- 提意见按�?---- */
.feedback-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 999;
}

.feedback-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ---- 我的留言按钮 ---- */
.my-feedbacks-btn {
  position: fixed;
  bottom: 24px;
  right: 200px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 999;
}

.my-feedbacks-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* 我的留言数量徽章 */
.feedback-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: #ef4444;
  border-radius: 10px;
  margin-left: 4px;
  line-height: 1;
}

/* 我的留言列表项 */
.feedback-list-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: var(--transition);
}

.feedback-list-item:hover {
  box-shadow: var(--shadow-sm);
}

.feedback-list-item .fb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.feedback-list-item .fb-content {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.feedback-list-item .fb-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fb-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.fb-status.pending { background: #fef3c7; color: #d97706; }
.fb-status.processed { background: #d1fae5; color: #059669; }

.fb-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #10b981;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.fb-reply-btn:hover {
  background: #10b981;
  color: #fff;
}

.fb-no-reply {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- 页脚 ---- */
.footer {
  padding: 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  margin-top: auto;
}

/* ---- AI图标生成功能 ---- */
.icon-generator-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.icon-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.icon-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.icon-icon {
  font-size: 28px;
}

.icon-section-title h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.icon-section-title .subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.icon-generator-container {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
}

/* 左侧输入面板 */
.icon-input-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.icon-input-panel .input-section {
  background: var(--bg-hover);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 0;
}

.icon-input-panel .field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-input-container {
  position: relative;
}

.icon-prompt-textarea {
  width: 100%;
  min-height: 160px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
  color: var(--text-primary);
}

.icon-prompt-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.icon-prompt-textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.prompt-tips {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.04) 100%);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: #667eea;
}

/* 风格选择 */
.style-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.style-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.style-btn:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.style-btn.active {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: #667eea;
}

.style-preview {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.style-btn:hover .style-preview {
  transform: scale(1.1);
}

/* 颜色选择 */
.color-presets {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-preset-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.color-preset-btn:hover {
  transform: scale(1.1);
}

.color-preset-btn.active {
  border-color: var(--primary);
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 尺寸选择 */
.size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.size-btn {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.size-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.size-btn.active {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: #667eea;
}

/* 预览面板 */
.icon-preview-panel {
  background: var(--bg-hover);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
  box-shadow: none;
}

.icon-preview-panel .preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.icon-preview-panel .preview-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.icon-preview-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  background: var(--bg-card);
  padding: 8px;
  position: relative;
  overflow: hidden;
}

.icon-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.placeholder-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 36px;
  color: var(--text-muted);
}

.icon-placeholder h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.icon-placeholder p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.generated-icon {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.generated-icon:hover {
  transform: scale(1.02);
}

/* 加载状态 */
.icon-loading {
  text-align: center;
  width: 100%;
  max-width: 360px;
  padding: 24px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

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

.icon-loading .loading-status {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.icon-loading .loading-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* 进度条 */
.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.progress-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 4px;
  width: 0%;
}

.progress-bar-text {
  font-size: 13px;
  font-weight: 600;
  color: #667eea;
  min-width: 36px;
  text-align: right;
}

/* 预览底部 */
.icon-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.icon-info {
  display: flex;
  gap: 16px;
}

.info-item {
  font-size: 13px;
  color: var(--text-secondary);
}

.info-item span {
  font-weight: 600;
  color: var(--text-primary);
}

.icon-actions {
  display: flex;
  gap: 10px;
}

/* 响应�?*/
@media (max-width: 1024px) {
  .icon-generator-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .style-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .size-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .color-presets {
    justify-content: center;
  }
}

/* ---- 响应�?---- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-generator-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .main { padding: 24px 16px; }
  .hero-section { margin: 0 -16px; padding: 32px 16px; }
  .hero { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 24px; }
  .hero-buttons { justify-content: center; }
  .hero-highlights { justify-content: center; }
  .subtitle { max-width: 100%; }

  .upload-card { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .welcome-features { grid-template-columns: repeat(2, 1fr); }

  .process-steps { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); }

  .section-title { font-size: 18px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 20px; }
  .membership-plans { grid-template-columns: 1fr; }

  /* ===== 移动端核心适配 ===== */

  /* 上传卡片 - 缩小内边距 */
  .upload-card {
    padding: 16px;
    gap: 16px;
  }
  .upload-left, .upload-right {
    padding: 0;
  }

  /* dropzone - 移动端触控优化 */
  .dropzone {
    padding: 24px 16px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }
  .dropzone-icon { font-size: 40px; }
  .dropzone-text { font-size: 15px; }
  .dropzone-subtext { font-size: 12px; }

  /* 按钮 - 移动端全宽 + 更大的触摸区域 */
  .btn {
    min-height: 44px;
    padding: 11px 18px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }
  .btn.small {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
    width: auto;
  }

  /* 结果操作区 */
  .result-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .result-actions .btn {
    width: 100%;
  }

  /* 下拉框和输入框 - 加大触摸区域 */
  .select, .form-input, input[type="text"], input[type="email"], input[type="password"] {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 16px; /* 防止 iOS 缩放 */
  }

  /* 格式文本域 */
  .format-textarea {
    font-size: 16px;
    padding: 12px 14px;
  }

  /* 复选框 - 加大点击区域 */
  .checkbox, .radio-label {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 14px;
  }
  .checkbox input[type="checkbox"], .radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
  }

  /* 功能卡片 - 全宽 */
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 20px 16px; }

  /* 场景网格 */
  .scenarios-grid { grid-template-columns: 1fr; }
  .scenario-card { padding: 16px; }

  /* 欢迎特性 */
  .welcome-features { grid-template-columns: 1fr; gap: 12px; }

  /* 处理步骤 */
  .process-steps { gap: 12px; }
  .step-number { width: 36px; height: 36px; font-size: 16px; }
  .step-title { font-size: 14px; }
  .step-desc { font-size: 12px; }

  /* 转换区域 */
  .conversion-section { padding: 16px 12px; }

  /* 照片处理 */
  .photo-function-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .photo-preview-container {
    flex-direction: column;
  }
  .photo-preview {
    max-width: 100%;
    max-height: 300px;
  }

  /* 过滤器选项 */
  .filter-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* 页头简化 */
  .header {
    padding: 0 12px;
    height: 52px;
  }
  .header .logo-text {
    font-size: 14px;
  }
  .header .nav-link {
    font-size: 13px;
    padding: 6px 10px;
  }

  /* 主要内容区 */
  .main {
    padding: 16px 12px;
  }

  /* 标题 */
  .section-title {
    font-size: 17px;
    margin-bottom: 12px;
  }

  /* Hero */
  .hero-section {
    margin: 0 -12px;
    padding: 24px 12px;
  }

  /* 页脚 */
  .footer {
    padding: 20px 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 提示信息 */
  .format-tips {
    font-size: 12px;
    flex-wrap: wrap;
  }

  /* 评分卡片 */
  .score-circle {
    width: 80px;
    height: 80px;
    font-size: 24px;
  }

  /* 问题列表 */
  .issues-list {
    max-height: 250px;
  }

  /* Tab 导航 */
  .tab-nav {
    gap: 4px;
    padding: 4px;
  }
  .tab-btn {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Toast/通知 */
  .toast-container {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: 100%;
  }
  .toast {
    width: 100%;
    text-align: center;
  }

  /* 模态框 */
  .modal-content {
    margin: 20px 12px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 12px;
  }

  /* 文件转换结果区域 */
  #conversion-result, #result {
    padding: 16px;
  }
  .result-card {
    padding: 16px;
  }

  /* 进度条 */
  .progress-bar {
    height: 6px;
  }

  /* 禁用桌面端 hover 效果（移动端用 active） */
  .btn:hover::before { display: none; }
  .btn:active {
    transform: scale(0.97);
    opacity: 0.9;
  }
  .dropzone:hover {
    border-color: var(--border);
    background: var(--bg-hover);
  }
  .dropzone:active {
    border-color: var(--primary);
    background: var(--primary-light);
  }
}