/* 律师效率三件套 · 统一设计系统（深蓝 #0F2A4A + 鎏金 #C8A24B） */
:root {
  --navy: #0F2A4A; --navy-700: #16365e; --navy-600: #1f4775;
  --gold: #C8A24B; --gold-600: #b08a32; --gold-50: #faf4e4;
  --bg: #F7F8FA; --surface: #ffffff; --surface-2: #fbfcfe;
  --ink: #1A2233; --muted: #69727f; --line: #e7eaf0;
  --ok: #2e7d57; --ok-bg: #e7f4ee; --warn: #9a6300; --warn-bg: #fcf3e1;
  --danger: #c0392b; --danger-bg: #fdeceb;
  --shadow: 0 1px 2px rgba(16,28,48,.05), 0 10px 30px rgba(16,28,48,.07);
  --shadow-sm: 0 1px 2px rgba(16,28,48,.06), 0 4px 14px rgba(16,28,48,.05);
  --radius: 14px; --radius-sm: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--gold-600); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 880px; }

/* ── 顶栏 ── */
.navbar {
  background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(16,28,48,.18);
}
.navbar .inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700;
  color: #fff; letter-spacing: .5px; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-600)); color: var(--navy);
  font-size: 17px; font-weight: 800; box-shadow: 0 2px 8px rgba(200,162,75,.4); }
.brand .sub { font-size: 12px; font-weight: 400; color: #9fb2cc; padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.18); }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { color: #cdd8e8; padding: 7px 14px; border-radius: 8px; font-size: 14.5px; transition: .15s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: #fff; background: var(--navy-600); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-user { color: #cdd8e8; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.nav-user .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gold);
  color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.nav-ghost { color: #cdd8e8; font-size: 14px; padding: 6px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.22); }
.nav-ghost:hover { color: #fff; background: rgba(255,255,255,.1); }

/* ── 按钮 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 11px 22px; font-size: 15px;
  font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; font-family: inherit; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-600)); color: #3a2c06;
  box-shadow: 0 4px 14px rgba(200,162,75,.35); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); color: #3a2c06; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover:not(:disabled) { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover:not(:disabled) { border-color: var(--navy-600); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { color: var(--ink); border-color: var(--muted); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0c9c5; }
.btn-danger:hover:not(:disabled) { background: var(--danger-bg); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── 卡片 / 区块 ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px; }
.section { padding: 38px 0; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 26px; font-weight: 700; letter-spacing: .3px; }
.page-head p { color: var(--muted); margin-top: 6px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--gold-600); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }

/* ── 徽章 ── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600;
  padding: 3px 11px; border-radius: 999px; line-height: 1.5; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-muted { background: #eef0f4; color: var(--muted); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-gold { background: var(--gold-50); color: var(--gold-600); }
.badge-navy { background: #e8eef7; color: var(--navy-600); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--ok); } .dot-off { background: #c4cad4; }

/* ── 封面 Hero ── */
.hero { background: radial-gradient(1200px 500px at 70% -10%, #16365e 0%, var(--navy) 55%);
  color: #fff; padding: 86px 0 110px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: 46px; line-height: 1.18; font-weight: 800; margin: 16px 0 18px; letter-spacing: 1px; }
.hero h1 .gold { color: var(--gold); }
.hero p.lead { font-size: 18px; color: #c4d2e6; max-width: 640px; }
.hero .cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { margin-top: 46px; display: flex; gap: 28px; flex-wrap: wrap; color: #aebfd6; font-size: 14.5px; }
.hero-points span { display: flex; align-items: center; gap: 8px; }
.hero-points b { color: var(--gold); }

/* ── 产品网格 ── */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px; display: flex; flex-direction: column; transition: .18s; position: relative; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d7deea; }
.product-card .pc-icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  font-size: 25px; background: linear-gradient(135deg, #eaf0f8, #dde7f4); margin-bottom: 16px; }
.product-card h3 { font-size: 19px; font-weight: 700; }
.product-card .pc-tag { color: var(--muted); font-size: 14px; margin-top: 8px; flex: 1; }
.product-card .pc-foot { margin-top: 20px; display: flex; align-items: center; gap: 10px; }
.product-card .pc-status { margin: 14px 0 4px; }

/* ── 套餐 ── */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 30px; position: relative; }
.plan-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.plan-card .ribbon { position: absolute; top: 18px; right: -1px; background: var(--gold); color: var(--navy);
  font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 8px 0 0 8px; }
.plan-card h3 { font-size: 18px; }
.plan-card .price { margin: 14px 0 4px; }
.plan-card .price .num { font-size: 42px; font-weight: 800; color: var(--navy); }
.plan-card .price .unit { color: var(--muted); font-size: 15px; }
.plan-card ul { list-style: none; margin: 18px 0 24px; }
.plan-card li { padding: 8px 0; color: #45505f; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.plan-card li::before { content: "✓"; color: var(--gold-600); font-weight: 800; }
.choose-tools { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 16px 0 22px; }
.tool-radio { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; cursor: pointer; transition: .12s; }
.tool-radio:hover { border-color: var(--navy-600); }
.tool-radio input { accent-color: var(--navy); width: 16px; height: 16px; }
.tool-radio.disabled { opacity: .5; cursor: not-allowed; background: var(--surface-2); }
.tool-radio .tr-name { font-weight: 600; }
.tool-radio .tr-tag { color: var(--muted); font-size: 13px; }

/* ── 表单 ── */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.field input, .field select { width: 100%; padding: 11px 13px; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; transition: .12s;
  font-family: inherit; }
.field input:focus, .field select:focus { border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(31,71,117,.12); }

/* ── 居中认证卡 ── */
.auth-wrap { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 410px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); padding: 38px 34px; }
.auth-card h2 { font-size: 22px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 26px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ── 表格 ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 12.5px;
  white-space: nowrap; letter-spacing: .3px; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-link { color: var(--navy); font-weight: 600; }

/* ── flash ── */
.flash { padding: 12px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 14.5px;
  display: flex; align-items: center; gap: 10px; }
.flash-error { background: var(--danger-bg); color: var(--danger); }
.flash-ok { background: var(--ok-bg); color: var(--ok); }

/* ── 统计卡 ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px; }
.stat-card .k { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.stat-card .v { font-size: 30px; font-weight: 800; color: var(--navy); margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat-card .v small { font-size: 15px; color: var(--muted); font-weight: 600; }

/* ── 后台布局 ── */
.admin-shell { display: grid; grid-template-columns: 222px 1fr; gap: 28px; padding: 28px 0; align-items: start; }
.sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 12px; position: sticky; top: 86px; }
.sidebar .s-title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px;
  padding: 10px 12px 8px; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  color: #44505f; font-size: 14.5px; font-weight: 500; margin-bottom: 2px; }
.sidebar a:hover { background: var(--surface-2); color: var(--ink); }
.sidebar a.active { background: var(--navy); color: #fff; }
.admin-main { min-width: 0; }

/* ── 杂项 ── */
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 14px; font-size: 14.5px; }
.kv dt { color: var(--muted); } .kv dd { color: var(--ink); }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.inline-form { display: inline; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .grow { flex: 1; }
.search { display: flex; gap: 8px; }
.search input { padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; min-width: 240px; }
.empty { text-align: center; color: var(--muted); padding: 50px 0; }
.footer { color: var(--muted); font-size: 13px; text-align: center; padding: 34px 0; border-top: 1px solid var(--line); margin-top: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.pay-box { max-width: 460px; margin: 0 auto; text-align: center; }
.qr-faux { width: 200px; height: 200px; margin: 22px auto; border-radius: 14px; border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, #eef1f6 0 8px, #f7f9fc 8px 16px);
  display: grid; place-items: center; color: var(--muted); font-size: 13px; position: relative; }
.qr-faux .lbl { background: #fff; padding: 6px 12px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.amount-big { font-size: 40px; font-weight: 800; color: var(--navy); }
.amount-big small { font-size: 18px; }

/* ── 落地页增强 ── */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: .5px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.alt { background: linear-gradient(180deg, #fff, var(--surface-2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 30px 0; }
.feature-row.rev .fr-visual { order: 2; }
.fr-visual { background: linear-gradient(135deg, #0F2A4A, #16365e); border-radius: 18px; min-height: 230px;
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.fr-visual .big { font-size: 76px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.3)); }
.fr-visual .tagchip { position: absolute; bottom: 16px; background: rgba(255,255,255,.12); color: #e7eefb;
  border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 999px; font-size: 13px; }
.fr-body .kicker { color: var(--gold-600); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; }
.fr-body h3 { font-size: 25px; margin: 8px 0 10px; }
.fr-body .pain { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.check-list { list-style: none; }
.check-list li { padding: 7px 0 7px 28px; position: relative; color: #3a4658; font-size: 15px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: #fff; background: var(--gold);
  width: 18px; height: 18px; border-radius: 50%; font-size: 12px; display: grid; place-items: center; font-weight: 800; }
.scene { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.scene span { background: #eef2f8; color: var(--navy-600); font-size: 12.5px; padding: 4px 12px; border-radius: 999px; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { text-align: center; padding: 26px 18px; }
.why-card .ic { font-size: 32px; }
.why-card h4 { font-size: 17px; margin: 12px 0 6px; }
.why-card p { color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 22px;
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-600));
  color: var(--navy); font-weight: 800; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(200,162,75,.4); }
.step h4 { margin: 8px 0 6px; font-size: 17px; }
.step p { color: var(--muted); font-size: 14px; }

.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold-600); font-size: 22px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .ans { padding: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }

.cta-band { background: radial-gradient(900px 300px at 50% 0%, #16365e, var(--navy)); color: #fff; border-radius: 22px; padding: 50px 30px; text-align: center; }
.cta-band h2 { font-size: 30px; font-weight: 800; }
.cta-band p { color: #c4d2e6; margin: 10px 0 26px; font-size: 16px; }

@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
  .pricing-grid, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .sidebar .s-title { display: none; }
  .nav-links { display: none; }
  .feature-row, .feature-row.rev .fr-visual { grid-template-columns: 1fr; order: 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 24px; }
}
