/* 首页：品牌馆（GEO 诊断 / 全屏诊断对话 / 报告）、AI 搭子工作台、对话抽屉。 */

/* ==========================================================================
   外壳与顶部三段
   ========================================================================== */

/* 全屏页去掉 app-view 的底栏预留，避免多出一段空白可滚动区域。 */
.app-view.full-screen-page { padding-bottom: 0; }

.home-root { min-height: 100vh; min-height: 100dvh; background: #fff; }
.home-content { padding-top: 52px; }

.home-nav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 30;
  width: 100%;
  max-width: var(--sheet);
  transform: translateX(-50%);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.8) blur(16px);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
}
.home-nav::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: rgba(238, 241, 247, 0.95);
}
.home-nav .nav-icon { width: 36px; height: 36px; color: var(--ink); }
.home-nav .seg { padding: 3px; background: #F1F3F8; }
.home-nav .seg-item { height: 28px; padding: 0 13px; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.home-nav .seg-item.is-active { background: var(--brand-grad); box-shadow: 0 4px 11px rgba(80, 110, 230, 0.3); }

.home-page {
  padding: 0 14px calc(104px + env(safe-area-inset-bottom));
  background: #fff;
}

.home-section { margin-top: 20px; }
.home-section .section-head { margin-bottom: 10px; }
.home-section .section-title { font-size: 16.5px; font-weight: 900; letter-spacing: -0.35px; }
.home-section .section-title span { font-size: 10.5px; color: var(--sub); font-weight: 500; }
.link-more { display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; color: var(--sub); font-size: 11px; font-weight: 600; }

/* ==========================================================================
   品牌馆
   ========================================================================== */

.diag-page { padding-bottom: 40px; }

.diag-hero {
  min-height: calc(100vh - 52px - 64px - env(safe-area-inset-bottom));
  min-height: calc(100dvh - 52px - 64px - env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px 110px;
  text-align: center;
}
.diag-hero h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: -0.45px;
  white-space: nowrap;
}
.diag-hero h1 em { color: var(--brand); font-style: normal; }
.diag-hero p {
  margin: 12px 0 0;
  color: var(--sub);
  font-size: 12px;
  line-height: 1.72;
  letter-spacing: 0.1px;
}
.diag-form { width: 100%; margin: 30px 0 0; }
.diag-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 6px 6px 6px 12px;
  border-radius: 16px;
  border: 1px solid #D9E4F7;
  background: #fff;
  box-shadow: 0 10px 24px rgba(63, 110, 240, 0.10);
}
.diag-input-wrap:focus-within { border-color: rgba(63, 142, 247, 0.55); box-shadow: 0 10px 26px rgba(63, 110, 240, 0.16); }
.diag-input-icon { flex: 0 0 auto; display: grid; place-items: center; color: var(--muted); }
.diag-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 2px;
  border: 0;
  outline: none;
  background: none;
  font-size: 16px;
  color: var(--ink);
  text-overflow: ellipsis;
}
.diag-input::placeholder { color: #AAB2C0; }
.diag-submit {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: #101B30;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
}
.diag-submit:active { transform: scale(0.97); }
.diag-submit:disabled { opacity: 0.6; }

.diag-samples {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11.5px;
}
.diag-samples .mini-chip {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #F3F5F9;
  color: #5A6578;
  font-size: 11.5px;
  font-weight: 500;
}
.diag-samples .mini-chip:active { background: #ECEFF5; }

.diag-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 11.5px;
}
.proof-avatars { display: inline-flex; align-items: center; }
.proof-avatars .ava { margin-left: -7px; border: 2px solid #fff; }
.proof-avatars .ava:first-child { margin-left: 0; }
.diag-proof b { color: var(--ink); font-size: 13.5px; font-weight: 900; letter-spacing: -0.2px; }
.diag-proof em { display: inline-flex; align-items: center; gap: 1px; color: var(--green); font-style: normal; font-size: 10.5px; font-weight: 700; }

/* 监测品牌 / 最近报告 */
.brand-list { display: flex; flex-direction: column; gap: 8px; }
.brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 15px;
  background: #F7F8FB;
  text-align: left;
}
.brand-row:active { background: #F1F4F9; }
.brand-mark-sm {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.brand-copy { flex: 1; min-width: 0; }
.brand-copy strong { display: block; font-size: 13.5px; font-weight: 800; }
.brand-copy span { display: block; margin-top: 2px; font-size: 10px; color: var(--sub); }
.brand-score { flex: 0 0 auto; margin-right: 3px; text-align: right; }
.brand-score b { display: block; font-size: 15px; font-weight: 900; color: var(--brand-deep); letter-spacing: -0.3px; }
.brand-score span { display: block; margin-top: 1px; font-size: 9px; color: var(--faint); }
.brand-row .ico { color: var(--faint); }

.recent-reports { display: flex; flex-direction: column; gap: 8px; }
.recent-report {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--border);
  text-align: left;
  box-shadow: 0 3px 10px rgba(16, 27, 48, 0.03);
}
.recent-report:active { background: #FAFBFD; }
.recent-score {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.recent-copy { flex: 1; min-width: 0; }
.recent-copy strong { display: block; font-size: 13.5px; font-weight: 800; }
.recent-copy span { display: block; margin-top: 2px; font-size: 10px; color: var(--sub); }
.recent-report .ico { color: var(--faint); }
.recent-empty {
  padding: 16px 14px;
  border-radius: 15px;
  border: 1px dashed #E6EAF2;
  background: #FAFBFD;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.diag-dimensions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.diag-dimensions .dim {
  padding: 13px 8px 12px;
  border-radius: 15px;
  background: #F7F8FB;
  border: 1px solid #F0F2F7;
  text-align: center;
}
.dim-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 7px;
  border-radius: 12px;
  background: #EDF3FF;
  color: var(--brand-deep);
}
.dim strong { display: block; font-size: 13px; font-weight: 800; }
.dim span:last-child { display: block; margin-top: 3px; font-size: 9.5px; color: var(--sub); line-height: 1.45; }

/* ==========================================================================
   全屏诊断对话
   ========================================================================== */

.diag-chat-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: #F7F8FB;
}
.diag-chat-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.diag-ai-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #4F95F8, #5B5BE6);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 5px 13px rgba(80, 110, 230, 0.26);
}
.diag-ai-avatar.sm { width: 26px; height: 26px; border-radius: 50%; font-size: 12px; }
.diag-chat-titles { flex: 1; min-width: 0; }
.diag-chat-titles strong { display: block; font-size: 14.5px; font-weight: 900; letter-spacing: -0.2px; }
.diag-chat-titles span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--role-muted, #8A94A6); }
.diag-chat-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #F3F5F9;
  color: var(--sub);
}
.diag-chat-close:active { background: #ECEFF5; }

.diag-chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.diag-row { display: flex; align-items: flex-start; gap: 8px; }
.diag-row.is-user { justify-content: flex-end; }
.diag-card {
  flex: 0 1 auto;
  max-width: calc(100% - 34px);
  padding: 12px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(16, 27, 48, 0.03);
}
.diag-card.is-result { border-color: #D7E4FF; }
.diag-card.is-error { border-color: #F7D5CF; background: #FFF9F7; }
.diag-copy { margin: 0; font-size: 13px; line-height: 1.66; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.diag-steps-card { margin-top: 11px; padding: 11px; border-radius: 12px; background: #F5F7FB; }
.diag-steps { display: flex; flex-direction: column; gap: 8px; }
.diag-step { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.diag-step-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.4px solid #D8DEE9;
  color: transparent;
}
.diag-step.is-done { color: var(--ink); }
.diag-step.is-done .diag-step-ico { border-color: transparent; background: var(--green); color: #fff; }
.diag-step.is-done .diag-step-ico svg { width: 10px; height: 10px; stroke-width: 3; }
.diag-step-bar { height: 5px; margin-top: 11px; border-radius: 999px; background: #E8EDF6; overflow: hidden; }
.diag-step-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand-grad); transition: width 0.45s ease; }
.diag-step-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; color: var(--faint); font-size: 9.5px; }
.diag-step-meta em { font-style: normal; }
.diag-platforms { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.diag-platform {
  padding: 4px 8px;
  border-radius: 999px;
  background: #F3F5F9;
  color: var(--sub);
  font-size: 9.5px;
  font-weight: 600;
}
.diag-platform.is-done { color: var(--green); background: #EAF8EF; }
.diag-platform.is-wait { color: var(--faint); }

.diag-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 11px;
  padding: 11px 0;
  border-radius: 12px;
  background: #F5F7FB;
}
.diag-stats div { position: relative; text-align: center; }
.diag-stats div + div::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; background: #E9EEF7; }
.diag-stats b { display: block; font-size: 15px; font-weight: 900; letter-spacing: -0.3px; }
.diag-stats span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--muted); }
.diag-report-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 7px 13px;
  border-radius: 12px;
  background: var(--brand-grad);
  color: #fff;
  text-align: left;
  box-shadow: 0 6px 16px rgba(80, 110, 230, 0.28);
}
.diag-report-btn > span { flex: 1; min-width: 0; }
.diag-report-btn b { display: block; font-size: 12.5px; font-weight: 800; }
.diag-report-btn em { display: block; margin-top: 1px; font-style: normal; font-size: 9.5px; color: rgba(255, 255, 255, 0.82); }
.diag-note { margin: 9px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; }
.diag-user-bubble {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 15px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 5px 14px rgba(80, 110, 230, 0.22);
}
.diag-typing { display: flex; gap: 4px; padding: 5px 3px; }
.diag-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); animation: diagDot 1.1s infinite ease-in-out; }
.diag-typing i:nth-child(2) { animation-delay: 0.15s; }
.diag-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes diagDot { 0%, 80%, 100% { opacity: 0.35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.diag-retry { margin-top: 10px; height: 34px; padding: 0 14px; border-radius: 10px; background: #101B30; color: #fff; font-size: 12px; font-weight: 700; }
.diag-empty { margin: 40px auto; color: var(--sub); font-size: 12.5px; text-align: center; }

.diag-composer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--divider);
}
.diag-composer input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  outline: none;
}
.diag-composer input::placeholder { color: var(--faint); }
.diag-composer input:disabled { background: #F7F8FB; }
.diag-send {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #C8D2E4;
  color: #fff;
}
.diag-send:not(:disabled) { background: var(--brand-grad); box-shadow: 0 5px 14px rgba(80, 110, 230, 0.28); }
.diag-send:disabled { opacity: 0.9; }

/* ==========================================================================
   AI 搭子工作台
   ========================================================================== */

.agent-page { padding-bottom: 168px; }
.agent-brief { padding: 24px 6px 0; }
.agent-brief h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 900; letter-spacing: -0.9px; color: #0B0B0C; }
.agent-brief p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.65; color: #6E6E75; }
.agent-brief p b { color: #00C060; font-weight: 800; }
.quick-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; overflow-x: auto; padding: 1px 0 2px; scrollbar-width: none; }
.quick-row::-webkit-scrollbar { display: none; }
.quick-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  border: 0.8px solid transparent;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.12s;
}
.quick-chip:active { transform: scale(0.97); }
.quick-green { color: #0B7A3D; background: #E8F8EF; border-color: #C9EEDB; box-shadow: 0 2px 6px rgba(11, 122, 61, 0.07); }
.quick-blue { color: #1D4E8F; background: #EAF1FF; border-color: #D2E2FF; box-shadow: 0 2px 6px rgba(29, 78, 143, 0.07); }
.quick-orange { color: #9C4B10; background: #FFF2E6; border-color: #FFDFC6; box-shadow: 0 2px 6px rgba(156, 75, 16, 0.07); }

.agent-card {
  margin-top: 16px;
  padding: 14px;
  border-radius: 19px;
  background: #F5F6F8;
}
.agent-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 0;
  text-align: left;
}
.agent-card-title { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 900; letter-spacing: -0.35px; color: #0B0B0C; }
.agent-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
}
.agent-pill.green { color: #00A050; background: #E8F8EF; }
.agent-count { font-style: normal; font-size: 15px; font-weight: 900; letter-spacing: 0; }
.agent-count.blue { color: #2F7BF0; }
.head-chev { color: #A9A9B0; }
.head-link { display: grid; place-items: center; width: 28px; height: 28px; margin: -4px -4px -4px 0; border-radius: 50%; }
.head-link:active { background: rgba(16, 27, 48, 0.05); }
.agent-all-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 999px;
  background: #E8E9ED;
  color: #5A5A60;
  font-size: 11.5px;
  font-weight: 500;
}

/* 面基局 */
.meetup-hero-card {
  margin-top: 12px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 192, 96, 0.14);
  box-shadow: 0 6px 16px rgba(0, 192, 96, 0.06);
  overflow: hidden;
  cursor: pointer;
}
.meetup-cover { position: relative; height: 190px; overflow: hidden; background: #101B30; }
.meetup-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.16) 58%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
.meetup-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
.cover-host {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px 0 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0B0B0C;
  font-size: 9px;
  font-weight: 800;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cover-host .ava { font-size: 8px !important; }
.cover-host small { color: rgba(11, 11, 12, 0.62); font-size: 8px; font-weight: 500; }
.cover-status {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  padding: 0 7px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #00A050;
  font-size: 9px;
  font-weight: 700;
}
.cover-time {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cover-distance {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 8.5px;
  font-weight: 500;
}
.cover-distance b { color: #fff; font-weight: 700; }

.meetup-hero-body { padding: 12px; }
.meetup-hero-body h3 { margin: 0; font-size: 14px; line-height: 1.42; font-weight: 800; color: #0B0B0C; letter-spacing: -0.2px; }
.meetup-loc { display: flex; align-items: center; gap: 4px; margin: 7px 0 0; color: #9A9AA1; font-size: 10.5px; }
.meetup-desc { margin: 8px 0 0; color: #6E6E75; font-size: 11.5px; line-height: 1.65; }
.meetup-foot { display: flex; align-items: center; gap: 7px; margin-top: 12px; min-height: 24px; }
.meetup-foot > span:not(.cta-chip) { color: #9A9AA1; font-size: 9.5px; }
.meetup-price {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #FFF2E6;
  color: #F08A24 !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
}

/* 商机与交付推进 */
.pipeline-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.lead-item {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(240, 138, 36, 0.14);
  box-shadow: 0 5px 14px rgba(240, 138, 36, 0.05);
  text-align: left;
}
.lead-item.lead-b { border-color: rgba(47, 123, 240, 0.12); box-shadow: 0 5px 14px rgba(47, 123, 240, 0.05); }
.lead-item:active { background: #FCFDFF; }
.lead-head { display: flex; align-items: center; gap: 8px; width: 100%; }
.lead-sq {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.grad-a { background: linear-gradient(135deg, #FFC24A, #F08A24); }
.grad-b { background: linear-gradient(135deg, #5AA7FF, #2F7BF0); }
.lead-title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 800; color: #0B0B0C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.mini-tag.orange { color: #F08A24; background: rgba(240, 138, 36, 0.10); }
.mini-tag.green { color: #0D9B5F; background: rgba(13, 155, 95, 0.10); }
.lead-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #EAF1FF;
  color: #2F7BF0;
  font-size: 9.5px;
  font-weight: 600;
}
.lead-body { display: block; margin: 8px 0 0 34px; color: #6E6E75; font-size: 12px; line-height: 1.62; }
.lead-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 0 34px; }
.lead-deadline { display: inline-flex; align-items: center; gap: 5px; color: #F08A24; font-size: 11.5px; font-weight: 600; }
.lead-media { gap: 6px; }
.lead-media img { width: 38px; height: 48px; border-radius: 7px; object-fit: cover; display: block; box-shadow: 0 0 0 0.6px rgba(255, 255, 255, 0.6) inset; }
.cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.cta-chip.orange { color: #F08A24; background: rgba(240, 138, 36, 0.10); }
.cta-chip.blue { color: #2F7BF0; background: rgba(47, 123, 240, 0.10); }
.lead-media .cta-chip { margin-left: auto; }

/* AI 风向与政策直达 */
.trends-card { padding-bottom: 14px; }
.trend-item {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(240, 106, 29, 0.12);
  box-shadow: 0 5px 14px rgba(240, 106, 29, 0.05);
  text-align: left;
}
.trend-item + .trend-item { border-color: rgba(13, 155, 95, 0.12); box-shadow: 0 5px 14px rgba(13, 155, 95, 0.05); }
.trend-item:active { background: #FCFDFF; }
.trend-head { display: flex; align-items: center; gap: 8px; width: 100%; }
.trend-ico { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #fff; }
.grad-viral { background: linear-gradient(135deg, #FFB03A, #F06A1D); }
.grad-policy { background: linear-gradient(135deg, #3FD98A, #0D9B5F); }
.trend-title { font-size: 12.5px; font-weight: 800; color: #0B0B0C; }
.trend-chev { margin-left: auto; color: #B6B6BC; }
.trend-body { display: block; margin: 8px 0 0 36px; color: #6E6E75; font-size: 12px; line-height: 1.62; }
.trend-time { display: flex; align-items: center; gap: 5px; margin: 7px 0 0 36px; color: #9A9AA1; font-size: 9.5px; }

.agent-spacer { height: 26px; }

/* 固定指令条 */
.agent-composer {
  position: fixed;
  left: 50%;
  bottom: calc(64px + env(safe-area-inset-bottom) + 10px);
  z-index: 36;
  width: calc(100% - 28px);
  max-width: 392px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #E7EBEF;
  box-shadow: 0 10px 26px rgba(16, 27, 48, 0.10), 0 2px 6px rgba(16, 27, 48, 0.04);
  transform: translateX(-50%);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.agent-composer input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 4px;
  border: 0;
  outline: none;
  background: none;
  font-size: 16px;
  color: #0B0B0C;
  text-overflow: ellipsis;
}
.agent-composer input::placeholder { color: #9A9AA1; }
.composer-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0B0B0C;
}
.composer-icon:active { background: #F3F4F1; }
.composer-send {
  flex: 0 0 auto;
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform 0.14s;
}
.composer-send:active { transform: scale(0.94); }
.composer-send.is-default { background: #0B0B0C; color: #fff; }
.composer-send.is-default i {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00C060;
}
.composer-send.is-active {
  display: none;
  background: linear-gradient(135deg, #00C060, #0D9B5F);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 192, 96, 0.32);
}
.agent-composer.has-text .composer-send.is-default { display: none; }
.agent-composer.has-text .composer-send.is-active { display: grid; }

/* ==========================================================================
   AI 搭子面板
   ========================================================================== */

.a-panel { padding: 16px 16px 4px; }
.a-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.a-panel-titles strong { display: block; font-size: 16px; font-weight: 900; letter-spacing: -0.25px; color: #0B0B0C; }
.a-panel-titles span { display: block; margin-top: 2px; font-size: 9.5px; color: #9A9AA1; }
.a-panel-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #F5F6F8;
  color: #6E6E75;
}
.a-panel-close:active { background: #ECEFF3; }
.a-panel-note { margin: 12px 0 6px; color: #9A9AA1; font-size: 9.5px; line-height: 1.6; }

.a-todo-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.a-todo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #EDEFF2;
}
.a-todo-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; }
.a-todo-copy { flex: 1; min-width: 0; }
.a-todo-copy b { display: block; font-size: 12px; font-weight: 900; font-family: "SF Mono", ui-monospace, Menlo, monospace; letter-spacing: -0.2px; color: #0B0B0C; }
.a-todo-copy span { display: block; margin-top: 3px; color: #6E6E75; font-size: 13px; line-height: 1.5; }
.a-todo.is-done .a-todo-copy span { color: #9A9AA1; text-decoration: line-through; }
.a-todo-check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid #C9CDD3;
  color: #fff;
}
.a-todo-check.is-done { border-color: #00C060; background: #00C060; }
.a-todo-add { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.a-todo-add input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 0;
  outline: none;
  border-radius: 999px;
  background: #F5F6F8;
  color: #0B0B0C;
  font-size: 16px;
}
.a-todo-add input::placeholder { color: #9A9AA1; }
.a-todo-plus {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 4px 10px rgba(80, 110, 230, 0.28);
}

.a-idea-title { margin: 16px 0 0; font-size: 14px; line-height: 1.5; font-weight: 800; color: #0B0B0C; }
.a-steps { display: flex; flex-direction: column; gap: 11px; margin-top: 13px; }
.a-step { display: flex; align-items: flex-start; gap: 10px; }
.a-step > span {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #E8F8EF;
  color: #00A050;
  font-size: 11px;
  font-weight: 900;
}
.a-step b { display: block; font-size: 13px; font-weight: 800; color: #0B0B0C; }
.a-step p { margin: 3px 0 0; color: #6E6E75; font-size: 12px; line-height: 1.65; }

.a-hot-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.a-hot-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border-radius: 13px;
  border: 1px solid #F0F1F4;
  background: #fff;
  text-align: left;
}
.a-hot-row:active { background: #FAFBFD; }
.a-hot-rank {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #F3F5F9;
  color: #8A94A6;
  font-size: 10px;
  font-weight: 800;
}
.a-hot-rank.rank-1 { background: #FFF0E5; color: #F06A1D; }
.a-hot-rank.rank-2 { background: #FFF6DF; color: #D9930D; }
.a-hot-rank.rank-3 { background: #EDF3FF; color: #2F7BF0; }
.a-hot-copy { flex: 1; min-width: 0; }
.a-hot-title { display: block; font-size: 12.5px; font-weight: 700; color: #0B0B0C; line-height: 1.5; }
.hot-flag {
  display: inline-flex;
  align-items: center;
  height: 15px;
  margin-left: 5px;
  padding: 0 4px;
  border-radius: 4px;
  font-style: normal;
  font-size: 8.5px;
  font-weight: 700;
  vertical-align: 1px;
}
.hot-flag.hot { color: #F06A1D; background: #FFF0E5; }
.hot-flag.new { color: #2F7BF0; background: #EDF3FF; }
.hot-flag.up { color: #0D9B5F; background: #EAF8EF; }
.a-hot-desc { display: block; margin-top: 3px; color: #8A94A6; font-size: 10.5px; line-height: 1.55; }
.a-hot-chev { flex: 0 0 auto; margin-top: 4px; color: #C2C8D2; }

.a-tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; margin-top: 16px; }
.a-tool { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; }
.a-tool-ico {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.a-tool-check {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #00C060;
  color: #fff;
  font-style: normal;
}
.a-tool-check svg { width: 8px; height: 8px; stroke-width: 3; }
.a-tool-name { font-size: 10px; font-weight: 500; color: #0B0B0C; white-space: nowrap; }
.a-tool:active .a-tool-ico { transform: scale(0.94); }

/* AI 合伙人对话（整屏面板） */
.a-chat-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: #fff; }
.a-chat-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  border-bottom: 1px solid #EBEEF2;
}
.a-chat-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #E8F8EF;
  color: #00A050;
}
.a-chat-titles { flex: 1; min-width: 0; }
.a-chat-titles strong { display: block; font-size: 13.5px; font-weight: 800; color: #0B0B0C; }
.a-chat-titles span { display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.a-chat-titles i { width: 4px; height: 4px; border-radius: 50%; background: #00C060; }
.a-chat-titles i.thinking { background: #F08A24; }
.a-chat-titles em { font-style: normal; font-size: 9px; color: #6E6E75; }
.a-chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.a-chat-row { display: flex; align-items: flex-start; gap: 8px; }
.a-chat-row.is-user { justify-content: flex-end; }
.a-chat-mini {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #E8F8EF;
  color: #00A050;
}
.a-chat-bubble {
  max-width: 78%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.72;
  white-space: pre-wrap;
  word-break: break-word;
}
.a-chat-bubble.ai { background: #F5F6F8; color: #0B0B0C; }
.a-chat-bubble.user { background: #0B0B0C; color: #fff; box-shadow: 0 4px 12px rgba(11, 11, 12, 0.16); }
.a-chat-typing { display: flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #F5F6F8; }
.a-chat-typing i { width: 4px; height: 4px; border-radius: 50%; background: #9A9AA1; animation: chatDot 1.1s infinite ease-in-out; }
.a-chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.a-chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: 0.35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.a-chat-warn {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 9px;
  border-radius: 9px;
  background: #FFF7E6;
  color: #8A6D1D;
  font-size: 10px;
  line-height: 1.55;
}
.a-chat-warn svg { flex: 0 0 auto; margin-top: 1px; color: #B8860B; }
.a-chat-composer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #EBEEF2;
  background: #fff;
}
.a-chat-composer input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #E7EBEF;
  background: #fff;
  color: #0B0B0C;
  font-size: 16px;
  outline: none;
}
.a-chat-composer input::placeholder { color: #9A9AA1; }
.a-chat-send {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0B0B0C;
  color: #fff;
}

/* ==========================================================================
   对话抽屉
   ========================================================================== */

.conv-drawer.dr-drawer {
  position: absolute;
  left: max(0px, calc(50% - 210px));
  top: 0;
  width: min(302px, 86vw);
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: none;
  border-radius: 0 22px 22px 0;
  background: #fff;
  box-shadow: 18px 0 50px rgba(16, 27, 48, 0.18);
  animation: drawerIn 0.24s ease;
  overflow: hidden;
}
.dr-profile {
  flex: 0 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 16px 14px;
  background: linear-gradient(180deg, #EDF4FF 0%, #F7FAFF 100%);
}
.dr-profile-top { display: flex; align-items: center; gap: 10px; }
.dr-profile-copy { flex: 1; min-width: 0; }
.dr-profile-name { display: flex; align-items: center; gap: 5px; }
.dr-profile-name strong { font-size: 16px; font-weight: 900; color: var(--ink); }
.dr-profile-copy em { display: block; margin-top: 3px; font-style: normal; font-size: 11px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
}
.dr-stats {
  display: flex;
  margin-top: 12px;
  padding: 11px 0;
  border-radius: 13px;
  background: #fff;
  border: 1px solid #E6ECFB;
}
.dr-stats > div { flex: 1; text-align: center; }
.dr-stats > div + div { border-left: 1px solid #F0F3FA; }
.dr-stats b { display: block; font-size: 16px; font-weight: 900; letter-spacing: -0.3px; color: var(--ink); }
.dr-stats span { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); }

.dr-search {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  margin: 14px 16px 2px;
  padding: 0 11px;
  border-radius: 999px;
  background: #F5F7FB;
  color: var(--muted);
}
.dr-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 16px; color: var(--ink); }
.dr-search input::placeholder { color: var(--faint); font-size: 12.5px; }

.dr-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 8px 10px; }
.dr-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 8px 6px; }
.dr-section-head > span { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.dr-section-head svg { color: var(--green); }
.dr-section-head em { font-style: normal; font-size: 10px; font-weight: 500; color: var(--muted); }
.dr-section-head button { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 8px; border-radius: 999px; background: #F5F7FB; color: var(--sub); font-size: 10.5px; font-weight: 600; }
.dr-conv {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 8px;
  border-radius: 13px;
  background: #fff;
  text-align: left;
}
.dr-conv + .dr-conv { margin-top: 2px; }
.dr-conv:active { background: #FAFBFD; }
.dr-conv[hidden] { display: none !important; }
.dr-ava-wrap { position: relative; flex: 0 0 auto; }
.dr-unread {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1.5px solid #fff;
  background: #F04444;
  color: #fff;
  font-style: normal;
  font-size: 8.5px;
  line-height: 12px;
  text-align: center;
}
.dr-unread.sys { position: static; margin-left: auto; flex: 0 0 auto; }
.dr-conv-copy { flex: 1; min-width: 0; }
.dr-conv-title { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-group { font-style: normal; font-size: 8.5px; font-weight: 600; color: #3F7FDB; background: #EDF4FF; border-radius: 5px; padding: 1px 4px; }
.dr-conv-preview { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-conv-time { flex: 0 0 auto; align-self: flex-start; margin-top: 2px; font-size: 10.5px; color: var(--faint); }
.dr-conv-time.is-live { align-self: center; margin: 0; color: #00A050; font-weight: 600; }
.dr-ai { background: #F6FBF8; }
.dr-ai .dr-conv-title { color: #0B7A3D; }
.dr-ai-tag { font-style: normal; font-size: 8px; font-weight: 800; color: #fff; background: #00C060; border-radius: 4px; padding: 1px 4px; }
.dr-ai-ava {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8F8EF, #D6F3E3);
  color: #00A050;
}
.dr-sys { margin-top: 6px; }
.dr-sys-ava {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-grad);
  color: #fff;
}
.dr-empty { padding: 22px 0; text-align: center; color: var(--muted); font-size: 11.5px; }

.dr-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 18px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--divider);
  background: #fff;
}
.dr-footer span { display: block; font-size: 10px; color: var(--faint); }
.dr-footer b { display: block; margin-top: 3px; font-size: 15px; font-weight: 900; color: var(--ink); letter-spacing: -0.3px; }
.dr-footer .credits { color: var(--brand-deep); }
.dr-footer > div:last-child { text-align: right; }

/* ==========================================================================
   GEO 报告弹层
   ========================================================================== */

.rep-sheet-head { border-bottom: 1px solid var(--divider); }
.report-sheet-body { padding: 2px 16px 20px; }
.rep-brand-head { display: flex; align-items: flex-start; gap: 11px; padding: 10px 0 14px; }
.rep-brand-copy { flex: 1; min-width: 0; }
.rep-brand-copy strong { display: block; font-size: 16px; font-weight: 900; letter-spacing: -0.3px; line-height: 1.35; color: var(--ink); }
.rep-brand-copy span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.rep-brand-copy em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 9.5px; font-weight: 600; color: var(--brand-deep); }

.rep-hero {
  padding: 15px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #3F8EF7 0%, #4F7DEF 52%, #5B5BE6 100%);
  box-shadow: 0 12px 26px rgba(63, 110, 240, 0.24);
}
.rep-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rep-hero-label { font-size: 11.5px; color: rgba(255, 255, 255, 0.72); }
.rep-hero-rate { display: flex; align-items: baseline; gap: 2px; margin-top: 3px; }
.rep-hero-rate b { font-size: 34px; line-height: 1.1; font-weight: 900; letter-spacing: -0.8px; }
.rep-hero-rate small { font-size: 16px; font-weight: 900; color: rgba(255, 255, 255, 0.8); }
.rep-hero-sub { display: block; margin-top: 3px; font-size: 10.5px; color: rgba(255, 255, 255, 0.75); }
.rep-mention-ring {
  --pct: 0;
  flex: 0 0 auto;
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#fff calc(var(--pct) * 1%), rgba(255, 255, 255, 0.22) 0);
}
.rep-mention-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4D86F1, #5B63E7);
}
.rep-mention-ring > div { position: relative; text-align: center; }
.rep-mention-ring b { display: block; font-size: 17px; font-weight: 900; letter-spacing: -0.3px; }
.rep-mention-ring span { display: block; font-size: 9px; color: rgba(255, 255, 255, 0.7); }

.rep-lights { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.rep-light { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.13); font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.88); }
.rep-light i { width: 6px; height: 6px; border-radius: 50%; }
.rep-light i.green { background: #34D399; }
.rep-light i.orange { background: #FBBF24; }
.rep-light i.red { background: #F87171; }
.rep-light i.gray { background: rgba(255, 255, 255, 0.45); }

.rep-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
  padding: 12px 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}
.rep-metrics.second { margin-top: 10px; padding: 8px 0 0; background: none; }
.rep-metric { position: relative; padding: 0 5px; text-align: center; }
.rep-metrics:not(.second) .rep-metric + .rep-metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.rep-metric span { display: block; font-size: 10px; color: rgba(255, 255, 255, 0.66); }
.rep-metric b { display: block; margin-top: 2px; font-size: 17px; font-weight: 900; letter-spacing: -0.3px; color: #fff; }
.rep-metric em { display: block; margin-top: 2px; font-style: normal; font-size: 8.5px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rep-verdict { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 13px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--border); }
.rep-verdict svg { flex: 0 0 auto; margin-top: 2px; color: var(--brand); }
.rep-verdict p { margin: 0; font-size: 12.5px; line-height: 1.72; color: var(--ink); }

.rep-card { margin-top: 14px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--border); }
.rep-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rep-card-head h3 { margin: 0; font-size: 14px; font-weight: 900; letter-spacing: -0.25px; color: var(--ink); }
.rep-card-head h4 { margin: 0; font-size: 13px; font-weight: 800; }
.rep-card-head span { font-size: 10.5px; color: var(--faint); }
.rep-card-head.sub { margin-top: 14px; }
.rep-desc { margin: 7px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.68; }
.rep-muted { margin: 8px 0 0; color: var(--faint); font-size: 11px; }
.rep-footnote { margin: 9px 0 0; color: var(--faint); font-size: 9.5px; line-height: 1.65; }
.rep-note-line { display: flex; align-items: flex-start; gap: 8px; margin-top: 9px; }
.rep-note-line svg { flex: 0 0 auto; margin-top: 1px; color: var(--gold); }
.rep-note-line p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.68; }

.rep-platform-list { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.rep-platform-row { display: grid; grid-template-columns: 66px 1fr 46px 44px; align-items: center; gap: 8px; }
.rep-platform-name { font-size: 11.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-track { display: block; height: 7px; border-radius: 999px; background: #F0F3F9; overflow: hidden; }
.rep-track i { display: block; height: 100%; border-radius: inherit; background: var(--brand-grad); }
.rep-track i.green { background: #0D9B5F; }
.rep-track i.red { background: #E0A0A0; }
.rep-track i.gray { background: #9AA3B2; }
.rep-platform-count { font-size: 10.5px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.rep-platform-rate { font-size: 11.5px; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

.rep-intent-list { display: flex; flex-direction: column; gap: 11px; margin-top: 12px; }
.rep-intent-row { display: grid; grid-template-columns: 88px 1fr 40px; align-items: center; gap: 9px; }
.rep-intent-name { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.rep-intent-name em { display: block; margin-top: 2px; font-style: normal; font-size: 9.5px; font-weight: 400; color: var(--faint); }
.rep-intent-row > b { font-size: 12px; font-weight: 900; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

.rep-p0-badge { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 999px; background: #E0533D; color: #fff !important; font-size: 9.5px !important; font-weight: 900; }
.rep-gap-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.rep-gap-summary .gap { padding: 10px 4px; border-radius: 10px; text-align: center; }
.rep-gap-summary .gap.red { background: #FDECEC; }
.rep-gap-summary .gap.gold { background: #FFF6DF; }
.rep-gap-summary .gap.green { background: #EAF8EF; }
.rep-gap-summary b { display: block; font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rep-gap-summary .gap.red b { color: #D9534F; }
.rep-gap-summary .gap.gold b { color: #D9930D; }
.rep-gap-summary .gap.green b { color: #0D9B5F; }
.rep-gap-summary span { display: block; margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.rep-gap-list { margin-top: 6px; }
.rep-gap-row { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--divider); }
.rep-gap-row:last-child { border-bottom: 0; }
.p0-tag { flex: 0 0 auto; margin-top: 1px; padding: 2px 5px; border-radius: 4px; background: #E0533D; color: #fff; font-size: 9px; font-weight: 900; }
.rep-gap-row p { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--ink); }
.rep-gap-row span { display: block; margin-top: 3px; font-size: 10px; color: var(--faint); }

.rep-source-list { margin-top: 6px; }
.rep-source-row { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--divider); }
.rep-source-row:last-child { border-bottom: 0; }
.rep-source-domain { flex: 0 0 118px; min-width: 0; }
.rep-source-domain b { display: block; font-size: 12px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-source-domain span { display: block; margin-top: 2px; font-size: 10px; color: var(--brand-deep); }
.rep-source-row p { flex: 1; min-width: 0; margin: 0; font-size: 10.5px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rep-source-row em { flex: 0 0 auto; font-style: normal; font-size: 12px; font-weight: 900; color: var(--ink); }
.rep-pref-list { display: flex; flex-direction: column; gap: 8px; margin-top: 9px; }
.rep-pref-row { display: grid; grid-template-columns: 64px 56px 48px 1fr; align-items: center; gap: 6px; }
.rep-pref-row b { font-size: 11px; color: var(--ink); font-weight: 500; }
.rep-pref-row span { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rep-pref-row em { font-style: normal; font-size: 10.5px; color: var(--faint); }
.rep-pref-row em.ok { color: var(--green); }
.rep-pref-row i { font-style: normal; font-size: 10px; color: var(--faint); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rep-chain { margin-top: 8px; }
.rep-chain-row { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; }
.rep-chain-row > b { flex: 0 0 26px; font-size: 15px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.rep-chain-row strong { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.rep-chain-row span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--faint); }
.rep-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.rep-mini-stats > div { text-align: center; }
.rep-mini-stats b { display: block; font-size: 13px; font-weight: 900; color: var(--muted); }
.rep-mini-stats span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--faint); }

.rep-more { margin-left: 3px; padding: 0; color: var(--brand); font-size: 10.5px; font-weight: 600; }
.rep-facts { margin-top: 4px; }
.rep-fact-row { padding: 9px 0; border-bottom: 1px solid var(--divider); }
.rep-fact-row:last-child { border-bottom: 0; }
.rep-facts:not(.is-open) .rep-fact-row:nth-child(n+6) { display: none; }
.rep-fact-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rep-fact-top b { font-size: 12px; font-weight: 600; color: var(--ink); }
.rep-fact-top em { flex: 0 0 auto; padding: 2px 6px; border-radius: 999px; font-style: normal; font-size: 9.5px; font-weight: 700; }
.tone-green { color: #0D9B5F !important; background: rgba(13, 155, 95, 0.11); }
.tone-orange { color: #C25E12 !important; background: rgba(240, 106, 29, 0.11); }
.tone-red { color: #D9534F !important; background: rgba(217, 83, 79, 0.11); }
.tone-gray { color: #8A94A6 !important; background: #F1F4F9; }
.rep-fact-row p { margin: 4px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; }

.rep-score-row { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.rep-score-ring {
  --score: 0;
  flex: 0 0 auto;
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from -90deg, #4F95F8 0 calc(var(--score) * 1%), #F0F3F9 0);
}
.rep-score-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.rep-score-ring > div { position: relative; text-align: center; }
.rep-score-ring b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -0.6px; color: var(--ink); }
.rep-score-ring span { display: block; margin-top: -1px; font-size: 9px; color: var(--faint); }
.rep-score-copy > div { display: flex; align-items: center; gap: 6px; }
.rep-grade { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: rgba(217, 83, 79, 0.12); color: #D9534F; font-style: normal; font-size: 13px; font-weight: 900; }
.rep-score-copy > div span { font-size: 10px; color: var(--faint); }
.rep-score-copy p { margin: 6px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--muted); }
.rep-layers { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.rep-layer { display: grid; grid-template-columns: 132px 1fr 34px 26px; align-items: center; gap: 8px; }
.rep-layer-name { font-size: 11.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.rep-layer-name em { display: block; margin-top: 1px; font-style: normal; font-size: 9.5px; font-weight: 400; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-layer > b { font-size: 11px; font-weight: 900; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.rep-layer > i { font-style: normal; font-size: 9.5px; text-align: right; color: var(--faint); }

.rep-negative-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.rep-negative-row b { font-size: 11.5px; font-weight: 600; }
.rep-negative-row em { font-style: normal; padding: 2px 6px; border-radius: 999px; font-size: 9.5px; font-weight: 700; }

.rep-sentiment { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.rep-sentiment-row { display: grid; grid-template-columns: 30px 1fr 36px 44px; align-items: center; gap: 8px; }
.rep-sentiment-row > span { font-size: 11.5px; color: var(--muted); }
.rep-sentiment-row em { font-style: normal; font-size: 10px; color: var(--faint); text-align: right; }
.rep-sentiment-row b { font-size: 11.5px; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

.rep-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.rep-action { padding: 11px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.rep-action-top { display: flex; align-items: center; gap: 6px; }
.rep-action-top em { font-style: normal; padding: 2px 6px; border-radius: 999px; color: #fff; font-size: 9.5px; font-weight: 900; }
.pri-red { background: #D9534F; }
.pri-gold { background: #D9930D; }
.rep-action-top span { font-size: 10px; color: var(--faint); }
.rep-action-top b { margin-left: auto; padding: 2px 6px; border-radius: 999px; background: #F5F7FB; color: var(--muted); font-size: 9.5px; font-weight: 500; }
.rep-action > p { margin: 7px 0 0; font-size: 12px; line-height: 1.62; color: var(--ink); }
.rep-action-line { display: flex; align-items: flex-start; gap: 5px; margin-top: 4px; }
.rep-action-line b { flex: 0 0 auto; font-size: 9.5px; font-weight: 800; color: var(--green); }
.rep-action-line:last-child b { color: var(--faint); }
.rep-action-line span { font-size: 10px; line-height: 1.55; color: var(--muted); }

.rep-advice { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.rep-advice-row { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border-radius: 11px; background: #F7F8FB; }
.rep-advice-row em { flex: 0 0 auto; padding: 2px 5px; border-radius: 999px; color: #fff; font-style: normal; font-size: 9px; font-weight: 900; margin-top: 1px; }
.rep-advice-row b { display: block; font-size: 12px; font-weight: 600; color: var(--ink); }
.rep-advice-row p { margin: 3px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--muted); }

.rep-plat-list { display: flex; flex-direction: column; gap: 8px; margin-top: 9px; }
.rep-plat-row { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--divider); }
.rep-plat-row:first-child { border-top: 0; padding-top: 2px; }
.rep-plat-row > b { font-size: 11px; font-weight: 600; color: var(--ink); }
.rep-plat-row span { display: block; font-size: 10.5px; color: var(--sub); line-height: 1.5; }
.rep-plat-row em { display: block; margin-top: 2px; font-style: normal; font-size: 9.5px; color: var(--faint); line-height: 1.5; }

.rep-footnote-block { margin-top: 16px; padding: 0 2px 6px; }
.rep-footnote-block b { display: block; font-size: 10px; font-weight: 800; color: var(--faint); }
.rep-footnote-block p { margin: 4px 0 0; font-size: 9.5px; line-height: 1.65; color: var(--faint); }
.rep-footnote-block span { display: block; margin-top: 6px; font-size: 9.5px; color: var(--faint); }

.rep-download {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  margin: 16px 0 4px auto;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(80, 110, 230, 0.42);
}
.rep-download:active { transform: scale(0.97); }

/* ---------- 宽度适配 ---------- */
@media (max-width: 360px) {
  .diag-hero h1 { font-size: 18.5px; }
  .agent-brief h1 { font-size: 26px; }
  .meetup-cover { height: 176px; }
  .rep-platform-row { grid-template-columns: 60px 1fr 40px 40px; }
  .rep-layer { grid-template-columns: 112px 1fr 32px 24px; }
}

/* ---------- 跨模块仍在使用的通用小样式（历史位于 home.css） ---------- */
.cover-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.cover-badge-green { background: #E9F8EF; color: #138A4E; }

.gate-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.gate-list li { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; color: #4B566B; line-height: 1.55; }
.gate-list li .ico { flex: 0 0 auto; color: var(--green); margin-top: 2px; }

.detail-block { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--divider); }
.detail-block h3 { margin: 0 0 7px; font-size: 13.5px; font-weight: 800; }
.detail-block p { margin: 0; font-size: 11.5px; line-height: 1.72; color: #4B566B; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; }

@media (min-width: 480px) {
  .home-nav { top: 18px; border-radius: 26px 26px 0 0; }
  .agent-composer { bottom: calc(18px + 64px + 10px); }
  .conv-drawer.dr-drawer { top: 18px; height: calc(100% - 18px); border-radius: 0 28px 28px 0; }
}
