/* =========================================================
 * Permes 展示网站 · 样式表
 * 深色主题：#141414 背景 + #00ff88 强调色
 * 纯静态，零依赖，双击即用
 * ========================================================= */

/* ============ 防中文闪烁 ============ */
/* 英文用户首次加载时，i18n.js 执行前先隐藏中文文本，避免闪烁 */
html.lang-loading [data-i18n] {
  visibility: hidden;
}
html.lang-loading .hero-visual,
html.lang-loading .demo-window {
  visibility: visible; /* demo 动画区域不隐藏 */
}

/* ============ CSS 变量 ============ */
:root {
  --bg:          #141414;
  --bg-elev:     #1a1a1a;
  --bg-deep:     #0d0d0d;
  --bg-input:    #0f0f0f;
  --border:      #2a2a2a;
  --border-hi:   #3a3a3a;
  --accent:      #00ff88;
  --accent-dim:  rgba(0, 255, 136, 0.12);
  --accent-glow: rgba(0, 255, 136, 0.30);
  --accent-text: #00ff88;
  --text:        #ffffff;
  --text-mut:    #a0a0a0;
  --text-dim:    #666666;
  --st-released: #00ff88;
  --st-dev:      #ffaa00;
  --st-custom:   #b388ff;
  --st-planned:  #666666;
  --radius:      12px;
  --radius-sm:   8px;
  --max-w:       1140px;
  --transition:  0.2s ease;
}

/* ============ Reset ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-mut);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

.accent { color: var(--accent); }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover {
  background: #00e077;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-hi);
}
.btn-ghost:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.btn-discord {
  background: transparent;
  color: #5865F2;
  border-color: #5865F2;
}
.btn-discord:hover {
  background: rgba(88, 101, 242, 0.12);
  border-color: #7289DA;
  color: #7289DA;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.25);
}
.btn-sm { font-size: 13px; padding: 8px 16px; }
.btn-lg { font-size: 17px; padding: 14px 32px; }

/* ============ 导航栏 ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 32px; height: 32px;
  border-radius: 6px;
}
.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mut);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-link:hover {
  color: var(--text);
  background: var(--bg-elev);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-mut);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 60%);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 255, 136, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-title span { display: block; }
.hero-title .accent {
  background: linear-gradient(135deg, #00ff88, #00ddff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}
.hero-desc {
  font-size: 15px;
  color: var(--text-mut);
  margin-bottom: 28px;
  line-height: 1.75;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 13px;
  color: var(--text-dim);
}

/* ============ Hero 演示动画 ============ */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-demo { position: relative; width: 100%; max-width: 380px; }
.demo-window {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28ca42; }
.demo-title {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.demo-body { padding: 16px; }
.demo-pixel-section { margin-bottom: 16px; }
.demo-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #44aaff;
  margin-bottom: 8px;
}
.demo-section-label.ocr { color: #ffaa44; }
.demo-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.bar-led {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
}
.bar-led.on {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: ledPulse 2s ease-in-out infinite;
}
@keyframes ledPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.bar-label {
  font-size: 11px;
  color: var(--text-mut);
}
.demo-ocr-section { margin-bottom: 16px; }
.demo-ocr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.demo-ocr-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ocr-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}
.ocr-lbl {
  font-size: 10px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}
.demo-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-deep);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
}
.demo-action-label {
  font-size: 13px;
  color: var(--text-mut);
  font-family: 'JetBrains Mono', monospace;
}
.demo-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 4px;
  animation: keyPress 2s ease-in-out infinite;
}
@keyframes keyPress {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 var(--accent-glow); }
  50% { transform: scale(0.95); box-shadow: 0 0 12px var(--accent-glow); }
}
.demo-loop-badge {
  position: absolute;
  bottom: -16px;
  right: -8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-deep);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ============ 统计数字 ============ */
.stats-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 64px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -1px;
}
.stat-unit {
  font-size: 0.5em;
  font-weight: 600;
  margin-left: 2px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ============ 通用 Section ============ */
.section {
  padding: 96px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-deep);
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 16px;
  color: var(--text-mut);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============ 工作原理 ============ */
.how-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: center;
}
.how-step {
  flex: 1;
  max-width: 260px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.how-step:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.how-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.how-step-icon {
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.how-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.how-step p {
  font-size: 13px;
  color: var(--text-mut);
  line-height: 1.6;
}
.how-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 20px;
  color: var(--accent);
  font-weight: 300;
}

/* ============ 核心特性 ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  background: var(--bg);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-mut);
  line-height: 1.65;
}

/* ============ 账号安全 ============ */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.safety-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.safety-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0.6;
}
.safety-card:hover {
  border-color: var(--accent);
  background: var(--bg);
  transform: translateY(-2px);
}
.safety-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 12px var(--accent-glow);
}
.safety-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 18px;
}
.safety-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.safety-card p {
  font-size: 14px;
  color: var(--text-mut);
  line-height: 1.65;
}

/* ============ 技术架构 ============ */
.arch-stack {
  max-width: 760px;
  margin: 0 auto;
}
.arch-layer {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: all var(--transition);
}
.arch-layer:hover {
  border-color: var(--accent);
}
.arch-layer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.arch-layer-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 4px;
}
.arch-layer h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.arch-layer > p {
  font-size: 13px;
  color: var(--text-mut);
}
.arch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mut);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
}
.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  color: var(--accent);
}
.arch-flow-label {
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

/* ============ OCR 引擎 ============ */
.ocr-content {
  max-width: 860px;
  margin: 0 auto;
}
  .ocr-phases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }
  .ocr-phases-3 {
    grid-template-columns: repeat(3, 1fr);
  }
.ocr-phase {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.ocr-phase-num {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 12px;
}
.ocr-phase h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.ocr-phase > p {
  font-size: 13px;
  color: var(--text-mut);
  margin-bottom: 14px;
  line-height: 1.65;
}
.ocr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.ocr-table-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ocr-table {
  width: 100%;
  border-collapse: collapse;
}
.ocr-table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-align: left;
  padding: 14px 16px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}
.ocr-table td {
  font-size: 14px;
  color: var(--text-mut);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.ocr-table tr:last-child td { border-bottom: none; }
.ocr-table .mono { color: var(--accent); font-weight: 500; }

/* ============ 职业模块 ============ */
.mod-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}
.mod-filter {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mut);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.mod-filter:hover {
  border-color: var(--border-hi);
  color: var(--text);
}
.mod-filter.active {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.mod-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.mod-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.mod-card.is-hot {
  border-color: rgba(0, 255, 136, 0.25);
}
.mod-card.is-hot:hover {
  border-color: var(--accent);
}
.mod-card-icon {
  width: 48px; height: 48px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-deep);
}
.mod-card.is-hot .mod-card-icon {
  border-color: var(--accent);
}
.mod-card-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.mod-hot-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #0a0a0a;
  background: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.4;
  z-index: 1;
}
.mod-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.mod-card-class {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.mod-card-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
}
.mod-card-status .status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.mod-card-status.released {
  color: var(--st-released);
  background: rgba(0, 255, 136, 0.1);
}
.mod-card-status.released .status-dot { background: var(--st-released); }
.mod-card-status.dev {
  color: var(--st-dev);
  background: rgba(255, 170, 0, 0.1);
}
.mod-card-status.dev .status-dot { background: var(--st-dev); }
.mod-card-status.custom {
  color: var(--st-custom);
  background: rgba(179, 136, 255, 0.1);
}
.mod-card-status.custom .status-dot { background: var(--st-custom); }
.mod-card-status.planned {
  color: var(--st-planned);
  background: rgba(102, 102, 102, 0.1);
}
.mod-card-status.planned .status-dot { background: var(--st-planned); }

/* ============ SimC 评估 ============ */
.simc-content {
  max-width: 860px;
  margin: 0 auto;
}
.simc-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 36px;
}
.simc-step {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mut);
}
.simc-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.simc-step-arrow {
  color: var(--accent);
  font-size: 14px;
}
.simc-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.simc-code {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-title {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.code-body {
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  overflow-x: auto;
}
.code-body code { color: var(--text-mut); }
.c-kw { color: var(--accent); font-weight: 600; }
.c-fn { color: #44aaff; }
.c-str { color: #ffaa44; }
.c-var { color: #b388ff; }
.c-prop { color: #e0e0e0; }
.c-num { color: #ffaa44; }
.c-cmt { color: var(--text-dim); font-style: italic; }

.simc-chart {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.chart-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.chart-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.chart-row { }
.chart-label {
  font-size: 12px;
  color: var(--text-mut);
  margin-bottom: 6px;
  font-weight: 500;
}
.chart-track {
  background: var(--bg-deep);
  border-radius: 6px;
  height: 28px;
  overflow: visible;
  position: relative;
}
.chart-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  transition: width 1.2s ease;
}
.chart-baseline {
  background: linear-gradient(90deg, #2a2a2a, #444);
}
.chart-permes {
  background: linear-gradient(90deg, rgba(0,255,136,0.3), var(--accent));
}
.chart-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}
.chart-badge {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 255, 136, 0.25);
  padding: 8px 16px;
  border-radius: 8px;
}

/* ============ 对比表 ============ */
.cmp-table-wrap {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cmp-scroll {
  overflow-x: auto;
}
.cmp-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}
.cmp-table th {
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 16px 14px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}
.cmp-table th.cmp-permes-col {
  color: var(--accent);
  border-left: 2px solid var(--accent);
}
.cmp-table td {
  font-size: 13px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mut);
}
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.cmp-table td:last-child {
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}
.cmp-table .cmp-meh { color: var(--text-dim); }

/* ============ 使用流程 ============ */
.start-note {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}
.start-timeline {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.start-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: all var(--transition);
  min-width: 140px;
  flex: 1;
}
.start-step:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.start-step-num {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.start-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] {
  border-color: var(--accent);
}
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.faq-icon {
  font-size: 20px;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-mut);
  line-height: 1.7;
}

/* ============ 下载 CTA ============ */
.section-cta {
  padding: 80px 0;
}
.cta-box {
  text-align: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, var(--accent-dim), transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
}
.cta-sub {
  font-size: 15px;
  color: var(--text-mut);
  margin-bottom: 24px;
  position: relative;
}
.cta-box .btn { position: relative; }

/* ============ Footer ============ */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-logo img {
  width: 28px; height: 28px;
  border-radius: 5px;
}
.footer-logo span {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.footer-info-row span:first-child { color: var(--text-dim); }
.footer-info-row span:last-child { color: var(--text-mut); }
.footer-info-row .mono { color: var(--accent); }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-mut);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}
.footer-disclaimer {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ============ 返回顶部 ============ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px; height: 40px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-mut);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 90;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ 滚动渐显动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 响应式 ============ */
@media (max-width: 968px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual { order: -1; }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .how-flow {
    flex-direction: column;
    gap: 0;
  }
  .how-step { max-width: 100%; }
  .how-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
  .simc-demo {
    grid-template-columns: 1fr;
  }
  .ocr-phases-3 {
    grid-template-columns: 1fr 1fr;
  }
  .safety-grid {
    grid-template-columns: 1fr 1fr;
  }
  .start-timeline {
    flex-wrap: wrap;
    gap: 12px;
  }
  .start-step {
    min-width: 140px;
    flex: 1 1 40%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-burger { display: flex; }
  .nav-actions .btn-sm { display: none; }
  .stats-bar {
    flex-wrap: wrap;
    gap: 16px;
  }
  .stat-divider { display: none; }
  .stat-item { flex: 1 1 40%; }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .safety-grid {
    grid-template-columns: 1fr;
  }
  .ocr-phases {
    grid-template-columns: 1fr;
  }
  .ocr-phases-3 {
    grid-template-columns: 1fr;
  }
  .section { padding: 64px 0; }
  .hero { padding: 110px 0 60px; }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn { width: 100%; }
  .mod-grid {
    grid-template-columns: 1fr 1fr;
  }
  .simc-steps {
    flex-direction: column;
  }
  .simc-step-arrow {
    transform: rotate(90deg);
  }
}

/* ============ 下载限流 Toast ============ */
.download-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--bg-elev);
  border: 1px solid var(--border-hi);
  color: var(--text);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.download-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
