:root{--blue:#2563eb;--blue-d:#1d4ed8;--green:#16a34a;--green-d:#15803d;--ink:#1e293b;--muted:#64748b;--line:#e2e8f0;--bg:#f1f5f9;--card:#fff;--danger:#dc2626;--amber:#d97706}
/* ============ 夜间模式 ============ */
html[data-theme=dark]{--ink:#e2e8f0;--muted:#94a3b8;--line:#334155;--bg:#0f172a;--card:#1e293b;--blue:#3b82f6;--blue-d:#2563eb;--green:#22c55e;--green-d:#16a34a;--danger:#f87171;--amber:#f59e0b}
html[data-theme=dark] body{background:#0f172a;color:#e2e8f0}
/* 所有卡片/面板/输入框：背景改深色，文字保持浅色 */
html[data-theme=dark] .points-chip,html[data-theme=dark] .btn,html[data-theme=dark] .btn-ghost,html[data-theme=dark] .btn-sm,html[data-theme=dark] .tab,html[data-theme=dark] .card,html[data-theme=dark] .content,html[data-theme=dark] .modal-box,html[data-theme=dark] .gen-card,html[data-theme=dark] .gen-result-card,html[data-theme=dark] .gen-stats,html[data-theme=dark] .gen-table th,html[data-theme=dark] .pfx-select,html[data-theme=dark] .pfx-block,html[data-theme=dark] .hist-row,html[data-theme=dark] .art-item,html[data-theme=dark] .res-card,html[data-theme=dark] .export-cats label,html[data-theme=dark] .ad-card,html[data-theme=dark] #adLogin,html[data-theme=dark] .ad-m,html[data-theme=dark] .ad-gen{background:#1e293b;border-color:#334155;color:#e2e8f0}
/* 输入框：背景更深一档 */
html[data-theme=dark] .field input,html[data-theme=dark] .field textarea,html[data-theme=dark] .gen-field input,html[data-theme=dark] .gen-field textarea,html[data-theme=dark] .gen-field select,html[data-theme=dark] .pfx-select{background:#0f172a;border-color:#334155;color:#e2e8f0}
html[data-theme=dark] .field input::placeholder,html[data-theme=dark] .field textarea::placeholder{color:#64748b}
/* 标签/提示色块：深色底 + 浅色字 */
html[data-theme=dark] .tag{background:#312e81;color:#a5b4fc}
html[data-theme=dark] .tag-green{background:#14532d;color:#86efac}
html[data-theme=dark] .hmo-ok{background:#14532d;color:#86efac}
html[data-theme=dark] .hmo-danger{background:#7f1d1d;color:#fca5a5}
html[data-theme=dark] .hmo-warn{background:#78350f;color:#fcd34d}
html[data-theme=dark] .hmo-info{background:#1e3a8a;color:#93c5fd}
html[data-theme=dark] .hmo-muted{background:#334155;color:#cbd5e1}
html[data-theme=dark] .pfx-hlr-item{background:#1e3a8a;color:#93c5fd}
html[data-theme=dark] .isp-yd{background:#1e3a8a;color:#93c5fd}
html[data-theme=dark] .isp-lt{background:#831843;color:#f9a8d4}
html[data-theme=dark] .isp-dx{background:#064e3b;color:#6ee7b7}
html[data-theme=dark] .ad-b-reply{background:#14532d;color:#86efac}
/* 表格斑马纹/悬停 */
html[data-theme=dark] .hmo-row:nth-child(odd),html[data-theme=dark] .gen-table tbody tr:nth-child(odd){background:#0f172a}
html[data-theme=dark] .gen-table tbody tr:hover td,html[data-theme=dark] .ad-tbl tr:hover td{background:#334155}
/* 公告条 */
html[data-theme=dark] .marquee-text{color:#fcd34d}
html[data-theme=dark] .marquee-wrap{background:#1e293b;border-color:#334155}
html[data-theme=dark] .gen-card h3,html[data-theme=dark] .gen-card-hd h3{color:#f1f5f9}
html[data-theme=dark] .gen-group-title{color:#94a3b8}
html[data-theme=dark] .gen-card-hd{border-bottom-color:#334155}
html[data-theme=dark] .gen-table td,html[data-theme=dark] .gen-table .phone-col,html[data-theme=dark] .gen-radio,html[data-theme=dark] .gen-chips .chip label,html[data-theme=dark] .gen-chip-list .chip label,html[data-theme=dark] .gen-field select,html[data-theme=dark] .gen-field input,html[data-theme=dark] .gen-field textarea,html[data-theme=dark] .ad-gen label,html[data-theme=dark] .pfx-input3,html[data-theme=dark] .hist-name{color:#cbd5e1}
html[data-theme=dark] .gen-field select,html[data-theme=dark] .gen-field input,html[data-theme=dark] .gen-field textarea,html[data-theme=dark] .pfx-select{color:#e2e8f0;background:#0f172a;border-color:#334155}
html[data-theme=dark] .gen-table td{border-bottom-color:#334155}
html[data-theme=dark] .gen-table tbody tr:nth-child(even){background:#1e293b}
html[data-theme=dark] .res-card{background:#1e293b;border-color:#334155;color:#e2e8f0}
html[data-theme=dark] .res-card .st,html[data-theme=dark] .res-card .meta,html[data-theme=dark] .res-card .kv-row{color:#cbd5e1}
html[data-theme=dark] .empty,html[data-theme=dark] .muted,html[data-theme=dark] .hint{color:#94a3b8}
html[data-theme=dark] .hist-row{background:#1e293b;border-color:#334155;color:#cbd5e1}
html[data-theme=dark] .hmo-row:nth-child(odd){background:#1e293b}
html[data-theme=dark] .hmo-val{color:#e2e8f0}
html[data-theme=dark] .pfx-block{background:#0f172a;border-color:#334155;color:#cbd5e1}
html[data-theme=dark] .pfx-tag{border-color:#334155}
/* 主题按钮 */
.theme-btn{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:var(--card);cursor:pointer;font-size:17px;line-height:1;display:flex;align-items:center;justify-content:center;padding:0}
html[data-theme=dark] .theme-btn{background:#1e293b}

*{box-sizing:border-box}body{margin:0;font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;background:var(--bg);color:var(--ink);line-height:1.5}
.hidden{display:none!important}
.app{max-width:960px;margin:0 auto;padding:16px}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 4px 16px}
.brand{display:flex;gap:12px;align-items:center}.brand .logo{font-size:40px}.brand h1{margin:0;font-size:22px}
.brand p{margin:0;color:var(--muted);font-size:13px}
.user-area{display:flex}.user-actions{display:flex;gap:8px;align-items:center}
.points-chip{background:#fff;border:1px solid var(--line);border-radius:999px;padding:6px 12px;font-size:13px}
.btn{border:1px solid var(--line);background:#fff;color:var(--ink);padding:9px 16px;border-radius:8px;font-size:14px;cursor:pointer;transition:.15s}
.btn:hover{border-color:#cbd5e1}.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn-primary:hover{background:var(--blue-d)}
.btn-green{background:var(--green);border-color:var(--green);color:#fff}.btn-green:hover{background:var(--green-d)}
.btn-ghost{background:#fff}.full{width:100%;margin-top:6px}
.content{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px}
.tabs{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.tab{border:1px solid var(--line);background:#fff;padding:10px 18px;border-radius:10px;cursor:pointer;font-size:14px}
.tab.active{background:var(--blue);border-color:var(--blue);color:#fff}
.card{border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:16px;background:#fff}
.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.card-head h3{margin:0;font-size:16px}.card-head p{margin:4px 0 0;color:var(--muted);font-size:13px}
.tag{background:#eef2ff;color:#4338ca;border-radius:999px;padding:3px 10px;font-size:12px;white-space:nowrap}
.tag-green{background:#dcfce7;color:var(--green-d)}
.field{margin:10px 0}.field label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
.field input,.field textarea{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:8px;font-size:15px;background:#f8fafc}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--blue);background:#fff}
.field textarea{resize:vertical;font-family:ui-monospace,Consolas,monospace}
.btn-row{display:flex;gap:10px;margin:12px 0;flex-wrap:wrap}
.result{min-height:8px}
.empty{color:var(--muted);font-size:13px;padding:6px 2px}
.res-card{border:1px solid var(--line);border-left:4px solid var(--muted);border-radius:10px;padding:12px 14px;margin-top:10px}
.res-card.ok{border-left-color:var(--green)}.res-card.warn{border-left-color:var(--amber)}.res-card.err{border-left-color:var(--danger)}
.res-card .st{font-size:16px;font-weight:600}.res-card .meta{color:var(--muted);font-size:13px;margin-top:6px;display:flex;flex-wrap:wrap;gap:10px}
.batch-opts{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:6px 0}
.opt{font-size:13px;color:var(--muted);display:flex;gap:6px;align-items:center}
.batch-cap{font-size:12px;color:var(--danger)}
.batch-progress{font-size:13px;color:var(--muted);margin:8px 0}
.export-box{border:1px dashed var(--line);border-radius:10px;padding:14px;margin-top:10px}
.export-box h4{margin:0 0 8px;font-size:14px}
.export-cats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px;max-height:0;overflow:hidden;transition:max-height .3s ease,opacity .3s;opacity:0}.export-cats.show{max-height:200px;opacity:1}
.export-cats label{border:1px solid var(--line);border-radius:8px;padding:6px 10px;font-size:13px;background:#f8fafc}
.export-cats .cnt{color:var(--muted)}
.export-formats{display:flex;gap:14px;margin-bottom:10px;font-size:13px}
.export-formats label{display:flex;gap:5px;align-items:center}
.center-body .row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.center-body .row:last-child{border-bottom:0}
.center-body .k{color:var(--muted)}
.center-points{display:flex;gap:14px;flex-wrap:wrap;margin:10px 0}
.center-points .pp{border:1px solid var(--line);border-radius:10px;padding:12px 16px;flex:1;min-width:140px;text-align:center}
.center-points .pp b{font-size:26px;display:block;margin:4px 0}
.cdk{margin-top:14px}
.cdk input{padding:10px 12px;border:1px solid var(--line);border-radius:8px;width:100%;text-transform:uppercase}
.footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:12px;padding:14px 6px}
.footer a{color:var(--blue);text-decoration:none}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.5);display:none;align-items:center;justify-content:center;z-index:50}
.modal.show{display:flex}
.modal-box{background:#fff;border-radius:14px;width:340px;max-width:92vw;padding:22px;position:relative;overflow:hidden}
.modal-box h3{margin:0 0 8px}.modal-box p{color:var(--muted);font-size:14px}
.modal-close{position:absolute;top:12px;right:14px;border:none;background:none;font-size:22px;cursor:pointer;color:var(--muted)}
.modal-tabs{display:flex;gap:8px;margin-bottom:14px}
.mtab{border:none;background:none;padding:8px 12px;font-size:14px;cursor:pointer;border-bottom:2px solid transparent}
.mtab.active{color:var(--blue);border-bottom-color:var(--blue);font-weight:600}
.mhint{color:var(--danger);font-size:13px;min-height:14px;margin:8px 0 0}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#1e293b;color:#fff;padding:10px 18px;border-radius:8px;font-size:14px;z-index:99}
@media(max-width:600px){.topbar{flex-direction:column;align-items:flex-start}}

.code-row{display:flex;gap:8px;align-items:center}.dk-mail{margin-top:6px}
/* ========= Admin ========= */
.admin-body{background:#f8fafc;font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;margin:0;min-height:100vh}
.admin-wrap{display:flex;min-height:100vh}
.admin-side{width:240px;background:#0f172a;color:#fff;padding:20px 12px;display:flex;flex-direction:column;position:fixed;height:100vh}
.admin-side .brand{display:flex;gap:10px;align-items:center;margin-bottom:24px}.admin-side .brand .logo{font-size:32px}.admin-side .brand h1{margin:0;font-size:18px;color:#fff}.admin-side .brand p{margin:0;color:#94a3b8;font-size:12px}
.nav-item{display:block;width:100%;text-align:left;background:none;border:none;color:#cbd5e1;padding:12px 14px;border-radius:8px;cursor:pointer;font-size:14px;margin-bottom:4px}
.nav-item:hover{background:rgba(255,255,255,.08);color:#fff}
.nav-item.active{background:#2563eb;color:#fff}
.side-foot{margin-top:auto;padding-top:16px;border-top:1px solid rgba(255,255,255,.1)}
.admin-main{margin-left:240px;padding:24px;flex:1}
#adLogin{max-width:360px;margin:60px auto;background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px rgba(0,0,0,.08)}
#adLogin h2{margin:0 0 16px}
.ad-card{background:#fff;border-radius:12px;padding:20px;margin-bottom:16px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.ad-card h3{margin:0 0 4px;font-size:18px}
.ad-card>p{color:#64748b;font-size:13px;margin:0 0 16px}
.ad-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.ad-filters input,.ad-filters select{padding:8px 10px;border:1px solid #e2e8f0;border-radius:8px;font-size:13px}
.ad-filters input{width:200px}
.ad-gen{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:14px;padding:12px;background:#f8fafc;border-radius:10px}
.ad-gen label{font-size:13px;color:#475569;display:flex;gap:6px;align-items:center}
.ad-gen input{padding:8px 10px;border:1px solid #e2e8f0;border-radius:8px;font-size:13px;width:80px}
.ad-tbl{width:100%;border-collapse:collapse;font-size:13px}
.ad-tbl th{text-align:left;padding:10px 8px;border-bottom:2px solid #e2e8f0;color:#64748b;font-weight:600;font-size:12px;text-transform:uppercase}
.ad-tbl td{padding:10px 8px;border-bottom:1px solid #f1f5f9}
.ad-tbl tr:hover td{background:#f8fafc}
.ad-pager{margin-top:12px;display:flex;gap:8px;align-items:center;font-size:13px;color:#64748b}
.ad-cdk{font-family:ui-monospace,Consolas,monospace;font-size:12px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.active{color:#16a34a;font-weight:600}.banned{color:#dc2626;font-weight:600}.unused{color:#16a34a}.used{color:#64748b}.expired{color:#d97706}
.btn-danger{background:#dc2626;border-color:#dc2626;color:#fff}
.ad-board{border:1px solid #e2e8f0;border-radius:10px;padding:14px;margin-bottom:10px}
.ad-b-hd{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.ad-b-hd b{font-size:14px}.ad-b-hd span{color:#64748b;font-size:12px}
.ad-b-msg{font-size:14px;line-height:1.6;margin-bottom:8px}
.ad-b-reply{font-size:13px;color:#16a34a;background:#f0fdf4;padding:8px;border-radius:8px;margin-bottom:8px}
.ad-b-foot{display:flex;gap:8px;justify-content:flex-end}
.ad-m-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-top:14px}
.ad-m{background:#f8fafc;border-radius:10px;padding:16px;text-align:center}
.ad-m b{font-size:28px;display:block;margin-bottom:4px}
.ad-m span{color:#64748b;font-size:12px}
.empty{color:#94a3b8;font-size:13px;padding:12px}
@media(max-width:768px){.admin-side{width:70px}.admin-side .brand div,.nav-item,.side-foot .btn span{display:none}.nav-item{padding:12px 0;text-align:center}.admin-main{margin-left:70px;padding:12px}}

/* 自适应 SVG logo */
.logo-svg{width:48px;height:48px;flex:0 0 auto}
.brand .logo-svg{width:52px;height:52px}
@media(max-width:600px){.logo-svg{width:40px;height:40px}.brand .logo-svg{width:44px;height:44px}}
/* 批量结果逐条排列 */
.batch-row{margin-top:8px}
#resultBatch .res-card{margin-top:8px}

.mhint.link{color:var(--blue);cursor:pointer;text-decoration:underline;min-height:0;margin-top:8px}.mhint.link{color:var(--blue);cursor:pointer;text-decoration:underline;min-height:0;margin-top:8px}

/* 滚动公告 */
.marquee-wrap{overflow:hidden;margin:10px 0 4px;position:relative;white-space:nowrap;height:28px;line-height:28px;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:0 12px}
.marquee{display:inline-block;white-space:nowrap;animation:marqueeScroll 20s linear infinite}
.marquee-text{font-size:14px;font-weight:700;color:#92400e;display:inline-block;white-space:nowrap;min-width:100%}
.marquee-wrap:hover .marquee-text{animation-play-state:paused}
@keyframes marqueeScroll{
  0%{transform:translateX(0)}
  100%{transform:translateX(-100%)}
}

.footer-icp{display:flex;gap:20px;margin-top:10px;padding-top:10px;border-top:1px solid #e2e8f0}
.icp-item{display:flex;align-items:center;gap:5px;text-decoration:none;color:#64748b;font-size:12px;transition:color .15s}
.icp-item:hover{color:#3b82f6}
.icp-item svg{flex-shrink:0;opacity:.55}
.icp-item img.icp-icon{width:22px;height:22px;object-fit:contain;flex-shrink:0}
.footer-buy{font-size:13px;color:#3b82f6;text-decoration:none;margin-top:8px;display:inline-block}
.footer-buy:hover{text-decoration:underline}
.tab-link{border:1px solid var(--line);background:#fff;padding:10px 18px;border-radius:10px;font-size:14px;color:var(--gray-700);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;transition:all .15s}
.tab-link:hover{border-color:var(--blue);color:var(--blue)}
.gen-layout{display:grid;grid-template-columns:280px 1fr;gap:16px;align-items:start}
@media(max-width:768px){.gen-layout{grid-template-columns:1fr}}
.gen-section{margin-bottom:14px}
.gen-label{font-size:12px;font-weight:600;color:#64748b;margin-bottom:6px}
.gen-chips{display:flex;flex-wrap:wrap;gap:4px}
.gen-chips .chip input{position:absolute;opacity:0;width:0;height:0}
.gen-chips .chip label{display:inline-block;padding:3px 9px;font-size:12px;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;transition:all .12s;color:#475569;user-select:none}
.gen-chips .chip input:checked+label{background:#2563eb;color:#fff;border-color:#2563eb}
.gen-chips .chip label:hover{border-color:#2563eb;color:#2563eb}
.gen-chk-all{font-size:11px;font-weight:600;color:#2563eb;cursor:pointer;background:none;border:1px solid #2563eb;border-radius:6px;padding:1px 8px;line-height:1.8;transition:all .15s;margin-left:auto}
.gen-chk-all:hover{background:#2563eb;color:#fff}
.gen-pattern{display:none}
.gen-stats{font-size:13px;color:#64748b;padding:8px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:8px}
.gen-stats b{color:#2563eb;font-weight:700}
.gen-result{max-height:380px;overflow-y:auto;border:1px solid #e2e8f0;border-radius:8px}
.gen-table{width:100%;border-collapse:collapse;font-size:13px}
.gen-table thead{position:sticky;top:0;z-index:1}
.gen-table th{background:#f8fafc;padding:8px 12px;text-align:left;font-weight:600;color:#64748b;border-bottom:1px solid #e2e8f0;font-size:12px}
.gen-table td{padding:7px 12px;border-bottom:1px solid #f1f5f9;color:#334155}
.gen-table tbody tr:hover td{background:#eff6ff}
.gen-table .isp-tag{display:inline-block;padding:1px 7px;border-radius:20px;font-size:11px;font-weight:500}
.isp-yd{background:#dbeafe;color:#1d4ed8}
.isp-lt{background:#fce7f3;color:#be185d}
.isp-dx{background:#d1fae5;color:#065f46}
.pattern-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.pattern-item input{display:none}
.pattern-item label{display:block;padding:5px 2px;font-size:11px;text-align:center;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;color:#64748b;transition:all .12s}
.pattern-item input:checked+label{background:#2563eb;color:#fff;border-color:#2563eb}
.pattern-item label:hover{border-color:#2563eb;color:#2563eb}
/* ---- 号码生成器新布局 ---- */
.gen-card{background:#fff;border-radius:12px;box-shadow:0 1px 4px rgba(0,0,0,.08);padding:20px;margin-bottom:16px}
.gen-card-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #f1f5f9}
.gen-card-hd h3{font-size:15px;font-weight:700;color:#0f172a;margin:0}
.gen-group{margin-bottom:14px}
.gen-group-title{font-size:12px;font-weight:600;color:#64748b;margin-bottom:6px;display:flex;align-items:center;gap:8px}
.gen-group-title .op-yd{color:#1d4ed8;font-weight:700}
.gen-group-title .op-lt{color:#be185d;font-weight:700}
.gen-group-title .op-dx{color:#065f46;font-weight:700}
.gen-chip-list{display:flex;flex-wrap:wrap;gap:5px}
.gen-chip-list .chip{display:inline-flex}
.gen-chip-list .chip input{position:absolute;opacity:0;width:0;height:0}
.gen-chip-list .chip label{display:inline-block;padding:4px 10px;font-size:12px;border:1.5px solid #e2e8f0;border-radius:7px;cursor:pointer;transition:all .12s;color:#475569;user-select:none;min-width:36px;text-align:center}
.gen-chip-list .chip input:checked+label{background:#2563eb;color:#fff;border-color:#2563eb;font-weight:600}
.gen-chip-list .chip label:hover{border-color:#2563eb;color:#2563eb}
.gen-all-btn{font-size:11px;font-weight:600;color:#2563eb;cursor:pointer;background:none;border:1px solid #bfdbfe;border-radius:5px;padding:1px 8px;line-height:1.6;transition:all .15s;margin-left:auto}
.gen-all-btn:hover{background:#2563eb;color:#fff;border-color:#2563eb}
.gen-row{display:grid;grid-template-columns:1fr 2fr 90px;gap:10px;margin-bottom:14px;align-items:end}
.gen-field{display:flex;flex-direction:column;gap:4px}
.gen-field-sm{max-width:90px}
.gen-field label{font-size:12px;font-weight:600;color:#64748b}
.gen-field select,.gen-field input{padding:7px 10px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:13px;color:#0f172a;background:#fff;outline:none;transition:border-color .15s;width:100%}
.gen-field select:focus,.gen-field input:focus{border-color:#2563eb}
.gen-field select[multiple]{min-height:80px;font-size:12px}
.gen-field textarea{padding:7px 10px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:13px;color:#0f172a;background:#fff;outline:none;transition:border-color .15s;width:100%;resize:vertical;font-family:inherit}
.gen-field textarea:focus{border-color:#2563eb}
.gen-radio-row{display:flex;gap:12px}
.gen-radio{display:flex;align-items:center;gap:5px;cursor:pointer;font-size:13px;color:#334155;padding:6px 12px;border:1.5px solid #e2e8f0;border-radius:8px;transition:all .12s}
.gen-radio:hover{border-color:#2563eb}
.gen-radio input:checked~span{color:#2563eb;font-weight:600}
.gen-radio input:checked+span{color:#2563eb;font-weight:600}
.gen-radio input[type=radio]{accent-color:#2563eb}
.gen-pattern-panel{margin-top:4px}
.gen-pattern-panel.hidden{display:none}
.gen-pattern-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:5px}
.pattern-item input{display:none}
.pattern-item label{display:block;padding:5px 4px;font-size:11px;text-align:center;border:1.5px solid #e2e8f0;border-radius:6px;cursor:pointer;color:#64748b;transition:all .12s;font-family:monospace}
.pattern-item input:checked+label{background:#2563eb;color:#fff;border-color:#2563eb;font-weight:700}
.pattern-item label:hover{border-color:#2563eb;color:#2563eb}
.gen-actions{display:flex;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #f1f5f9}
/* 结果区 */
.gen-result-card{background:#fff;border-radius:12px;box-shadow:0 1px 4px rgba(0,0,0,.08);overflow:hidden}
.gen-result-area{max-height:400px;overflow-y:auto}
.gen-table{width:100%;border-collapse:collapse;font-size:13px}
.gen-table thead{position:sticky;top:0;z-index:1}
.gen-table th{background:#f8fafc;padding:9px 14px;text-align:left;font-weight:600;color:#64748b;border-bottom:1px solid #e2e8f0;font-size:12px}
.gen-table td{padding:7px 14px;border-bottom:1px solid #f8fafc;color:#334155}
.gen-table tbody tr:hover td{background:#eff6ff}
.gen-table .phone-col{font-family:"Courier New",monospace;font-weight:600;letter-spacing:.5px;color:#0f172a}
.isp-tag{display:inline-block;padding:2px 8px;border-radius:20px;font-size:11px;font-weight:600}
.isp-yd{background:#dbeafe;color:#1d4ed8}
.isp-lt{background:#fce7f3;color:#be185d}
.isp-dx{background:#d1fae5;color:#065f46}
.gen-export-bar{display:flex;gap:8px;padding:12px 14px;border-top:1px solid #f1f5f9;flex-wrap:wrap}
.gen-stats{font-size:13px;color:#64748b}
.gen-stats b{color:#2563eb;font-weight:700}
.empty{text-align:center;padding:48px 16px;color:#cbd5e1;font-size:14px}

/* 号段大全 */
.pfx-form{margin-bottom:12px}
.pfx-row3{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.pfx-field{display:flex;flex-direction:column;gap:5px}
.pfx-field label{font-size:12px;color:#64748b;font-weight:500}
.pfx-select{padding:8px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:13px;background:#fff;color:#334155;min-width:120px}
.pfx-input3{padding:8px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;width:80px;color:#334155}
.pfx-go{height:38px;padding:0 20px}
.pfx-info{font-size:13px;color:#64748b;margin-bottom:12px;min-height:18px}
.pfx-list{display:flex;flex-direction:column;gap:14px}
.pfx-block{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:14px 16px}
.pfx-block-hd{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.pfx-tag{display:inline-block;padding:3px 10px;border-radius:20px;font-size:13px;font-weight:700;font-family:monospace;color:#fff}
.pfx-移动{background:#2563eb}
.pfx-联通{background:#e11d48}
.pfx-电信{background:#059669}
.pfx-广电{background:#d97706}
.pfx-carrier-label{font-size:12px;color:#64748b}
.pfx-city-label{font-size:12px;color:#2563eb;margin-left:auto}
.pfx-hlr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:6px}
.pfx-hlr-item{font-family:monospace;font-size:13px;padding:4px 8px;background:#eff6ff;color:#1d4ed8;border-radius:6px;text-align:center}

/* 深度空号检测(35188) */
.hmo-detail{display:flex;flex-direction:column;gap:0;margin-top:8px}
.hmo-row{display:flex;justify-content:space-between;align-items:center;padding:9px 14px;border-bottom:1px solid #f1f5f9;font-size:13px}
.hmo-row:nth-child(odd){background:#f8fafc}
.hmo-label{color:#64748b;font-weight:500;min-width:100px}
.hmo-val{color:#0f172a;font-weight:500}
.hmo-badge{display:inline-block;padding:2px 10px;border-radius:20px;font-size:12px;font-weight:700}
.hmo-ok{background:#d1fae5;color:#065f46}
.hmo-danger{background:#fee2e2;color:#991b1b}
.hmo-warn{background:#fef3c7;color:#92400e}
.hmo-info{background:#dbeafe;color:#1d4ed8}
.hmo-muted{background:#e2e8f0;color:#475569}

/* 查询历史 */
.hist-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 10px;background:#f7f8fa;border-radius:6px;margin-bottom:4px;font-size:13px}
.hist-ts{color:var(--muted);font-size:12px;min-width:130px}
.hist-phone{font-weight:600;font-family:ui-monospace,monospace}
.hist-st{color:#444}
.hist-pt{margin-left:auto;font-size:12px;color:#c0392b;font-weight:600}
.hist-pt.hist-free{color:#27ae60}
.btn-sm{padding:5px 10px;font-size:12px;border-radius:6px;border:1px solid #ddd;background:#fff;cursor:pointer}
.btn-sm:hover{background:#f0f0f0}
/* kv 行 */
.kv-row{display:flex;gap:12px;padding:6px 0;border-bottom:1px solid var(--line);font-size:14px}
.kv-row:last-child{border-bottom:none}
.kv-row .k{color:var(--muted);min-width:72px;flex-shrink:0}
.kv-row .v{flex:1}

.hist-name{font-weight:600;color:#334155;margin-left:6px}
/* 注册图形验证码 */
.cap-row{display:flex;align-items:center;gap:10px}
.cap-canvas{width:130px;height:44px;image-rendering:pixelated;border:1px solid var(--line, #e2e8f0);border-radius:6px}

.batch-opts{display:flex;align-items:center;gap:14px;margin:8px 0;font-size:13px;color:var(--muted);flex-wrap:wrap}
.batch-opts .opt{display:flex;align-items:center;gap:5px}
.batch-opts .opt input[type=number]{width:48px;padding:4px 6px;border:1px solid var(--line);border-radius:6px}
.batch-cap{color:var(--blue);font-size:13px}
.batch-progress{font-size:13px;color:#2563eb;margin:4px 0}
/* 夜间：所有写死白底的控件框统一改深底浅字（号段下拉/前3位输入/号码生成框等） */
html[data-theme=dark] .pfx-select,html[data-theme=dark] .pfx-input3,html[data-theme=dark] .gen-field select,html[data-theme=dark] .gen-field input,html[data-theme=dark] .gen-field textarea,html[data-theme=dark] .gen-radio,html[data-theme=dark] .gen-chips .chip label,html[data-theme=dark] .gen-chip-list .chip label,html[data-theme=dark] .field input,html[data-theme=dark] .field select,html[data-theme=dark] .field textarea,html[data-theme=dark] .export-cats label,html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#0f172a;border-color:#334155;color:#e2e8f0}
html[data-theme=dark] .pfx-input3{font-weight:600;color:#f1f5f9}
html[data-theme=dark] .pfx-select{font-weight:500;color:#e2e8f0}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder,html[data-theme=dark] .pfx-input3::placeholder{color:#64748b}

/* 隐私政策链接 */
.footer-priv{font-size:12px;color:var(--muted);text-decoration:underline;margin-right:14px;align-self:center}
html[data-theme=dark] .footer-priv{color:#94a3b8}