/* 商机雷达 · 全局样式 */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --teal: #0EA5A4;
  --green: #16A34A;
  --green-light: #ECFDF5;
  --red: #DC2626;
  --red-light: #FEF2F2;
  --orange: #D97706;
  --orange-light: #FFFBEB;
  --indigo: #6366F1;
  --navy: #0F1D3A;
  --navy-2: #16294F;
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --border: #E5E9F2;
  --text: #17233D;
  --text-2: #5B6678;
  --text-3: #8A93A6;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #C9D2E0; border-radius: 4px; }

/* ===== 布局 ===== */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #CBD5E8; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; z-index: 50;
}
.sidebar .logo { display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .logo .logo-icon {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: radial-gradient(circle at 30% 30%, #8B9CFA, #4F6BF5 60%, #3557E8);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px;
  box-shadow: 0 4px 12px rgba(79, 107, 245, .45);
}
.sidebar .logo b { color: #fff; font-size: 16px; display: block; line-height: 1.2; }
.sidebar .logo small { color: #8FA3C8; font-size: 11px; }
.sidebar nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.sidebar nav .nav-group { font-size: 11px; color: #6E83A8; text-transform: uppercase; letter-spacing: .06em; padding: 12px 10px 6px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; color: #CBD5E8; padding: 9px 10px; border-radius: 8px;
  margin-bottom: 2px; font-size: 13.5px; transition: all .15s;
}
.sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar nav a.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .4); }
.sidebar nav a .ico { width: 18px; text-align: center; font-size: 15px; }
.sidebar .ai-badge {
  margin: 0 14px 14px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); font-size: 12px;
}
.sidebar .ai-badge .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.sidebar .ai-badge .dot.real { background: #34D399; box-shadow: 0 0 8px #34D399; }
.sidebar .ai-badge .dot.demo { background: #FBBF24; box-shadow: 0 0 8px #FBBF24; }
.sidebar .ai-badge b { color: #E6EDF9; font-size: 12.5px; }

.main { flex: 1; margin-left: 232px; padding: 0 28px 40px; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
  position: sticky; top: 0; background: rgba(244,246,251,.92); backdrop-filter: blur(8px); z-index: 40;
}
.topbar h1 { font-size: 19px; font-weight: 700; }
.topbar .sub { color: var(--text-3); font-size: 12.5px; margin-top: 1px; }
.topbar .right { display: flex; align-items: center; gap: 14px; }
.rep-select { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 6px 5px 14px; box-shadow: var(--shadow); }
.rep-select select { border: none; outline: none; font-size: 13px; color: var(--text); background: transparent; cursor: pointer; }
.quota-pill { font-size: 12px; background: var(--primary-light); color: var(--primary-dark); border-radius: 999px; padding: 4px 10px; font-weight: 600; }
.user-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 6px 4px 14px; box-shadow: var(--shadow); }
.user-box .user-name { font-size: 13px; font-weight: 700; color: var(--text); }
.user-box .user-role { font-size: 11.5px; color: var(--text-3); background: var(--primary-light); border-radius: 999px; padding: 2px 8px; }
.sub-card { background: linear-gradient(90deg, #F0F6FF 0%, #FFFFFF 100%); border: 1px solid #D6E4FF; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.sub-ico { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid #D6E4FF; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.quota-input { font-size: 13px; }
.ai-mode-pill { font-size: 12px; border-radius: 999px; padding: 4px 10px; font-weight: 600; }
.ai-mode-pill.real { background: var(--green-light); color: var(--green); }
.ai-mode-pill.demo { background: var(--orange-light); color: var(--orange); }

/* ===== 卡片与通用 ===== */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.card-title .more { font-size: 12.5px; color: var(--text-3); font-weight: 400; }
.grid { display: grid; gap: 16px; }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 2fr; }
@media (max-width: 1200px) { .g-4 { grid-template-columns: repeat(2, 1fr); } .g-3 { grid-template-columns: 1fr; } .g-2, .g-2-1, .g-1-2 { grid-template-columns: 1fr; } }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.muted { color: var(--text-2); }
.flex { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }

/* KPI */
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; opacity: .07; }
.kpi.blue::after { background: var(--primary); } .kpi.red::after { background: var(--red); }
.kpi.green::after { background: var(--green); } .kpi.orange::after { background: var(--orange); }
.kpi .label { color: var(--text-2); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 30px; font-weight: 800; line-height: 1.1; }
.kpi .delta { font-size: 12px; color: var(--text-3); }
.kpi .delta.up { color: var(--green); } .kpi .delta.down { color: var(--red); }

/* 标签 */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.blue { background: var(--primary-light); color: var(--primary-dark); }
.badge.green { background: var(--green-light); color: var(--green); }
.badge.red { background: var(--red-light); color: var(--red); }
.badge.orange { background: var(--orange-light); color: var(--orange); }
.badge.gray { background: #F1F4F9; color: var(--text-2); }
.badge.indigo { background: #EEF2FF; color: var(--indigo); }
.risk-high { background: var(--red-light); color: var(--red); }
.risk-mid { background: var(--orange-light); color: var(--orange); }
.risk-low { background: var(--green-light); color: var(--green); }

/* 表格 */
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; color: var(--text-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); background: #FAFBFE; }
.tbl td { padding: 12px; border-bottom: 1px solid #F0F2F7; vertical-align: middle; }
.tbl tr:hover td { background: #FAFBFE; }
.tbl .amt { font-weight: 700; }
.clickable { cursor: pointer; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer; border-radius: 8px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; transition: all .15s; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 表单 */
.input, .select, textarea.input {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 13.5px;
  background: #fff; color: var(--text); outline: none; font-family: inherit;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 洞察区块 */
.insight-block { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.insight-block .ib-title { font-size: 13px; font-weight: 700; color: var(--primary-dark); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.insight-block .ib-body { color: var(--text); font-size: 13.5px; }
.insight-block ul { padding-left: 18px; }
.insight-block li { margin-bottom: 4px; }

/* 风险标签云 */
.risk-list { display: flex; flex-wrap: wrap; gap: 8px; }
.risk-item { background: var(--red-light); color: var(--red); border-radius: 8px; padding: 5px 12px; font-size: 12.5px; font-weight: 500; }

/* 时间线 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item::before { content: ''; position: absolute; left: -24px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.tl-item.mt::before { border-color: var(--teal); }
.tl-item .tl-time { font-size: 12px; color: var(--text-3); }
.tl-item .tl-title { font-weight: 600; margin: 2px 0 4px; }
.tl-item .tl-body { color: var(--text-2); font-size: 13px; white-space: pre-wrap; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(15,29,58,.45); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: #fff; border-radius: 16px; width: 640px; max-width: 94vw; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal .m-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal .m-head b { font-size: 16px; }
.modal .m-body { padding: 20px 22px; }
.modal .m-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.m-close { border: none; background: #F1F4F9; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 14px; color: var(--text-2); }

/* 空状态 / 加载 */
.empty { text-align: center; padding: 40px 20px; color: var(--text-3); }
.empty .ico { font-size: 40px; margin-bottom: 10px; }
.loading { text-align: center; padding: 60px; color: var(--text-3); }
.spinner { display: inline-block; width: 26px; height: 26px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 落地页（独立） */
.landing { min-height: 100vh; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 48px; position: sticky; top: 0; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); z-index: 20; border-bottom: 1px solid rgba(15,29,58,.06); }
.landing-hero {
  padding: 90px 48px 70px; background: linear-gradient(135deg, #EEF4FF 0%, #F7FAFF 55%, #EEF7F7 100%);
  position: relative; overflow: hidden;
}
.landing-hero::before { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; border: 2px solid rgba(37,99,235,.12); right: -120px; top: -160px; }
.landing-hero::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 2px solid rgba(14,165,164,.14); right: 40px; bottom: -180px; }
.hero-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid rgba(37,99,235,.18); color: var(--primary-dark); padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: 42px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--primary), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: 16px; color: var(--text-2); margin: 18px 0 26px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; }
.hero-facts { display: flex; gap: 36px; margin-top: 40px; }
.hero-facts .f b { font-size: 24px; display: block; color: var(--navy); }
.hero-facts .f span { font-size: 12.5px; color: var(--text-3); }

/* 落地页雷达演示面板 */
.radar-demo { background: linear-gradient(160deg, #0F1D3A, #16294F 70%, #1B3A6B); border-radius: 20px; padding: 24px; color: #fff; box-shadow: var(--shadow-lg); position: relative; }
.radar-demo .rd-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.radar-demo .rd-head b { font-size: 14px; }
.radar-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.radar-card .rc-tag { font-size: 11px; color: #9FB4D8; }
.radar-card .rc-name { font-size: 15px; font-weight: 700; margin: 2px 0 8px; }
.radar-card .rc-row { display: flex; justify-content: space-between; font-size: 12px; color: #CBD5E8; margin-bottom: 4px; }
.radar-card .rc-ai { background: rgba(52,211,153,.14); border-radius: 8px; padding: 8px 10px; font-size: 12px; color: #A7F3D0; margin-top: 8px; }
.section { max-width: 1180px; margin: 0 auto; padding: 70px 48px; }
.section h2 { font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.section h2 + p.sec-sub { text-align: center; color: var(--text-2); margin-bottom: 44px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr; } .hero-inner { grid-template-columns: 1fr; } .hero { padding: 60px 24px; } .section { padding: 50px 24px; } }
.feature-card { border: 1px solid var(--border); border-radius: 14px; padding: 24px; background: #fff; transition: all .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.25); }
.feature-card .fc-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 14px; }
.feature-card b { font-size: 15.5px; }
.feature-card p { color: var(--text-2); font-size: 13.5px; margin-top: 8px; }
.fc-ico.blue { background: var(--primary-light); } .fc-ico.teal { background: #ECFDF9; } .fc-ico.green { background: var(--green-light); } .fc-ico.orange { background: var(--orange-light); } .fc-ico.indigo { background: #EEF2FF; } .fc-ico.red { background: var(--red-light); }

.pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
.price-card { border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: #fff; }
.price-card.hot { border-color: var(--primary); box-shadow: 0 8px 24px rgba(37,99,235,.15); }
.price-card .pc-name { font-weight: 700; }
.price-card .pc-fee { font-size: 20px; font-weight: 800; color: var(--primary-dark); margin: 8px 0 4px; }
.price-card .pc-fee small { font-size: 12px; color: var(--text-3); font-weight: 400; }
.price-card .pc-desc { font-size: 12px; color: var(--text-2); margin-bottom: 10px; min-height: 34px; }
.price-card ul { padding-left: 16px; font-size: 12.5px; color: var(--text-2); }
.price-card li { margin-bottom: 5px; }

.landing-footer { border-top: 1px solid var(--border); padding: 30px 48px; text-align: center; color: var(--text-3); font-size: 12.5px; background: #fff; }
.fade-in { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 代码/卡片微件 */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.chip { display: inline-block; background: #F1F4F9; border-radius: 6px; padding: 2px 8px; font-size: 12px; color: var(--text-2); }
kbd { background: #F1F4F9; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font-size: 12px; font-family: ui-monospace, monospace; }
.notice { border-radius: 10px; padding: 12px 16px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.notice.blue { background: var(--primary-light); color: var(--primary-dark); }
.notice.orange { background: var(--orange-light); color: var(--orange); }
.notice.green { background: var(--green-light); color: var(--green); }

/* 今日建议介入 */
.focus-card { display: block; border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 12px; padding: 16px; background: #fff; transition: all .2s; }
.focus-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.focus-judgment { background: #FEF2F2; border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--red); }
.evidence-row { display: flex; flex-wrap: wrap; gap: 6px; }
.evidence-row .chip { font-size: 11px; }
/* 判断依据分层 */
.judgment-box { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-top: 14px; background: #fff; }
.judgment-box .jb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.judgment-box .jb-infer { background: #FEF2F2; border-radius: 10px; padding: 12px 16px; font-size: 13.5px; color: var(--red); margin-bottom: 12px; }
.jb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .jb-grid { grid-template-columns: 1fr; } }
.jb-item { background: #F8FAFE; border-radius: 10px; padding: 12px 14px; }
.jb-item .jb-label { font-size: 11.5px; color: var(--text-3); font-weight: 700; margin-bottom: 5px; }
.jb-item .jb-val { font-size: 12.5px; color: var(--text); }
.jb-item .jb-quote { background: #fff; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; padding: 8px 12px; font-size: 12.5px; color: var(--primary-dark); }

/* ===== 手册对齐新增 ===== */
.view-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid #E5E9F2; }
.tab { background: none; border: none; padding: 10px 18px; font-size: 14px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary-dark); font-weight: 700; border-bottom-color: var(--primary); }
.tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 999px; background: #FEE2E2; color: #B91C1C; font-size: 11px; margin-left: 6px; padding: 0 6px; }
.bant-dim { background: #fff; }
.bant-score { font-weight: 800; font-size: 13px; color: var(--text-3); background: #EEF1F7; border-radius: 999px; padding: 3px 10px; }
.bant-score.ok { background: #DCFCE7; color: #15803D; }
.bant-item:hover { background: #F8FAFE; border-radius: 8px; }
.bant-chip { font-size: 12px; color: var(--primary-dark); background: #EFF6FF; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.mini-stat { display: flex; align-items: center; gap: 10px; background: #F8FAFE; border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.mini-stat .dot { width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0; }
.alert-row { background: #FFFBF5; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.notice { border-radius: 10px; padding: 12px 14px; font-size: 13px; margin: 10px 0; }
.notice.blue { background: #EFF6FF; color: #1E40AF; }
