/* ============================================
   OmniR 深色主题样式表
   设计语言:贴近 OmniR 产品实际视觉
   ============================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --bg-base: #0a0a0a;          /* 最底层背景(纯黑) */
  --bg-surface: #161616;       /* 卡片/表面背景 */
  --bg-elevated: #1f1f1f;      /* 抬升表面(导航/悬停) */
  --bg-soft: #2a2a2a;          /* 软表面(输入框等) */
  --border-soft: #2d2d2d;      /* 弱边框 */
  --border-strong: #3d3d3d;    /* 强边框 */
  --text-primary: #f5f5f5;     /* 主文字 */
  --text-secondary: #9ca3af;   /* 次级文字 */
  --text-muted: #6b7280;       /* 弱化文字 */
  --brand: #ef4444;            /* 品牌红(logo) */
  --brand-hover: #dc2626;
  --brand-soft: rgba(239, 68, 68, 0.12);
  --accent: #1e88e5;           /* 操作蓝(主按钮) */
  --accent-hover: #1976d2;
  --success: #34a853;
  --warning: #fbbc04;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(239, 68, 68, 0.18);
  --transition: 200ms cubic-bezier(0.2, 0, 0, 1);
  --container-max: 1200px;
  --header-h: 68px;
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea { font-family: inherit; }
::selection { background: var(--brand); color: #fff; }

/* ---------- 容器 ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section-sm { padding: 60px 0; }

/* ---------- 导航栏 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
  height: var(--header-h);
  display: flex; align-items: center;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; }
.brand-logo { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
  background: var(--brand); transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { left: 0; width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--bg-elevated); align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--text-primary); position: relative; transition: all 0.3s; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text-primary); }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(30, 136, 229, 0.35); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30, 136, 229, 0.5); color: #fff; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35); }
.btn-brand:hover { background: var(--brand-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--brand); color: var(--text-primary); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- Hero 主视觉 ---------- */
.hero {
  padding: calc(var(--header-h) + 80px) 0 120px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; background: radial-gradient(circle, var(--brand-soft) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 880px; margin: 0 auto; }
.hero-logo {
  width: 90px; height: 90px; margin: 0 auto 32px;
  filter: drop-shadow(0 8px 20px rgba(239, 68, 68, 0.35));
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 0%, #b8b8b8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 16px;
}
.hero-slogan {
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text-secondary); margin-bottom: 56px; font-weight: 400;
}
.hero-slogan span { color: var(--brand); font-weight: 600; }
.search-mock {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; background: var(--bg-surface);
  border: 1px solid var(--border-soft); border-radius: var(--radius-pill);
  padding: 8px; max-width: 720px; margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}
.search-mock-modes {
  display: flex; gap: 4px; padding: 4px; background: var(--bg-elevated);
  border-radius: var(--radius-pill); flex-shrink: 0;
}
.mock-mode {
  padding: 8px 16px; border-radius: var(--radius-pill); font-size: 13px;
  color: var(--text-muted); cursor: default; white-space: nowrap;
}
.mock-mode.active { background: var(--accent); color: #fff; font-weight: 600; }
.search-mock-input {
  flex: 1; min-width: 200px; padding: 12px 20px; background: transparent; color: var(--text-primary);
  font-size: 15px; outline: none;
}
.search-mock-input::placeholder { color: var(--text-muted); }
.search-mock-submit {
  padding: 14px 32px; background: var(--accent); color: #fff; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px; transition: background var(--transition);
}
.search-mock-submit:hover { background: var(--accent-hover); }
.hero-meta { color: var(--text-muted); font-size: 14px; }
.hero-meta strong { color: var(--text-secondary); font-weight: 500; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 40px; }

/* ---------- 通用区段标题 ---------- */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 16px; line-height: 1.2;
}
.section-desc { font-size: 18px; color: var(--text-secondary); line-height: 1.6; }

/* ---------- 特性卡片网格 ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 32px; position: relative;
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.feature-card p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.65; }

/* ---------- 双列布局(展示 + 文案) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-visual {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-lg);
  position: relative;
}
.split-visual img { width: 100%; height: auto; display: block; }
.split-visual::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(239, 68, 68, 0.08) 100%);
  pointer-events: none;
}
.split-content h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; line-height: 1.2; }
.split-content p { color: var(--text-secondary); font-size: 16.5px; line-height: 1.7; margin-bottom: 24px; }
.split-list { list-style: none; }
.split-list li {
  display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-soft);
  color: var(--text-secondary); align-items: flex-start;
}
.split-list li:last-child { border-bottom: 1px solid var(--border-soft); }
.split-list li::before {
  content: '✓'; flex-shrink: 0; width: 22px; height: 22px;
  background: var(--success); color: #0a0a0a; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: bold; margin-top: 2px;
}
.split-list strong { color: var(--text-primary); display: block; margin-bottom: 4px; font-weight: 600; }

/* ---------- 截图展示区 ---------- */
.screenshot-section {
  position: relative; padding: 60px 0; background: var(--bg-surface);
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
}
.screenshot-frame {
  margin: 24px auto; max-width: 1100px; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); position: relative;
}
.screenshot-frame img { width: 100%; height: auto; display: block; }
.screenshot-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.screenshot-tab {
  padding: 10px 20px; border-radius: var(--radius-pill); background: var(--bg-elevated);
  color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: all var(--transition);
  border: 1px solid var(--border-soft);
}
.screenshot-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.screenshot-tab:hover:not(.active) { border-color: var(--border-strong); color: var(--text-primary); }

/* ---------- 步骤卡 ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step-card {
  background: var(--bg-surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 28px; position: relative;
}
.step-num {
  position: absolute; top: 20px; right: 20px;
  font-size: 36px; font-weight: 800; color: var(--brand);
  opacity: 0.35; font-family: 'Inter', sans-serif;
}
.step-card h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg-surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--border-strong); }
.faq-question {
  padding: 22px 24px; width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 500; color: var(--text-primary);
}
.faq-question .icon {
  width: 22px; height: 22px; flex-shrink: 0; color: var(--text-secondary);
  transition: transform var(--transition);
}
.faq-item.open .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 24px 22px; color: var(--text-secondary); font-size: 14.5px;
  line-height: 1.7; border-top: 1px solid var(--border-soft); padding-top: 18px; margin-top: 4px;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* ---------- 数据条 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; max-width: 900px; margin: 0 auto;
  background: var(--bg-surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 48px;
}
.stat-item { text-align: center; }
.stat-value { font-size: 48px; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }

/* ---------- CTA 区 ---------- */
.cta-section {
  text-align: center; padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, rgba(239, 68, 68, 0.05) 100%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section .container { position: relative; }
.cta-section h2 {
  font-size: clamp(32px, 4vw, 48px); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em;
}
.cta-section p { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin: 0 auto 32px; }

/* ---------- 法律文档（隐私协议 / 服务条款） ---------- */
.legal-doc { max-width: 820px; margin: 0 auto; padding: 64px 24px 96px; }
.legal-doc .legal-meta {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.legal-doc h1 {
  font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 12px; line-height: 1.2;
}
.legal-doc h1 + p { color: var(--text-muted); font-size: 14px; margin-bottom: 48px; }
.legal-doc h2 {
  font-size: 22px; font-weight: 700; margin-top: 48px; margin-bottom: 16px;
  padding-top: 24px; border-top: 1px solid var(--border-soft);
  letter-spacing: -0.01em;
}
.legal-doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 24px; }
.legal-doc h3 { font-size: 17px; font-weight: 600; margin-top: 24px; margin-bottom: 8px; color: var(--text-primary); }
.legal-doc p { color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; }
.legal-doc p strong, .legal-doc li strong { color: var(--text-primary); font-weight: 600; }
.legal-doc ul, .legal-doc ol { color: var(--text-secondary); line-height: 1.75; padding-left: 24px; margin-bottom: 16px; }
.legal-doc li { margin-bottom: 10px; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
.legal-doc th, .legal-doc td { text-align: left; padding: 12px 14px; border: 1px solid var(--border-soft); font-size: 14px; }
.legal-doc th { background: var(--bg-elevated); color: var(--text-primary); font-weight: 600; }
.legal-doc td { color: var(--text-secondary); }
.legal-doc a { color: var(--brand); }
.legal-doc a:hover { color: var(--brand-hover); }
.legal-doc blockquote {
  background: var(--bg-surface); border-left: 3px solid var(--brand);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0; color: var(--text-primary);
}
.legal-divider {
  text-align: center; padding: 64px 24px 32px; color: var(--text-muted);
  font-size: 13px; letter-spacing: 0.08em;
}
.legal-divider::before, .legal-divider::after {
  content: ""; display: inline-block; width: 60px; height: 1px;
  background: var(--border-soft); vertical-align: middle; margin: 0 16px;
}
.legal-doc .lang-switch {
  position: sticky; top: 84px; display: flex; gap: 4px;
  background: var(--bg-elevated); padding: 4px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft); width: fit-content; margin: 0 auto 32px;
}
.legal-doc .lang-switch a {
  padding: 6px 16px; border-radius: var(--radius-pill); font-size: 13px;
  color: var(--text-secondary);
}
.legal-doc .lang-switch a.active { background: var(--brand); color: white; }
@media (max-width: 700px) {
  .legal-doc { padding: 32px 20px 64px; }
  .legal-doc h1 { font-size: 28px; }
  .legal-doc table { font-size: 13px; }
  .legal-doc th, .legal-doc td { padding: 8px 10px; }
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-surface); border-top: 1px solid var(--border-soft);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px;
}
.footer-brand p { color: var(--text-secondary); font-size: 14px; margin-top: 16px; max-width: 320px; }
.footer-col h5 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 6px 0; }
.footer-col a { color: var(--text-secondary); font-size: 14px; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; padding-top: 24px;
  flex-wrap: wrap; gap: 16px 24px;
  border-top: 1px solid var(--border-soft); color: var(--text-muted); font-size: 13px;
}
.footer-bottom .copyright { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.footer-bottom .icp-link {
  color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--transition);
}
.footer-bottom .icp-link::before {
  content: ""; display: inline-block; width: 14px; height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.footer-bottom .icp-link:hover { color: var(--text-primary); }
.footer-bottom .social { display: flex; gap: 16px; }
.footer-bottom .social a { color: var(--text-muted); }
.footer-bottom .social a:hover { color: var(--text-primary); }

/* ---------- 标签胶囊 ---------- */
.tag-pill {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--bg-elevated); border: 1px solid var(--border-soft);
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  margin: 0 6px 6px 0;
}

/* ---------- 内页 Hero ---------- */
.page-hero {
  padding: calc(var(--header-h) + 80px) 0 60px;
  text-align: center; border-bottom: 1px solid var(--border-soft);
}
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
.page-hero p { font-size: 18px; color: var(--text-secondary); max-width: 620px; margin: 0 auto; }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 968px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav-links { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg-surface); flex-direction: column; padding: 24px; gap: 16px; border-bottom: 1px solid var(--border-soft); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .search-mock { flex-direction: column; padding: 12px; border-radius: var(--radius-md); }
  .search-mock-modes { width: 100%; justify-content: center; }
  .mock-mode { flex: 1; text-align: center; padding: 10px 8px; }
  .search-mock-input { width: 100%; padding: 12px 0; }
  .search-mock-submit { width: 100%; padding: 12px; }
  .hero-title { font-size: 44px; }
  .stats { padding: 32px 24px; }
  .stat-value { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}
