/* 异构服务器选型配置与算力匹配测算平台 V1.0 —— 深色科技主题 */
:root {
  --primary: #2E7CFF;
  --primary-hi: #4D9BFF;
  --accent: #00E5FF;
  --primary-grad: linear-gradient(135deg, #2E7CFF 0%, #00C6FF 100%);
  --accent-grad: linear-gradient(135deg, #00E5FF 0%, #2E7CFF 100%);
  --bg: #060B1A;
  --bg-2: #0A1330;
  --dark: #E8F0FF;
  --text: #D8E4FF;
  --gray: #8CA3CF;
  --dim: #5F7398;
  --line: rgba(96, 145, 255, 0.16);
  --line-hi: rgba(0, 229, 255, 0.35);
  --card: rgba(15, 25, 52, 0.78);
  --card-solid: #0E1834;
  --ok: #2BD990;
  --warn: #FFB454;
  --danger: #FF6B7A;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px rgba(46, 124, 255, 0.35);
  --glow-soft: 0 0 14px rgba(0, 229, 255, 0.22);
  font-size: 15px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  color: var(--text); line-height: 1.65; min-height: 100vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(46, 124, 255, 0.16), transparent 60%),
    radial-gradient(900px 420px at -10% 30%, rgba(0, 198, 255, 0.10), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(64, 72, 255, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
/* 网格线纹理层 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(96, 145, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 145, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}
#fx-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55; }
body > header, body > main, body > footer, #toast-box, #modal-root { position: relative; z-index: 1; }
a { color: var(--primary-hi); text-decoration: none; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main.container { flex: 1; padding-top: 26px; padding-bottom: 50px; }

::selection { background: rgba(0, 229, 255, .3); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0A1128; }
::-webkit-scrollbar-thumb { background: #1E3A6E; border-radius: 6px; border: 2px solid #0A1128; }
::-webkit-scrollbar-thumb:hover { background: #2E7CFF; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: rgba(7, 12, 28, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,229,255,.55), transparent); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 62px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--dark); }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--primary-grad);
  color: #fff; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow); text-shadow: 0 0 8px rgba(255,255,255,.6);
}
.brand-name { font-weight: 700; font-size: 16px; white-space: nowrap; letter-spacing: .5px; }
.brand-name em { font-style: normal; font-size: 11px; color: #06122E; background: var(--accent); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; font-weight: 800; box-shadow: var(--glow-soft); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--gray); padding: 7px 14px; border-radius: 9px; font-size: 14.5px; transition: all .18s; }
.nav a:hover { background: rgba(46, 124, 255, .12); color: var(--accent); }
.nav a.active { background: var(--primary-grad); color: #fff; font-weight: 600; box-shadow: var(--glow); }
.user-area { display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.user-name { color: var(--dark); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; cursor: pointer; border-radius: 10px; font-size: 14.5px; font-family: inherit;
  padding: 10px 22px; transition: all .18s; text-decoration: none; line-height: 1.4; position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .45s;
}
.btn:hover::after { left: 130%; }
.btn-primary { background: var(--primary-grad); color: #fff; font-weight: 600; box-shadow: 0 4px 18px rgba(46, 124, 255, .45); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(0, 198, 255, .55); }
.btn-ghost { background: rgba(46, 124, 255, .08); color: var(--primary-hi); border: 1.5px solid rgba(77, 155, 255, .55); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow-soft); background: rgba(0, 229, 255, .08); }
.btn-plain { background: rgba(46, 124, 255, .14); color: var(--primary-hi); }
.btn-plain:hover { background: rgba(46, 124, 255, .22); }
.btn-warn { background: linear-gradient(135deg, #FFB454, #FF8A3D); color: #1F1200; font-weight: 700; }
.btn-danger { background: rgba(255, 107, 122, .14); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 107, 122, .24); }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 34px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn[disabled]::after { display: none; }

/* ---------- 首页 ---------- */
.hero {
  position: relative; border-radius: 20px; color: #fff; padding: 54px 46px; overflow: hidden;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(0, 229, 255, .22), transparent 60%),
    radial-gradient(500px 260px at 10% 100%, rgba(100, 80, 255, .25), transparent 60%),
    linear-gradient(140deg, #0D1E4E 0%, #0A1533 55%, #081026 100%);
  border: 1px solid rgba(96, 145, 255, .28);
  box-shadow: 0 18px 60px rgba(0, 20, 60, .6), inset 0 1px 0 rgba(140, 200, 255, .18);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 180, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, .08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 75%);
}
.hero h1 { font-size: 33px; line-height: 1.4; margin-bottom: 14px; position: relative; z-index: 1; letter-spacing: 1px; }
.hero h1 b { background: linear-gradient(90deg, #6FC3FF, #00E5FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 15.5px; color: #AFC4EE; max-width: 640px; position: relative; z-index: 1; }
.hero .hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .btn-ghost { background: rgba(255,255,255,.06); border: 1.5px solid rgba(140,200,255,.45); color: #CFE4FF; backdrop-filter: blur(6px); }
.hero .btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow-soft); background: rgba(0,229,255,.08); }
.hero-meta { display: flex; gap: 38px; margin-top: 34px; position: relative; z-index: 1; flex-wrap: wrap; }
.hero-meta b {
  display: block; font-size: 26px; font-weight: 800; font-family: "Consolas", monospace;
  background: linear-gradient(90deg, #4D9BFF, #00E5FF); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-meta span { font-size: 12.5px; color: #7E96C7; }

.section { margin-top: 46px; }
.section-title { font-size: 21px; font-weight: 700; color: var(--dark); margin-bottom: 6px; letter-spacing: .5px; }
.section-title::before { content: "▍"; color: var(--accent); margin-right: 6px; text-shadow: 0 0 10px rgba(0,229,255,.6); }
.section-sub { color: var(--gray); font-size: 14px; margin-bottom: 22px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: all .22s;
}
.card:hover { border-color: var(--line-hi); box-shadow: var(--glow); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 14px; background: rgba(46, 124, 255, .14); border: 1px solid rgba(77, 155, 255, .35);
  box-shadow: inset 0 0 12px rgba(0, 198, 255, .12);
}
.card h3 { font-size: 16.5px; color: var(--dark); margin-bottom: 8px; }
.card p { font-size: 13.8px; color: var(--gray); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step {
  background: var(--card); border-radius: var(--radius); padding: 20px 18px; border: 1px solid var(--line);
  position: relative; transition: all .22s; backdrop-filter: blur(8px);
}
.step:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.step b { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--dark); margin-bottom: 6px; }
.step b::before {
  counter-increment: step; content: counter(step, decimal-leading-zero); width: 28px; height: 28px; border-radius: 8px;
  background: rgba(46, 124, 255, .15); color: var(--accent); border: 1px solid rgba(0, 229, 255, .4);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none;
  font-family: "Consolas", monospace; font-weight: 800; box-shadow: var(--glow-soft);
}
.step span { font-size: 13px; color: var(--gray); }

.price-card { display: flex; flex-direction: column; }
.price-card .p-name { font-size: 16px; font-weight: 700; color: var(--dark); }
.price-card .p-price {
  font-size: 36px; font-weight: 800; margin: 10px 0 2px; font-family: "Consolas", monospace;
  background: linear-gradient(90deg, #4D9BFF, #00E5FF); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-card .p-price small { font-size: 14px; color: var(--gray); font-weight: 400; -webkit-text-fill-color: var(--gray); }
.price-card .p-desc { font-size: 13.5px; color: var(--gray); flex: 1; margin-bottom: 16px; }

.notice { background: rgba(255, 180, 84, .08); border: 1px solid rgba(255, 180, 84, .35); border-radius: var(--radius); padding: 18px 22px; font-size: 13.5px; color: #E8C68F; }
.notice b { color: var(--warn); }

/* ---------- 表单 ---------- */
.form-card { padding: 34px; }
.form-title { font-size: 21px; font-weight: 700; color: var(--dark); }
.form-sub { color: var(--gray); font-size: 13.5px; margin: 4px 0 24px; }
.fieldset {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px 22px; margin-bottom: 18px;
  background: rgba(10, 18, 42, .55); position: relative;
}
.fieldset::before { content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 1px; background: linear-gradient(90deg, var(--line-hi), transparent); }
.legend { font-size: 14.5px; font-weight: 700; color: var(--dark); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.legend::before { content: "◈"; color: var(--accent); text-shadow: 0 0 8px rgba(0, 229, 255, .7); }
.legend .req { color: var(--danger); }
.legend .opt-tag { font-size: 11px; color: var(--dim); background: rgba(95, 115, 152, .15); padding: 1px 8px; border-radius: 20px; font-weight: 400; border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.field label .req { color: var(--danger); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 13px;
  font-size: 14.5px; font-family: inherit; background: rgba(6, 11, 26, .8); color: var(--text);
  transition: all .15s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--card-solid); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 229, 255, .14), var(--glow-soft); background: rgba(6, 11, 26, 1); }
.field textarea { resize: vertical; min-height: 74px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 107, 122, .12); }
.field .err-msg { color: var(--danger); font-size: 12.5px; margin-top: 5px; display: none; }
.field.invalid .err-msg { display: block; }
.field .hint { color: var(--dim); font-size: 12px; margin-top: 5px; }
.inline-fields { display: flex; gap: 12px; }
.inline-fields .field { flex: 1; }
.form-actions { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.draft-tip { font-size: 13px; color: var(--ok); }

.draft-banner { background: rgba(43, 217, 144, .1); border: 1px solid rgba(43, 217, 144, .4); color: #7CE8BC; border-radius: 10px; padding: 10px 16px; font-size: 13.5px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

/* ---------- 通用组件 ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 700; color: var(--dark); letter-spacing: .5px; }
.page-sub { color: var(--gray); font-size: 13.5px; margin-top: 3px; }

.badge { display: inline-flex; align-items: center; font-size: 12px; border-radius: 20px; padding: 2px 11px; font-weight: 600; white-space: nowrap; }
.badge-blue { background: rgba(46, 124, 255, .16); color: var(--primary-hi); border: 1px solid rgba(77, 155, 255, .4); }
.badge-green { background: rgba(43, 217, 144, .13); color: var(--ok); border: 1px solid rgba(43, 217, 144, .4); }
.badge-orange { background: rgba(255, 180, 84, .13); color: var(--warn); border: 1px solid rgba(255, 180, 84, .4); }
.badge-red { background: rgba(255, 107, 122, .13); color: var(--danger); border: 1px solid rgba(255, 107, 122, .4); }
.badge-gray { background: rgba(95, 115, 152, .16); color: var(--gray); border: 1px solid var(--line); }

.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); backdrop-filter: blur(10px); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.tbl th { background: rgba(46, 124, 255, .1); color: var(--dark); font-weight: 700; text-align: left; padding: 11px 14px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid rgba(96, 145, 255, .09); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:nth-child(even) td { background: rgba(46, 124, 255, .04); }
.tbl tr:hover td { background: rgba(0, 229, 255, .05); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-family: "Consolas", monospace; }
.tbl .center { text-align: center; }

.kv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv-table td { padding: 9px 12px; border-bottom: 1px solid rgba(96, 145, 255, .09); }
.kv-table td:first-child { color: var(--gray); width: 160px; font-size: 13.5px; }
.kv-table tr:last-child td { border-bottom: none; }

/* ---------- 处理页 ---------- */
.progress-track { height: 10px; background: rgba(46, 124, 255, .12); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.progress-bar {
  height: 100%; width: 0; background: linear-gradient(90deg, #2E7CFF, #00E5FF); border-radius: 20px;
  transition: width .5s ease; position: relative; box-shadow: 0 0 12px rgba(0, 229, 255, .6);
}
.progress-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  background-size: 40% 100%; background-repeat: no-repeat; animation: scan 1.2s linear infinite;
}
@keyframes scan { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.stage-list { margin-top: 18px; }
.stage { display: flex; align-items: center; gap: 12px; padding: 9px 4px; color: var(--dim); font-size: 14px; }
.stage .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #2A3B63; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; background: var(--card-solid); }
.stage.doing { color: var(--accent); font-weight: 600; text-shadow: 0 0 10px rgba(0, 229, 255, .4); }
.stage.doing .dot { border-color: var(--accent); box-shadow: 0 0 10px rgba(0, 229, 255, .6); animation: pulse 1s ease infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 18px rgba(0, 229, 255, .9); } }
.stage.done { color: var(--text); }
.stage.done .dot { border-color: var(--ok); background: rgba(43, 217, 144, .18); color: var(--ok); box-shadow: 0 0 8px rgba(43, 217, 144, .5); }
.stage.done .dot::after { content: "✓"; }
.stage .pct { margin-left: auto; font-size: 12.5px; color: var(--dim); font-family: "Consolas", monospace; }

/* ---------- 结果页 ---------- */
.result-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 18px; align-items: start; }
.sum-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(96, 145, 255, .18); font-size: 14px; }
.sum-item:last-child { border-bottom: none; }
.sum-item b { color: var(--dark); font-family: "Consolas", monospace; }
.sum-item span { color: var(--gray); font-size: 13px; white-space: nowrap; }
.score-big {
  font-size: 42px; font-weight: 800; line-height: 1.1; font-family: "Consolas", monospace;
  background: linear-gradient(90deg, #4D9BFF, #00E5FF); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mask-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.mask-chip { background: rgba(95, 115, 152, .12); color: var(--dim); border: 1px dashed rgba(95, 115, 152, .4); border-radius: 8px; padding: 6px 14px; font-size: 14px; letter-spacing: 2px; user-select: none; }

.locked-panel { position: relative; border-radius: var(--radius); overflow: hidden; }
.locked-panel .blur-bg { filter: blur(7px) brightness(.7); opacity: .45; pointer-events: none; user-select: none; }
.locked-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(6, 11, 26, .68); backdrop-filter: blur(3px); text-align: center; padding: 30px;
}
.locked-overlay .lock-icon { font-size: 34px; margin-bottom: 8px; filter: drop-shadow(0 0 12px rgba(0, 229, 255, .6)); }
.locked-overlay h3 { color: var(--dark); font-size: 18px; margin-bottom: 6px; }
.locked-overlay p { color: var(--gray); font-size: 13.5px; margin-bottom: 18px; max-width: 420px; }

.pay-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.pay-card { border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--card); }
.pay-card.recommend { border-color: rgba(0, 229, 255, .55); position: relative; box-shadow: 0 0 24px rgba(0, 198, 255, .18); }
.pay-card.recommend::after { content: "推荐"; position: absolute; top: -11px; right: 18px; background: var(--primary-grad); color: #fff; font-size: 12px; border-radius: 20px; padding: 2px 12px; box-shadow: var(--glow); }

.plan-card { border-left: 4px solid var(--accent); }
.plan-card.alt { border-left-color: var(--warn); }
.plan-rank { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.plan-rank .rank-no { font-size: 22px; font-weight: 800; color: var(--accent); font-family: "Consolas", monospace; text-shadow: 0 0 12px rgba(0, 229, 255, .5); }
.plan-name { font-size: 17px; font-weight: 700; color: var(--dark); }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 22px; font-size: 13.5px; margin: 12px 0; }
.plan-grid div { padding: 4px 0; border-bottom: 1px dashed rgba(96, 145, 255, .15); }
.plan-grid b { color: var(--dim); font-weight: 400; margin-right: 6px; font-size: 12.5px; }
.score-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.score-pill { background: rgba(46, 124, 255, .1); border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; font-size: 12.5px; color: var(--gray); }
.score-pill b { color: var(--accent); font-family: "Consolas", monospace; }
.reasons { background: rgba(10, 18, 42, .6); border: 1px solid rgba(96, 145, 255, .12); border-radius: 10px; padding: 12px 16px; font-size: 13px; color: var(--text); }
.reasons li { margin-left: 18px; margin-bottom: 4px; }
.reasons li:last-child { margin-bottom: 0; }

.chart-box { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; backdrop-filter: blur(10px); }
.chart-box h4 { font-size: 15px; color: var(--dark); margin-bottom: 14px; }
.chart-box canvas { width: 100%; height: 260px; display: block; }

/* ---------- 报告页（文档区保持白底正式风格） ---------- */
.report-actions { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.report-doc { background: #fff; color: #1E2A44; border-radius: var(--radius); box-shadow: 0 20px 70px rgba(0, 10, 40, .55); padding: 44px 48px; border: 1px solid rgba(140, 180, 255, .25); }
.report-head { text-align: center; border-bottom: 2px solid #2E7CFF; padding-bottom: 20px; margin-bottom: 26px; }
.report-head h1 { font-size: 25px; color: #101D3D; }
.report-head .meta { color: #5A6B8C; font-size: 12.5px; margin-top: 10px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.report-sec { margin-top: 30px; }
.report-sec > h2 { font-size: 18px; color: #1B5CFF; border-left: 4px solid #2E7CFF; padding-left: 10px; margin-bottom: 14px; }
.report-sec > h3 { font-size: 14.5px; color: #101D3D; margin: 16px 0 8px; }
.report-sec p { font-size: 13.8px; margin-bottom: 8px; }
.report-sec .note { color: #5A6B8C; font-size: 12.8px; }
.report-doc .table-wrap { background: #fff; border: 1px solid #D8E0EE; }
.report-doc .tbl th { background: #F0F4FC; color: #12224A; border-bottom: 1px solid #D8E0EE; }
.report-doc .tbl td { border-bottom: 1px solid #EEF1F8; color: #2A3552; }
.report-doc .tbl tr:nth-child(even) td { background: #FAFBFE; }
.report-doc .kv-table td { border-bottom: 1px solid #EEF1F8; color: #2A3552; }
.report-doc .kv-table td:first-child { color: #5A6B8C; }
.report-doc .score-pill { background: #F0F4FC; border: none; color: #5A6B8C; }
.report-doc .score-pill b { color: #1B5CFF; }
.report-doc .reasons { background: #F7F9FE; border: none; color: #2A3552; }
.risk-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #E7ECF6; font-size: 13.5px; color: #2A3552; }
.risk-item:last-child { border: none; }
.risk-item .badge { flex: none; height: fit-content; margin-top: 2px; }
.report-doc .risk-item .badge-orange { background: #FDEFDD; color: #C77A18; border: none; }
.appendix { background: #F5F8FE; border-radius: 10px; padding: 18px 22px; font-size: 12.8px; color: #5A6B8C; margin-top: 14px; border: 1px solid #E3EAF7; }
.appendix p { white-space: pre-line; }
.report-doc .chart-box { background: #fff; border: 1px solid #E3EAF7; box-shadow: none; padding: 8px; }

/* ---------- 订单/登录 ---------- */
.order-status { font-weight: 600; }
.auth-card { max-width: 430px; margin: 30px auto; padding: 36px; }
.auth-card h2 { font-size: 21px; color: var(--dark); margin-bottom: 4px; }
.auth-card .sub { color: var(--gray); font-size: 13.5px; margin-bottom: 22px; }
.auth-card .field { margin-bottom: 15px; }
.auth-tip { margin-top: 16px; font-size: 12.8px; color: var(--gray); background: rgba(46, 124, 255, .08); padding: 10px 14px; border-radius: 9px; border: 1px solid var(--line); }

/* ---------- 弹窗 / 提示 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(3, 6, 16, .66); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal { background: linear-gradient(160deg, #101B3C, #0B1330); border: 1px solid rgba(96, 145, 255, .3); border-radius: 16px; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; padding: 28px; box-shadow: 0 24px 80px rgba(0, 0, 0, .6), var(--glow); }
.modal h3 { font-size: 18px; color: var(--dark); margin-bottom: 14px; }
.modal .modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }
.modal .kv-table td { color: var(--text); }
.modal .kv-table td:first-child { color: var(--gray); }

#toast-box { position: fixed; top: 76px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { background: linear-gradient(135deg, #13224A, #0C1633); color: var(--dark); border: 1px solid rgba(96, 145, 255, .35); border-radius: 10px; padding: 12px 20px; font-size: 14px; box-shadow: 0 10px 34px rgba(0, 0, 0, .5), var(--glow-soft); animation: slideIn .25s; max-width: 340px; }
.toast.ok { border-color: rgba(43, 217, 144, .5); box-shadow: 0 10px 34px rgba(0, 0, 0, .5), 0 0 16px rgba(43, 217, 144, .25); }
.toast.err { border-color: rgba(255, 107, 122, .5); box-shadow: 0 10px 34px rgba(0, 0, 0, .5), 0 0 16px rgba(255, 107, 122, .25); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.empty { text-align: center; color: var(--gray); padding: 60px 20px; font-size: 14px; }
.empty .icon { font-size: 40px; margin-bottom: 10px; filter: drop-shadow(0 0 14px rgba(0, 229, 255, .35)); }
.loading { text-align: center; color: var(--gray); padding: 80px 20px; font-size: 14px; }
.spin { display: inline-block; width: 26px; height: 26px; border: 3px solid rgba(96, 145, 255, .25); border-top-color: var(--accent); border-radius: 50%; animation: rot .8s linear infinite; vertical-align: -7px; margin-right: 9px; box-shadow: 0 0 12px rgba(0, 229, 255, .3); }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- 管理后台 ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tab { padding: 9px 20px; cursor: pointer; color: var(--gray); font-size: 14.5px; border-radius: 9px 9px 0 0; border-bottom: 2.5px solid transparent; margin-bottom: -1px; transition: all .15s; }
.tab:hover { color: var(--accent); }
.tab.active { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); background: rgba(0, 229, 255, .07); text-shadow: 0 0 10px rgba(0, 229, 255, .4); }
.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); transition: all .2s; }
.stat-card:hover { border-color: var(--line-hi); box-shadow: var(--glow); }
.stat-card b { font-size: 28px; display: block; font-family: "Consolas", monospace; background: linear-gradient(90deg, #4D9BFF, #00E5FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { font-size: 12.5px; color: var(--gray); }
.rules-section { margin-bottom: 24px; }
.rules-section h3 { font-size: 15.5px; color: var(--dark); margin-bottom: 12px; }
.rules-section .tbl input[type="number"], .rules-section .tbl input {
  background: rgba(6, 11, 26, .8); border: 1px solid var(--line); color: var(--accent);
  border-radius: 6px; padding: 5px 8px; font-family: "Consolas", monospace; width: 90px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-4, .steps, .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 26px; }
  .hero h1 { font-size: 25px; }
  .report-doc { padding: 26px 20px; }
}
@media (max-width: 640px) {
  .grid-4, .grid-2, .steps, .pay-cards, .form-grid, .stat-cards { grid-template-columns: 1fr; }
  .brand-name { display: none; }
  .topbar-inner { gap: 8px; padding: 0 14px; }
  .nav { overflow-x: auto; }
  .nav a { padding: 7px 10px; font-size: 13.5px; white-space: nowrap; }
  .user-area { gap: 6px; }
  .user-area .btn { padding: 5px 10px; font-size: 12.5px; }
  .hero-meta { gap: 20px; }
  .plan-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 19px; }
  main.container { padding-top: 16px; }
}

/* ---------- 打印（报告区白底） ---------- */
@media print {
  body { background: #fff !important; }
  body::before, #fx-bg { display: none; }
  .report-doc { box-shadow: none; border: none; padding: 0; }
  .report-sec { page-break-inside: avoid; }
  .report-doc .chart-box { border: none; padding: 0; }
}

/* 动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
