:root {
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #667085;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --brand: #0b5cd5;
  --brand-dark: #08429c;
  --accent: #067647;
  --warn: #b54708;
  --danger: #b42318;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.6rem 0 .8rem; letter-spacing: -.015em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 2.6rem; }
h3 { font-size: 1.1rem; }
p { margin: .7rem 0; }
code { background: var(--bg-soft); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 900px; }
.section { padding: 8px 0 30px; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.lede { font-size: 1.08rem; color: var(--ink-2); }

/* geo bar */
.geo-bar {
  background: #fff4e5; color: #7a2e0e; border-bottom: 1px solid #f3d0a4;
  padding: 10px 20px; font-size: .88rem; text-align: center;
}
.geo-bar.block { background: #fee4e2; color: var(--danger); border-color: #fda29b; }
.geo-bar a { color: inherit; text-decoration: underline; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.logo { font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.main-nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.main-nav a { color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }

/* hero */
.hero { background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%); border-bottom: 1px solid var(--line); padding: 46px 0 34px; }
.chip { display: inline-block; background: #e5efff; color: var(--brand-dark); border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 600; }
.hero .lede { max-width: 780px; }
.geo-picker { margin-top: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-2); }
.geo-picker button { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: .85rem; }
.geo-picker button.active, .geo-picker button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; box-shadow: var(--shadow); position: relative; }
.brand-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.brand-card h3 a { color: var(--ink); }
.card-rank { position: absolute; top: 14px; right: 16px; font-weight: 800; color: var(--brand); font-size: .95rem; }
.card-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-right: 40px; }
.mini-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 12px 0; font-size: .85rem; }
.mini-facts div { border-left: 2px solid var(--line); padding-left: 8px; }
.mini-facts dt { color: var(--ink-3); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.mini-facts dd { margin: 0; font-weight: 600; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.stars { display: inline-block; position: relative; width: 74px; height: 13px; background: #e4e7ec; border-radius: 3px; overflow: hidden; vertical-align: middle; }
.stars > span { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #fdb022, #f79009); }
.stars + b { margin-left: 6px; font-size: .9rem; }

/* buttons */
.btn { display: inline-block; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: .92rem; border: 1px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--brand); border-color: #c7d7fe; }
.btn.big { padding: 13px 24px; font-size: 1rem; }

/* tables */
.table-scroll { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { border-collapse: collapse; width: 100%; font-size: .9rem; background: #fff; }
table.data th, table.data td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--bg-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
table.data tbody tr:hover { background: #fafcff; }
table.data tbody th { width: 210px; background: #fbfcfe; font-weight: 600; }

.sev { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .74rem; font-weight: 700; text-transform: uppercase; }
.sev.critical { background: #fee4e2; color: var(--danger); }
.sev.high { background: #fef0c7; color: var(--warn); }
.sev.medium { background: #e5efff; color: var(--brand-dark); }

/* score box */
.score-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.score-box p { margin: 2px 0 0; font-size: .88rem; color: var(--ink-2); }
.score-num { font-size: 2.1rem; font-weight: 800; color: var(--brand); }
.score-max { color: var(--ink-3); font-weight: 600; }
.score-cta { text-align: center; }

.method { padding-left: 20px; }
.method li { margin: .5rem 0; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pros, .cons { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.pros { background: #f0fdf4; border-color: #c6f0d4; }
.cons { background: #fffbfa; border-color: #fbd5cd; }
.pros h3, .cons h3 { margin-top: 0; font-size: .95rem; }
.pros ul, .cons ul { margin: 0; padding-left: 18px; font-size: .92rem; }

.callout { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 16px 18px; }
.callout.danger { border-left-color: var(--danger); background: #fffbfa; border-color: #fbd5cd; }
.callout h3 { margin-top: 0; }
.note { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 12px 16px; font-size: .92rem; }

.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.split h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.split .method { padding-left: 20px; }

.faq { margin: 30px 0; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 13px 16px; font-weight: 600; font-size: .96rem; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > div { padding: 4px 16px 14px; color: var(--ink-2); font-size: .93rem; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(90deg, #eef4ff, #ffffff); border: 1px solid #c7d7fe; border-radius: var(--radius); padding: 20px; margin: 28px 0; }
.cta-band h3 { margin: 0; }
.cta-band p { margin: 4px 0 0; color: var(--ink-2); font-size: .92rem; }

.crumbs { font-size: .84rem; color: var(--ink-3); padding: 14px 0 0; }
.crumbs a { color: var(--ink-3); }

/* footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 50px; padding: 34px 0; font-size: .88rem; color: var(--ink-2); }
.age-badge { display: inline-block; border: 2px solid var(--danger); color: var(--danger); font-weight: 800; border-radius: 6px; padding: 0 8px; margin-bottom: 10px; }
.foot-nav { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0; }
.copy { color: var(--ink-3); font-size: .8rem; }

/* admin dashboard */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; }
.kpi .n { font-size: 1.7rem; font-weight: 800; }
.kpi .l { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.bar-row { display: grid; grid-template-columns: 200px 1fr 60px; gap: 10px; align-items: center; font-size: .88rem; margin: 5px 0; }
.bar { background: var(--bg-soft); border-radius: 4px; height: 14px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); }
.login-box { max-width: 380px; margin: 80px auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

@media (max-width: 860px) {
  .main-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 20px; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .split, .pros-cons { grid-template-columns: 1fr; }
}
