/* InfoHub - 浅蓝护眼主题 */
:root {
  --bg: #eef3f9;
  --bg-2: #e6edf6;
  --panel: rgba(255, 255, 255, .88);
  --panel-solid: #ffffff;
  --line: rgba(59, 130, 246, .16);
  --line-strong: rgba(59, 130, 246, .32);
  --text: #1e3a5f;
  --text-dim: #4c6b93;
  --text-faint: #8aa4c4;
  --accent: #0d84e0;
  --accent-2: #3b8ef0;
  --accent-deep: #1d4ed8;
  --pos: #0d9668;
  --neg: #dc2626;
  --neu: #64748b;
  --warn: #b45309;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "SF Pro Text", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,.25); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 登录 ---------- */
.auth-screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 100; }
.auth-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(147, 197, 253, .45), transparent),
    radial-gradient(ellipse 50% 40% at 85% 100%, rgba(191, 219, 254, .5), transparent),
    linear-gradient(180deg, #eef4fb, #e2ecf7);
}
.auth-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(59,130,246,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 75%);
}
.auth-box {
  position: relative; width: 380px; padding: 38px 36px 30px;
  background: linear-gradient(160deg, #ffffff, #f4f8fd);
  border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 24px 70px rgba(30, 58, 95, .14), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(12px); text-align: center;
}
.auth-logo { margin-bottom: 10px; }
.auth-box h1 { font-size: 26px; letter-spacing: 5px; color: var(--text); font-weight: 600; }
.auth-sub { color: var(--text-faint); font-size: 12px; margin: 6px 0 22px; letter-spacing: 1px; }
.auth-tabs { display: flex; background: #eef4fb; border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.auth-tab { flex: 1; border: 0; background: transparent; color: var(--text-dim); padding: 9px 0; border-radius: 8px; cursor: pointer; font-size: 14px; letter-spacing: 2px; transition: all .2s; }
.auth-tab.active { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); color: #fff; box-shadow: 0 4px 14px rgba(14,165,233,.3); }
.field { text-align: left; margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #ffffff; color: var(--text); font-size: 14px; outline: none; transition: border .2s;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13,132,224,.12); }
.auth-error { color: var(--neg); font-size: 12px; min-height: 18px; margin-bottom: 4px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 8px; padding: 9px 18px; cursor: pointer; font-size: 14px;
  color: var(--accent-deep); background: rgba(59,130,246,.09); border: 1px solid var(--line-strong); transition: all .2s;
}
.btn:hover { background: rgba(59,130,246,.16); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); border: 0; color: #fff; box-shadow: 0 4px 14px rgba(14,165,233,.25); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn-danger { color: #b91c1c; border-color: rgba(220,38,38,.35); background: rgba(220,38,38,.06); }
.btn-block { width: 100%; }

/* ---------- 布局 ---------- */
.app { display: flex; height: 100vh; }
.sidebar {
  width: 216px; flex: none; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #fbfdff, #eef4fb);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; font-size: 17px; font-weight: 600; letter-spacing: 2px; color: var(--text); }
.sidebar nav { flex: 1; padding: 4px 10px; overflow-y: auto; }
.nav-group { font-size: 11px; color: var(--text-faint); padding: 16px 10px 6px; letter-spacing: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 2px 0;
  color: var(--text-dim); text-decoration: none; border-radius: 8px; font-size: 14px; transition: all .15s;
}
.nav-item .ico { width: 18px; text-align: center; opacity: .8; }
.nav-item:hover { color: var(--text); background: rgba(59,130,246,.08); }
.nav-item.active { color: var(--accent-deep); font-weight: 600; background: linear-gradient(135deg, rgba(29,78,216,.13), rgba(14,165,233,.1)); box-shadow: inset 0 0 0 1px rgba(13,132,224,.28); }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--line); }
.collect-tip { font-size: 11px; color: var(--text-faint); margin-bottom: 10px; padding: 8px 10px; background: rgba(59,130,246,.05); border: 1px dashed var(--line); border-radius: 8px; line-height: 1.5; }
.collect-tip.ok { color: var(--accent-deep); }
.user-box { display: flex; gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; background: linear-gradient(135deg, #1d4ed8, #0ea5e9); color: #fff; }
.u-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; word-break: break-all; }
.btn-logout { background: none; border: 0; color: var(--text-faint); font-size: 12px; cursor: pointer; padding: 0; }
.btn-logout:hover { color: var(--neg); }

.main { flex: 1; overflow-y: auto; padding: 24px 28px 48px; background:
  radial-gradient(ellipse 60% 40% at 90% -5%, rgba(147, 197, 253, .18), transparent),
  radial-gradient(ellipse 40% 30% at 0% 100%, rgba(191, 219, 254, .1), transparent), var(--bg);
}
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 14px; flex-wrap: wrap; }
.page-title { font-size: 20px; font-weight: 600; color: var(--text); letter-spacing: 1px; }
.page-title small { display: block; font-size: 12px; color: var(--text-faint); font-weight: 400; margin-top: 4px; letter-spacing: 0; }

/* ---------- 卡片 / 面板 ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; margin-bottom: 18px;
  backdrop-filter: blur(8px); box-shadow: 0 6px 24px rgba(30, 58, 95, .07);
}
.panel-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #0d84e0, #1d4ed8); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #ffffff, #f2f7fd);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
}
.stat-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.stat-card .num { font-size: 28px; font-weight: 700; color: var(--text); font-family: "SF Mono", Menlo, monospace; }
.stat-card .lbl { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.stat-card .delta { position: absolute; top: 14px; right: 16px; font-size: 11px; color: var(--text-faint); }

.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-box { height: 260px; width: 100%; }
.chart-box-lg { height: 300px; width: 100%; }
@media (max-width: 1100px) { .chart-grid { grid-template-columns: 1fr; } }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; color: var(--text-faint); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
.tbl tr:hover td { background: rgba(13,132,224,.04); }
.tbl a { color: var(--accent); text-decoration: none; }
.tbl a:hover { text-decoration: underline; }
.ellipsis { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; border: 1px solid; white-space: nowrap; }
.tag-pos { color: var(--pos); border-color: rgba(13,150,104,.35); background: rgba(13,150,104,.07); }
.tag-neg { color: var(--neg); border-color: rgba(220,38,38,.35); background: rgba(220,38,38,.06); }
.tag-neu { color: var(--neu); border-color: rgba(100,116,139,.3); background: rgba(100,116,139,.07); }
.tag-blue { color: #0b74c9; border-color: rgba(13,132,224,.35); background: rgba(13,132,224,.07); }
.tag-dim { color: var(--text-dim); border-color: var(--line-strong); background: rgba(59,130,246,.05); }
.tag-warn { color: var(--warn); border-color: rgba(180,83,9,.35); background: rgba(180,83,9,.07); }

/* ---------- 筛选器 ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filter-bar .field { margin: 0; min-width: 130px; flex: none; }
.filter-bar .field.grow { flex: 1; min-width: 200px; }

.kw-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.kw-tab {
  padding: 6px 14px; border-radius: 20px; border: 1px solid var(--line-strong); cursor: pointer;
  color: var(--text-dim); font-size: 13px; background: #ffffff; transition: all .15s; user-select: none;
}
.kw-tab:hover { color: var(--text); border-color: var(--accent); }
.kw-tab.active { color: #fff; background: linear-gradient(135deg, #1d4ed8, #0ea5e9); border-color: transparent; box-shadow: 0 3px 12px rgba(14,165,233,.28); }
.kw-tab .sys-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 2px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.pager button { background: #ffffff; border: 1px solid var(--line-strong); color: var(--text-dim); border-radius: 6px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.pager button:hover:not(:disabled) { color: var(--text); border-color: var(--accent); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager .pg-info { color: var(--text-faint); font-size: 12px; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(30, 58, 95, .35); z-index: 200; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal { width: 480px; max-width: 94vw; max-height: 88vh; overflow-y: auto; background: #ffffff; border: 1px solid var(--line-strong); border-radius: 14px; padding: 24px; box-shadow: 0 24px 70px rgba(30, 58, 95, .25); }
.modal h3 { font-size: 16px; color: var(--text); margin-bottom: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- Toast ---------- */
#toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 11px 18px; border-radius: 10px; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, #0d9668, #10b981); border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 8px 24px rgba(30, 58, 95, .2); animation: slideIn .25s ease; max-width: 340px;
}
.toast.err { background: linear-gradient(135deg, #b91c1c, #dc2626); border-color: rgba(255,255,255,.4); }
.toast.info { background: linear-gradient(135deg, #1e40af, #1d4ed8); border-color: rgba(255,255,255,.4); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 杂项 ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }
.muted { color: var(--text-faint); font-size: 12px; }
.summary-text { line-height: 1.9; color: var(--text); font-size: 13.5px; padding: 14px 16px; background: rgba(13,132,224,.05); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.badge-count { background: rgba(13,132,224,.1); border: 1px solid var(--line-strong); color: #0b74c9; border-radius: 6px; padding: 1px 8px; font-size: 11px; margin-left: 8px; }
.empty-tip { text-align: center; color: var(--text-faint); padding: 44px 0 20px; font-size: 13px; }
.empty-tip .big { font-size: 34px; margin-bottom: 10px; opacity: .5; }
.kw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; background: rgba(59,130,246,.07); border: 1px solid var(--line); margin: 0 8px 8px 0; font-size: 13px; }
.kw-chip .x { cursor: pointer; color: var(--text-faint); font-weight: 700; }
.kw-chip .x:hover { color: var(--neg); }
.report-meta { color: var(--text-dim); font-size: 12px; line-height: 1.8; }
.loading-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(13,132,224,.25); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- AI 报告 Markdown 排版 ---------- */
#ai-content { padding: 6px 18px 14px; }
#ai-content .md-title { font-size: 17px; color: var(--text); margin: 8px 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
#ai-content h3 { font-size: 14.5px; color: #0b6bbd; margin: 18px 0 8px; }
#ai-content h4 { font-size: 13.5px; color: #2563eb; margin: 14px 0 6px; }
#ai-content p { line-height: 1.95; color: var(--text); font-size: 13.5px; margin: 8px 0; }
#ai-content ul { margin: 6px 0 10px; padding-left: 4px; list-style: none; }
#ai-content li { line-height: 1.9; color: var(--text); font-size: 13.5px; margin: 5px 0; padding-left: 16px; position: relative; }
#ai-content li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
#ai-content blockquote { margin: 10px 0; padding: 8px 14px; background: rgba(13,132,224,.06); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; color: var(--text-dim); font-size: 12.5px; line-height: 1.8; }
#ai-content code { background: rgba(59,130,246,.1); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 12px; color: #0b6bbd; }
#ai-content strong { color: #123c66; }
#ai-content ol { margin: 6px 0 10px; padding-left: 22px; }
#ai-content ol li { padding-left: 2px; }
#ai-content ol li::before { content: none; }
#ai-content ol li::marker { color: var(--accent); font-weight: 600; }
#ai-content .md-hr { border: none; border-top: 1px dashed var(--line-strong); margin: 16px 0; }
#ai-content a { color: #0b6bbd; text-decoration: underline; text-underline-offset: 2px; }
/* 报告表格 */
.md-table-wrap { overflow-x: auto; margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.md-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.md-table th { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); color: #fff; font-weight: 600; padding: 8px 10px; white-space: nowrap; text-align: left; }
.md-table td { padding: 7px 10px; border-top: 1px solid var(--line); color: var(--text); line-height: 1.6; vertical-align: top; min-width: 56px; }
.md-table tr:nth-child(even) td { background: rgba(59, 130, 246, .035); }
.md-table tr:hover td { background: rgba(13, 132, 224, .07); }
.md-table td:first-child, .md-table th:first-child { padding-left: 12px; }

/* 搜索项目结果弹窗 */
.sp-res-list { display: flex; flex-direction: column; gap: 6px; }
.sp-res-item { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(59,130,246,.14); background: #fff; }
.sp-res-item:hover { border-color: var(--accent); background: rgba(13,132,224,.03); }
.sp-res-item .qs-t { font-size: 13px; }
.sp-res-item .qs-s { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.sp-res-item .qs-m { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; color: var(--text-faint); margin-top: 3px; }

/* ---------- 自定义日历选择器 ---------- */
.datepick { position: fixed; z-index: 150; background: #ffffff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px; width: 236px; box-shadow: 0 14px 36px rgba(30,58,95,.18); display: none; }
.datepick.open { display: block; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-head b { color: var(--text); font-size: 13px; }
.dp-nav { background: rgba(59,130,246,.1); border: 1px solid var(--line); color: #0b74c9; border-radius: 6px; width: 28px; height: 24px; cursor: pointer; font-size: 14px; line-height: 1; }
.dp-nav:hover { background: rgba(59,130,246,.22); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-day { text-align: center; padding: 6px 0; font-size: 12.5px; color: var(--text); border-radius: 6px; cursor: pointer; }
.dp-day:hover { background: rgba(59,130,246,.15); }
.dp-day.dim { visibility: hidden; cursor: default; }
.dp-day.sel { background: linear-gradient(135deg,#1d4ed8,#0ea5e9); color: #fff; }
.dp-day.today { border: 1px solid var(--accent); }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.dp-foot span { font-size: 12px; color: #0b74c9; cursor: pointer; }
.dp-foot span:hover { text-decoration: underline; }
.dp-wd { text-align: center; font-size: 11px; color: var(--text-faint); padding: 3px 0; }
.datepick .dp-days { margin-top: 2px; }

/* ---------- 一键搜索 ---------- */
.qs-row { display: flex; gap: 10px; margin: 4px 0 10px; }
.qs-row input { flex: 1; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(59,130,246,.25); background: #ffffff; color: var(--text); font-size: 13.5px; outline: none; }
.qs-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13,132,224,.12); }
.qs-tip { font-size: 12px; color: var(--text-faint); margin-bottom: 8px; }
.qs-group-title { font-size: 12.5px; color: var(--text-dim); margin: 10px 0 6px; font-weight: 600; }
.qs-item { padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(59,130,246,.14); background: #ffffff; margin-bottom: 6px; }
.qs-item .qs-t { font-size: 13px; }
.qs-item .qs-s { font-size: 12px; color: #4c6b93; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qs-item .qs-m { font-size: 11px; color: #6c8db9; margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* 搜索选项面板 */
.qs-opts { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; padding: 10px 12px; margin-bottom: 10px; background: rgba(59,130,246,.045); border: 1px solid var(--line); border-radius: 10px; }
.qs-opts .field { margin: 0; }
.qs-opts .field input { padding: 7px 10px; font-size: 13px; width: 132px; }
.qs-chk-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.qs-chk { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--text-dim); font-size: 12px; cursor: pointer; user-select: none; transition: all .15s; }
.qs-chk:hover { border-color: var(--accent); color: var(--text); }
.qs-chk.on { color: #fff; background: linear-gradient(135deg, #1d4ed8, #0ea5e9); border-color: transparent; }

/* 检索记录 */
.qs-history { margin: 0 0 10px; }
.qs-hist-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-faint); margin-bottom: 6px; font-weight: 600; }
.qs-hist-clear { border: none; background: none; color: var(--text-faint); font-size: 11.5px; cursor: pointer; padding: 2px 8px; border-radius: 6px; transition: all .15s; }
.qs-hist-clear:hover { color: #dc2626; background: rgba(220, 38, 38, .08); }
.qs-hist-list { display: flex; flex-wrap: wrap; gap: 6px; }
.qs-hist-item { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px 4px 11px; border-radius: 16px; border: 1px solid var(--line); background: #ffffff; font-size: 12px; color: var(--text-dim); cursor: pointer; transition: all .15s; max-width: 100%; }
.qs-hist-item:hover { border-color: var(--accent); color: var(--text); box-shadow: 0 2px 8px rgba(13, 132, 224, .12); }
.qs-hist-q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.qs-hist-meta { font-size: 10.5px; color: var(--text-faint); white-space: nowrap; }
.qs-hist-x { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; color: var(--text-faint); line-height: 1; transition: all .15s; }
.qs-hist-x:hover { color: #fff; background: #dc2626; }

/* 搜索项目 */
.sp-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; margin-bottom: 10px; transition: all .15s; }
.sp-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(30,58,95,.08); }
.sp-card .sp-name { font-size: 14px; font-weight: 600; }
.sp-card .sp-meta { font-size: 12px; color: var(--text-faint); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }

/* 关键词气泡（筛选分析空状态） */
.bubble-box { position: relative; height: 340px; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, #f7fafd, #eef4fb); }
.bubble {
  position: absolute; display: inline-flex; align-items: center; border-radius: 22px; cursor: pointer;
  color: #0b6bbd; background: rgba(255,255,255,.92); border: 1px solid rgba(13,132,224,.3);
  font-weight: 500; white-space: nowrap; user-select: none; transition: transform .2s, box-shadow .2s;
  animation: bubbleFloat var(--dur, 14s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.bubble:hover { transform: scale(1.12); box-shadow: 0 6px 18px rgba(13,132,224,.25); z-index: 5; color: #fff; background: linear-gradient(135deg, #1d4ed8, #0ea5e9); border-color: transparent; }
.bubble.b2 { color: #0d9668; border-color: rgba(13,150,104,.3); }
.bubble.b2:hover { background: linear-gradient(135deg, #0d9668, #10b981); }
.bubble.b3 { color: #b45309; border-color: rgba(180,83,9,.3); }
.bubble.b3:hover { background: linear-gradient(135deg, #b45309, #f59e0b); }
.bubble.mine { color: #fff; background: linear-gradient(135deg, #7c3aed, #d946ef); border-color: transparent; font-weight: 600; box-shadow: 0 3px 10px rgba(147, 51, 234, .28); }
.bubble.mine:hover { background: linear-gradient(135deg, #9333ea, #e879f9); box-shadow: 0 6px 18px rgba(147, 51, 234, .35); }
@keyframes bubbleFloat {
  0%   { transform: translate(0, 0) rotate(-1.5deg); }
  25%  { transform: translate(14px, -18px) rotate(1deg); }
  50%  { transform: translate(-10px, 12px) rotate(-1deg); }
  75%  { transform: translate(16px, 8px) rotate(1.5deg); }
  100% { transform: translate(-6px, -14px) rotate(-0.5deg); }
}
