/* ============================
   CSS Variables & Reset
============================ */
:root {
  --primary: #1E293B;
  --accent: #C9A962;
  --secondary: #475569;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --success: #059669;
  --warning: #D97706;
  --font-zh: "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: 'Inter', sans-serif;
  --font-serif: 'Noto Serif SC', serif;
  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-en), var(--font-zh);
  background: var(--bg);
  color: var(--primary);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================
   Container
============================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================
   Buttons
============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 500;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #0F172A; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--primary);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-ghost { color: var(--secondary); }
.btn-ghost:hover { color: var(--primary); }
.btn-gold {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(201,169,98,.4);
}
.btn-gold:hover { background: #BF9A52; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,169,98,.5); }
.btn-ghost-white { color: rgba(255,255,255,.85); border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost-white:hover { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; padding: 12px; }

/* ============================
   Navbar
============================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.3px;
}
.logo-text em {
  font-style: normal;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(30,41,59,.05); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; transition: .2s; }

/* ============================
   Hero
============================ */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(160deg, #F0F4FA 0%, #F8FAFC 60%, #FFFBF0 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,169,98,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30,41,59,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--secondary);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 40px;
}

/* Upload Zone */
.upload-zone {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-card);
  padding: 48px 32px;
  max-width: 680px;
  margin: 0 auto 32px;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.upload-zone:hover { border-color: #CBD5E1; box-shadow: var(--shadow-md); }
.upload-zone.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201,169,98,.15), var(--shadow-md);
  animation: pulse-border .8s ease infinite;
}
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201,169,98,.15), var(--shadow-md); }
  50% { box-shadow: 0 0 0 8px rgba(201,169,98,.08), var(--shadow-md); }
}
.upload-icon { margin-bottom: 16px; }
.upload-title { font-size: 18px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.upload-hint { font-size: 14px; color: var(--secondary); margin-bottom: 24px; }
.upload-btn { font-size: 14px; }

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 680px;
  margin: 0 auto 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 28px;
  box-shadow: var(--shadow-sm);
}
.lang-label {
  display: block;
  font-size: 12px;
  color: var(--secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.lang-select-box { position: relative; }
.lang-select {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 32px 8px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  min-width: 140px;
}
.lang-arrow { color: var(--accent); flex-shrink: 0; }
.target-langs { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.lang-chip input { display: none; }
.lang-chip:hover { border-color: var(--primary); color: var(--primary); }
.lang-chip.active, .lang-chip:has(input:checked) {
  border-color: var(--accent);
  background: rgba(201,169,98,.08);
  color: var(--primary);
}

.hero-cta { display: flex; gap: 12px; justify-content: center; margin-bottom: 56px; position: relative; z-index: 1; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 28px;
  flex: 1;
}
.stat-num { font-size: 24px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--secondary); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ============================
   Section Shared
============================ */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(201,169,98,.12);
  color: #A07D30;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.section-desc { font-size: 17px; color: var(--secondary); max-width: 520px; margin: 0 auto; }

/* ============================
   Features
============================ */
.features { padding: 96px 0; background: var(--surface); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: box-shadow .2s, transform .2s;
  background: var(--surface);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-title { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--secondary); line-height: 1.7; }

/* ============================
   How It Works
============================ */
.howto { padding: 96px 0; background: var(--bg); }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
}
.step-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  opacity: .7;
  font-family: var(--font-en);
  margin-bottom: 16px;
  line-height: 1;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--secondary); line-height: 1.7; }
.step-arrow { font-size: 24px; color: var(--accent); padding-top: 40px; flex-shrink: 0; }

/* ============================
   Testimonials
============================ */
.testimonials { padding: 96px 0; background: var(--surface); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: box-shadow .2s;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, #FFFBF0 0%, var(--surface) 100%);
  box-shadow: 0 4px 20px rgba(201,169,98,.2);
}
.testimonial-stars { color: var(--accent); font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; color: var(--secondary); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}
.author-name { font-size: 14px; font-weight: 600; }
.author-title { font-size: 13px; color: var(--secondary); }

/* ============================
   Pricing
============================ */
.pricing { padding: 96px 0; background: var(--bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
  position: relative;
  transition: box-shadow .2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-tier { font-size: 14px; font-weight: 600; color: var(--secondary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.pricing-price { margin-bottom: 28px; }
.price-currency { font-size: 24px; font-weight: 500; vertical-align: top; margin-top: 8px; display: inline-block; }
.price-num { font-size: 42px; font-weight: 800; color: var(--primary); line-height: 1; }
.price-period { font-size: 15px; color: var(--secondary); }
.pricing-features { margin-bottom: 28px; }
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--secondary);
  border-bottom: 1px solid var(--bg);
}
.pricing-features li.disabled { color: #CBD5E1; }

/* ============================
   CTA Banner
============================ */
.cta-banner {
  padding: 96px 0;
  background: var(--primary);
  text-align: center;
}
.cta-banner h2 { font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-banner p { font-size: 17px; color: rgba(255,255,255,.65); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; }

/* ============================
   Footer
============================ */
.footer { background: #0F172A; padding: 64px 0 0; color: rgba(255,255,255,.6); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-text { color: #fff; }
.footer-desc { font-size: 14px; margin-top: 16px; line-height: 1.7; }
.footer-links h4 { font-size: 13px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-links a:hover { color: rgba(255,255,255,.9); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ============================
   Workbench Page
============================ */
.workbench-layout {
  display: flex;
  height: calc(100vh - 68px);
  margin-top: 68px;
}
.wb-sidebar {
  width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}
.wb-sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.wb-sidebar-header h3 { font-size: 14px; font-weight: 600; }
.wb-sidebar-header p { font-size: 12px; color: var(--secondary); margin-top: 4px; }
.wb-doc-info {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.doc-meta { display: flex; flex-direction: column; gap: 8px; }
.doc-meta-item { display: flex; justify-content: space-between; font-size: 13px; }
.doc-meta-label { color: var(--secondary); }
.doc-meta-value { font-weight: 500; }
.wb-pages { flex: 1; overflow-y: auto; padding: 12px; }
.page-thumb {
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color .15s;
}
.page-thumb:hover, .page-thumb.active { border-color: var(--accent); }
.page-thumb-content {
  height: 120px;
  background: var(--bg);
  padding: 10px;
  font-size: 9px;
  color: var(--secondary);
  line-height: 1.6;
  overflow: hidden;
  font-family: var(--font-serif);
}
.page-thumb-num {
  padding: 6px;
  text-align: center;
  font-size: 11px;
  color: var(--secondary);
  background: var(--surface);
}

/* Main translation area */
.wb-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.wb-toolbar {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wb-toolbar-group { display: flex; align-items: center; gap: 8px; }
.wb-toolbar-divider { width: 1px; height: 24px; background: var(--border); }
.mode-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
  border: 1px solid transparent;
  transition: all .15s;
}
.mode-btn:hover { background: var(--bg); color: var(--primary); }
.mode-btn.active { background: var(--primary); color: #fff; }
.toggle-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.toggle {
  position: relative;
  width: 36px; height: 20px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  border-radius: 100px;
  transition: .2s;
  cursor: pointer;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
  box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle-track { background: var(--success); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); }
.wb-export-btn {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.export-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: var(--surface);
  transition: all .15s;
}
.export-btn:hover { background: var(--bg); border-color: var(--primary); }

/* Translation content */
.wb-content { flex: 1; overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 0; }
.translation-segment {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.seg-original {
  padding: 16px 0 12px;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.8;
  position: relative;
}
.seg-original::before {
  content: '原';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--secondary);
  margin-right: 10px;
  flex-shrink: 0;
  vertical-align: middle;
}
.seg-translated {
  padding: 12px 0 16px;
  border-top: 1.5px dashed var(--border);
  font-size: 15px;
  line-height: 1.8;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.seg-polished-indicator {
  width: 3px;
  background: var(--success);
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 24px;
  margin: 2px 0;
}
.seg-text { flex: 1; }
.seg-edit-btn {
  opacity: 0;
  flex-shrink: 0;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 12px;
  color: var(--secondary);
  background: var(--surface);
  transition: opacity .15s;
}
.translation-segment:hover .seg-edit-btn { opacity: 1; }
.legal-term {
  background: rgba(201,169,98,.15);
  border-bottom: 1.5px solid var(--accent);
  cursor: pointer;
  position: relative;
}
.legal-term:hover .term-tooltip { display: block; }
.term-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 240px;
  font-size: 13px;
  line-height: 1.6;
  z-index: 50;
  box-shadow: var(--shadow-lg);
  margin-bottom: 8px;
}
.term-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--primary);
}

/* Right AI panel */
.wb-ai-panel {
  width: 280px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}
.ai-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-panel-header h3 { font-size: 14px; font-weight: 600; }
.ai-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
}
.ai-panel-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.ai-section {}
.ai-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-section-toggle { cursor: pointer; color: var(--accent); }
.polish-log-item {
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 12px;
  color: var(--secondary);
  margin-bottom: 6px;
  border-left: 3px solid var(--success);
}
.polish-log-item strong { color: var(--primary); display: block; margin-bottom: 4px; }
.term-suggest-item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
}
.term-suggest-item .term-zh { font-size: 14px; font-weight: 600; }
.term-suggest-item .term-en { font-size: 13px; color: var(--accent); font-weight: 500; margin: 4px 0; }
.term-suggest-item .term-note { font-size: 12px; color: var(--secondary); }
.risk-item {
  padding: 10px 12px;
  background: rgba(217,119,6,.06);
  border: 1px solid rgba(217,119,6,.2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--secondary);
  margin-bottom: 6px;
}
.risk-item strong { color: var(--warning); display: block; margin-bottom: 4px; }
.ai-quick-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ai-quick-btn {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: var(--surface);
  text-align: left;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-quick-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================
   Terms Page
============================ */
.terms-page { padding-top: 68px; min-height: 100vh; }
.terms-header {
  background: var(--primary);
  padding: 56px 0 40px;
  color: #fff;
}
.terms-header h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.terms-header p { color: rgba(255,255,255,.65); font-size: 16px; }
.terms-search {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.terms-search input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  max-width: 400px;
  background: rgba(255,255,255,.1);
  color: #fff;
  outline: none;
}
.terms-search input::placeholder { color: rgba(255,255,255,.4); }
.terms-search input:focus { background: rgba(255,255,255,.15); }
.terms-search .btn { border-color: rgba(255,255,255,.3); color: #fff; }
.terms-body { display: flex; gap: 0; }
.terms-sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}
.terms-sidebar h3 { font-size: 13px; font-weight: 600; color: var(--secondary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.category-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--secondary);
  transition: all .15s;
  margin-bottom: 2px;
}
.category-btn:hover, .category-btn.active { background: rgba(30,41,59,.05); color: var(--primary); font-weight: 500; }
.category-btn.active { background: rgba(201,169,98,.1); color: var(--primary); }
.terms-content { flex: 1; padding: 24px; }
.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.term-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  transition: box-shadow .2s;
}
.term-card:hover { box-shadow: var(--shadow-md); }
.term-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.term-zh-main { font-size: 17px; font-weight: 600; font-family: var(--font-serif); }
.term-domain {
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(201,169,98,.12);
  color: #A07D30;
  border-radius: 100px;
  font-weight: 600;
}
.term-translations { display: flex; flex-direction: column; gap: 6px; }
.term-lang-row { display: flex; gap: 10px; align-items: baseline; }
.term-lang-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary);
  width: 28px;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.term-lang-text { font-size: 14px; color: var(--primary); }
.term-card-footer { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.term-source { font-size: 12px; color: var(--secondary); }
.term-bookmark {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--secondary);
  background: var(--surface);
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.term-bookmark:hover, .term-bookmark.bookmarked { background: rgba(201,169,98,.1); border-color: var(--accent); color: var(--accent); }

/* ============================
   Records Page
============================ */
.records-page { padding-top: 68px; min-height: 100vh; }
.records-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.records-header-inner { display: flex; align-items: center; justify-content: space-between; }
.records-header h1 { font-size: 24px; font-weight: 700; }
.records-filter { display: flex; gap: 10px; margin-top: 20px; }
.filter-btn {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
  background: var(--surface);
  transition: all .15s;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(30,41,59,.04); }
.records-search {
  display: flex;
  gap: 8px;
}
.records-search input {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  width: 260px;
}
.records-search input:focus { border-color: var(--primary); }
.records-content { padding: 32px 0; }
.records-grid { display: flex; flex-direction: column; gap: 12px; }
.record-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: box-shadow .2s;
}
.record-card:hover { box-shadow: var(--shadow-md); }
.record-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(30,41,59,.06);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.record-info { flex: 1; min-width: 0; }
.record-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-meta { display: flex; gap: 16px; }
.record-meta-item { font-size: 13px; color: var(--secondary); display: flex; align-items: center; gap: 4px; }
.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
}
.status-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.status-completed { background: rgba(5,150,105,.1); color: var(--success); }
.status-processing { background: rgba(59,130,246,.1); color: #3B82F6; }
.status-failed { background: rgba(239,68,68,.1); color: #EF4444; }
.record-actions { display: flex; gap: 6px; }
.record-action-btn {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
  background: var(--surface);
  transition: all .15s;
}
.record-action-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.record-action-btn.danger:hover { background: #EF4444; border-color: #EF4444; }

/* ============================
   Progress Modal
============================ */
.progress-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.progress-modal.show { display: flex; }
.progress-box {
  background: var(--surface);
  border-radius: 16px;
  padding: 40px;
  width: 400px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.progress-ring { margin: 0 auto 24px; position: relative; width: 100px; height: 100px; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring-track { fill: none; stroke: var(--bg); stroke-width: 8; }
.progress-ring-fill { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.progress-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.progress-subtitle { font-size: 14px; color: var(--secondary); }
.progress-steps { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.progress-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--secondary);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg);
}
.progress-step-item.done { color: var(--success); }
.progress-step-item.active { color: var(--primary); font-weight: 500; }
.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.progress-step-item.done .step-dot { background: var(--success); }
.progress-step-item.active .step-dot { background: var(--accent); animation: pulse-dot .8s ease infinite; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.8); }
}

/* ============================
   Responsive
============================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .wb-ai-panel { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); padding: 0; align-self: center; }
  .lang-selector { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .cta-actions { flex-direction: column; align-items: center; }
  .hero-cta { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
