:root { --ink:#0f172a; --sub:#64748b; --line:#e2e8f0; --brand:#4f46e5; --hot:#dc2626; --ok:#059669; }
* { box-sizing:border-box; margin:0; padding:0; }
body { font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; color:var(--ink); background:#f6f7fb; }
.wrap { max-width:480px; margin:0 auto; padding:12px 12px 24px; }
.top { position:sticky; top:0; z-index:9; display:flex; justify-content:space-between; align-items:center;
  padding:10px 14px; background:#fff; border-bottom:1px solid var(--line); }
.brand { font-weight:800; font-size:17px; color:var(--ink); text-decoration:none; }
.brand small { display:block; font-size:10px; color:var(--sub); font-weight:500; }
.top nav a { margin-left:14px; font-size:14px; color:var(--sub); text-decoration:none; }
.top nav a.on { color:var(--brand); font-weight:600; }
.foot { max-width:480px; margin:0 auto; padding:18px 14px 30px; text-align:center; font-size:11px; color:#94a3b8; line-height:1.8; }
.foot a { color:inherit; }
.hero { background:linear-gradient(135deg,#4f46e5,#7c3aed); border-radius:14px; color:#fff; padding:18px 16px; margin-bottom:12px; }
.hero h1 { font-size:19px; margin-bottom:6px; }
.hero p { font-size:12px; opacity:.9; }
.card { display:flex; gap:10px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:10px; margin-bottom:10px; text-decoration:none; color:inherit; }
.cover { width:92px; height:92px; border-radius:10px; object-fit:cover; flex:none; background:#f1f5f9; }
.cb { flex:1; min-width:0; display:flex; flex-direction:column; }
.name { font-size:14px; font-weight:600; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.spec { font-size:12px; color:#334155; margin-top:4px; }
.spec b { color:var(--hot); font-size:15px; }
.meta { font-size:11px; color:var(--sub); margin-top:3px; }
.row { display:flex; justify-content:space-between; align-items:center; margin-top:auto; padding-top:4px; }
.b { display:inline-block; font-size:10px; padding:2px 6px; border-radius:6px; background:#eef2ff; color:var(--brand); margin-right:4px; }
.b-hot { background:#fef2f2; color:var(--hot); font-weight:700; }
.go { font-size:12px; color:var(--brand); font-weight:600; }
.note { font-size:11px; color:var(--sub); line-height:1.7; padding:8px 4px; }
.panel { background:#fff; border:1px solid var(--line); border-radius:14px; padding:14px; margin-bottom:12px; }
.panel h3 { font-size:15px; margin-bottom:10px; }
.phead { display:flex; gap:12px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px; margin-bottom:12px; }
.pcover { width:96px; height:96px; border-radius:10px; object-fit:cover; flex:none; }
.pprice b { font-size:26px; color:var(--hot); }
.pprice span { color:var(--sub); font-size:12px; }
.pprice em { display:block; font-style:normal; font-size:11px; color:var(--hot); }
.pname { font-size:14px; font-weight:600; margin-top:6px; line-height:1.4; }
.ptags { margin-top:6px; }
.specs3 { display:grid; grid-template-columns:repeat(3,1fr); text-align:center; background:#f8fafc; border-radius:10px; padding:10px 0; margin-bottom:10px; }
.specs3 i { font-style:normal; font-size:18px; font-weight:800; display:block; }
.specs3 u { text-decoration:none; font-size:11px; color:var(--sub); }
.kv { list-style:none; }
.kv li { display:flex; gap:10px; padding:7px 0; border-bottom:1px dashed var(--line); font-size:13px; }
.kv li span { flex:none; width:74px; color:var(--sub); }
.kv code { font-size:12px; word-break:break-all; }
.dots { padding-left:18px; font-size:13px; line-height:1.9; color:#334155; }
.warn { background:#fffbeb; border:1px solid #fde68a; color:#92400e; border-radius:10px; padding:10px; font-size:12px; line-height:1.7; margin-top:10px; }
.fine { margin-top:10px; font-size:12px; color:var(--sub); }
.fine summary { cursor:pointer; }
.fine p { margin-top:6px; line-height:1.7; }
.fine-p { font-size:12px; color:var(--sub); line-height:1.7; margin-top:10px; }
.rich { font-size:13px; line-height:1.8; overflow:hidden; }
.rich img { max-width:100%; height:auto; }
.dimg { width:100%; border-radius:10px; margin-bottom:8px; display:block; }
label { display:block; font-size:13px; color:#334155; margin-bottom:10px; }
label input:not([type=checkbox]) { width:100%; margin-top:5px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; font-size:16px; }
label input:focus { outline:2px solid #c7d2fe; border-color:var(--brand); }
.three { display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; }
.agree { display:flex; gap:6px; align-items:flex-start; font-size:12px; line-height:1.6; }
.agree a { color:var(--brand); }
.agree input { margin-top:3px; }
.submit { width:100%; padding:13px; border:0; border-radius:12px; background:var(--brand); color:#fff; font-size:16px; font-weight:700; cursor:pointer; display:block; text-align:center; text-decoration:none; }
.tiny { font-size:11px; color:var(--sub); line-height:1.7; margin-top:8px; }
.err { background:#fef2f2; border:1px solid #fecaca; color:var(--hot); border-radius:10px; padding:10px; font-size:13px; margin-bottom:10px; }
.okbox { background:#ecfdf5; border:1px solid #a7f3d0; color:var(--ok); border-radius:12px; padding:12px; font-size:13px; margin-bottom:12px; line-height:1.7; }
.status { font-size:22px; font-weight:800; color:var(--brand); margin-bottom:8px; }
.qa dt { font-weight:700; font-size:13px; margin-top:10px; }
.qa dd { font-size:12px; color:var(--sub); line-height:1.7; margin:3px 0 0; }
.tbl { width:100%; border-collapse:collapse; font-size:11px; }
.tbl th, .tbl td { border-bottom:1px solid var(--line); padding:6px 4px; text-align:left; vertical-align:top; }
.tbl th { color:var(--sub); font-weight:600; }
.tbl a { color:var(--brand); }
.empty { text-align:center; color:var(--sub); font-size:13px; padding:30px 0; }
label select { width:100%; margin-top:5px; padding:10px 8px; border:1px solid var(--line); border-radius:10px; font-size:16px; background:#fff; color:var(--ink); appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.chips:empty { display:none; }
.chip { padding:6px 10px; border-radius:999px; background:#eef2ff; color:var(--brand); font-size:12px; cursor:pointer; border:1px solid #c7d2fe; }
.chip:active { background:var(--brand); color:#fff; }
.tabs { display:flex; gap:8px; overflow-x:auto; margin-bottom:12px; padding-bottom:2px; -webkit-overflow-scrolling:touch; }
.tab { flex:none; padding:7px 15px; border-radius:999px; background:#fff; border:1px solid var(--line); font-size:13px; color:var(--sub); cursor:pointer; }
.tab.on { background:var(--brand); color:#fff; border-color:var(--brand); font-weight:600; }
.price { font-size:15px; font-weight:800; color:var(--hot); }
.price small { font-size:11px; color:var(--sub); font-weight:400; }

/* ---- 顶栏（汉堡 + 备案名 + 定位城市） ---- */
.burger { background:none; border:0; font-size:20px; line-height:1; padding:4px 6px; color:var(--ink); cursor:pointer; }
.top .brand { flex:1; text-align:center; font-size:15px; }
.top .geo { flex:none; font-size:12px; color:var(--sub); min-width:52px; text-align:right; white-space:nowrap; }

/* ---- 抽屉菜单 ---- */
.overlay { position:fixed; inset:0; background:rgba(15,23,42,.45); opacity:0; pointer-events:none; transition:.25s; z-index:30; }
.overlay.show { opacity:1; pointer-events:auto; }
.drawer { position:fixed; top:0; left:0; bottom:0; width:78%; max-width:320px; background:#fff; z-index:31; transform:translateX(-105%); transition:.25s; display:flex; flex-direction:column; box-shadow:2px 0 12px rgba(0,0,0,.08); }
.drawer.open { transform:none; }
.d-head { padding:22px 16px 14px; background:linear-gradient(135deg,#4f46e5,#7c3aed); color:#fff; font-weight:800; font-size:16px; }
.d-head small { display:block; font-size:11px; font-weight:400; opacity:.85; margin-top:4px; }
.d-nav { flex:1; padding:6px 0; overflow:auto; }
.d-nav a { display:block; padding:13px 18px; color:var(--ink); text-decoration:none; font-size:14px; border-bottom:1px solid #f1f5f9; }
.d-nav a:active { background:#f1f5f9; }
.d-sub { display:block; font-size:11px; color:var(--sub); margin-top:2px; }
.d-prov { padding:14px 18px 22px; font-size:10px; color:#94a3b8; line-height:1.8; }
.d-prov a { color:inherit; }

/* ---- 轮播广告位 ---- */
.banner { position:relative; border-radius:14px; overflow:hidden; margin-bottom:12px; background:#e2e8f0; }
.btrack { display:flex; transition:transform .35s ease; }
.bslide { flex:0 0 100%; position:relative; display:block; background:#fff; }
.bslide .bimg { width:100%; height:auto; display:block; }
.bslide.fallback { height:132px; background-size:contain; background-repeat:no-repeat; background-position:center; border:1px solid var(--line); }
.bslide::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(15,23,42,.05) 40%,rgba(15,23,42,.6)); }
.btitle { position:absolute; left:12px; right:52px; bottom:10px; color:#fff; font-size:13px; font-weight:600; z-index:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-shadow:0 1px 4px rgba(0,0,0,.5); }
.bdots { position:absolute; right:10px; bottom:9px; display:flex; gap:5px; z-index:2; }
.bdots i { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.5); cursor:pointer; }
.bdots i.on { background:#fff; }

/* ---- 底部导航 ---- */
.botnav { position:fixed; left:50%; transform:translateX(-50%); bottom:0; width:100%; max-width:480px; z-index:20; display:grid; grid-template-columns:repeat(3,1fr); background:#fff; border-top:1px solid var(--line); padding:7px 0 calc(7px + env(safe-area-inset-bottom)); }
.botnav a { text-align:center; text-decoration:none; color:#94a3b8; font-size:11px; }
.botnav a i { font-style:normal; font-size:20px; display:block; margin-bottom:1px; }
.botnav a.on { color:var(--brand); font-weight:700; }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width:768px){ .botnav { display:none; } body { padding-bottom:0; } }

/* ---- 其他 ---- */
.btn-line { display:block; padding:12px 14px; border:1px solid var(--line); border-radius:12px; margin-bottom:8px; color:var(--ink); text-decoration:none; font-size:14px; background:#fff; }
.btn-line:active { background:#f8fafc; }
details.news summary { cursor:pointer; font-size:14px; font-weight:600; line-height:1.5; list-style:none; position:relative; padding-right:22px; }
details.news summary::-webkit-details-marker { display:none; }
details.news summary::after { content:'▸'; position:absolute; right:2px; top:0; color:var(--sub); transition:.2s; }
details.news[open] summary::after { content:'▾'; }
.ntag { display:inline-block; font-size:10px; background:#eef2ff; color:var(--brand); border-radius:6px; padding:2px 6px; margin-right:6px; vertical-align:middle; }
details.news summary small { display:block; color:var(--sub); font-weight:400; font-size:11px; margin-top:3px; }
.nbody { margin-top:10px; border-top:1px dashed var(--line); padding-top:10px; }

/* ---- 一证通查绿色 CTA ---- */
.btn-green { display:block; text-align:center; padding:13px; border:0; border-radius:12px; background:#059669; color:#fff; font-size:15px; font-weight:700; text-decoration:none; }
.btn-green:active { background:#047857; }

/* ---- 运营商筛选栏 ---- */
.opbar { margin-top:-4px; }
.opbar .tab { padding:6px 12px; font-size:12px; }

/* ---- 推广员工具 ---- */
#agFab { position:fixed; right:12px; bottom:96px; z-index:25; display:flex; flex-direction:column; align-items:center; justify-content:center;
  width:52px; height:52px; border-radius:50%; background:linear-gradient(135deg,#f59e0b,#f97316); color:#fff; font-size:20px;
  box-shadow:0 4px 14px rgba(249,115,22,.45); cursor:pointer; border:0; }
#agFab span { font-size:9px; font-weight:700; margin-top:1px; }
@media (min-width:768px){ #agFab { bottom:24px; } }
#agMask { position:fixed; inset:0; background:rgba(15,23,42,.5); z-index:40; }
#agModal { position:fixed; left:50%; transform:translateX(-50%); bottom:0; width:100%; max-width:480px; z-index:41;
  background:#fff; border-radius:16px 16px 0 0; max-height:86vh; overflow:auto; padding-bottom:env(safe-area-inset-bottom); }
.am-head { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-bottom:1px solid var(--line);
  position:sticky; top:0; background:#fff; font-size:16px; }
.am-body { padding:14px 16px 22px; }
.am-label { font-size:12px; color:var(--sub); margin-bottom:6px; }
.am-link { background:#f8fafc; border:1px dashed var(--line); border-radius:10px; padding:10px; font-size:12px; word-break:break-all; margin-bottom:10px; }
.am-btn { display:block; width:100%; padding:12px; margin-bottom:8px; border:0; border-radius:12px; background:var(--brand); color:#fff; font-size:15px; font-weight:600; }
.am-btn2 { background:#059669; }
.am-btn3 { background:#f1f5f9; color:var(--sub); font-size:13px; }
