/* LP-Verify 设计 Token (深色科技感) — Mockup 用 */

/* ===== 本地 Web Fonts (latin, 可变字体 — 单文件覆盖整个字重轴) ===== */
@font-face {
  font-family: 'Inter';
  src: url("/static/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url("/static/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url("/static/fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #4f8cf7;
  --accent: #22c55e;
  --warning: #fbbf24;
  --danger: #ef4444;
  --dark-bg: #0a0e27;
  --dark-card: #111533;
  --dark-lighter: #1a1f3a;
  --dark-border: rgba(79, 140, 247, 0.25);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

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

html, body {
  background: var(--dark-bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

/* ===== 顶部导航 ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
}
.navbar .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.navbar .logo::before {
  content: '▌'; color: var(--primary); font-size: 24px;
}
.navbar nav { display: flex; gap: 32px; }
.navbar nav a {
  color: var(--text-secondary); font-size: 14px;
  font-weight: 500; padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.navbar nav a:hover, .navbar nav a.active {
  color: var(--primary); border-bottom-color: var(--primary);
  text-decoration: none;
}
.navbar .actions { display: flex; gap: 12px; align-items: center; }

/* ===== 统一顶部导航 (.lp-nav* — 由 navbar.js 注入) ===== */
.lp-nav-wrap {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(10, 14, 39, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lp-nav {
  display: flex; align-items: center;
  padding: 14px 32px;
  max-width: 1200px; margin: 0 auto;
}
.lp-logo {
  display: flex; align-items: center; gap: 8px;
  margin-right: 40px; flex-shrink: 0;
  text-decoration: none;
}
.lp-logo:hover { text-decoration: none; }
.lp-logo img { display: block; height: 36px; width: auto; }
.lp-nav-links {
  display: flex; gap: 28px; font-size: 14px;
  margin-right: auto;
}
.lp-nav-links a {
  color: #94a3b8; transition: color .2s;
  position: relative; padding: 4px 0;
  text-decoration: none;
}
.lp-nav-links a:hover, .lp-nav-links a.active {
  color: #fff; text-decoration: none;
}
.lp-nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--primary); border-radius: 1px;
}
/* 法律协议下拉菜单 (CSS hover 触发, 无 JS)
   修复点 (2026-07-18):
   1. 触发项与同级 a 链接严格垂直对齐 (相同 padding/line-height)
   2. ▾ 箭头用绝对定位, 不影响行高
   3. 菜单 padding/项间距收紧, 整体高度从 ~160px 降到 ~110px
   4. 触发区与菜单间用透明 padding 桥接, 防止 hover 滑过空白时菜单消失
*/
.lp-nav-dropdown { position: relative; }
.lp-nav-dropdown > .lp-nav-drop-trigger {
  cursor: pointer;
  display: inline-block;
  padding: 4px 14px 4px 0;         /* 右侧 14px 给 ▾ 箭头留位置, 顶/底 4px 与 .lp-nav-links a 对齐 */
  color: #94a3b8;
  position: relative;
  transition: color .2s;
}
.lp-nav-dropdown:hover > .lp-nav-drop-trigger { color: #fff; }
.lp-nav-dropdown > .lp-nav-drop-trigger::after {
  content: '▾';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);   /* 中心对齐, 不撑高行高 */
  font-size: 10px;
  color: inherit;
}
.lp-nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #111533;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 4px;                    /* 容器 padding 收紧 */
  min-width: 140px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  margin-top: 4px;                 /* 与触发区距离收紧 */
  z-index: 200;
}
/* 透明桥接区: 防止鼠标从触发区滑到菜单过程中 hover 断开 */
.lp-nav-drop-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0; right: 0;
  height: 6px;
}
.lp-nav-dropdown:hover .lp-nav-drop-menu,
.lp-nav-dropdown:focus-within .lp-nav-drop-menu { display: block; }
.lp-nav-drop-menu a {
  display: block;
  padding: 6px 12px;               /* 项内距收紧 (原 8px 12px) */
  color: #94a3b8;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.lp-nav-drop-menu a:hover { background: rgba(79,140,247,0.12); color: #4f8cf7; }
.lp-nav-actions {
  display: flex; gap: 8px; flex-shrink: 0; align-items: center;
}
.lp-nav-user {
  font-size: 13px; color: #94a3b8;
  margin-right: 8px;
  text-decoration: none;
  display: inline-flex; align-items: center;
  transition: color 0.15s;
}
.lp-nav-user strong { color: #fff; font-weight: 600; margin-left: 4px; transition: color 0.15s; }
.lp-nav-user:hover { color: #cdd6e4; }
.lp-nav-user:hover strong { color: #4f8cf7; }
.lp-nav-btn {
  padding: 6px 16px !important; font-size: 13px !important;
}

/* 页面顶部占位, 避免 navbar fixed 遮挡内容 (navbar 高度约 56-60px) */
body { padding-top: 60px; }

/* ===== 统一底部 footer (.lp-footer* — 由 footer.js 注入) ===== */
.lp-footer {
  /* 底图拉伸铺满 + 渐变遮罩 — 风格与宣传页 hero 一致 (深色科技感, 保底部文字可读) */
  background-image:
    linear-gradient(180deg, rgba(10,14,39,0.50) 0%, rgba(10,14,39,0.88) 100%),
    url('/static/img/footer1_02.png');
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center, center;
  padding: 48px 24px 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 80px;
}
.lp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.lp-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.lp-footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s;
}
.lp-footer-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}
.lp-footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}
.lp-footer-icp {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 768px) {
  .lp-footer { padding: 32px 20px 24px; margin-top: 48px; }
  .lp-footer-links { gap: 16px; }
}

/* 响应式 */
@media (max-width: 768px) {
  .lp-nav { flex-wrap: wrap; gap: 12px; padding: 12px 20px; }
  .lp-nav-links { order: 3; width: 100%; justify-content: center; gap: 16px; margin-right: 0; }
  .lp-logo { margin-right: auto; }
  body { padding-top: 120px; }
}
@media (max-width: 480px) {
  .lp-nav-links { gap: 12px; font-size: 13px; }
  .lp-nav-btn { padding: 5px 12px !important; font-size: 12px !important; }
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 10px 20px;
  font-size: 14px; font-weight: 600;
  border-radius: 6px; border: none; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
  text-align: center;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(79, 140, 247, 0.3);
}
.btn-primary:hover { background: #6ba1ff; transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--dark-border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.4); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.1); }
.btn-large { padding: 14px 32px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ===== 容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.section { padding: 80px 0; }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px; font-weight: 700;
  text-align: center; margin-bottom: 12px;
  color: var(--text-primary);
}
.section-subtitle {
  text-align: center; color: var(--text-secondary);
  font-size: 15px; margin-bottom: 48px;
}

/* ===== 卡片 ===== */
.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 140, 247, 0.15);
}

/* ===== 输入框 ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 13px;
  color: var(--text-secondary); margin-bottom: 6px;
  font-weight: 500;
}
.form-input {
  width: 100%; padding: 11px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px; color: var(--text-primary);
  font-family: inherit; font-size: 14px;
  transition: all 0.2s;
}
.form-input:focus {
  outline: none; border-color: var(--primary);
  background: rgba(79, 140, 247, 0.05);
}
.form-input::placeholder { color: var(--text-muted); }
.form-error {
  font-size: 12px; color: var(--danger); margin-top: 6px;
  display: none;
}
.form-hint {
  font-size: 11px; color: var(--text-muted); margin-top: 4px;
}

/* ===== 状态徽章 ===== */
.badge {
  display: inline-block; padding: 4px 10px;
  font-size: 11px; font-weight: 600;
  border-radius: 12px; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-pending { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.badge-approved { background: rgba(34, 197, 94, 0.15); color: var(--accent); }
.badge-rejected { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-served { background: rgba(79, 140, 247, 0.15); color: var(--primary); }

/* ===== 网格 ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 24px; }
  .navbar { padding: 16px 24px; }
  .navbar nav { display: none; }
}

/* ===== Hero 专属 ===== */
.hero {
  min-height: calc(100vh - 65px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(79, 140, 247, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1330 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79, 140, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 140, 247, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 0 24px; }
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--primary);
  letter-spacing: 3px; margin-bottom: 24px;
  text-transform: uppercase;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 72px; font-weight: 700;
  letter-spacing: -1px; line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 20px; color: var(--text-secondary);
  margin-bottom: 48px; line-height: 1.5;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; }

/* ===== 卡片图标 ===== */
.card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(79, 140, 247, 0.2), rgba(79, 140, 247, 0.05));
  border: 1px solid rgba(79, 140, 247, 0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 600;
  margin-bottom: 12px;
}
.card-text {
  color: var(--text-secondary); font-size: 14px;
  margin-bottom: 16px;
}
.card-data {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px; font-weight: 700;
  color: var(--primary);
}
.card-data-label {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: 4px;
}

/* ===== 价格表 ===== */
.price-card { text-align: center; position: relative; }
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 8px 24px rgba(79, 140, 247, 0.2);
}
.price-card.featured::before {
  content: '推荐';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  padding: 4px 14px; border-radius: 12px;
  font-size: 11px; font-weight: 600;
}
.price-name { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.price-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px; font-weight: 700; color: var(--primary);
  margin-bottom: 4px;
}
.price-amount small { font-size: 14px; color: var(--text-secondary); font-weight: 400; }
.price-unit { color: var(--text-muted); font-size: 12px; margin-bottom: 24px; }
.price-features {
  list-style: none; text-align: left; margin-bottom: 24px;
}
.price-features li {
  padding: 8px 0; font-size: 13px; color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.price-features li::before { content: '✓ '; color: var(--accent); font-weight: 700; }

/* ===== Dashboard 区块 ===== */
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
  position: sticky; top: 0; z-index: 100;
}
.dash-header .user {
  font-size: 14px; color: var(--text-secondary);
}
.dash-header .user strong { color: var(--text-primary); margin-right: 8px; }
.dash-section { padding: 32px 48px; }
.dash-section + .dash-section { border-top: 1px solid var(--dark-border); }
.dash-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 600;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-secondary); font-size: 13px; }
.info-value { color: var(--text-primary); font-size: 14px; font-weight: 500; }
.key-display {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px; border-radius: 6px;
  border: 1px solid var(--dark-border);
  font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
}
.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--text-secondary);
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }

/* ===== 页脚 ===== */
.footer {
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 48px;
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}
.footer h4 {
  font-size: 13px; color: var(--text-primary);
  margin-bottom: 12px; font-weight: 600;
}
.footer p, .footer a {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.8; display: block;
}
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--dark-border);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-muted);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-section, .dash-header { padding: 20px 24px; }
}

/* 登录态顶部导航 */
.user-menu { position: relative; display: inline-block; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  color: var(--text-secondary); font-size: 13px;
}
.user-menu-trigger:hover { color: var(--primary); background: rgba(79,140,247,0.1); }
.user-menu-dropdown {
  display: none; position: absolute; right: 0; top: 100%;
  background: var(--dark-card); border: 1px solid var(--dark-border);
  border-radius: 8px; padding: 8px; min-width: 180px; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.user-menu.open .user-menu-dropdown { display: block; }
.user-menu-dropdown a {
  display: block; padding: 8px 12px; color: var(--text-secondary);
  font-size: 13px; border-radius: 4px;
}
.user-menu-dropdown a:hover { background: rgba(79,140,247,0.1); color: var(--primary); text-decoration: none; }

/* 2026-07-15 demo-key-guard Phase 1: 卡片高亮 (query param 触发) */
.card-highlight {
    border-color: var(--danger, #ef4444) !important;
    transition: border-color 0.3s ease;
}
.api-key-low-balance {
    border-color: var(--warning, #fbbf24) !important;
    transition: border-color 0.3s ease;
}

/* ===== 2026-07-20 网页改版: 章节卡 / 高亮卡 / SVG icon / 章节编号 chip ===== */

/* SVG icon 通用类 — 跨文件引用 /static/icons.svg#i-xxx */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: none;
    stroke: currentColor;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
/* 大号图标 — 用于卡片/空状态/标题前缀 */
.icon-lg { width: 1.4em; height: 1.4em; }
.icon-xl { width: 2em; height: 2em; }

/* 章节卡 (.form-section) — 长表单分组 / 营销页 section / 工单内容块 */
.form-section {
    background: var(--dark-lighter);
    border: 1px solid rgba(79, 140, 247, 0.15);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    animation: fade-in-up 0.5s ease both;
}
.form-section:last-child {
    margin-bottom: 0;
}
.form-section:hover {
    border-color: rgba(79, 140, 247, 0.4);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(79, 140, 247, 0.1);
}

/* 主色高亮卡 — 仅 4 类语义: 推荐 / 选中 / 重点 CTA / 当前状态 */
.form-section.is-cta,
.is-highlight {
    border-color: var(--primary);
    background: rgba(79, 140, 247, 0.05);
    box-shadow: 0 0 0 1px var(--primary), 0 8px 24px rgba(79, 140, 247, 0.15);
    animation: cta-pulse 3s ease-in-out infinite;
}
.form-section.is-cta:hover,
.is-highlight:hover {
    box-shadow: 0 0 0 1px var(--primary), 0 12px 32px rgba(79, 140, 247, 0.25);
}

/* 渐入动画 — 用于章节卡 / 卡片 / panel 入场 */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
/* CTA 呼吸光 — 主色高亮卡微光脉冲 */
@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 0 1px var(--primary), 0 8px 24px rgba(79, 140, 247, 0.15); }
    50% { box-shadow: 0 0 0 1px var(--primary), 0 8px 28px rgba(79, 140, 247, 0.3); }
}
/* hover 抬升 — 用于 dim-card / product card / 列表行 */
.lift-on-hover {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lift-on-hover:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 140, 247, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
/* 图标按钮 hover 微弹 — 用于密码可见切换 / 操作图标 */
.icon-btn:hover .icon {
    transform: scale(1.1);
}

/* ============================================================
 * 动态效果系统 (2026-07-20) — 让深色页面活跃起来
 * 4 类动效: 滚动触发淡入 / hover 抬升光晕 / 主色脉冲 / 浮动光斑
 * ============================================================ */

/* 滚动触发淡入 — JS IntersectionObserver 加 .is-visible 触发 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* 错峰延迟 — 同屏多个元素依次入场 */
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.40s; }
.reveal.from-left { transform: translateX(-24px); }
.reveal.from-right { transform: translateX(24px); }
.reveal.from-left.is-visible, .reveal.from-right.is-visible { transform: translateX(0); }
/* 触屏设备 / reduced-motion 降级 — 不动画直接显示 */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* 数字计数器 — 用于核心指标卡片 */
.counter { font-variant-numeric: tabular-nums; }

/* 浮动光斑 — hero 区背景装饰, 缓慢飘动 */
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    33% { transform: translate(30px, -20px) scale(1.1); opacity: 0.7; }
    66% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.4; }
}
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    animation: float-orb 18s ease-in-out infinite;
    z-index: 0;
}
.orb-1 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(79,140,247,0.4), transparent 70%); top: -100px; left: -100px; }
.orb-2 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(139,92,246,0.35), transparent 70%); top: 20%; right: -120px; animation-delay: -6s; animation-duration: 22s; }
.orb-3 { width: 240px; height: 240px; background: radial-gradient(circle, rgba(34,197,94,0.25), transparent 70%); bottom: -80px; left: 30%; animation-delay: -12s; animation-duration: 26s; }

/* 主色按钮微动 — hover 抬升 + 光晕扩散 */
.btn-pulse { position: relative; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn-pulse::after {
    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.5s ease, height 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
}
.btn-pulse:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,140,247,0.35); }
.btn-pulse:hover::after { width: 220px; height: 220px; opacity: 0; }
.btn-pulse:active { transform: translateY(0); }

/* 渐变文字 — 用于 hero 标题高亮部分 */
@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.gradient-text {
    background: linear-gradient(90deg, #4f8cf7, #8b5cf6, #22c55e, #4f8cf7);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-flow 8s ease infinite;
}

/* 标签微闪烁 — lp-section-label / product-tier 等小标签 */
@keyframes subtle-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79,140,247,0); }
    50% { box-shadow: 0 0 12px 2px rgba(79,140,247,0.25); }
}

/* 数据条 — 用于功能全景图 / 进度条 */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer-bar {
    background: linear-gradient(90deg, transparent, rgba(79,140,247,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2.5s linear infinite;
}

/* 章节标题 — 18px Space Grotesk + padding-bottom 分隔线 (替代 3px 竖条) */
.form-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
/* 章节编号 chip — 01/02/03 装饰编号 (新增, 不替换原文数字, 与原文文字并存) */
.form-section-title .num,
.section-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
    padding: 2px 8px;
    background: rgba(79, 140, 247, 0.12);
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* section-eyebrow — 章节小标签 (可选, 用于营销页 section 标题上方) */
.section-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding: 3px 10px;
    background: rgba(79, 140, 247, 0.1);
    border-radius: 3px;
    text-transform: uppercase;
}

/* dim-card 高亮变体 — 指标卡的重点状态 (如"准确率 99.9%") */
.dim-card.is-highlight {
    border-color: var(--primary);
    background: rgba(79, 140, 247, 0.05);
    box-shadow: 0 0 0 1px var(--primary);
}
.dim-card.is-highlight .dim-title {
    color: #fff;
}
.dim-card.is-highlight .dim-desc {
    color: var(--text-primary);
}
.dim-metric {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 8px;
    display: block;
}

/* ========== CSP 迁移通用工具类 (2026-08-17) ==========
   提取自各 HTML 页面高频出现的 inline style, 无颜色/背景, 与深色主题兼容.
   有颜色的 class (overlay-mask/modal-container 等) 留给具体页面级 CSS 按需定义.
*/

/* 显隐 */
.hidden { display: none !important; }
.invisible { visibility: hidden; }

/* flex 布局工具 */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-sm { display: flex; gap: 8px; align-items: center; }
.flex-gap-md { display: flex; gap: 12px; align-items: center; }

/* cursor */
.cursor-pointer { cursor: pointer; }

/* 文本 */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ===== 悬浮联系客服 (contact-fab.js 注入; landing/workspace 页面内联版同款) ===== */
.fab-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #4f8cf7;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  animation: fab-pulse 2s ease-in-out infinite;
}
.fab-contact:hover { transform: scale(1.1); animation: none; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(79, 140, 247, 0.5), 0 0 0 0 rgba(79, 220, 247, 0.5); }
  50% { box-shadow: 0 4px 24px rgba(79, 140, 247, 0.9), 0 0 0 14px rgba(79, 220, 247, 0); }
}
.contact-popup {
  display: none;
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 320px;
  background: #111533;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 901;
  padding: 24px;
  color: #e2e8f0;
  box-sizing: border-box;
}
.contact-popup.active { display: block; }
.contact-popup h3 { margin: 0 0 16px; font-size: 16px; color: #fff; }
.contact-popup .qr-area { text-align: center; margin-bottom: 16px; }
.contact-popup .qr-area img {
  width: 160px; height: 160px; image-rendering: pixelated;
  border-radius: 8px; background: #fff; display: block; margin: 0 auto;
}
.contact-popup .qr-caption { font-size: 12px; color: #94a3b8; margin-top: 6px; }
.contact-popup .info-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.contact-popup .info-icon { font-size: 18px; display: inline-flex; }
.contact-popup .info-row a { text-decoration: none; }
.contact-popup .close-popup {
  position: absolute;
  top: 8px; right: 12px;
  background: none; border: none;
  font-size: 20px; cursor: pointer; color: #64748b;
  line-height: 1;
}
.contact-popup .close-popup:hover { color: #fff; }
@media (max-width: 480px) {
  .fab-contact { bottom: 16px; right: 16px; width: 48px; height: 48px; }
  .contact-popup { bottom: 76px; right: 12px; left: 12px; width: auto; }
}
.text-error { color: var(--danger); }

/* ===== 套餐视觉标记系统 (2026-09-15) =====
 * 3 个产品套餐各绑定一个主色 + 一个几何图形, 用户无需读文字即可区分:
 *   strict_lp        精准法人核验     蓝 #4f8cf7  ■ 方块
 *   strict_premium   精准法人全量查询  紫 #a855f7  ◆ 菱形
 *   strict_standard  标准法人查询      绿 #22c55e  ● 圆形
 * 图形 + 颜色双通道编码, 色弱用户也能区分. 浅色页面 (admin) 覆盖见 admin.css.
 */
:root {
  --pkg-lp: #4f8cf7;
  --pkg-premium: #a855f7;
  --pkg-standard: #22c55e;
}
/* 几何图形标记 (纯 CSS 形状, 不依赖字体) */
.pkg-shape {
  position: relative;
  display: inline-block;
  width: 10px; height: 10px;
  flex: none;
}
.pkg-shape.pkg-lp::before {        /* ■ 方块 */
  content: ''; position: absolute; inset: 0;
  background: var(--pkg-lp); border-radius: 2px;
}
.pkg-shape.pkg-premium::before {   /* ◆ 菱形 */
  content: ''; position: absolute; inset: 1.5px;
  background: var(--pkg-premium); border-radius: 1px;
  transform: rotate(45deg);
}
.pkg-shape.pkg-standard::before {  /* ● 圆形 */
  content: ''; position: absolute; inset: 0;
  background: var(--pkg-standard); border-radius: 50%;
}
.pkg-shape.pkg-default::before {
  content: ''; position: absolute; inset: 0;
  background: #94a3b8; border-radius: 2px;
}
/* 小圆点 (表格/列表前置) */
.pkg-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 9999px; flex: none;
}
.pkg-dot.pkg-lp { background: var(--pkg-lp); }
.pkg-dot.pkg-premium { background: var(--pkg-premium); }
.pkg-dot.pkg-standard { background: var(--pkg-standard); }
.pkg-dot.pkg-default { background: #94a3b8; }
/* 套餐徽章 (暗色主题默认) */
.pkg-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  white-space: nowrap; vertical-align: middle;
}
.pkg-badge.pkg-lp { color: #7aa8ff; background: rgba(79, 140, 247, 0.12); border: 1px solid rgba(79, 140, 247, 0.30); }
.pkg-badge.pkg-premium { color: #c084fc; background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.30); }
.pkg-badge.pkg-standard { color: #4ade80; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.30); }
.pkg-badge.pkg-default { color: #94a3b8; background: rgba(148, 163, 184, 0.12); border: 1px solid rgba(148, 163, 184, 0.30); }
/* 卡片顶部色条 (套餐卡/产品卡) */
.pkg-topbar { height: 3px; border-radius: 12px 12px 0 0; }
.pkg-topbar.pkg-lp { background: linear-gradient(90deg, var(--pkg-lp), #7aa8ff); box-shadow: 0 0 12px rgba(79, 140, 247, 0.6); }
.pkg-topbar.pkg-premium { background: linear-gradient(90deg, var(--pkg-premium), #c084fc); box-shadow: 0 0 12px rgba(168, 85, 247, 0.6); }
.pkg-topbar.pkg-standard { background: linear-gradient(90deg, var(--pkg-standard), #4ade80); box-shadow: 0 0 12px rgba(34, 197, 94, 0.6); }
.pkg-topbar.pkg-default { background: #94a3b8; }