/* ============================================================
   真实选品调研（selection-pro）页面样式
   复用 styles.css 的设计令牌；本文件只放本模块专属类
   ============================================================ */

/* ---- 品牌标：Zigent Logo 图片（替换原渐变 ✦ 方块，保留 .brand-mark 尺寸） ---- */
img.brand-mark {
  object-fit: cover;
  background: transparent;
  box-shadow: 0 6px 20px -6px rgba(56, 116, 255, .55);
}

/* ---- 页面容器：限宽居中，超宽屏不再贴边/拉伸 ---- */
#view { overflow-x: hidden; }
.sp-page {
  width: 100%; max-width: 1180px; min-width: 0;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px;
}
.sp-layout > *, .sp-side > *, .sp-result > * { min-width: 0; }

/* ---- 数据源状态条（紧凑单行） ---- */
.sp-source-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; border-radius: var(--radius, 14px);
  background: linear-gradient(135deg, rgba(124, 139, 255, .12), rgba(77, 227, 255, .06));
  border: 1px solid var(--border-strong, rgba(124, 139, 255, .35));
}
.sp-status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--amber, #ffc46b); animation: ledBlink 1.6s infinite;
}
.sp-source-banner b { color: var(--text, #e8eaf2); font-size: 13px; white-space: nowrap; }
.sp-status-text { color: var(--text-2, #a6abc2); font-size: 12px; line-height: 1.6; flex: 1 1 240px; min-width: 200px; }
.sp-link-btn {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(124, 139, 255, .45); background: rgba(124, 139, 255, .12);
  color: var(--text, #e8eaf2); font-size: 12px; transition: background .18s, border-color .18s;
}
.sp-link-btn:hover { background: rgba(124, 139, 255, .24); border-color: var(--accent, #7c8bff); }
.sp-link-btn svg { width: 14px; height: 14px; color: var(--accent, #7c8bff); }

/* ---- 左右布局 ---- */
.sp-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 18px; align-items: start; }
.sp-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ---- 卡片统一内边距（.card 基类不带 padding，内容卡在此补齐，避免输入框贴外框） ---- */
.sp-form-card, .sp-progress-card, .sp-history-card, .sp-result-head, .sp-analysis { padding: 20px 22px; }
@media (max-width: 720px) {
  .sp-form-card, .sp-progress-card, .sp-history-card, .sp-result-head, .sp-analysis { padding: 16px; }
}
.sp-form-card h3, .sp-progress-card h3, .sp-history-card h3 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; font-family: var(--font-display, inherit);
}
.sp-form-card h3 svg, .sp-progress-card h3 svg, .sp-history-card h3 svg { width: 17px; height: 17px; color: var(--accent, #7c8bff); }

/* ---- 示例填充小按钮 ---- */
.sp-example-row { display: flex; justify-content: flex-end; margin: -6px 0 10px; }
.sp-ghost-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border, rgba(255, 255, 255, .09));
  background: rgba(255, 255, 255, .03); color: var(--text-2, #a6abc2);
  font-size: 11.5px; transition: all .18s;
}
.sp-ghost-btn:hover { color: var(--text, #e8eaf2); border-color: var(--accent, #7c8bff); background: rgba(124, 139, 255, .1); }
.sp-ghost-btn svg { width: 13px; height: 13px; color: var(--accent, #7c8bff); }

/* ---- 表单 ---- */
.sp-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; }
.sp-field > span { font-size: 12.5px; color: var(--text-2, #a6abc2); font-weight: 600; }
.sp-field em { color: var(--rose, #ff7a90); font-style: normal; }
.sp-field input, .sp-field textarea, .sp-field select {
  width: 100%; max-width: 100%; box-sizing: border-box;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border, rgba(255, 255, 255, .09));
  border-radius: 10px; padding: 10px 12px;
  color: var(--text, #e8eaf2); font-size: 13px; outline: none;
  transition: border-color .2s;
}
.sp-field input:focus, .sp-field textarea:focus, .sp-field select:focus { border-color: var(--accent, #7c8bff); }
.sp-field textarea { resize: vertical; min-height: 70px; }
.sp-field select option { background: #14161f; }
.sp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---- 折叠的高级筛选 ---- */
.sp-details {
  border: 1px solid var(--border, rgba(255, 255, 255, .09));
  border-radius: 12px; margin-bottom: 13px;
  background: rgba(255, 255, 255, .02);
}
.sp-details summary {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 13px; cursor: pointer; list-style: none;
  font-size: 12.5px; font-weight: 600; color: var(--text-2, #a6abc2);
}
.sp-details summary::-webkit-details-marker { display: none; }
.sp-details summary svg { width: 15px; height: 15px; color: var(--accent, #7c8bff); flex: none; }
.sp-details[open] summary { border-bottom: 1px solid var(--border, rgba(255, 255, 255, .09)); }
.sp-details-bd { padding: 13px 13px 0; }
.sp-details-bd .sp-grid-2 + .sp-grid-2 { margin-top: 10px; }
.sp-details-bd .sp-field { margin-bottom: 13px; }

.sp-platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-check-pill {
  display: inline-flex; align-items: center; gap: 6px;
  flex: none; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border, rgba(255, 255, 255, .09));
  background: rgba(255, 255, 255, .03); font-size: 12.5px;
  color: var(--text-2, #a6abc2); transition: all .18s;
}
.sp-check-pill:has(input:checked) {
  border-color: var(--accent, #7c8bff); color: var(--text, #e8eaf2);
  background: rgba(124, 139, 255, .14);
}
.sp-check-pill input { accent-color: var(--accent, #7c8bff); }

/* ---- 图片上传 ---- */
.sp-uploader {
  border: 1.5px dashed var(--border-strong, rgba(255, 255, 255, .18));
  border-radius: 12px; min-height: 108px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s, background .2s; position: relative;
  overflow: hidden;
}
.sp-uploader:hover, .sp-uploader.drag { border-color: var(--accent, #7c8bff); background: rgba(124, 139, 255, .07); }
.sp-upload-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-3, #6b7089); font-size: 12px; padding: 18px; text-align: center; }
.sp-upload-empty svg { width: 26px; height: 26px; }
.sp-upload-preview { position: relative; width: 100%; }
.sp-upload-preview img { width: 100%; max-height: 190px; object-fit: contain; display: block; border-radius: 10px; }
.sp-img-remove {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px;
  border-radius: 50%; border: none; cursor: pointer;
  background: rgba(10, 12, 20, .8); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.sp-img-remove svg { width: 15px; height: 15px; }

.sp-run { width: 100%; justify-content: center; margin-top: 4px; }
.sp-run.is-loading { opacity: .7; pointer-events: none; }
.sp-form-hint { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; font-size: 11.5px; color: var(--text-3, #6b7089); line-height: 1.6; }
.sp-form-hint svg { width: 13px; height: 13px; flex: none; margin-top: 2px; color: var(--amber, #ffc46b); }

/* ---- 通栏三步引导 ---- */
.sp-empty-state { padding: 18px 22px; }
.sp-empty-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.sp-empty-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: rgba(124, 139, 255, .14); border: 1px solid rgba(124, 139, 255, .32);
  color: var(--accent, #7c8bff);
}
.sp-empty-icon svg { width: 20px; height: 20px; }
.sp-empty-state h4 { margin: 0; font-size: 14.5px; font-family: var(--font-display, inherit); }
.sp-empty-state ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px;
  counter-reset: sp-step;
}
.sp-empty-state li {
  counter-increment: sp-step;
  position: relative; padding-left: 29px;
  font-size: 12px; line-height: 1.65; color: var(--text-2, #a6abc2);
}
.sp-empty-state li::before {
  content: counter(sp-step);
  position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: rgba(124, 139, 255, .16); color: var(--accent, #7c8bff);
  border: 1px solid rgba(124, 139, 255, .35);
}
.sp-empty-state li b { color: var(--text, #e8eaf2); }

/* ---- 实时进度 ---- */
.sp-stage, .sp-collector { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 12.5px; }
.sp-stage-label { flex: 1; color: var(--text-2, #a6abc2); }
.sp-stage-state, .sp-collector-state { font-size: 11.5px; color: var(--text-3, #6b7089); }
.sp-stage-dot, .sp-collector-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong, rgba(255, 255, 255, .2)); flex: none; }
.sp-stage.running .sp-stage-dot, .sp-collector.running .sp-collector-dot { background: var(--amber, #ffc46b); animation: ledBlink 1s infinite; }
.sp-stage.done .sp-stage-dot, .sp-collector.done .sp-collector-dot { background: var(--emerald, #46d39a); }
.sp-stage.done .sp-stage-state, .sp-collector.done .sp-collector-state { color: var(--emerald, #46d39a); }
.sp-collector b { font-weight: 600; flex: 1; font-size: 12.5px; min-width: 0; }
.sp-collector-states { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 6px; }

.sp-vision {
  margin-top: 12px; padding: 12px; border-radius: 10px;
  background: rgba(77, 227, 255, .06); border: 1px solid rgba(77, 227, 255, .22);
}
.sp-vision b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--cyan, #4de3ff); }
.sp-vision b svg { width: 14px; height: 14px; }
.sp-vision p { margin: 7px 0; font-size: 12px; color: var(--text-2, #a6abc2); line-height: 1.6; }
.sp-warn { color: var(--amber, #ffc46b) !important; font-size: 11.5px; }

/* ---- 标签 ---- */
.sp-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sp-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px;
  background: rgba(255, 255, 255, .06); color: var(--text-2, #a6abc2);
  border: 1px solid var(--border, rgba(255, 255, 255, .08));
}
.sp-tag em { font-style: normal; opacity: .7; }
.sp-tag-mock { background: rgba(255, 196, 107, .12); color: var(--amber, #ffc46b); border-color: rgba(255, 196, 107, .3); }
.sp-tag-real { background: rgba(70, 211, 154, .12); color: var(--emerald, #46d39a); border-color: rgba(70, 211, 154, .3); }
.sp-tag.sp-pro { background: rgba(70, 211, 154, .1); color: #8fe6c2; border-color: rgba(70, 211, 154, .25); }
.sp-tag.sp-con { background: rgba(255, 122, 144, .1); color: #ff9db0; border-color: rgba(255, 122, 144, .25); }

/* ---- 历史 ---- */
.sp-history-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow: auto; }
.sp-empty { color: var(--text-3, #6b7089); font-size: 12px; margin: 4px 0; }
.sp-history-item {
  text-align: left; background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border, rgba(255, 255, 255, .08));
  border-radius: 10px; padding: 9px 11px; cursor: pointer; transition: border-color .18s;
  width: 100%;
}
.sp-history-item:hover { border-color: var(--accent, #7c8bff); }
.sp-history-kw { display: block; font-size: 12.5px; color: var(--text, #e8eaf2); font-weight: 600;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-history-meta { display: block; margin-top: 3px; font-size: 11px; color: var(--text-3, #6b7089); }
.sp-history-source {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 600; vertical-align: 1px;
  color: var(--cyan, #4de3ff); background: rgba(77, 227, 255, .09);
  border: 1px solid rgba(77, 227, 255, .25);
}
.sp-history-more summary {
  padding: 7px 4px; cursor: pointer; list-style: none;
  font-size: 11.5px; color: var(--accent, #7c8bff);
}
.sp-history-more summary::-webkit-details-marker { display: none; }
.sp-history-more .sp-history-item { margin-top: 8px; }

/* ---- 适配器说明弹窗 ---- */
.sp-adapter-modal { width: min(680px, 94vw); }
.sp-modal-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0 0 14px; padding: 11px 13px; border-radius: 11px;
  background: rgba(70, 211, 154, .07); border: 1px solid rgba(70, 211, 154, .25);
  font-size: 12px; line-height: 1.7; color: var(--text-2, #a6abc2);
}
.sp-modal-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--emerald, #46d39a); }
.sp-adapter-row { padding: 10px 0; border-bottom: 1px solid var(--border, rgba(255, 255, 255, .07)); }
.sp-adapter-row:last-child { border-bottom: none; }
.sp-adapter-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.sp-adapter-head b { font-size: 12.5px; }
.sp-adapter-row p { margin: 3px 0; font-size: 11.5px; color: var(--text-2, #a6abc2); line-height: 1.6; }
.sp-adapter-setup { color: var(--text-3, #6b7089) !important; }

/* ---- 结果区 ---- */
.sp-result { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sp-result-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; flex-wrap: wrap; font-size: 16px; font-family: var(--font-display, inherit); }
.sp-result-head h3 svg { width: 18px; height: 18px; color: var(--accent, #7c8bff); }
.sp-report-id { margin: 7px 0 0; font-size: 11.5px; color: var(--text-3, #6b7089); word-break: break-word; }
.sp-summary { margin: 0 0 14px; font-size: 13.5px; line-height: 1.8; color: var(--text, #e8eaf2); }
.sp-anal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px; }
.sp-anal-block { min-width: 0; }
.sp-anal-block h4 { margin: 0 0 8px; font-size: 13px; color: var(--text-2, #a6abc2); }
.sp-anal-block + .sp-anal-block { margin-top: 14px; }

.sp-band { display: grid; grid-template-columns: 130px minmax(0, 1fr) 32px; align-items: center; gap: 10px; margin-bottom: 7px; font-size: 12px; }
.sp-band small { color: var(--text-3, #6b7089); margin-left: 4px; }
.sp-band-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.sp-band-track i { display: block; height: 100%; border-radius: 999px; background: var(--accent-grad, linear-gradient(90deg, #7c8bff, #4de3ff)); transition: width .5s ease; }
.sp-band em { font-style: normal; text-align: right; color: var(--text-2, #a6abc2); }
.sp-kpi { margin: 10px 0 0; font-size: 12px; color: var(--text-2, #a6abc2); }

.sp-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 12px; }
.sp-table th, .sp-table td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--border, rgba(255, 255, 255, .07)); }
.sp-table th { color: var(--text-3, #6b7089); font-weight: 600; }
.sp-table td { color: var(--text-2, #a6abc2); }

.sp-list { list-style: none; margin: 6px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.sp-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.6; color: var(--text-2, #a6abc2); }
.sp-list li svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--accent, #7c8bff); }

.sp-grid-title { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 15px; font-family: var(--font-display, inherit); }
.sp-grid-title svg { width: 17px; height: 17px; color: var(--accent, #7c8bff); }

/* ---- 竞品卡片 ---- */
.sp-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.sp-product { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.sp-product-img { position: relative; aspect-ratio: 1.25; background: rgba(255, 255, 255, .03); }
.sp-product-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--text-3, #6b7089); background: rgba(124, 139, 255, .08); }
.sp-platform-chip, .sp-mock-chip, .sp-sim-chip {
  position: absolute; top: 8px; padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; backdrop-filter: blur(6px);
}
.sp-platform-chip { left: 8px; background: rgba(10, 12, 20, .72); color: #fff; }
.sp-mock-chip { right: 8px; background: rgba(255, 196, 107, .9); color: #1a1405; }
.sp-sim-chip { left: 8px; bottom: 8px; top: auto; background: rgba(124, 139, 255, .92); color: #fff; }
.sp-product-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.sp-product-body h4 { margin: 0; font-size: 13.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-product-en { margin: 0; font-size: 11px; color: var(--text-3, #6b7089); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sp-product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.sp-price { font-size: 16px; font-weight: 700; color: var(--amber, #ffc46b); white-space: nowrap; }
.sp-price del { font-size: 11px; color: var(--text-3, #6b7089); font-weight: 400; margin-left: 5px; }
.sp-rating { font-size: 12px; color: var(--amber, #ffc46b); white-space: nowrap; }
.sp-rating b { color: var(--text, #e8eaf2); }
.sp-rating small { color: var(--text-3, #6b7089); }
.sp-product-sub { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 11.5px; color: var(--text-3, #6b7089); }
.sp-product-sub svg { width: 13px; height: 13px; }
.sp-pc { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border, rgba(255, 255, 255, .07)); }
.sp-pc-pros b, .sp-pc-cons b { display: block; font-size: 11px; margin-bottom: 4px; }
.sp-pc-pros b { color: var(--emerald, #46d39a); }
.sp-pc-cons b { color: var(--rose, #ff7a90); }
.sp-pc span { display: block; font-size: 11.5px; line-height: 1.6; color: var(--text-2, #a6abc2); padding-left: 10px; position: relative; }
.sp-pc span::before { content: '·'; position: absolute; left: 2px; }
.sp-match-note { margin: 0; font-size: 11px; color: var(--cyan, #4de3ff); }

@media (max-width: 1280px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-anal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sp-grid-2 { grid-template-columns: 1fr; }
  .sp-collector-states { grid-template-columns: 1fr; }
  .sp-product-grid { grid-template-columns: 1fr; }
  .sp-band { grid-template-columns: 104px minmax(0, 1fr) 28px; gap: 7px; }
  .sp-table { display: block; overflow-x: auto; white-space: nowrap; }
  .sp-link-btn { margin-left: 0; }
}

/* ============================================================
   定向挖掘（v0.2）：模式切换 / 价格区间 / 挖掘动效 / 结果聚焦
   ============================================================ */
.sp-mode-switch {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 12px 0 6px; padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}
.sp-mode-switch button {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; border: 0; border-radius: 9px;
  background: none; color: var(--text-3);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: color 0.25s ease;
}
.sp-mode-switch button svg { width: 14px; height: 14px; }
.sp-mode-switch button.active {
  color: #0b1020;
  background: var(--accent-grad);
  box-shadow: 0 6px 18px -8px rgba(124, 139, 255, 0.8);
}
.sp-mode-tip { font-size: 11.5px; color: var(--text-3); line-height: 1.6; margin: 0 0 14px; }

.sp-price-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.sp-price-range i { color: var(--text-3); font-style: normal; }
.sp-price-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sp-price-presets button {
  padding: 4px 11px; border-radius: 99px; cursor: pointer;
  font: inherit; font-size: 11px; color: var(--text-2);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  transition: all 0.18s ease;
}
.sp-price-presets button:hover { border-color: rgba(124, 139, 255, 0.5); color: var(--text); }
.sp-price-presets button.active {
  color: var(--accent-2);
  border-color: rgba(77, 227, 255, 0.5);
  background: rgba(77, 227, 255, 0.1);
}
.sp-shared-platforms { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }

/* ---------------- 挖掘动效：液态玻璃能量球 ---------------- */
.sp-orb {
  position: relative;
  width: 96px; height: 96px;
  margin: 8px auto 2px;
  display: grid; place-items: center;
}
.sp-orb-core {
  position: relative; z-index: 2;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #0b1020;
  background: var(--accent-grad);
  box-shadow: 0 0 30px -4px rgba(124, 139, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  animation: orbPulse 2s ease-in-out infinite;
}
.sp-orb-core svg { width: 24px; height: 24px; }
.sp-orb-ring {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(124, 139, 255, 0.28);
  border-top-color: var(--accent);
  animation: orbSpin 1.3s linear infinite;
}
.sp-orb-ring.r1 { inset: 2px; }
.sp-orb-ring.r2 {
  inset: 15px; border-width: 1.5px;
  border-color: rgba(77, 227, 255, 0.22);
  border-bottom-color: var(--accent-2);
  animation: orbSpin 2.1s linear infinite reverse;
}
@keyframes orbSpin { to { transform: rotate(360deg); } }
@keyframes orbPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 24px -6px rgba(124, 139, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
  50% { transform: scale(1.08); box-shadow: 0 0 44px -2px rgba(77, 227, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
}
.sp-orb-caption {
  text-align: center; font-size: 12px; color: var(--text-2);
  min-height: 18px; margin: 10px 0 12px;
}

/* ---------------- 实时简报 ---------------- */
.sp-brief-live {
  margin-top: 12px; padding: 12px 13px;
  border-radius: 12px;
  background: rgba(124, 139, 255, 0.07);
  border: 1px solid rgba(124, 139, 255, 0.22);
  animation: fadeIn 0.4s var(--ease-out, ease) both;
  font-size: 11.5px;
}
.sp-brief-live b { display: block; font-size: 12px; margin-bottom: 6px; }
.sp-brief-live .sp-tag { font-size: 10.5px; }
.sp-brief-kw { margin: 6px 0; color: var(--text-2); }
.sp-brief-sub { display: flex; gap: 6px; align-items: flex-start; color: var(--text-2); margin: 6px 0; }
.sp-brief-sub svg { flex: none; margin-top: 2px; }
.sp-brief-q { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.sp-brief-q code {
  flex: 1; min-width: 0;
  padding: 3px 8px; border-radius: 7px;
  background: rgba(0, 0, 0, 0.25); color: var(--accent-2);
  font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------- 报告中的简报卡 ---------------- */
.sp-brief-card h4, .sp-hotpicks h4 { font-size: 13.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sp-brief-card h4 svg, .sp-hotpicks h4 svg { width: 16px; height: 16px; color: var(--accent); }
.sp-brief-inputs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sp-brief-inputs span {
  font-size: 11.5px; color: var(--text-3);
  padding: 5px 11px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border);
}
.sp-brief-inputs b { color: var(--text); font-weight: 600; }
.sp-brief-queries { display: grid; gap: 6px; margin-top: 8px; }
.sp-brief-q label { width: 118px; flex: none; font-size: 11px; color: var(--text-3); }

/* ---------------- 爆品聚焦 ---------------- */
.sp-hotpicks { margin-top: 16px; }
.sp-hotpick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.sp-hotpick {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 13px 14px 12px 40px;
  border-radius: 12px;
  background: rgba(124, 139, 255, 0.06);
  border: 1px solid rgba(124, 139, 255, 0.18);
}
.sp-hotpick b { font-size: 12.5px; line-height: 1.4; }
.sp-hotpick-meta { font-size: 11px; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.sp-hotpick small { font-size: 11px; color: var(--text-3); line-height: 1.5; }
.sp-hotpick-rank {
  position: absolute; left: 10px; top: 12px;
  width: 22px; height: 22px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #0b1020;
  background: var(--accent-grad);
}
.sp-risk-list li { color: var(--text-2); }

/* ---------------- 结果聚焦动效 ---------------- */
.sp-layout.sp-dim {
  opacity: 0.32;
  filter: saturate(0.7);
  transform: scale(0.985);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.sp-layout { transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease; }
#spResultRoot.sp-focus-in > .sp-result > * {
  animation: resultFocus 0.85s var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1)) both;
}
#spResultRoot.sp-focus-in > .sp-result > *:nth-child(1) { animation-delay: 0s; }
#spResultRoot.sp-focus-in > .sp-result > *:nth-child(2) { animation-delay: 0.08s; }
#spResultRoot.sp-focus-in > .sp-result > *:nth-child(3) { animation-delay: 0.16s; }
#spResultRoot.sp-focus-in > .sp-result > *:nth-child(n+4) { animation-delay: 0.24s; }
@keyframes resultFocus {
  0% { opacity: 0; transform: translateY(26px) scale(0.965); filter: blur(4px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
/* 聚焦瞬间结果头部一道扫光，告诉用户结果在这里 */
#spResultRoot.sp-focus-in .sp-result-head {
  box-shadow: 0 0 0 1px rgba(124, 139, 255, 0.5), 0 0 46px -6px rgba(124, 139, 255, 0.65), var(--shadow);
  animation: resultHeadGlow 2s ease both;
}
@keyframes resultHeadGlow {
  0% { box-shadow: 0 0 0 0 rgba(124, 139, 255, 0.7), 0 0 60px -4px rgba(124, 139, 255, 0.9); }
  100% { box-shadow: 0 0 0 1px rgba(124, 139, 255, 0.12), 0 18px 50px -18px rgba(0, 0, 0, 0.5); }
}
.sp-history-mine {
  background: rgba(124, 139, 255, 0.14) !important;
  color: var(--accent) !important;
  border-color: rgba(124, 139, 255, 0.35) !important;
}

/* ---------------- 亮色主题微调 ---------------- */
html[data-theme-effective='light'] .sp-mode-switch { background: rgba(20, 30, 55, 0.05); }
html[data-theme-effective='light'] .sp-price-presets button { background: rgba(255, 255, 255, 0.7); }
html[data-theme-effective='light'] .sp-brief-live { background: rgba(124, 139, 255, 0.08); }
html[data-theme-effective='light'] .sp-brief-q code { background: rgba(20, 30, 55, 0.06); color: #5b4fce; }
html[data-theme-effective='light'] .sp-brief-inputs span { background: rgba(255, 255, 255, 0.7); }
html[data-theme-effective='light'] .sp-hotpick { background: rgba(124, 139, 255, 0.07); }
html[data-theme-effective='light'] .sp-tag.sp-pro { color: #047857; }
html[data-theme-effective='light'] .sp-tag.sp-con { color: #be123c; }
html[data-theme-effective='light'] .sp-tag-mock { color: #b45309; }

@media (prefers-reduced-motion: reduce) {
  .sp-orb-core, .sp-orb-ring { animation: none; }
  #spResultRoot.sp-focus-in > .sp-result > * { animation-duration: 0.01ms; }
}
