:root {
  --p: #2f80ed;
  --p-d: #1c6fe0;
  --bg: #0b1020;
  --card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.10);
  --txt: #e6edf6;
  --mut: #93a1bd;
  --mut2: #6b7894;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[v-cloak] { display: none; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47, 128, 237, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(47, 128, 237, 0.10), transparent 55%),
    var(--bg);
  color: var(--txt);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  min-height: 100vh;
}
a { color: inherit; }

/* 顶栏 */
.topbar { max-width: 1152px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, var(--p), var(--p-d));
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: 0 6px 16px rgba(47, 128, 237, 0.32);
}
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-sub { font-size: 11px; color: var(--mut2); margin-top: 2px; }
.top-link { font-size: 12px; color: var(--mut); text-decoration: none; transition: .15s; }
.top-link:hover { color: var(--p); }

/* 容器 */
.container { max-width: 1152px; margin: 0 auto; padding: 0 20px 64px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--p), var(--p-d));
  border-radius: 24px; padding: 32px 40px;
  box-shadow: 0 18px 40px rgba(47, 128, 237, 0.22);
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.10); filter: blur(8px);
}
.hero h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.32; color: #fff; position: relative; }
.hero p { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 14px; line-height: 1.7; max-width: 640px; position: relative; }
.chips { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; position: relative; }
.chip {
  background: rgba(255, 255, 255, 0.15); padding: 6px 13px; border-radius: 20px;
  font-size: 12px; color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(4px);
}

/* 主栅格 */
.grid-main { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; margin-top: 24px; }
@media (max-width: 900px) { .grid-main { grid-template-columns: 1fr; } }

/* 卡片 */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px; backdrop-filter: blur(8px);
}

/* 表单 */
.form-card h2 { margin: 0 0 4px; font-size: 18px; }
.form-desc { color: var(--mut); font-size: 12.5px; margin: 0 0 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.req { color: #ff6b6b; font-size: 11px; font-weight: 400; }
.input {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--border);
  border-radius: 11px; font-size: 14px; font-family: inherit; color: var(--txt);
  background: rgba(2, 6, 23, 0.5); transition: .15s; resize: vertical;
}
.input:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.15); background: rgba(2, 6, 23, 0.7); }
.input::placeholder { color: var(--mut2); }
.hint { font-size: 11px; color: var(--mut2); margin-top: 5px; }

.btn {
  width: 100%; margin-top: 6px; background: linear-gradient(135deg, var(--p), var(--p-d));
  color: #fff; border: none; padding: 14px; border-radius: 12px; font-size: 15px;
  font-weight: 700; cursor: pointer; transition: .18s; box-shadow: 0 8px 20px rgba(47, 128, 237, 0.32);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47, 128, 237, 0.42); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.err { color: #ff6b6b; font-size: 13px; margin-top: 10px; }

/* 结果区 */
.empty {
  height: 100%; min-height: 320px; border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.02); border-radius: 18px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--mut2); font-size: 14px; line-height: 1.9;
}
.result-body { display: flex; flex-direction: column; gap: 20px; }

.offline {
  border: 1px solid rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.10);
  color: #fcd34d; padding: 12px 16px; border-radius: 12px; font-size: 13px;
}

/* 总分卡 */
.score-card { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.score-left { width: 200px; flex-shrink: 0; text-align: center; }
.score-big { font-size: 52px; font-weight: 800; line-height: 1; }
.score-unit { font-size: 18px; color: var(--mut2); font-weight: 500; margin-left: 2px; }
.grade-badge { display: inline-block; color: #fff; padding: 3px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-top: 10px; }
.score-meta { font-size: 12px; color: var(--mut); margin-top: 10px; }
.radar-wrap { flex: 1; min-width: 300px; height: 300px; position: relative; }

/* 维度网格 */
.dim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .dim-grid { grid-template-columns: 1fr; } }
.dim-card { padding: 18px 20px; }
.dim-head { display: flex; align-items: center; justify-content: space-between; }
.dim-name { font-weight: 600; font-size: 14px; }
.dim-score { font-size: 22px; font-weight: 800; }
.dim-unit { font-size: 12px; color: var(--mut2); font-weight: 400; }
.progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); margin-top: 10px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 99px; transition: width .5s ease; }
.dim-basis { font-size: 11px; color: var(--mut2); margin-top: 8px; }
.sub-h { font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.sub-h.red { color: #ff6b6b; }
.sub-h.green { color: #4ade80; margin-top: 8px; }
.dim-issues ul, .dim-sugs ul { margin: 0; padding-left: 16px; }
.dim-issues li, .dim-sugs li { font-size: 12px; color: #cbd5e1; line-height: 1.6; margin-bottom: 2px; }

/* 两栏 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.two-col h3 { font-size: 15px; margin: 0 0 12px; }
.issue-list, .sug-list { margin: 0; padding-left: 16px; }
.issue-list li, .sug-list li { font-size: 12.5px; color: #cbd5e1; line-height: 1.7; margin-bottom: 4px; }
.issue-list b, .sug-list b { color: #e6edf6; font-weight: 600; }

/* 报价 */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  position: relative; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; background: rgba(2, 6, 23, 0.35);
}
.price-card.rec { border-color: var(--p); background: rgba(47, 128, 237, 0.10); }
.rec-tag { position: absolute; top: -10px; right: 12px; font-size: 10px; background: var(--p); color: #fff; padding: 2px 10px; border-radius: 99px; }
.price-name { font-weight: 700; font-size: 14px; }
.price-dur { font-size: 11px; color: var(--mut2); margin-top: 2px; }
.price-num { color: var(--p); font-weight: 800; font-size: 19px; margin-top: 10px; }
.price-scope { font-size: 11.5px; color: #cbd5e1; margin-top: 10px; line-height: 1.6; }
.price-note { font-size: 11px; color: var(--mut2); margin-top: 8px; }

/* 操作 */
.actions { display: flex; gap: 12px; }
.btn-outline {
  flex: 1; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff; font-weight: 600; padding: 11px; border-radius: 12px; cursor: pointer; transition: .15s;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }
.btn-ghost {
  padding: 11px 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  color: #cbd5e1; border-radius: 12px; cursor: pointer; transition: .15s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.10); }
.foot-note { text-align: center; font-size: 11px; color: var(--mut2); }

/* GEO 优化包区块 */
.optimize-card { border-color: rgba(47,128,237,0.35); background: rgba(47,128,237,0.06); }
.opt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.opt-head h3 { font-size: 15px; margin: 0; }
.llm-badge { font-size: 11px; padding: 3px 10px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.llm-badge.on { background: rgba(74, 222, 128, 0.16); color: #7ee2a8; border: 1px solid rgba(74,222,128,0.35); }
.llm-badge.off { background: rgba(148, 163, 184, 0.14); color: #a9b6c9; border: 1px solid var(--border); }
.btn-mini { margin-left: auto; background: linear-gradient(135deg, var(--p), var(--p-d)); color: #fff; border: none; padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; transition: .15s; }
.btn-mini:hover { transform: translateY(-1px); }
.btn-mini:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.opt-desc { font-size: 12.5px; color: var(--mut); line-height: 1.6; margin: 0; }
.opt-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 12px; }
.opt-tab { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--mut); padding: 7px 14px; border-radius: 10px; font-size: 12.5px; cursor: pointer; transition: .15s; }
.opt-tab:hover { color: var(--txt); border-color: rgba(47,128,237,0.4); }
.opt-tab.active { background: rgba(47,128,237,0.18); border-color: var(--p); color: #cfe0ff; font-weight: 600; }
.code-block { background: rgba(2,6,23,0.6); border: 1px solid var(--border); border-radius: 12px; padding: 16px; max-height: 380px; overflow: auto; margin: 0; }
.code-block code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 1.55; color: #b8c6df; white-space: pre-wrap; word-break: break-word; }
.opt-actions { display: flex; gap: 10px; margin-top: 12px; }
.btn-outline.sm, .btn-ghost.sm { padding: 8px 14px; font-size: 12.5px; flex: initial; }
.copy-tip { color: #4ade80; font-weight: 600; }
.plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan-list li { background: rgba(2,6,23,0.4); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.prio { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 99px; margin-right: 8px; }
.prio.p0 { background: rgba(235,87,87,0.18); color: #ff8585; }
.prio.p1 { background: rgba(242,153,74,0.18); color: #ffb866; }
.prio.p2 { background: rgba(47,128,237,0.18); color: #8fb8ff; }
.plan-dim { font-weight: 700; font-size: 13.5px; }
.plan-score { font-size: 11.5px; color: var(--mut2); }
.plan-act { font-size: 12.5px; color: #cbd5e1; line-height: 1.6; margin-top: 6px; }
.plan-exp { font-size: 11.5px; color: var(--mut); margin-top: 4px; }
.opt-note { font-size: 11px; color: var(--mut2); margin-top: 14px; line-height: 1.6; border-top: 1px dashed var(--border); padding-top: 12px; }

/* AI 引用率探针区块 */
.probe-card { border-color: rgba(139, 92, 246, 0.35); background: rgba(139, 92, 246, 0.06); }
.probe-demo { font-size: 12px; color: #ffd58a; background: rgba(242, 153, 74, 0.10); border: 1px solid rgba(242,153,74,0.3); border-radius: 10px; padding: 12px 14px; line-height: 1.6; margin-top: 10px; }
.probe-demo .q-list { margin: 10px 0 0; padding-left: 18px; color: var(--mut); }
.probe-demo .q-list li { font-size: 11.5px; margin-bottom: 4px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 6px; }
.metric-card { background: rgba(2,6,23,0.45); border: 1px solid var(--border); border-radius: 14px; padding: 16px 12px; text-align: center; }
.metric-val { font-size: 26px; font-weight: 800; line-height: 1; }
.metric-label { font-size: 11px; color: var(--mut); margin-top: 8px; }
.probe-sub { font-size: 13px; font-weight: 700; color: #cfe0ff; margin: 20px 0 10px; border-left: 3px solid #8b5cf6; padding-left: 10px; }
.engine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.engine-card { background: rgba(2,6,23,0.4); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.engine-name { font-size: 12.5px; font-weight: 700; color: #e2e8f0; margin-bottom: 8px; word-break: break-all; }
.engine-rate { font-size: 13px; font-weight: 700; }
.engine-bar { height: 7px; background: rgba(255,255,255,0.08); border-radius: 99px; margin: 8px 0; overflow: hidden; }
.engine-bar-fill { height: 100%; border-radius: 99px; transition: width .4s; }
.engine-rate2 { font-size: 11px; color: var(--mut); }
.q-detail { background: rgba(2,6,23,0.3); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.q-text { font-size: 12.5px; color: #dbe4f0; line-height: 1.5; margin-bottom: 8px; }
.q-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-mini { font-size: 10.5px; padding: 2px 9px; border-radius: 99px; font-weight: 600; border: 1px solid var(--border); }
.tag-mini.m-on { background: rgba(74,222,128,0.14); color: #7ee2a8; border-color: rgba(74,222,128,0.3); }
.tag-mini.m-off { background: rgba(148,163,184,0.10); color: #9aa7ba; }
.trend-wrap { height: 180px; background: rgba(2,6,23,0.4); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
