/* ==========================================================================
   法法联盟 · 律师办 —— 门户站共享样式（10 页共用）
   内容：设计令牌 / 基础排版 / 布局 / 导航 / 页脚 / 按钮 / 卡片 / 表格 / FAQ
   原则：移动优先；颜色·间距·圆角一律走变量；状态色保持高饱和（品牌铁律）
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --accent: #06b6d4;

  /* 深色面（hero / 深色区块 / 页脚） */
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --dark-border: rgba(255, 255, 255, .10);
  --dark-text: #e2e8f0;
  --dark-muted: #94a3b8;

  /* 浅色面（收敛为各 1 档） */
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;

  /* 文字（灰收敛为 2 级） */
  --text: #1e293b;
  --muted: #64748b;

  /* 状态色（语义化，突出显示，不降饱和） */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* 排版 */
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .12);

  /* 布局 */
  --container: 1200px;
  --nav-h: 64px;
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; color: var(--dark); letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* 键盘可达性：统一可见 focus 环 */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 跳转到主内容（无障碍） */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. 布局 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--surface { background: var(--surface); }
.section--bordered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: 30px; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }
.section--dark .section-head h2 { color: #fff; }
.section--dark .section-head p { color: var(--dark-muted); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* ---------- 4. 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(15, 23, 42, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo { display: flex; align-items: baseline; gap: 8px; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .5px; white-space: nowrap; }
.nav__logo:hover { text-decoration: none; }
.nav__logo b { background: linear-gradient(135deg, #38bdf8, #818cf8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav__logo span { font-size: 13px; font-weight: 600; color: var(--dark-muted); }
.nav__links { display: none; align-items: center; gap: 4px; }
.nav__links a { color: #cbd5e1; font-size: 14.5px; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav__links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .10); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; border-radius: var(--radius-sm);
}
.nav__toggle:hover { background: rgba(255, 255, 255, .08); }
.nav__links.is-open {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: rgba(15, 23, 42, .98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border); padding: 8px 0 16px; box-shadow: var(--shadow-lg);
}
.nav__links.is-open a { padding: 14px 24px; border-radius: 0; font-size: 16px; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 26px;
  font-family: inherit; font-size: 16px; font-weight: 700;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 8px 22px rgba(37, 99, 235, .35); }
.btn--primary:hover { box-shadow: 0 12px 30px rgba(37, 99, 235, .45); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary-soft); }
.btn--ghost { background: rgba(255, 255, 255, .10); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.btn--sm { min-height: 38px; padding: 8px 18px; font-size: 14.5px; }
.btn--block { width: 100%; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff;
  padding: 88px 0 80px; text-align: center;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 620px; height: 620px; top: -260px; left: -220px; background: radial-gradient(circle, rgba(37, 99, 235, .22) 0%, rgba(15, 23, 42, 0) 70%); }
.hero::after { width: 760px; height: 760px; bottom: -380px; right: -240px; background: radial-gradient(circle, rgba(6, 182, 212, .16) 0%, rgba(15, 23, 42, 0) 70%); }
.hero > .container { position: relative; z-index: 1; }
.hero__badge {
  display: inline-block; margin-bottom: 22px; padding: 6px 16px; border-radius: 999px;
  background: rgba(56, 189, 248, .12); border: 1px solid rgba(56, 189, 248, .28);
  color: #7dd3fc; font-size: 13.5px; font-weight: 700;
}
.hero h1 { color: #fff; font-size: 34px; line-height: 1.22; margin-bottom: 20px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__lead { max-width: 720px; margin: 0 auto 34px; color: #cbd5e1; font-size: 17.5px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__note { margin-top: 20px; color: var(--dark-muted); font-size: 13.5px; }

/* ---------- 7. 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px; background: var(--primary-soft);
}
.card h2, .card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card__tag { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--primary-soft); color: var(--primary); }

.card--accent { border-color: #bfdbfe; box-shadow: var(--shadow-md); }

.card--dark { background: var(--dark-surface); border-color: var(--dark-border); box-shadow: none; }
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--dark-muted); }
.card--dark:hover { border-color: rgba(255, 255, 255, .2); }

/* ---------- 8. 信任条 / 徽标 ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--border); padding: 32px 0; }
.trust__title { text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.trust__items { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; }
.trust__item { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; }

/* ---------- 9. 流程条 ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.flow__step { flex: 1 1 130px; min-width: 130px; max-width: 170px; text-align: center; padding: 18px 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--dark-border); border-radius: var(--radius); }
.flow__dot { font-size: 24px; margin-bottom: 8px; }
.flow__step h3 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.flow__step p { color: var(--dark-muted); font-size: 12.5px; line-height: 1.5; }

/* ---------- 10. 列表（带勾） ---------- */
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 700; }
.ticks--dark li { color: var(--dark-muted); }

/* ---------- 11. 表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.data caption { text-align: left; padding: 14px 18px; color: var(--muted); font-size: 14px; }
table.data th, table.data td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.data thead th { background: var(--bg); font-weight: 700; color: var(--dark); white-space: nowrap; }
table.data tbody tr:hover { background: var(--bg); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 12. FAQ（原生 details，AI 可读） ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq details[open] { border-color: #bfdbfe; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 18px 22px; font-size: 16.5px; font-weight: 700; color: var(--dark); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; color: var(--primary); font-size: 22px; font-weight: 700; line-height: 1.2; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { background: var(--bg); }
.faq .faq__body { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq .faq__body p + p { margin-top: 10px; }

/* ---------- 13. 面包屑 ---------- */
.crumbs { padding: 16px 0; font-size: 13.5px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs li::after { content: "/"; margin-left: 8px; color: #cbd5e1; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }

/* ---------- 14. 页头（内页） ---------- */
.page-head { background: var(--dark); color: #fff; padding: 56px 0 52px; }
.page-head h1 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.page-head p { color: var(--dark-muted); font-size: 17px; max-width: 760px; }

/* ---------- 15. CTA 区 ---------- */
.cta { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; border-radius: var(--radius-lg); padding: 48px 32px; text-align: center; }
.cta h2 { color: #fff; font-size: 26px; margin-bottom: 12px; }
.cta p { color: #dbeafe; margin-bottom: 26px; }
.cta .hero__btns { justify-content: center; }

/* ---------- 16. 页脚 ---------- */
.footer { background: var(--dark); color: var(--dark-muted); padding: 56px 0 28px; font-size: 14.5px; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer h4, .footer .footer__title { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a { color: var(--dark-muted); }
.footer a:hover { color: #fff; }
.footer li { margin-bottom: 10px; }
.footer__brand { max-width: 320px; }
.footer__brand .nav__logo { margin-bottom: 12px; }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--dark-border); display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #7c8ba1; }
.footer__bottom a { color: #94a3b8; }

/* ---------- 17. 环节标题 + 功能卡演示按钮（产品页） ---------- */
.stage-head {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 26px; padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.stage-head .stage-icon { flex: 0 0 auto; font-size: 26px; line-height: 1.15; }
.stage-head h2 { font-size: 22px; margin-bottom: 5px; }
.stage-head p { color: var(--muted); font-size: 15px; }

/* 线性图标（Lucide）：统一尺寸与基线 */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: 0 0 auto; }
.card__icon .ico { width: 24px; height: 24px; }
.card__icon { color: var(--primary); }
.stage-head .stage-icon { color: var(--primary); }
.stage-head .stage-icon .ico { width: 26px; height: 26px; }
.trust__item .ico { width: 16px; height: 16px; color: var(--primary); }
table.data .ico { width: 17px; height: 17px; color: var(--success); vertical-align: -0.18em; }
.flow__step .ico { width: 22px; height: 22px; color: #7dd3fc; }
.cta .ico, .hero__btns .ico { width: 1em; height: 1em; }

/* 三步走用的数字徽章 */
.num-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  font-size: 20px; font-weight: 800; line-height: 1;
}

/* 功能卡上的「看演示」按钮：轻量、不抢内容 */
.card__demo {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 6px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  color: var(--primary); background: var(--primary-soft);
  transition: background .18s ease, color .18s ease;
}
.card__demo:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ---------- 18. 工具类 ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.muted { color: var(--muted); }
.section--dark .muted { color: var(--dark-muted); }

/* 价格数字 */
.price { font-size: 30px; font-weight: 800; color: var(--dark); line-height: 1.15; font-variant-numeric: tabular-nums; }
.price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.price--primary { color: var(--primary); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* 内容一律默认可见：原先的滚动淡入会让整页截图、打印、无 JS 与爬虫渲染出现空白，已移除 */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .card:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 18. 响应式 ---------- */
/* 移动端导航：避免挤到换行（次要按钮收进汉堡菜单） */
@media (max-width: 1023px) {
  .nav .container { gap: 8px; }
  .nav__links { display: none; }
  .nav .nav__actions { gap: 6px; margin-left: auto; }
  .nav .nav__actions .btn { display: none; }
  .nav .nav__actions .btn:last-child { display: inline-flex; padding: 8px 14px; font-size: 13.5px; }
}

/* ---------- 19. 产品截图位（占位，待替换为实际界面截图） ---------- */
.shot { max-width: 1040px; margin: 32px auto 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.shot__bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; display: block; flex: 0 0 auto; }
.shot__bar em { margin-left: 10px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.shot__body { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%); color: var(--muted); font-size: 14.5px; }
.shot__body strong { color: var(--text); font-size: 17px; }
.shot figcaption { padding: 14px 18px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--border); }
.shot img { display: block; width: 100%; }

/* ---------- 18. 手机端专用（< 640px）----------
   小屏不沿用桌面参数：间距收窄、字号下探、按钮全宽（拇指好点）、卡片更紧凑 */
@media (max-width: 639px) {
  .container { padding: 0 16px; }

  /* 区块间距与标题 */
  .section { padding: 48px 0; }
  .section--tight { padding: 34px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 22px; }
  .section-head p { font-size: 15px; }

  /* 首屏 */
  .hero { padding: 60px 0 52px; }
  .hero h1 { font-size: 30px; }
  .hero__lead { font-size: 16px; margin-bottom: 24px; }
  .hero__btns { gap: 10px; flex-direction: column; }
  .hero__btns .btn { width: 100%; }
  .hero__note { font-size: 12.5px; }
  .hero__badge { font-size: 12.5px; padding: 5px 13px; }

  /* 卡片与网格 */
  .grid { gap: 14px; }
  .card { padding: 20px; border-radius: var(--radius); }
  .card h3 { font-size: 17px; }
  .card p { font-size: 14.5px; }
  .card__icon { width: 42px; height: 42px; border-radius: 10px; }
  .card__icon .ico { width: 21px; height: 21px; }
  .card__demo { margin-top: 12px; padding: 7px 14px; font-size: 13px; }

  /* 流程环节标题 */
  .stage-head { gap: 10px; margin-bottom: 20px; padding-bottom: 12px; }
  .stage-head .stage-icon { font-size: 22px; }
  .stage-head h2 { font-size: 20px; }
  .stage-head p { font-size: 14px; }

  /* 内页页头与面包屑 */
  .page-head { padding: 38px 0 34px; }
  .page-head h1 { font-size: 25px; }
  .page-head p { font-size: 15px; }
  .crumbs { font-size: 12.5px; padding: 12px 0; }

  /* 截图位：小屏用 4:3，比 16:9 看得清 */
  .shot { margin-top: 20px; border-radius: var(--radius); }
  .shot__body { aspect-ratio: 4 / 3; font-size: 13.5px; }
  .shot__body strong { font-size: 15.5px; }
  .shot figcaption { padding: 12px 14px; font-size: 13px; }

  /* 表格：小屏横滑更顺、字号略降 */
  table.data { min-width: 480px; font-size: 14px; }
  table.data th, table.data td { padding: 10px 12px; }
  table.data caption { padding: 12px 14px; font-size: 13px; }

  /* CTA 与页脚 */
  .cta { padding: 30px 20px; border-radius: var(--radius); }
  .cta h2 { font-size: 21px; }
  .cta p { font-size: 15px; }
  .footer { padding: 38px 0 20px; }
  .footer__grid { gap: 22px; }
  .footer__bottom { font-size: 12.5px; }

  /* 价格卡 */
  .price { font-size: 26px; }
  .faq summary { padding: 15px 16px; font-size: 15.5px; }
  .faq .faq__body { padding: 0 16px 16px; font-size: 15px; }
}

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 42px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1024px) {
  .stage-head .stage-icon { font-size: 30px; }
  .stage-head h2 { font-size: 26px; }
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 96px 0; }
  .section--tight { padding: 64px 0; }
  .section-head h2 { font-size: 36px; }
  .hero { padding: 112px 0 104px; }
  .hero h1 { font-size: 52px; }
  .hero__lead { font-size: 19px; }
  .page-head h1 { font-size: 38px; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}
