/* ============================================
   AI文档扫描和PDF全能工具箱 - 主样式表
   纯前端实现，所有处理在浏览器本地完成
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  /* 主色调 */
  --primary: #4F6EF7;
  --primary-dark: #3A56D4;
  --primary-light: #E8EDFF;
  --secondary: #10B981;
  --secondary-dark: #059669;
  --accent: #F59E0B;

  /* 中性色 */
  --bg: #F7F8FC;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 过渡 */
  --transition: all 0.3s ease;

  /* 间距 */
  --container-max: 1200px;
  --nav-height: 64px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
}

/* ---------- 容器 ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 导航栏占位 ---------- */
#navbar-placeholder {
  height: var(--nav-height);
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.navbar-nav .btn-pro {
  background: linear-gradient(135deg, var(--accent), #F97316);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

.navbar-nav .btn-pro:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}

/* 语言切换 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.lang-switch button {
  padding: 4px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.lang-switch button.active {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* 会员徽章 */
.member-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
}
.member-badge.hidden { display: none; }

/* 移动端菜单按钮 */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero 区域 ---------- */
.hero {
  padding: calc(var(--nav-height) + 60px) 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg) 100%);
}

/* 首页首屏主标题 */
.hero-title-main {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text-primary);
  text-align: center;
}

/* 首页首屏副标题 */
.hero-subtitle-main {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  text-align: center;
}

/* 首页首屏标签按钮容器 */
.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* 首页首屏标签按钮通用样式 */
.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.hero-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 各标签按钮颜色 - 高对比度设计 */
.tag-free {
  background: linear-gradient(135deg, #10B981, #059669);
}

.tag-nologin {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.tag-local {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.tag-noads {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

.tag-privacy {
  background: linear-gradient(135deg, #EF4444, #DC2626);
}

/* 保留原有样式用于其他页面兼容 */
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-badge .icon {
  font-size: 1rem;
}

/* ---------- 功能入口卡片 ---------- */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  border: 2px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: var(--transition);
}

.feature-card.scan::before {
  background: linear-gradient(90deg, var(--primary), #818CF8);
}

.feature-card.pdf::before {
  background: linear-gradient(90deg, var(--secondary), #34D399);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card .card-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.feature-card.scan .card-icon {
  background: var(--primary-light);
}

.feature-card.pdf .card-icon {
  background: #D1FAE5;
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- 卖点区域 ---------- */
.advantages {
  padding: 80px 0;
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.advantage-item {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: var(--bg);
  text-align: center;
  transition: var(--transition);
}

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

.advantage-item .adv-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  background: var(--primary-light);
}

.advantage-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.advantage-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- 评价轮播 ---------- */
.testimonials {
  padding: 80px 0;
  background: var(--bg);
  overflow: hidden;
}

.testimonials .section-header {
  margin-bottom: 40px;
}

.testimonial-track {
  display: flex;
  gap: 20px;
  animation: scroll-left 30s linear infinite;
  width: max-content;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  flex-shrink: 0;
  width: 340px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.testimonial-card .stars {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card .quote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #C7D2FE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.testimonial-card .author-info .name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card .author-info .role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- 反馈浮动按钮 ---------- */
.feedback-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(79,110,247,0.4);
  transition: var(--transition);
  z-index: 999;
  text-decoration: none;
}

.feedback-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 24px rgba(79,110,247,0.5);
  color: #fff;
}

/* ---------- 工具页通用样式 ---------- */
.tool-page {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.tool-header {
  text-align: center;
  margin-bottom: 40px;
}

.tool-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 步骤指示器 */
.steps-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-dot .dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.step-dot.active .dot {
  background: var(--primary);
  color: #fff;
}

.step-dot.done .dot {
  background: var(--secondary);
  color: #fff;
}

.step-dot .step-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.step-dot.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: var(--border);
  align-self: center;
  margin-bottom: 16px;
}

/* 上传区域 */
.upload-zone {
  max-width: 600px;
  margin: 0 auto 32px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  background: var(--bg-white);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-zone .upload-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.upload-zone h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.upload-zone p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* 文件列表 */
.file-list {
  max-width: 600px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.file-item .file-icon {
  font-size: 1.3rem;
}

.file-item .file-info {
  flex: 1;
  min-width: 0;
}

.file-item .file-name {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item .file-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.file-item .file-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.file-item .file-remove:hover {
  background: #FEE2E2;
  color: #EF4444;
}

/* 操作按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79,110,247,0.4);
  color: #fff;
}

.btn-primary:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.btn-secondary:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.btn-success {
  background: var(--secondary);
  color: #fff;
}

.btn-success:hover {
  background: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,185,129,0.4);
  color: #fff;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* 进度条 */
.progress-bar {
  max-width: 600px;
  margin: 24px auto;
  display: none;
}

.progress-bar.show {
  display: block;
}

.progress-bar .progress-track {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 100px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-bar .progress-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* 结果区域 */
.result-area {
  max-width: 600px;
  margin: 24px auto;
  text-align: center;
  display: none;
}

.result-area.show {
  display: block;
}

.result-area .result-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.result-area h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.result-area p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* 设置面板 */
.settings-panel {
  max-width: 600px;
  margin: 0 auto 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.settings-panel h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-row label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.setting-row select,
.setting-row input[type="range"] {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text-primary);
}

/* 扫描预览区 */
.scan-preview {
  max-width: 700px;
  margin: 0 auto 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.scan-preview canvas {
  display: block;
  width: 100%;
  height: auto;
}

.scan-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--bg);
  flex-wrap: wrap;
}

.scan-controls button {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.scan-controls button:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.scan-controls button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 预览网格 */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  max-width: 700px;
  margin: 0 auto 24px;
}

.preview-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  aspect-ratio: 3/4;
}

.preview-item img,
.preview-item canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  opacity: 0;
  transition: var(--transition);
}

.preview-item:hover .remove-btn {
  opacity: 1;
}

/* 广告位预留 */
.ad-slot {
  max-width: 728px;
  margin: 32px auto;
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  background: var(--bg-white);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 会员页 ---------- */
.pricing-section {
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 16px 0;
}

.pricing-card .price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card ul {
  list-style: none;
  margin: 24px 0;
  text-align: left;
}

.pricing-card li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
}

/* 反馈表单 */
.feedback-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  transition: var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,110,247,0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* 静态页面 */
.static-page {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.static-page .page-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
}

.static-page h1 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.static-page h2 {
  font-size: 1.3rem;
  margin: 32px 0 16px;
}

.static-page p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ---------- Toast 通知 ---------- */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: #fff;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.success { background: var(--secondary); }
.toast.error { background: #EF4444; }
.toast.info { background: var(--primary); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .navbar-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .navbar-nav.open {
    display: flex;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  /* 首页首屏响应式 */
  .hero-title-main {
    font-size: 1.9rem;
    padding: 0 16px;
  }

  .hero-subtitle-main {
    font-size: 1rem;
  }

  .hero-tags {
    gap: 8px;
    padding: 0 16px;
  }

  .hero-tag {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .feature-cards {
    grid-template-columns: 1fr;
    padding: 0 20px 60px;
  }

  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .steps-indicator {
    flex-wrap: wrap;
    gap: 4px;
  }

  .step-connector {
    width: 20px;
  }

  .testimonial-card {
    width: 280px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  /* 首页首屏小屏适配 */
  .hero-title-main {
    font-size: 1.6rem;
  }

  .hero-subtitle-main {
    font-size: 0.9rem;
  }

  .hero-tag {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .upload-zone {
    padding: 32px 20px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* ---------- PDF工具箱页面样式 ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.tool-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.tool-card .tool-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--primary-light);
  overflow: hidden;
}

/* SVG图标自适应容器 */
.tool-card .tool-icon svg {
  width: 60%;
  height: 60%;
  color: var(--primary);
}

.tool-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.tool-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 不同工具的图标颜色 */
.tool-card:nth-child(1) .tool-icon { background: #DBEAFE; }
.tool-card:nth-child(1) .tool-icon svg { color: #2563EB; }
.tool-card:nth-child(2) .tool-icon { background: #FCE7F3; }
.tool-card:nth-child(2) .tool-icon svg { color: #DB2777; }
.tool-card:nth-child(3) .tool-icon { background: #D1FAE5; }
.tool-card:nth-child(3) .tool-icon svg { color: #059669; }
.tool-card:nth-child(4) .tool-icon { background: #FEF3C7; }
.tool-card:nth-child(4) .tool-icon svg { color: #D97706; }
.tool-card:nth-child(5) .tool-icon { background: #EDE9FE; }
.tool-card:nth-child(5) .tool-icon svg { color: #7C3AED; }
.tool-card:nth-child(6) .tool-icon { background: #FEE2E2; }
.tool-card:nth-child(6) .tool-icon svg { color: #DC2626; }
.tool-card:nth-child(7) .tool-icon { background: #E0F2FE; }
.tool-card:nth-child(7) .tool-icon svg { color: #0284C7; }

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }
