:root {
  color-scheme: light;
  --navy: #0b172b;
  --ink: #172640;
  --muted: #536782;
  --soft: #516580;
  --line: #e2e9f3;
  --blue: #2460ea;
  --blue-soft: #eef4ff;
  --green: #008563;
  --surface: #fff;
  --background: #f4f7fc;
  --rail: 226px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); min-width: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .46; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg { flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid #3982fc; outline-offset: 3px; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 20; padding: .6rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); background: var(--navy); color: #d5e2f7; display: flex; flex-direction: column; padding: 25px 14px 15px; z-index: 4; }
.brand { display: flex; gap: 11px; align-items: center; width: 100%; color: white; margin: 0 0 37px 8px; padding: 0; border: 0; text-align: left; background: transparent; }
.brand img { width: 40px; height: 40px; }
.brand strong { display: block; font-size: 20px; letter-spacing: .055em; line-height: 1.22; }
.brand small { display: block; margin-top: 5px; color: #a6b7d5; font-size: 12px; letter-spacing: .01em; }
.nav-group + .nav-group { margin-top: 27px; }
.rail-label { margin: 0 0 10px 13px; color: #9baccc; font-size: 13px; letter-spacing: .03em; }
.nav { border: 0; background: transparent; color: #aebfdb; display: flex; gap: 12px; width: 100%; align-items: center; padding: 11px 12px; text-align: left; border-radius: 8px; font-size: 15px; margin-bottom: 4px; }
.nav:hover { color: white; background: #172946; }
.nav.active { background: #1a3566; color: #fff; box-shadow: inset 3px 0 #5484ff; font-weight: 650; }
.rail-foot { margin-top: auto; padding: 12px 10px; border: 1px solid #253652; border-radius: 10px; color: #b3c2db; font-size: 12px; line-height: 1.65; }
.rail-foot strong { display: block; color: #ebf1fc; font-size: 13px; }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: #24be9a; box-shadow: 0 0 0 4px #24be9a1a; vertical-align: .1em; }
.shell { margin-left: var(--rail); min-width: 0; }
.top { background: #fff; height: 66px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 31px; gap: 12px; }
.crumb { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 14px; }
.crumb b { color: var(--ink); }
.hero, .panel, .metric, .directory, .province-bar { min-width: 0; border-radius: 13px; }
.main { max-width: 1660px; margin: auto; padding: 20px 30px 40px; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 39px; padding: 0 0 13px; }
.demo-copy { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.demo-copy b { color: #264e93; border-radius: 5px; padding: 4px 7px; background: #e9f0ff; white-space: nowrap; }
.segment { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: #e9eef7; border-radius: 8px; }
.segment button { border: 0; background: transparent; border-radius: 5px; min-height: 29px; padding: 4px 10px; font-size: 13px; color: #4b607e; white-space: nowrap; }
.segment button[aria-pressed="true"] { background: #fff; color: #1f5ad0; box-shadow: 0 1px 3px #182e5e20; font-weight: 700; }
.hero { background: radial-gradient(ellipse at 78% 0%, #214580 0, transparent 64%), linear-gradient(105deg, #10213e 4%, #142d57 95%); position: relative; isolation: isolate; overflow: hidden; color: white; padding: 28px 30px 19px; min-height: 229px; }
.hero-content { position: relative; z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #a9d3ff; font-weight: 600; letter-spacing: .065em; }
.hero h1 { font-size: clamp(29px, 3vw, 41px); line-height: 1.18; margin: 10px 0 8px; letter-spacing: .025em; }
.hero p { font-size: 15px; color: #c1d2ed; line-height: 1.6; }
.scope { position: absolute; right: 0; top: 0; height: 100%; width: 42%; opacity: .78; pointer-events: none; background: repeating-linear-gradient(0deg, transparent, transparent 23px, #72a1e621 24px), repeating-linear-gradient(90deg, transparent, transparent 23px, #72a1e61e 24px); mask-image: linear-gradient(to right, transparent, #000 22%, #000 90%); }
.scope-disc { position: absolute; width: 258px; height: 258px; border: 1px solid #599cef6b; right: 12%; top: 50%; transform: translateY(-55%); border-radius: 50%; background: conic-gradient(from -45deg, #2c8bfa37, transparent 23%, transparent 70%, #5bb3fa28); }
.scope-disc::before, .scope-disc::after { content: ""; position: absolute; border: 1px solid #609cdf63; border-radius: 50%; inset: 16%; }
.scope-disc::after { inset: 33%; }
.scope-center { position: absolute; inset: 48%; border-radius: 50%; background: #7bcbff; box-shadow: 0 0 15px 3px #59aeff7c; }
.beacon { position: absolute; width: 6px; height: 6px; background: #78c5ff; border-radius: 50%; box-shadow: 0 0 0 5px #4eabff30, 0 0 20px #52adff; }
.beacon.one { top: 28%; left: 25%; }.beacon.two { top: 47%; left: 75%; }.beacon.three { top: 70%; left: 32%; }
.search { display: flex; gap: 10px; align-items: center; padding: 5px 6px 5px 15px; border-radius: 8px; margin-top: 19px; background: #fff; color: #52678c; box-shadow: 0 9px 23px #0b16273d; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 15px; height: 38px; color: #172640; background: transparent; }
.search input::placeholder { color: #62718b; opacity: 1; }
.search:focus-within { box-shadow: 0 0 0 3px #6ea8ff; }
.search-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #b7c9e7; font-size: 13px; margin-top: 12px; }
.search-chips button { border: 1px solid #7394c445; border-radius: 5px; padding: 3px 8px; background: #97b8ee1a; color: #dce8fd; font-size: 12px; }
.search-chips button:hover { background: #97b8ee40; }
.btn { border: 1px solid var(--line); min-height: 36px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; background: white; color: #334c70; border-radius: 7px; padding: 6px 12px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.btn:hover { border-color: #94b6ff; color: #2159d4; }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.primary:hover { background: #1850d2; }
.btn.wechat { background: #e9f8f2; border-color: #d0eee4; color: #006845; }
.btn.light { background: #eff4ff; border-color: #e0eaff; color: #1d59d8; }
.btn.icon { width: 36px; padding: 0; }
.btn.small { min-height: 30px; padding: 4px 8px; font-size: 13px; }
.hero .btn { min-height: 38px; padding-inline: 20px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 15px 0; }
.metric { border: 1px solid var(--line); background: white; padding: 14px 13px; display: flex; gap: 11px; align-items: flex-start; }
.metric-icon, .section-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 9px; color: #2865e9; background: #eaf1ff; flex: none; }
.metric-icon.green { color: #007e63; background: #e5f6f0; }
.metric-icon.violet { color: #6942c2; background: #f0eafa; }
.metric-icon.amber { color: #99621a; background: #fff3df; }
.metric span:not(.metric-icon) { display: block; font-size: 13px; color: var(--muted); }
.metric strong { display: block; margin: 5px 0 3px; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.metric small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.province-bar { border: 1px solid #dce7f9; background: #edf3fe; margin: 0 0 15px; overflow: hidden; }
.province-bar summary { padding: 10px 14px; display: flex; gap: 9px; align-items: center; color: #284b81; font-size: 14px; font-weight: 700; cursor: pointer; min-height: 45px; list-style: none; }
.province-bar summary::-webkit-details-marker { display: none; }
.province-bar summary small { margin-left: auto; color: #506a91; font-weight: 400; font-size: 13px; }
.province-bar[open] summary > svg:last-child { transform: rotate(180deg); }
.province-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 7px; padding: 0 13px 13px; }
.province-list button { display: flex; align-items: center; justify-content: space-between; gap: 5px; background: white; padding: 6px 7px; border: 1px solid #dce7f9; border-radius: 5px; font-size: 13px; }
.province-list button:hover { color: var(--blue); border-color: #8bb0ff; }
.directory { background: white; border: 1px solid var(--line); overflow: clip; }
.directory-head { min-height: 65px; padding: 13px 17px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.directory-head h2 { font-size: 18px; }
.directory-head p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.directory-head .view-controls { margin-left: auto; }
.mobile-filter { display: none; }
.filters { padding: 12px 17px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) auto; gap: 8px; border-bottom: 1px solid var(--line); }
.field { min-width: 0; display: grid; gap: 5px; text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; }
.field select, .pagination select, .jump input { width: 100%; min-width: 0; appearance: none; border: 1px solid var(--line); border-radius: 6px; background: #f8faff; color: var(--ink); padding: 7px 23px 7px 8px; font-size: 13px; }
.field span { position: relative; }
.field span svg { pointer-events: none; position: absolute; right: 7px; top: 50%; transform: translateY(-50%); color: #627593; }
.filters > button { align-self: end; }
.modal-filters { grid-template-columns: repeat(2, minmax(0,1fr)); border: 0; padding: 4px 0; }
.result-section { min-height: 170px; }
.result-meta { padding: 11px 17px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.result-meta b { color: var(--ink); }
.company-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0 16px 13px; }
.company { min-width: 0; display: flex; flex-direction: column; text-align: left; align-items: stretch; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 12px; transition: border-color .18s, box-shadow .18s; }
.company:hover { border-color: #9ab9f8; box-shadow: 0 4px 15px #1e3e7212; }
.company-top { display: flex; align-items: center; gap: 9px; min-width: 0; margin-bottom: 9px; }
.company-icon { width: 37px; height: 37px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #2e62cb; background: #edf3ff; }
.company-title { min-width: 0; }
.company h3 { font-size: 15px; line-height: 1.43; overflow-wrap: anywhere; }
.company-top small, .company p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.company p { margin-bottom: 9px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 4px; font-size: 12px; line-height: 1.35; background: #edf3ff; color: #244e9c; }
.tag.missing { color: #4d5c72; background: #eef1f5; }
.tag.green { background: #e5f7ef; color: #006747; }
.company-bottom { display: flex; margin-top: auto; padding-top: 11px; gap: 8px; justify-content: space-between; align-items: center; color: var(--blue); font-size: 13px; }
.company-bottom small { color: var(--muted); font-size: 12px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 11px 13px; text-align: left; }
th { background: #f3f7fe; color: var(--muted); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.link-btn { border: 0; border-radius: 4px; background: transparent; color: #225cdb; font-weight: 650; padding: 2px 0; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); gap: 8px; font-size: 13px; color: var(--muted); }
.pagination > div, .jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pagination select { width: auto; appearance: auto; padding: 5px; }
.jump input { width: 56px; padding: 4px 5px; }
.empty { text-align: center; color: var(--muted); padding: 24px 13px; line-height: 1.7; overflow-wrap: anywhere; }
.empty > svg { color: #4a72ba; margin-bottom: 5px; }
.empty h3 { color: #294264; font-size: 16px; }
.empty p { font-size: 14px; }
.empty .btn { margin-top: 9px; }
.page-header { margin-bottom: 17px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.page-header h1 { font-size: clamp(24px, 3.2vw, 33px); }
.page-header p { color: var(--muted); margin-top: 7px; line-height: 1.6; }
.panel { border: 1px solid var(--line); background: white; padding: 17px; margin: 0 0 13px; }
.panel h2 { font-size: 18px; margin-bottom: 10px; }
.panel > p { color: var(--muted); line-height: 1.65; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.admin-tabs button[aria-pressed="true"] { background: #e9f1ff; border-color: #cddfff; color: var(--blue); }
.chart-box { background: #f7faff; border: 1px solid var(--line); border-radius: 9px; padding: 12px; margin: 12px 0; }
.chart-box canvas { display: block; width: 100%; max-height: 220px; }
.rank-grid, .plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.plan { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 20px; }
.plan.highlight { border-color: #8eafff; box-shadow: 0 0 0 3px #e8efff inset; }
.plan h2 { font-size: 18px; margin-bottom: 10px; }
.plan p { color: var(--muted); line-height: 1.6; margin: 9px 0; }
.plan strong { font-size: 38px; color: var(--ink); }
.plan .btn { width: 100%; margin-top: 7px; }
.notice { display: flex; align-items: flex-start; gap: 8px; background: #edf4ff; border: 1px solid #dce8ff; color: #345686; border-radius: 8px; padding: 12px; font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.notice > svg { margin-top: 1px; }
dialog { border: 1px solid #d7e4f7; border-radius: 15px; padding: 0; color: var(--ink); background: white; width: min(860px, calc(100% - 26px)); max-width: none; max-height: 88vh; overflow: auto; box-shadow: 0 16px 80px #0c19334d; }
dialog::backdrop { background: #08172b9c; backdrop-filter: blur(2px); }
dialog.small-dialog { width: min(460px, calc(100% - 26px)); }
.dialog-head { background: white; border-bottom: 1px solid var(--line); position: sticky; z-index: 1; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 20px; }
.dialog-head h2 { font-size: 19px; line-height: 1.4; }
.dialog-head p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.dialog-body { padding: 17px 20px; overflow-wrap: anywhere; line-height: 1.6; }
.dialog-body h3 { font-size: 16px; margin: 14px 0 6px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.detail-field { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.detail-field > small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.detail-field p { margin: 0; }
.phone-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.qr { display: block; width: min(200px,100%); height: auto; aspect-ratio: 1; margin: 5px auto 12px; image-rendering: pixelated; }
.qr-label { text-align: center; color: var(--muted); font-size: 14px; }
.mobile-nav, .mobile-brand { display: none; }
.toast { position: fixed; z-index: 100; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 9px 15px; border-radius: 7px; color: #fff; background: #142844; max-width: calc(100% - 25px); text-align: center; font-size: 14px; box-shadow: 0 6px 18px #0b183333; }
.toast:empty { display: none; }
@media (min-width: 1500px) { .company-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1150px) { :root { --rail: 196px; } .main { padding-inline: 20px; } .top { padding-inline: 20px; } .filters { grid-template-columns: repeat(4,minmax(0,1fr)); } .company-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 800px) {
  .rail, .crumb { display: none; }
  .shell { margin: 0; }
  .top { height: 58px; padding: 0 13px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); border: 0; background: transparent; font-weight: 750; padding: 0; }
  .mobile-brand img { width: 31px; height: 31px; }
  .main { padding: 12px 12px calc(76px + env(safe-area-inset-bottom)); }
  .demo-bar { flex-wrap: wrap; padding-bottom: 10px; gap: 7px; }
  .demo-copy { font-size: 12px; }
  .hero { padding: 16px 12px 12px; min-height: auto; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 14px; }
  .search { margin-top: 14px; gap: 5px; padding-left: 7px; }
  .search input { font-size: 14px; }
  .hero .btn { padding-inline: 8px; }
  .scope { opacity: .45; }
  .scope-disc { width: 150px; height: 150px; right: -25%; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 10px 0; }
  .metric { padding: 8px; gap: 6px; }
  .metric strong { font-size: 18px; }
  .metric-icon { width: 29px; height: 29px; }
  .metric-icon svg { width: 16px; height: 16px; }
  .province-bar { margin-bottom: 10px; }
  .province-bar summary { padding: 8px; gap: 5px; font-size: 13px; }
  .province-bar summary small { font-size: 12px; }
  .directory-head { padding: 8px; gap: 6px; }
  .directory-head h2 { font-size: 16px; }
  .directory-head p { display: none; }
  .section-icon { width: 28px; height: 28px; }
  .section-icon svg { width: 16px; height: 16px; }
  .directory-head > .view-controls { display: none; }
  .mobile-filter { display: inline-flex; margin-left: auto; }
  .directory > .filters { display: none; }
  .company-grid { grid-template-columns: 1fr; padding: 0 8px 9px; gap: 7px; }
  .company { padding: 9px; }
  .result-meta, .pagination { padding-inline: 8px; }
  .table-wrap { max-width: 100%; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; z-index: 5; background: white; border-top: 1px solid var(--line); padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); }
  .mobile-nav button { display: grid; justify-items: center; gap: 2px; flex: 1; min-width: 0; background: transparent; color: var(--muted); border: 0; border-radius: 6px; padding: 4px 0; font-size: 12px; white-space: nowrap; }
  .mobile-nav button.active { color: #1f5fdf; font-weight: 700; }
  dialog, dialog.small-dialog { width: 100%; max-height: 100dvh; height: auto; max-width: 100%; margin: auto 0 0; inset: auto 0 0; border-radius: 13px 13px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  dialog.full-detail { min-height: 100dvh; border-radius: 0; }
  .dialog-head, .dialog-body { padding: 13px 12px; }
  .rank-grid, .plan-grid { grid-template-columns: 1fr; }
  .page-header { flex-wrap: wrap; }
  .toast { bottom: calc(69px + env(safe-area-inset-bottom)); }
}
@media (max-width: 390px) { .demo-copy span { display: none; } .demo-bar { align-items: flex-start; } .segment button { padding-inline: 6px; } .province-bar summary small { display: none; } .province-bar summary > svg:last-child { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.analysis-copy { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.chart-list { display: grid; gap: 7px; color: #36577d; }
.chart-list div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.coverage-progress { padding: 1px 14px 9px; color: #435f87; font-size: 13px; line-height: 1.55; }
@media (max-width: 420px) { .province-bar summary small { display: none; } .province-bar summary > svg:last-child { margin-left: auto; } }
