/* VPS 雷达 v3 - 柔和多巴胺 (奶油白 + 青绿 + 糖果点缀, 克制现代) */
:root {
  --bg: #F4F1F8;
  --surface: #FAF8FC;
  --surface-2: #EDEAF3;
  --ink: #23202E;
  --ink-2: #4A4659;
  --ink-3: #8B8798;
  --line: #E2DEEB;
  --line-2: #CFCADD;
  --brand: #7B68B8;
  --brand-deep: #5C4A99;
  --brand-pale: #ECE7F6;
  --green: #2E9E8B;
  --green-pale: #E2F2EF;
  --green-deep: #1F7263;
  --blue: #6FA8DC;
  --purple: #9A8FC7;
  --orange: #E08E2E;
  --orange-pale: #FAF0E0;
  --yellow: #D4A53C;
  --red: #C94F4F;
  --red-pale: #FAE7E7;
  --r-sm: 8px; --r-md: 10px; --r-lg: 12px; --r-xl: 16px;
  --mono: ui-monospace, 'SF Mono', Menlo, 'Cascadia Code', Consolas, monospace;
  --shadow: 0 1px 3px rgba(0,0,0,.05);
  --shadow-hover: 0 3px 10px rgba(0,0,0,.08);
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, system-ui, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(154,143,199,.10), transparent 60%),
    radial-gradient(900px 400px at 10% -10%, rgba(46,158,139,.07), transparent 60%),
    var(--bg);
  color: var(--ink); min-height:100vh;
  font-size:14px; line-height:1.5; font-weight:400; -webkit-font-smoothing:antialiased;
}
.hidden { display:none !important; }
a { color: var(--brand); text-decoration:none; }
a:hover { text-decoration:underline; }

/* ── 登录层 ── */
.login-overlay { position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; background:var(--bg); padding:20px; }
.login-card { width:100%; max-width:320px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); padding:36px 28px; text-align:center; box-shadow:var(--shadow-hover); }
.login-logo { width:56px; height:56px; margin:0 auto 14px; border-radius:16px; background:linear-gradient(180deg,#8F7ED6,var(--brand)); color:#fff; font-size:26px; font-weight:700; display:flex; align-items:center; justify-content:center; box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 3px 0 var(--brand-deep), 0 0 24px rgba(123,104,184,.35); }
.login-title { font-size:22px; font-weight:700; letter-spacing:-.3px; }
.login-sub { font-size:13px; color:var(--ink-3); margin:4px 0 22px; }
.login-input { width:100%; padding:11px 14px; background:var(--surface); border:1.5px solid var(--line-2); border-radius:var(--r-md); color:var(--ink); font-size:15px; outline:none; }
.login-input:focus { border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-pale); }
.login-input::placeholder { color:var(--ink-3); }
.login-error { min-height:20px; margin-top:12px; font-size:12px; color:var(--red); }

/* ── 按钮 (微 3D) ── */
.btn { display:inline-flex; align-items:center; justify-content:center; border:none; cursor:pointer; font-family:inherit; font-size:13px; font-weight:600; padding:9px 18px; border-radius:var(--r-md); transition:all .15s ease; text-decoration:none; }
.btn-primary { background:linear-gradient(180deg,#8F7ED6,var(--brand)); color:#fff; box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 2px 0 var(--brand-deep); }
.btn-primary:hover { filter:brightness(1.06); text-decoration:none; }
.btn-primary:active { transform:translateY(2px); box-shadow:none; }
.btn-block { width:100%; margin-top:14px; }
.btn-ghost { background:var(--surface); color:var(--ink-2); border:1px solid var(--line-2); box-shadow:var(--shadow); }
.btn-ghost:hover { color:var(--ink); border-color:var(--ink-3); }
.btn-ghost:active { transform:translateY(1px); box-shadow:none; }
.btn-buy { background:var(--green); color:#fff; font-weight:600; padding:5px 13px; font-size:12px; border-radius:var(--r-md); box-shadow:0 2px 0 var(--green-deep); text-decoration:none; }
.btn-buy:hover { filter:brightness(1.07); text-decoration:none; }
.btn-buy:active { transform:translateY(2px); box-shadow:none; }
.btn-watch { background:var(--surface); border:1px solid var(--line-2); color:var(--ink-2); padding:5px 9px; font-size:11px; font-weight:500; border-radius:var(--r-md); cursor:pointer; transition:all .15s; }
.btn-watch:hover { border-color:var(--purple); color:var(--purple); }
.btn-watch:disabled { opacity:.45; }

/* ── 顶栏 ── */
.topbar { position:sticky; top:0; z-index:20; animation:slideDown .4s ease both; display:flex; align-items:center; gap:14px; padding:10px 18px; background:rgba(255,253,246,.92); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); flex-wrap:wrap; }
.brand { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand-mark { width:34px; height:34px; border-radius:10px; background:linear-gradient(180deg,#8F7ED6,var(--brand)); color:#fff; font-size:17px; font-weight:700; display:flex; align-items:center; justify-content:center; box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 2px 0 var(--brand-deep); }
.brand-text h1 { font-size:16px; font-weight:700; letter-spacing:-.3px; line-height:1.2; }
.brand-accent { color:var(--brand); }
.brand-sub { font-size:10.5px; color:var(--ink-3); display:block; font-weight:400; }
.topbar-search { flex:1; max-width:340px; position:relative; min-width:0; }
.search-icon { position:absolute; left:11px; top:50%; transform:translateY(-50%); color:var(--ink-3); font-size:14px; }
#globalSearch { width:100%; padding:8px 12px 8px 30px; background:var(--surface); border:1.5px solid var(--line-2); border-radius:9999px; color:var(--ink); font-size:13px; outline:none; transition:all .15s; }
#globalSearch:focus { border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-pale); }
#globalSearch::placeholder { color:var(--ink-3); }
.icon-btn { background:transparent; border:none; color:var(--ink-3); font-size:15px; width:34px; height:34px; border-radius:var(--r-md); cursor:pointer; transition:all .15s; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.icon-btn:hover { color:var(--brand); background:var(--brand-pale); }

/* ── Tabs ── */
.tabs { position:sticky; top:55px; z-index:19; animation:fadeIn .5s ease .1s both; display:flex; gap:2px; background:rgba(255,253,246,.92); backdrop-filter:blur(8px); padding:6px 18px 0; border-bottom:1px solid var(--line); }
.tab { flex:1; max-width:160px; padding:9px 0 11px; background:none; border:none; color:var(--ink-3); font-size:13px; font-weight:500; cursor:pointer; border-bottom:2.5px solid transparent; transition:color .15s; display:flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; }
.tab.active { color:var(--brand); border-bottom-color:var(--brand); font-weight:600; }
.tab-count { font-family:var(--mono); font-size:10px; background:var(--surface-2); border:1px solid var(--line); color:var(--ink-3); padding:1px 6px; border-radius:9999px; }

main { max-width:900px; margin:0 auto; padding:16px 18px 48px; }
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* ── 智能摘要条 ── */
.summary-bar { display:flex; align-items:center; gap:16px; animation:fadeUp .4s ease .1s both; flex-wrap:wrap; padding:10px 16px; margin-bottom:12px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); font-size:12.5px; color:var(--ink-2); box-shadow:var(--shadow); }
.summary-item { display:flex; align-items:center; gap:6px; }
.summary-item b { font-family:var(--mono); font-weight:600; color:var(--ink); }
.summary-drop { color:var(--green-deep); }
.summary-rise { color:var(--orange); }

/* ── 基准条 ── */
.baseline-bar { display:flex; align-items:center; gap:20px; animation:fadeUp .5s ease .15s both; padding:16px 18px; margin-bottom:16px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); flex-wrap:wrap; box-shadow:var(--shadow); }
.bl-main { min-width:0; flex:1; }
.bl-name { font-size:14px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bl-specs { font-size:11.5px; color:var(--ink-3); margin-top:2px; font-family:var(--mono); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bl-stats { display:flex; gap:22px; }
.bl-stat { text-align:center; }
.bl-stat b { display:block; font-family:var(--mono); font-size:20px; font-weight:700; color:var(--ink); letter-spacing:-.5px; }
.bl-stat.warn b { color:var(--orange); }
.bl-stat span { font-size:9.5px; color:var(--ink-3); letter-spacing:.8px; text-transform:uppercase; }
.bl-renew { display:flex; flex-direction:column; align-items:center; min-width:86px; }
.bl-renew b { font-family:var(--mono); font-size:26px; font-weight:700; color:var(--brand); line-height:1.1; letter-spacing:-1px; }
.bl-renew.warn b { color:var(--orange); }
.bl-renew span { font-size:9.5px; color:var(--ink-3); letter-spacing:.8px; }
.bl-bar { width:100%; height:4px; background:var(--surface-2); border-radius:2px; margin-top:8px; overflow:hidden; }
.bl-bar i { display:block; height:100%; background:var(--brand); border-radius:2px; }

/* ── 区块标题 ── */
.panel-title { font-size:13.5px; font-weight:700; margin:2px 0 10px; display:flex; align-items:center; gap:8px; letter-spacing:-.1px; }
.live-text { font-size:11px; color:var(--green-deep); background:var(--green-pale); border-radius:9999px; padding:2px 10px; display:flex; align-items:center; gap:5px; margin-left:auto; font-weight:600; }
.live-dot { width:7px; height:7px; border-radius:50%; background:var(--green); animation:pulse 2s infinite; display:inline-block; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.35; } }

/* ── 图例 ── */
.legend { display:flex; gap:16px; padding:0 2px 12px; font-size:11.5px; color:var(--ink-3); }
.dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; vertical-align:1px; }
.dot-config { background:var(--green); }
.dot-line { background:var(--purple); }

/* ── 卡片系统 (白底细边轻阴影, 无左边条) ── */
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(255px, 1fr)); gap:12px; margin-bottom:20px; align-items:start; }
.vcard { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:13px 14px; box-shadow:var(--shadow); transition:all .18s ease; animation:fadeUp .35s ease both; min-width:0; }
.vcard:hover { border-color:rgba(123,104,184,.35); transform:translateY(-2px); box-shadow:0 4px 20px rgba(123,104,184,.12); }
.vcard.ok { border-color:#BDEBA0; background:linear-gradient(180deg, #F8FFF2, var(--surface)); animation:fadeUp .35s ease both, breathe 2.6s ease-in-out 1s infinite; }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes breathe { 0%,100% { box-shadow:0 0 0 0 rgba(88,204,2,0); } 50% { box-shadow:0 0 14px 1px rgba(88,204,2,.25); } }
.vcard-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.vcard-tagwrap { display:flex; align-items:center; gap:8px; min-width:0; }
.vcard-tag { font-size:11px; color:var(--ink-3); letter-spacing:.3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vcard-state { font-size:12px; font-weight:600; color:var(--ink-3); flex-shrink:0; display:flex; align-items:center; gap:5px; }
.vcard-state .sd { width:8px; height:8px; border-radius:50%; background:var(--ink-3); display:inline-block; }
.vcard-state.on { color:var(--green-deep); }
.vcard-state.on .sd { background:var(--green); box-shadow:0 0 0 3px var(--green-pale); }
.vcard-name { font-size:13.5px; font-weight:600; margin-top:7px; display:flex; align-items:center; gap:6px; letter-spacing:-.1px; line-height:1.35; }
.vcard-name > span { flex-shrink:0; }
.vcard-name > .name-text { overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.vcard-meta { font-size:11px; color:var(--ink-3); margin-top:3px; font-family:var(--mono); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vcard-bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:10px; }
.vcard-price { font-family:var(--mono); font-size:17px; font-weight:700; color:var(--brand); letter-spacing:-.3px; white-space:nowrap; }
.vcard-price small { font-size:10px; color:var(--ink-3); font-weight:400; }
.vcard-ops { display:flex; align-items:center; gap:6px; flex-shrink:0; }
/* 评分条 */
.score-bar { height:5px; background:var(--surface-2); border-radius:3px; margin-top:8px; overflow:hidden; }
.score-bar i { display:block; height:100%; background:linear-gradient(90deg, var(--brand), #7BE0B8); border-radius:3px; }
.score-label { display:flex; justify-content:space-between; font-size:9.5px; color:var(--ink-3); margin-top:3px; font-family:var(--mono); }
/* 紧凑卡 */
.vcard.sm { display:flex; align-items:center; gap:9px; padding:8px 12px; animation:none; min-width:0; }
.vcard.sm .vlogo { flex-shrink:0; }
.vcard.sm .vcard-name { margin:0; font-size:12.5px; flex:1.4; min-width:0; }
.vcard.sm .vcard-name .name-text { -webkit-line-clamp:1; }
.vcard.sm .vcard-meta { margin:0; flex:1.2; font-size:10.5px; min-width:0; }
.vcard.sm .vcard-state { font-size:10.5px; flex-shrink:0; }
.vcard.sm .vcard-price { font-size:13px; flex-shrink:0; }
.vcard.sm .vcard-bottom { margin:0; flex-shrink:0; }
.vcard.sm .vcard-ops { gap:4px; flex-shrink:0; }
/* 厂商 Logo (几何色块) */
.vlogo { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#fff; flex-shrink:0; font-family:var(--mono); }
.vlogo.sm { width:22px; height:22px; border-radius:6px; font-size:9px; }
.vlogo-rn { background:#FF7043; } .vlogo-ccs { background:#42A5F5; } .vlogo-bwh { background:#AB47BC; }
.vlogo-dmit { background:#26A69A; } .vlogo-zgo { background:#FFA726; } .vlogo-dro { background:#F06292; }
.vlogo-vps { background:#9575CD; } .vlogo-vmr { background:#8D6E63; } .vlogo-gom { background:#7CB342; }
.vlogo-hdz { background:#29B6F6; }
.kind { font-size:9.5px; padding:1px 8px; border-radius:9999px; letter-spacing:.3px; font-weight:600; }
.kind.config { background:var(--green-pale); color:var(--green-deep); }
.kind.line { background:#F3E8FF; color:#8B46C9; }

/* ── 筛选 ── */
.filter-bar { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; align-items:center; }
.filter-bar select { background:var(--surface); border:1px solid var(--line-2); color:var(--ink-2); border-radius:var(--r-md); padding:7px 10px; font-size:12px; outline:none; cursor:pointer; font-family:inherit; }
.filter-bar select:focus { border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-pale); }
.chk { font-size:12px; color:var(--ink-2); display:flex; align-items:center; gap:5px; cursor:pointer; }
.chk input { accent-color: var(--brand); }

/* ── 对比面板 ── */
.modal { position:fixed; inset:0; z-index:50; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal-backdrop { position:absolute; inset:0; background:rgba(34,38,43,.35); }
.modal-card { position:relative; width:100%; max-width:520px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); padding:20px; animation:fadeUp .25s ease; max-height:85vh; overflow-y:auto; box-shadow:0 10px 40px rgba(0,0,0,.15); }
.modal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.modal-head h3 { font-size:15px; font-weight:700; }
.cmp-name { font-size:13px; font-weight:600; margin:10px 0 6px; color:var(--ink-2); word-break:break-word; }
.cmp-row { display:flex; align-items:center; gap:8px; margin:5px 0; font-size:12px; }
.cmp-row .cmp-label { width:44px; color:var(--ink-3); font-size:11px; flex-shrink:0; }
.cmp-bar { flex:1; height:7px; background:var(--surface-2); border-radius:4px; overflow:hidden; min-width:0; }
.cmp-bar i { display:block; height:100%; border-radius:4px; }
.cmp-bar.mine i { background:var(--line-2); }
.cmp-bar.them i { background:var(--brand); }
.cmp-val { width:70px; text-align:right; font-family:var(--mono); font-size:11.5px; flex-shrink:0; white-space:nowrap; }

/* ── 杂项 ── */
.empty { color:var(--ink-3); font-size:13px; padding:24px 4px; }
footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:14px 18px 26px; font-size:11px; color:var(--ink-3); border-top:1px solid var(--line); }

@media (max-width:600px) {
  .topbar-search { max-width:none; order:3; width:100%; }
  .tabs { top:97px; }
  .bl-stats { gap:14px; }
  .vcard.sm .vcard-meta { display:none; }
  .modal { padding:10px; }
  .modal-card { padding:16px; border-radius:var(--r-lg); }
}
@media (max-width:420px) {
  .topbar { padding:8px 12px; gap:10px; }
  .brand-mark { width:30px; height:30px; font-size:15px; }
  .brand-text h1 { font-size:14px; }
  .brand-sub { font-size:10px; }
  .tabs { top:89px; padding:6px 12px 0; }
  .tab { font-size:12px; gap:4px; }
  .tab-count { padding:1px 5px; }
  main { padding:12px 12px 40px; }
  .grid { grid-template-columns:1fr; gap:10px; }
  .baseline-bar { padding:12px; gap:14px; }
  .bl-stats { width:100%; justify-content:space-around; }
  .bl-stat b { font-size:18px; }
  .bl-renew { min-width:72px; }
  .bl-renew b { font-size:22px; }
  .vcard { padding:12px; }
  .vcard-name { font-size:13px; }
  .filter-bar select { padding:6px 8px; font-size:11px; }
  .vcard.sm { gap:7px; padding:7px 10px; }
  .vcard.sm .vcard-name { font-size:11.5px; flex:1; }
  .vcard.sm .vcard-state { font-size:10px; }
  .vcard.sm .vcard-price { font-size:12px; }
  .btn-watch.sm { padding:4px 6px; font-size:10px; }
  .btn-buy.sm { padding:4px 8px; font-size:10px; }
  .cmp-row .cmp-label { width:38px; font-size:10px; }
  .cmp-val { width:62px; font-size:10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; }
}

/* 法器品阶徽章 */
.pinjie { font-size:9.5px; font-weight:700; padding:1.5px 8px; border-radius:9999px; letter-spacing:.5px; }
.pinjie.xian { background:linear-gradient(90deg,#7B68B8,#B8860B); color:#fff; border:none; box-shadow:0 1px 4px rgba(139,70,201,.35); }
.pinjie.ling { background:var(--brand-pale); color:var(--brand-deep); border:1px solid #BFE8DA; }
.pinjie.liang { background:var(--blue-pale, #E3F6FE); color:#0B7BB5; border:1px solid #BFE3F7; }
.pinjie.fan { background:var(--surface-2); color:var(--ink-3); border:1px solid var(--line-2); }
.pj-score { font-family:var(--mono); font-weight:600; color:var(--ink); margin-left:6px; }

/* 仙气细金线 (区块标题) */
.panel-title::after { content:""; flex:1; max-width:24px; height:2px; margin-left:6px; border-radius:1px; background:linear-gradient(90deg, #D4AF37, transparent); opacity:.55; }

/* ── 动效 keyframes ── */
@keyframes slideDown { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
/* 卡片悬浮微光 (CSS only, GPU) */
.vcard { transition: border-color .2s, transform .2s, box-shadow .2s; }
.vcard:hover { transform: translateY(-3px); }
/* 有货卡片: 灵气流动 (替换静态呼吸, 更有仙气) */
@keyframes auraFlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,158,139,0); }
  30% { box-shadow: 0 0 16px 1px rgba(46,158,139,.22); }
  60% { box-shadow: 0 0 12px 0 rgba(154,143,199,.18); }
}
.vcard.ok { animation: fadeUp .35s ease both, auraFlow 3.2s ease-in-out 1.5s infinite; }
/* 按钮按压过渡 */
.btn, .btn-buy, .btn-watch { transition: all .15s ease; }
/* 数字滚动 (countUp) */
[data-count] { transition: opacity .3s; }
/* 搜索框聚焦展开 */
#globalSearch { transition: all .2s ease; }
#globalSearch:focus { max-width: 380px; }
