/* ============================================================
   首页样式：品牌 Hero / 指数行情条 / Feed 富卡片 / 大师策略墙 / Footer
   游戏 × 时尚 × 财经 的杂志式布局
   ============================================================ */

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  padding: 10px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: 0.02em; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 13px;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 800;
  box-shadow: var(--shadow-pop);
}
.topbar .spacer { flex: 1; }
.topbar-ticker { display: none; font-size: 14px; color: var(--ink-2); align-items: center; gap: 9px; width: 220px; flex-shrink: 0; overflow: hidden; white-space: nowrap; }
.topbar-ticker #tickerTextPc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.me-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  overflow: hidden; cursor: pointer;
  border: 2.5px solid var(--bg-card);
  box-shadow: var(--shadow-pop);
  transition: transform 0.2s;
}
.me-avatar:hover { transform: scale(1.07); }
.bell-btn { position: relative; }

/* ---------- 移动端顶栏重构：只留 logo + 搜索/我的，导航职责交给 tabbar ---------- */
.tb-search-btn { display: none; }
@media (max-width: 1023.5px) {
  .tb-nav { display: none; }
  .topbar [data-theme-toggle],
  .topbar [data-refresh],
  .topbar .bell-btn { display: none; }
  .tb-search-btn { display: grid; }
  .topbar { flex-wrap: nowrap; gap: 10px; }
}

/* ---------- 移动端首屏：温度头条置顶后的外边距 ---------- */
@media (max-width: 1023.5px) {
  #feedPane > #thermoCard { margin: 12px 16px 4px; }
}

/* ---------- 对话痕迹：来源问题条（个股页头部下沿） ---------- */
.sdt-from-chat {
  display: flex; align-items: center; gap: 6px;
  margin: 10px 16px 0; padding: 8px 12px;
  background: rgba(247,169,37,.08);
  border: 1px solid rgba(247,169,37,.25);
  border-radius: 12px;
  font-size: 12px; color: var(--ink-2);
  animation: fromChatPulse 2.2s ease-out;
}
.sdt-from-chat svg { width: 13px; height: 13px; color: var(--c-gold); flex: none; }
.sdt-from-chat .sfc-q {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 600;
}

/* ---------- 回到对话 pill（仅移动端；桌面双栏常驻不需要） ---------- */
.chat-return-pill {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 9px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-pop);
  font-family: inherit; cursor: pointer; text-align: left;
  transition: opacity .25s, transform .25s;
}
.chat-return-pill:active { transform: scale(.98); }
.crp-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: none; overflow: hidden; }
.crp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.crp-text b { font-size: 13px; font-weight: 800; color: var(--ink-1); }
.crp-preview {
  font-size: 11.5px; color: var(--ink-3);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-return-pill > svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
@media (min-width: 1024px) { .chat-return-pill { display: none; } }
body.chat-open .chat-return-pill { opacity: 0; pointer-events: none; }
/* 对话痕迹存续期间：pill 取代热区成为唯一对话入口，避免两者重叠 */
body.from-chat .hotzone { display: none; }
/* 同理：旧的 resume-tip 横幅在痕迹页让位给 pill（回到首页后恢复原有提示） */
body.from-chat .resume-tip { display: none; }

/* ---------- Hero 品牌横幅 ---------- */
.hero {
  position: relative;
  margin: 18px 16px 4px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(255, 143, 177, 0.20) 0%, transparent 55%),
    radial-gradient(120% 150% at 100% 0%, rgba(78, 168, 255, 0.18) 0%, transparent 55%),
    radial-gradient(150% 150% at 50% 120%, rgba(247, 169, 37, 0.20) 0%, transparent 60%),
    var(--bg-card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  max-width: 1080px;
}
@media (min-width: 1160px) { .hero { margin: 24px auto 4px; width: calc(100% - 44px); } }
.hero-inner {
  display: flex; align-items: center; gap: 8px;
  padding: 30px 24px 18px;
}
.hero-owl { width: 118px; height: 118px; flex: none; position: relative; }
.hero-owl::after {
  content: ""; position: absolute; inset: -22px;
  background: radial-gradient(circle, rgba(247, 169, 37, 0.35) 0%, transparent 65%);
  z-index: -1; border-radius: 50%;
  animation: owlGlow 3.6s ease-in-out infinite alternate;
}
@keyframes owlGlow { from { opacity: 0.55; transform: scale(0.92); } to { opacity: 1; transform: scale(1.06); } }
.hero-owl .avatar { width: 100%; height: 100%; border-radius: 30px; }
.hero-text { min-width: 0; flex: 1; }
.hero-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.22em;
  color: var(--c-gold); text-transform: uppercase;
}
.hero-title {
  font-size: clamp(30px, 6.4vw, 46px);
  font-weight: 900; line-height: 1.18; letter-spacing: 0.01em;
  margin: 8px 0 10px;
}
.hero-title em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 15px; color: var(--ink-2); line-height: 1.8; max-width: 46em; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 20px;
}
.hstat {
  background: var(--bg-glass);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hstat b {
  display: block;
  font-size: 24px; font-weight: 900; font-family: var(--font-num);
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hstat b .u { font-size: 13px; }
.hstat span { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }

/* Hero 回访收敛条（首访完整版见 .hero-inner） */
.hero-compact {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px;
}
.hc-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hc-avatar { width: 40px; height: 40px; border-radius: 12px; box-shadow: none; flex: none; }
.hc-text { min-width: 0; }
.hc-text b { display: block; font-size: 15px; font-weight: 800; }
.hc-text b em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hc-text span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.hc-expand {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 7px 14px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer;
  font-family: inherit;
  transition: border-color .2s, color .2s;
}
.hc-expand:hover { border-color: var(--c-gold); color: var(--c-gold); }

/* 头像游行带 */
.hero-marquee {
  border-top: 1px dashed var(--line-soft);
  padding: 13px 0;
  overflow: hidden;
  position: relative;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 36s linear infinite; }
.hero-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq-chip {
  display: flex; align-items: center; gap: 8px; flex: none;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 5px 13px 5px 5px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.mq-chip:hover { transform: translateY(-2px); border-color: var(--mqc, var(--c-gold)); }
.mq-chip .avatar { width: 30px; height: 30px; box-shadow: none; }

/* ---------- 智能选股入口条 ---------- */
.quick-guide {
  margin: 0 16px 4px;
  max-width: 1080px;
}
@media (min-width: 1160px) { .quick-guide { margin: 0 auto 4px; width: calc(100% - 44px); } }
.qg-inner {
  display: flex; gap: 10px;
}
.diag-entry {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--line-soft);
  border-radius: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.diag-entry:hover { border-color: var(--c-gold); box-shadow: var(--shadow-card); }
.diag-entry-left {
  display: flex; align-items: center; gap: 12px;
  flex: 1; min-width: 0;
}
.diag-entry-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad-brand);
  display: grid; place-items: center; flex-shrink: 0;
}
.diag-entry-icon svg { width: 22px; height: 22px; color: #fff; }
.diag-entry-text { min-width: 0; }
.diag-entry-text b {
  display: block; font-size: 15px; font-weight: 800; color: var(--ink-1);
}
.diag-entry-text span {
  display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600;
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qg-cta {
  padding: 10px 24px; border-radius: 999px;
  background: var(--grad-brand); color: #fff;
  border: none; font-size: 14px; font-weight: 800;
  font-family: inherit; cursor: pointer; flex-shrink: 0;
  box-shadow: var(--shadow-pop);
  transition: transform .2s, box-shadow .2s;
}
.qg-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(247,169,37,0.3); }

@media (max-width: 560px) {
  .diag-entry { padding: 12px 14px; gap: 10px; border-radius: 13px; }
  .diag-entry-icon { width: 36px; height: 36px; border-radius: 10px; }
  .diag-entry-icon svg { width: 18px; height: 18px; }
  .diag-entry-text b { font-size: 14px; }
  .diag-entry-text span { font-size: 11.5px; }
  .qg-cta { padding: 8px 18px; font-size: 13px; }
}

/* ---------- 指数行情条 ---------- */
.index-strip {
  display: flex; gap: 16px;
  overflow-x: auto;
  padding: 8px 18px 2px;
  scrollbar-width: none;
  max-width: 1080px;
}
.index-strip::-webkit-scrollbar { display: none; }
@media (min-width: 1160px) { .index-strip { margin: 0 auto; width: calc(100% - 44px); } }
/* 降级：去卡片、去红绿，行情只作中性参考 */
.idx {
  flex: none;
  display: flex; align-items: baseline; gap: 7px;
  padding: 3px 0;
}
.idx .idx-name { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.idx .idx-close { font-size: 13px; font-weight: 600; font-family: var(--font-num); color: var(--ink-3); }
.idx .idx-pct { font-size: 12px; font-weight: 600; font-family: var(--font-num); color: var(--ink-3); }

/* ---------- Feed 布局 ---------- */
.feed {
  display: grid; gap: 18px;
  padding: 12px 16px 26px;
  max-width: 1080px; margin: 0 auto; width: 100%;
}
.feed-section {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 2px -6px;
}
.feed-section h2 {
  font-size: 21px; font-weight: 900; letter-spacing: 0.01em;
}
.feed-section h2 i {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.feed-section .fs-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.feed-section .fs-tag { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.1em; }

/* ---------- 温度计卡片 ---------- */
.thermo-wrap { display: flex; align-items: center; gap: 24px; }
.thermo-gauge { position: relative; width: 180px; flex: none; }
.thermo-svg { display: block; max-width: 100%; height: auto; }
.thermo-num {
  position: absolute; left: 0; right: 0; bottom: 2px;
  text-align: center; pointer-events: none;
}
.thermo-num b { font-size: 38px; font-weight: 900; font-family: var(--font-num); }
.thermo-num span { display: block; font-size: 13px; color: var(--ink-3); margin-top: -2px; font-weight: 600; }
.thermo-note { flex: 1; min-width: 0; }
.thermo-note .tn-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.thermo-note p { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; margin: 12px 0 14px; }
.zone-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.zone-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
/* 头条卡：便宜行业引路 chips */
.th-ind-strip { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 14px; }
.th-ind-label { font-size: 12px; color: var(--ink-3); font-weight: 600; flex: none; }
.th-ind-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.th-ind-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700; font-family: inherit;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1.5px solid var(--line-soft);
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.th-ind-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ic, var(--c-gold)); }
.th-ind-chip b { font-family: var(--font-num); color: var(--ic, var(--c-gold)); }
.th-ind-chip:hover { border-color: var(--ic, var(--c-gold)); transform: translateY(-1px); }
.market-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px dashed var(--line-soft);
}
.mstat { text-align: center; }
.mstat b { display: block; font-size: 25px; font-weight: 900; font-family: var(--font-num); }
.mstat b .u { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.mstat span { font-size: 13px; color: var(--ink-2); font-weight: 600; }

/* ---------- 倒计时卡片 ---------- */
.count-wrap { display: flex; align-items: center; gap: 18px; }
.count-ring { position: relative; width: 92px; height: 92px; flex: none; }
.count-ring svg { transform: rotate(-90deg); }
.count-ring .cr-num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 30px; font-weight: 900; font-family: var(--font-num);
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.count-info { flex: 1; min-width: 0; }
.count-info .ci-title { font-size: 17px; font-weight: 800; }
.count-info p { font-size: 13.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.7; }

/* ---------- 金句卡片 ---------- */
.quote-card { position: relative; }
.quote-card .q-mark {
  position: absolute; top: 6px; left: 16px;
  font-size: 90px; font-weight: 900; line-height: 1;
  color: var(--c-gold); opacity: 0.16;
  font-family: Georgia, serif; pointer-events: none;
}
.quote-text {
  position: relative;
  font-size: 21px; font-weight: 800; line-height: 1.65;
  padding: 22px 8px 18px;
  letter-spacing: 0.01em;
}
.quote-from { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.quote-from .avatar { width: 46px; height: 46px; }
.quote-from .qf-name { font-size: 14.5px; font-weight: 800; }
.quote-from .qf-role { font-size: 12px; color: var(--ink-3); margin-top: 1px; }

/* ---------- 策略信号卡片 ---------- */
.signal-head { display: flex; align-items: center; gap: 15px; margin-bottom: 8px; }
.signal-head .avatar { width: 62px; height: 62px; }
.signal-meta { min-width: 0; flex: 1; }
.signal-name { font-size: 18px; font-weight: 800; }
.signal-desc { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.6; }
.signal-bt {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 4px 0 14px;
}
.bt-chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 6px 11px;
}
.bt-chip b { font-size: 15px; font-weight: 900; font-family: var(--font-num); color: var(--ink-1); }
.bt-chip.red b { color: var(--up); }
.signal-stock {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 4px; border-top: 1px dashed var(--line-soft);
  border-radius: 10px;
  transition: background 0.2s;
}
.signal-stock:hover { background: var(--bg-soft); }
.rank-no {
  width: 32px; height: 32px; border-radius: 11px; flex: none;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 900; font-family: var(--font-num); color: var(--ink-2);
}
.rank-no.top { background: var(--grad-gold); color: #fff; border: none; box-shadow: 0 4px 10px -2px rgba(247,169,37,0.5); }
.signal-stock .s-main { min-width: 0; flex: 1; }
.signal-stock .s-name { font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.signal-stock .s-ind { font-size: 12px; color: var(--ink-3); margin-top: 2px; font-weight: 600; }
.s-code-link { color: var(--c-sky); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; transition: color .15s; }
.s-code-link:hover { color: var(--c-gold); }
.s-stats {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 7px;
}
.s-stat { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.s-stat b { font-family: var(--font-num); font-weight: 800; color: var(--ink-1); margin-left: 3px; font-size: 13.5px; }
.s-score { flex: none; text-align: right; }
.s-score .sc-stars { font-size: 15px; letter-spacing: 1.5px; color: var(--c-gold); }
.s-score .sc-label { font-size: 11px; color: var(--ink-3); font-weight: 600; margin-top: 3px; }
.card-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding-top: 13px;
  border-top: 1px dashed var(--line-soft);
  font-size: 12.5px; color: var(--ink-3); font-weight: 600;
}

/* ---------- 多策略共鸣 ---------- */
.consensus-top { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.consensus-top .avatar-stack .avatar { width: 44px; height: 44px; }
.consensus-stock { min-width: 0; flex: 1; }
.cs-name { font-size: 21px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.cs-code { font-size: 12.5px; color: var(--ink-3); font-family: var(--font-num); margin-top: 2px; font-weight: 600; }
.cs-price { text-align: right; flex: none; }
.cs-price b { font-size: 24px; font-weight: 900; font-family: var(--font-num); }
.cs-price span { display: block; font-size: 13px; font-weight: 800; font-family: var(--font-num); margin-top: 1px; }
.cs-concepts { display: flex; gap: 7px; flex-wrap: wrap; margin: 13px 0 0; }
.cs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 15px 0 18px;
}
.cs-cell {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 11px 12px;
}
.cs-cell .cc-label { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.cs-cell .cc-val { font-size: 17px; font-weight: 900; font-family: var(--font-num); margin-top: 2px; }
.cs-cell .cc-val small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.consensus-note { font-size: 13.5px; color: var(--ink-2); margin: 0 0 14px; font-weight: 600; }
.consensus-bars { display: grid; gap: 2px; }
.cbar { position: relative; }
.cbar-main {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 4px; border-radius: 11px; cursor: pointer;
}
.cbar-main:hover { background: var(--bg-soft); }
.cbar-main .persona { flex: 1; min-width: 0; }
.fit-loading { font-size: 11.5px; color: var(--ink-3); }

/* ---------- 大师策略墙（游戏角色卡） ---------- */
.wall-scroll {
  display: flex; gap: 15px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.wall-scroll::-webkit-scrollbar { display: none; }
.wall-card {
  scroll-snap-align: start;
  flex: none; width: 236px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-top: 4px solid var(--wc, var(--c-gold));
  border-radius: 22px;
  padding: 20px 18px 16px;
  box-shadow: var(--shadow-card);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.wall-card:hover {
  transform: translateY(-7px) rotate(-1deg);
  box-shadow: 0 24px 48px -14px var(--wc, rgba(27,35,64,0.3));
}
.wall-card .avatar { width: 88px; height: 88px; margin: 0 auto 13px; border-radius: 24px; }
.wall-master { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--wc, var(--c-gold)); text-transform: uppercase; }
.wall-name { font-size: 17px; font-weight: 900; margin-top: 3px; }
.wall-desc {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.65;
  margin: 9px 0 13px; min-height: 61px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wall-bt {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
  margin-bottom: 13px;
}
.wall-bt .wb {
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 11px; padding: 7px 4px;
}
.wall-bt .wb b { display: block; font-size: 16px; font-weight: 900; font-family: var(--font-num); }
.wall-bt .wb span { font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.wall-tags { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.wall-more {
  scroll-snap-align: start; flex: none; width: 130px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed var(--line-strong); border-radius: 22px;
  color: var(--ink-3); font-size: 13.5px; font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}
.wall-more:hover { border-color: var(--c-gold); color: var(--c-gold); }
.wall-more svg { width: 26px; height: 26px; }

/* ---------- 行业全景 ---------- */
.pano-row {
  display: grid; grid-template-columns: 30px 76px 1fr auto; align-items: center; gap: 11px;
  padding: 11px 6px; border-top: 1px dashed var(--line-soft);
  cursor: pointer; border-radius: 10px;
  transition: background 0.2s;
}
.pano-row:hover { background: var(--bg-soft); }
.pano-row:first-of-type { border-top: none; }
.pano-row .avatar { width: 28px; height: 28px; box-shadow: none; }
.pano-name { font-size: 14.5px; font-weight: 800; }
.pano-name .pn-delta { font-size: 11.5px; font-weight: 800; font-family: var(--font-num); margin-left: 6px; }
.pano-bar { height: 14px; border-radius: 7px; background: var(--bg-soft); overflow: hidden; }
.pano-fill { height: 100%; border-radius: 7px; transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.pano-val { font-size: 14px; font-weight: 800; font-family: var(--font-num); min-width: 48px; text-align: right; }

/* ---------- 行业热度 ---------- */
.heat-scroll {
  display: flex; gap: 12px;
  overflow-x: auto; padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.heat-scroll::-webkit-scrollbar { display: none; }
.heat-chip {
  scroll-snap-align: start; flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 16px 13px; min-width: 106px;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.heat-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.heat-dot {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 16px; font-family: var(--font-num);
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.16), 0 5px 12px rgba(27,35,64,0.20);
}
.heat-name { font-size: 14px; font-weight: 800; }
.heat-delta { font-size: 12px; font-family: var(--font-num); font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 40px 22px 210px;
}
@media (min-width: 1024px) { .site-footer { padding: 46px 34px 50px; } }
.sf-inner { max-width: 1080px; margin: 0 auto; }
.sf-top { display: grid; gap: 30px; }
.sf-brand .sf-logo-row { display: flex; align-items: center; gap: 13px; }
.sf-logo {
  width: 46px; height: 46px; border-radius: 15px;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 900;
  box-shadow: var(--shadow-pop);
}
.sf-name { font-size: 19px; font-weight: 900; }
.sf-slogan {
  font-size: 13px; font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-top: 2px;
}
.sf-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; margin-top: 14px; max-width: 40em; }
.sf-masters { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.sf-masters .avatar { width: 38px; height: 38px; opacity: 0.9; transition: transform 0.2s, opacity 0.2s; }
.sf-masters .avatar:hover { transform: translateY(-3px) scale(1.08); opacity: 1; }
.sf-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sf-col h5 { font-size: 14px; font-weight: 800; margin-bottom: 12px; color: var(--ink-1); }
.sf-col a {
  display: block; font-size: 13px; color: var(--ink-2);
  padding: 5px 0; cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.sf-col a:hover { color: var(--c-gold); transform: translateX(3px); }
.sf-risk {
  margin-top: 30px; padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  font-size: 12px; color: var(--ink-3); line-height: 1.9;
}
.sf-copy {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  font-size: 12px; color: var(--ink-3); font-weight: 600;
}

/* ---------- 底部对话热区（移动端） ---------- */
.hotzone {
  position: fixed; left: 12px; right: 12px; bottom: 82px; z-index: 40;
  display: flex; align-items: center; gap: 9px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 8px 8px 7px;
  box-shadow: var(--shadow-float);
}
.hotzone .hz-history { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--ink-3); background: var(--bg-soft); }
.hotzone .hz-history svg { width: 19px; height: 19px; }
.hotzone input { flex: 1; min-width: 0; font-size: 15px; padding: 9px 4px; }
.hotzone input::placeholder { color: var(--ink-3); }
.hotzone .hz-spark { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--c-lilac); }
.hotzone .hz-spark svg { width: 21px; height: 21px; }
.send-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-pop);
  transition: transform 0.18s;
}
.send-btn:hover { transform: scale(1.08); }
.send-btn svg { width: 18px; height: 18px; }

/* ---------- 底部导航（移动端） ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  display: flex;
  background: var(--bg-glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line-soft);
  padding: 7px 8px calc(8px + env(safe-area-inset-bottom));
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; color: var(--ink-3);
  padding: 6px 0; border-radius: 12px;
  transition: color 0.2s;
}
.tab-item svg { width: 25px; height: 25px; }
.tab-item.active { color: var(--c-gold); font-weight: 800; }
.tab-item.vip { color: var(--c-gold); }

/* ---------- PC 左侧栏 ---------- */
.rail { display: none; }

/* ---------- 小屏适配 ---------- */
@media (max-width: 560px) {
  .hero-inner { padding: 24px 18px 12px; gap: 12px; }
  .hero-owl { width: 86px; height: 86px; flex: none; }
  .hero-stats { gap: 7px; margin-top: 16px; }
  .hstat { padding: 9px 4px; border-radius: 13px; }
  .hstat b { font-size: 19px; }
  .thermo-wrap { flex-direction: column; align-items: stretch; gap: 16px; }
  .thermo-gauge { width: 170px; margin: 0 auto; }
  .market-stats { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-price { text-align: left; width: 100%; display: flex; align-items: baseline; gap: 10px; }
  .s-stats { gap: 9px 13px; }
  .signal-stock { align-items: flex-start; }
  .s-score { display: none; }
  .pano-row { grid-template-columns: 26px 70px 1fr auto; gap: 8px; padding: 10px 2px; }
  .quote-text { font-size: 18.5px; }
  .card { padding: 18px; }
}

/* ---------- PC 对话面板 ---------- */
.chat-pane { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 165px; z-index: 90;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink-1); color: var(--bg-base);
  font-size: 14px; font-weight: 600;
  padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow-float);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  max-width: 84vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   PC 布局 ≥1024px
   ============================================================ */
@media (min-width: 1024px) {
  .topbar .brand { display: flex; }
  .topbar-ticker { display: flex; }

  /* 顶部导航栏 */
  .tb-nav {
    display: flex; align-items: center; gap: 2px;
    margin-left: 20px;
  }
  .tb-nav-item {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 10px;
    font-size: 13.5px; font-weight: 700; color: var(--ink-2);
    transition: color 0.2s, background 0.2s;
    border: none; background: none; cursor: pointer;
    flex-shrink: 0; white-space: nowrap;
  }
  .tb-nav-item svg { width: 18px; height: 18px; }
  .tb-nav-item:hover { color: var(--ink-1); background: var(--bg-soft); }
  .tb-nav-item.active { color: var(--c-gold); background: rgba(247, 169, 37, 0.12); }
  .tb-nav-item.vip { color: var(--c-gold); }

  .rail { display: none; }

  .stage {
    display: grid;
    grid-template-columns: minmax(400px, 40%) 1fr;
    height: 100dvh;
  }

  .chat-pane {
    display: flex; flex-direction: column;
    border-right: 1px solid var(--line-soft);
    background: var(--bg-glass);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    min-height: 0;
  }
  .chat-head {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line-soft);
  }
  .chat-head .avatar { width: 50px; height: 50px; }
  .chat-head .ch-name { font-size: 17px; font-weight: 900; }
  .chat-head .ch-status { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; font-weight: 600; }
  .chat-value {
    margin-left: auto; text-align: right;
    font-size: 12px; color: var(--ink-3); line-height: 1.7; font-weight: 600;
  }
  .chat-scroll {
    flex: 1; overflow-y: auto;
    padding: 26px 22px;
    display: flex; flex-direction: column; gap: 20px;
  }
  .msg { display: flex; gap: 12px; max-width: 94%; }
  .msg > .avatar { width: 42px; height: 42px; margin-top: 2px; }
  .bubble {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: 18px; border-top-left-radius: 7px;
    padding: 15px 17px;
    box-shadow: var(--shadow-card);
    font-size: 15px; line-height: 1.8;
  }
  .msg.user { align-self: flex-end; flex-direction: row-reverse; }
  .msg.user .bubble {
    background: var(--grad-brand); color: #fff;
    border: none; border-radius: 18px; border-top-right-radius: 7px;
  }
  .suggest-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
  .schip {
    padding: 9px 16px; border-radius: 999px;
    background: var(--bg-card);
    border: 1.5px solid var(--line-strong);
    font-size: 14px; font-weight: 700; color: var(--ink-2);
    transition: all 0.2s;
  }
  .schip:hover { border-color: var(--c-gold); color: var(--c-gold); transform: translateY(-1px); box-shadow: var(--shadow-card); }
  .chat-inputbar {
    display: flex; align-items: center; gap: 11px;
    padding: 16px 18px;
    border-top: 1px solid var(--line-soft);
  }
  .chat-inputbar .field {
    flex: 1; display: flex; align-items: center; gap: 9px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 12px 18px;
    position: relative;
    background-clip: padding-box;
    transition: box-shadow 0.2s;
  }
  .chat-inputbar .field::before {
    content: ''; position: absolute; inset: -2px; border-radius: 999px;
    background: linear-gradient(135deg, rgba(247,169,37,0.55), rgba(78,168,255,0.35), rgba(247,169,37,0.25), rgba(78,168,255,0.45), rgba(247,169,37,0.55));
    background-size: 400% 100%;
    z-index: -1; animation: inputShimmer 2.4s ease-in-out infinite;
  }
  .chat-inputbar .field:focus-within { box-shadow: 0 0 0 8px rgba(247,169,37,0.15), 0 0 36px rgba(247,169,37,0.12); }
  .chat-inputbar .field:focus-within::before {
    background: linear-gradient(135deg, rgba(247,169,37,0.7), rgba(247,169,37,0.4), rgba(247,169,37,0.7));
    background-size: 200% 100%;
    animation: inputShimmerFocus 1.2s ease-in-out infinite;
  }
  .chat-inputbar input { flex: 1; font-size: 15px; background: transparent; position: relative; z-index: 1; }
  .chat-inputbar input::placeholder { color: var(--ink-3); font-weight: 500; }
  .chat-inputbar .send-btn {
    position: relative; z-index: 1;
    background: linear-gradient(135deg, var(--c-gold), #E89820);
    color: #fff; border: none;
    box-shadow: 0 2px 12px rgba(247,169,37,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .chat-inputbar .send-btn:hover { transform: scale(1.06); box-shadow: 0 4px 20px rgba(247,169,37,0.45); }
  .chat-inputbar .send-btn[disabled] { opacity: 0.45; transform: none; background: var(--bg-soft); color: var(--ink-3); box-shadow: none; }

  .feed-pane { overflow-y: auto; }
  .feed { padding: 14px 22px 60px; }
  .hotzone, .tabbar { display: none; }

  /* 杂志式双栏网格 */
  .feed { grid-template-columns: repeat(2, 1fr); }
  .feed-section, .span2 { grid-column: span 2; }
}

/* ============================================================
   卡片内展开面板：个股快照 / 行业预览 / 策略因子 / 大师墙
   ============================================================ */

/* ---------- 个股快照（信号卡 & 共鸣卡内行展开） ---------- */
.stock-snapshot {
  margin-top: 12px; padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  animation: rise 0.3s ease both;
}
.snap-header {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.snap-stock-name { font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.snap-code { font-size: 12px; color: var(--ink-3); font-family: var(--font-num); font-weight: 600; }
.snap-price { margin-left: auto; font-size: 20px; font-weight: 900; font-family: var(--font-num); }
.snap-price span { font-size: 13px; font-weight: 800; margin-left: 6px; }
.snap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 13px 0 14px;
}
.snap-cell {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 9px 10px; text-align: center;
}
.snap-cell .snc-label { font-size: 10.5px; color: var(--ink-3); font-weight: 700; display: block; }
.snap-cell b { font-size: 17px; font-weight: 900; font-family: var(--font-num); display: block; margin-top: 3px; }
.snap-bars-label { font-size: 12px; font-weight: 800; color: var(--ink-2); margin-bottom: 8px; }
.snap-bars { display: grid; gap: 7px; }
.snap-bar-row {
  display: grid; grid-template-columns: 20px 76px 1fr 34px; align-items: center; gap: 8px;
  font-size: 12.5px;
}
.snap-bar-row .avatar { width: 20px; height: 20px; box-shadow: none; }
.snap-bar-name { font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.snap-bar-track { height: 6px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; }
.snap-bar-track i { display: block; height: 100%; border-radius: 6px; transition: width 0.6s ease; }
.snap-bar-val { font-family: var(--font-num); font-weight: 800; color: var(--ink-2); text-align: right; font-size: 12.5px; }
.snap-actions { display: flex; gap: 8px; margin-top: 13px; padding-top: 11px; border-top: 1px dashed var(--line-soft); }
.snap-chat-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  color: var(--c-gold);
  background: rgba(247,169,37,0.10);
  border: 1.5px solid rgba(247,169,37,0.35);
  padding: 8px 15px; border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.snap-chat-btn:hover { background: rgba(247,169,37,0.22); transform: scale(1.04); }
.snap-chat-btn svg { width: 14px; height: 14px; }

/* 展开行高亮 */
.signal-stock.expanded, .consensus-top.expanded {
  background: var(--bg-soft);
  border-radius: 12px;
  padding-bottom: 4px;
}

/* ---------- 行业全景行内预览 ---------- */
.pano-expand {
  grid-column: 1 / -1;
  margin-top: 10px;
  animation: rise 0.3s ease both;
}
.pano-expand-inner {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 13px 15px;
}
.pano-expand-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-2); font-weight: 600;
  padding-bottom: 10px; border-bottom: 1px dashed var(--line-soft);
}
.pano-expand-temp { font-size: 18px; font-weight: 900; font-family: var(--font-num); }
.pano-expand-best { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pano-expand-best .avatar { width: 20px; height: 20px; box-shadow: none; }
.pano-expand-stocks { padding: 8px 0 4px; }
.pano-stock-row {
  display: grid; grid-template-columns: 24px 1fr auto auto; align-items: center; gap: 9px;
  padding: 9px 4px; border-bottom: 1px dashed var(--line-soft);
}
.pano-stock-row:last-child { border-bottom: none; }
.pano-s-no {
  width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900; font-family: var(--font-num);
  background: var(--bg-soft); color: var(--ink-3);
  border: 1px solid var(--line-soft);
}
.pano-s-no.top { background: var(--grad-brand); color: #fff; border: none; }
.pano-s-name { font-size: 14px; font-weight: 800; }
.pano-s-code { font-size: 11.5px; color: var(--ink-3); font-family: var(--font-num); }
.pano-s-chg { font-size: 13px; font-weight: 800; font-family: var(--font-num); }
.pano-expand-actions { display: flex; gap: 7px; padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--line-soft); }
.pano-row.expanded { background: var(--bg-soft); border-radius: 12px; }

/* ---------- 大师策略墙：卡片内因子展开 ---------- */
.wall-card { position: relative; }
.wall-detail {
  margin-top: 12px;
  animation: rise 0.3s ease both;
}
.wall-detail-inner {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px 13px;
  text-align: left;
}
.wall-d-name { font-size: 13px; font-weight: 800; color: var(--ink-2); margin-bottom: 8px; }
.wall-detail-inner .rk-factor { padding: 7px 0; }
.wall-detail-inner .rk-factor-name { font-size: 12px; }
.wall-detail-inner .rk-factor-w { font-size: 11px; }
.wall-detail-inner .rk-factor-why { font-size: 11px; }
.wall-chat-btn {
  margin-top: 10px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  color: #fff; background: var(--grad-brand);
  padding: 9px; border-radius: 999px;
  box-shadow: var(--shadow-pop);
  transition: transform 0.18s;
}
.wall-chat-btn:hover { transform: scale(1.03); }
.wall-chat-btn svg { width: 14px; height: 14px; }

/* 策略墙内行业快选 */
.wall-ind-rank {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
}
.wall-ind-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.wall-ind-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.wall-ind-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  background: var(--bg-card);
  border: 1.5px solid var(--line-soft);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s;
}
.wall-ind-chip:hover {
  border-color: var(--ic, var(--c-gold));
  color: var(--ic, var(--c-gold));
}
.wall-ind-chip i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ic, var(--c-gold));
}
.wall-rank-result {
  margin-top: 8px;
}
.wall-rank-rows .sr-row {
  font-size: 12px;
  padding: 7px 10px;
  margin-bottom: 4px;
  border-bottom: none;
  background: var(--bg-soft);
  border-radius: 10px;
}
.wall-rank-rows .sr-stock { font-size: 12px; }
.wall-rank-rows .sr-stock b { font-size: 12.5px; }
.wall-rank-rows .sr-stats > span { font-size: 10px; }
.wall-rank-rows .sr-stats > span b { font-size: 11px; }
.wall-rank-rows .sr-code { font-size: 10px; }
.wall-rank-rows .sr-no { width: 20px; height: 20px; font-size: 10.5px; }

/* ---------- 共鸣条内展开因子 ---------- */
.cbar.expanded { background: var(--bg-soft); border-radius: 11px; padding: 6px 8px; margin: -4px -6px; }
.cbar-detail {
  width: 100%;
  margin-top: 8px;
  animation: rise 0.3s ease both;
}
.cbar-detail-inner {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  padding: 10px 13px;
}
.cbar-d-name { font-size: 12.5px; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; }
.cbar-detail-inner .rk-factor { padding: 6px 0; }
.cbar-detail-inner .rk-factor-name { font-size: 12px; }
.cbar-detail-inner .rk-factor-w { font-size: 11px; }
.cbar-detail-inner .rk-factor-why { font-size: 11px; }

/* ---------- Feed 卡片内的 rk-logic 策略逻辑面板 ---------- */
.card .rk-logic {
  margin: 6px 0 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--bg-card);
  overflow: hidden;
}
.card .rk-logic-head {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 10px 13px;
  font-size: 13px; font-weight: 800; color: var(--c-gold);
  cursor: pointer;
}
.card .rk-logic-head svg { width: 15px; height: 15px; }
.card .rk-logic-head .chev { margin-left: auto; transition: transform 0.25s; color: var(--ink-3); }
.card .rk-logic-head .chev svg { width: 14px; height: 14px; }
.card .rk-logic.open .rk-logic-head .chev { transform: rotate(180deg); }
.card .rk-logic-body { display: none; padding: 2px 13px 13px; }
.card .rk-logic.open .rk-logic-body { display: block; animation: rise 0.3s ease both; }
.card .rk-factor { padding: 8px 0; border-top: 1px dashed var(--line-soft); }
.card .rk-factor:first-child { border-top: none; }
.card .rk-factor-top { display: flex; align-items: center; gap: 9px; }
.card .rk-factor-name { font-size: 13px; font-weight: 800; }
.card .rk-factor-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; }
.card .rk-factor-bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad-brand); }
.card .rk-factor-w { font-size: 12px; font-weight: 800; color: var(--c-gold); font-family: var(--font-num); }
.card .rk-factor-why { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.7; }

/* ---- 个股 · 策略驱动的选股工具 ---- */
.stock-explorer {
  padding: 8px 16px 60px;
  max-width: 1080px; margin: 0 auto; width: 100%;
  animation: rise .35s ease both;
  box-sizing: border-box;
}
@media (min-width: 1160px) {
  .stock-explorer { padding: 18px 28px 60px; }
}

/* --- Section --- */
.se-section {
  margin-bottom: 28px;
}
.se-section-head {
  margin-bottom: 14px;
}
.se-section-head h3 {
  font-size: 18px; font-weight: 800; color: var(--ink-1);
  display: flex; align-items: center; gap: 8px;
  margin: 0;
}
.se-section-head h3 svg { width: 20px; height: 20px; color: var(--c-gold); }
.se-section-head p {
  font-size: 13px; color: var(--ink-3); margin: 4px 0 0;
}

/* --- 1. 搜索栏 --- */
.se-search-wrap {
  position: relative;
}
.se-search-input {
  width: 100%; box-sizing: border-box;
  padding: 14px 18px;
  border: 1.5px solid var(--line-soft);
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--ink-1);
  font-size: 15px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.se-search-input::placeholder { color: var(--ink-3); }
.se-search-input:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 4px rgba(247,169,37,0.10);
}
.se-search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.se-result-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid var(--line-soft);
}
.se-result-item:last-child { border-bottom: none; }
.se-result-item:hover { background: var(--bg-soft); }
.se-result-left { flex: 1; min-width: 0; }
.se-result-name {
  font-size: 15px; font-weight: 700; color: var(--ink-1);
  display: flex; align-items: center; gap: 8px;
}
.se-result-code {
  font-size: 12px; color: var(--c-sky); font-weight: 700;
  font-family: var(--font-num);
}
.se-result-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.se-result-right { text-align: right; flex-shrink: 0; margin-left: 14px; }
.se-result-price {
  font-size: 16px; font-weight: 900; color: var(--ink-1);
  font-family: var(--font-num);
}
.se-result-chg {
  font-size: 12px; font-weight: 800; font-family: var(--font-num);
}
.se-result-chg.up { color: var(--up); }
.se-result-chg.down { color: var(--down); }
.se-no-result {
  padding: 14px 16px; text-align: center;
  font-size: 13px; color: var(--ink-3);
}

/* --- 2. 大师选股 --- */
.se-chips-scroll {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.se-chips-scroll::-webkit-scrollbar { display: none; }
.se-chip {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1.5px solid var(--line-soft);
  border-radius: 100px;
  background: var(--bg-card);
  color: var(--ink-2);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.se-chip .avatar { width: 26px; height: 26px; border-radius: 50%; }
.se-chip:hover {
  border-color: var(--c-gold);
  background: rgba(247,169,37,0.06);
}
.se-chip.active {
  border-color: var(--c-gold);
  background: linear-gradient(135deg, rgba(247,169,37,0.15), rgba(255,143,177,0.10));
  color: var(--c-gold);
  box-shadow: 0 0 12px rgba(247,169,37,0.12);
}

/* Ranking */
.se-ranking-wrap { margin-top: 12px; }
.se-loading, .se-empty {
  text-align: center; padding: 28px 0;
  font-size: 14px; color: var(--ink-3);
}
.se-empty-sm {
  text-align: center; padding: 12px 0;
  font-size: 12px; color: var(--ink-3);
}
.se-ranking-head {
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 6px;
}
.se-ranking-strat {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  font-size: 14px; color: var(--ink-1);
}
.se-ranking-cols {
  display: flex; gap: 12px;
  font-size: 11px; color: var(--ink-3); font-weight: 600;
  margin-left: 36px;
}
.se-ranking-cols span { flex: 1; max-width: 72px; text-align: center; }
.se-rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px;
  cursor: pointer;
  border-radius: 10px;
  transition: background .15s;
  border-bottom: 1px solid var(--line-soft);
}
.se-rank-row:last-child { border-bottom: none; }
.se-rank-row:hover { background: var(--bg-soft); }
.se-rank-no {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  background: var(--bg-soft); color: var(--ink-3);
  flex-shrink: 0;
}
.se-rank-no.top {
  background: linear-gradient(135deg, #F7A925, #FF8FB1);
  color: #fff;
}
.se-rank-main { flex: 1; min-width: 0; }
.se-rank-name {
  font-size: 14px; font-weight: 700; color: var(--ink-1);
  display: flex; align-items: center; gap: 6px;
}
.se-rank-code {
  font-size: 11px; color: var(--c-sky); font-weight: 700;
  font-family: var(--font-num);
}
.se-rank-quote { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.se-rank-metrics {
  display: flex; gap: 12px;
  font-size: 13px; font-weight: 700; font-family: var(--font-num);
  color: var(--ink-2);
  flex-shrink: 0;
}
.se-rank-metrics span { flex: 1; min-width: 56px; max-width: 72px; text-align: center; }
.se-rank-score { font-size: 14px; }

/* --- 3. 行业温度 --- */
.se-ind-search {
  width: 100%; box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid var(--line-soft);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--ink-1);
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color .25s, box-shadow .25s;
}
.se-ind-search::placeholder { color: var(--ink-3); }
.se-ind-search:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 4px rgba(247,169,37,0.10);
}
.se-ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.se-ind-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 14px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.se-ind-card:hover {
  border-color: var(--c-gold);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.se-ind-card.followed {
  border-color: rgba(247,169,37,0.45);
  background: linear-gradient(135deg, rgba(247,169,37,0.06), transparent);
}
.se-ind-follow-btn {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: transparent;
  color: var(--ink-3); font-size: 16px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .15s;
  z-index: 2;
  line-height: 1;
}
.se-ind-follow-btn:hover {
  color: var(--c-gold);
  background: rgba(247,169,37,0.12);
}
.se-ind-follow-btn.active {
  color: var(--c-gold);
}
.se-ind-follow-btn.active:hover {
  color: var(--ink-3);
}
.se-ind-footer {
  text-align: center; padding: 8px 0 4px;
  font-size: 12px; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.se-ind-refresh {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--bg-card);
  border: 1.5px solid var(--line-strong);
  color: var(--c-gold); font-size: 13px; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.se-ind-refresh:hover {
  border-color: var(--c-gold);
  background: rgba(247,169,37,0.08);
  transform: scale(1.03);
}
.se-ind-refresh svg { width: 14px; height: 14px; }
.se-ind-top {
  display: flex; align-items: center; justify-content: space-between;
}
.se-ind-info b {
  font-size: 14px; font-weight: 700; color: var(--ink-1);
  display: block;
}
.se-ind-temp {
  font-size: 24px; font-weight: 900; font-family: var(--font-num);
}
.se-ind-bar {
  height: 4px; border-radius: 2px;
  background: var(--bg-soft);
  margin: 10px 0 6px;
  overflow: hidden;
}
.se-ind-bar i { display: block; height: 100%; border-radius: 2px; transition: width .4s; }
.se-ind-delta { font-size: 11px; }
.se-ind-delta .up { color: var(--up); }
.se-ind-delta .down { color: var(--down); }
.se-ind-expand {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.se-ind-stocks-list {
  display: flex; flex-direction: column; gap: 4px;
}
.se-ind-stock {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  font-size: 13px; color: var(--ink-2);
  cursor: pointer;
  transition: color .15s;
}
.se-ind-stock:hover { color: var(--c-gold); }
.se-ind-stock:not(:last-child) { border-bottom: 1px dashed var(--line-soft); }
.se-ind-stock .up { color: var(--up); }
.se-ind-stock .down { color: var(--down); }

/* --- 3b. 概念板块 --- */
.se-concept-search {
  width: 100%; box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid var(--line-soft);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--ink-1);
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color .25s, box-shadow .25s;
}
.se-concept-search::placeholder { color: var(--ink-3); }
.se-concept-search:focus {
  border-color: var(--c-lilac);
  box-shadow: 0 0 0 4px rgba(155,126,222,0.10);
}
.se-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.se-concept-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 14px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.se-concept-card:hover {
  border-color: var(--c-lilac);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.se-concept-card.followed {
  border-color: rgba(247,169,37,0.45);
  background: linear-gradient(135deg, rgba(247,169,37,0.06), transparent);
}
.se-concept-follow-btn {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: transparent;
  color: var(--ink-3); font-size: 16px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .15s;
  z-index: 2;
  line-height: 1;
}
.se-concept-follow-btn:hover {
  color: var(--c-gold);
  background: rgba(247,169,37,0.12);
}
.se-concept-follow-btn.active {
  color: var(--c-gold);
}
.se-concept-follow-btn.active:hover {
  color: var(--ink-3);
}
.se-concept-footer {
  text-align: center; padding: 8px 0 4px;
  font-size: 12px; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.se-concept-refresh {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--bg-card);
  border: 1.5px solid var(--line-strong);
  color: var(--c-lilac); font-size: 13px; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.se-concept-refresh:hover {
  border-color: var(--c-lilac);
  background: rgba(155,126,222,0.08);
  transform: scale(1.03);
}
.se-concept-refresh svg { width: 14px; height: 14px; }
.se-concept-expand {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.se-concept-stocks-list {
  display: flex; flex-direction: column; gap: 4px;
}
.se-concept-stock {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  font-size: 13px; color: var(--ink-2);
  cursor: pointer;
  transition: color .15s;
}
.se-concept-stock:hover { color: var(--c-lilac); }
.se-concept-stock:not(:last-child) { border-bottom: 1px dashed var(--line-soft); }
.se-concept-stock .up { color: var(--up); }
.se-concept-stock .down { color: var(--down); }

/* --- 展开列表底部：换一批 --- */
.se-expand-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; margin-top: 8px;
  border-top: 1px dashed var(--line-soft);
  font-size: 11px; color: var(--ink-3);
}
.se-expand-footer span {
  font-weight: 600;
}
.se-expand-refresh {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  color: var(--c-gold); font-size: 12px; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.se-expand-refresh:hover {
  border-color: var(--c-gold);
  background: rgba(247,169,37,0.08);
  transform: scale(1.03);
}
.se-expand-refresh svg { width: 12px; height: 12px; }

/* --- 4. 自选追踪 --- */
.se-watchlist {
  display: flex; flex-direction: column; gap: 8px;
}
.se-wl-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: all .2s;
}
.se-wl-row:hover { border-color: var(--c-gold); }
.se-wl-pending { opacity: 0.6; }
.se-wl-info { flex: 1; min-width: 0; }
.se-wl-info b {
  font-size: 15px; font-weight: 700; color: var(--ink-1);
  display: block;
}
.se-wl-code {
  font-size: 11px; color: var(--c-sky); font-weight: 700;
  font-family: var(--font-num);
  margin-left: 6px;
}
.se-wl-meta {
  display: block; font-size: 12px; color: var(--ink-3);
  margin-top: 3px; font-family: var(--font-num);
}
.se-wl-price {
  text-align: right; flex-shrink: 0;
}
.se-wl-price b {
  font-size: 16px; font-weight: 900; color: var(--ink-1);
  font-family: var(--font-num);
  display: block;
}
.se-wl-price .up { color: var(--up); }
.se-wl-price .down { color: var(--down); }
.se-wl-price span { font-size: 12px; font-weight: 700; }
.se-wl-remove {
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: transparent;
  color: var(--ink-3); font-size: 14px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .15s;
  flex-shrink: 0;
}
.se-wl-remove:hover {
  background: rgba(255,93,115,0.12);
  color: var(--c-rose);
}

/* Watchlist discovery */
.se-wl-discovery {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 14px;
}
.se-wl-discovery-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.se-wl-discovery-head span {
  font-size: 14px; font-weight: 800; color: var(--ink-1);
}
.se-wl-refresh {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg-soft);
  border: 1.5px solid var(--line-strong);
  color: var(--c-gold); font-size: 12px; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.se-wl-refresh:hover {
  border-color: var(--c-gold);
  background: rgba(247,169,37,0.08);
}
.se-wl-refresh svg { width: 12px; height: 12px; }

/* --- 小屏适配 --- */
@media (max-width: 560px) {
  .se-section-head h3 { font-size: 16px; }
  .se-search-input { padding: 12px 14px; font-size: 14px; }
  .se-ind-search { padding: 9px 12px; font-size: 13px; }
  .se-concept-search { padding: 9px 12px; font-size: 13px; }
  .se-concept-grid { grid-template-columns: repeat(2, 1fr); }
  .se-concept-card { padding: 10px 12px; }
  .se-concept-follow-btn { top: 6px; right: 6px; width: 24px; height: 24px; font-size: 14px; }
  .se-concept-refresh { padding: 6px 12px; font-size: 12px; }
  .se-ind-follow-btn { top: 6px; right: 6px; width: 24px; height: 24px; font-size: 14px; }
  .se-ind-refresh { padding: 6px 12px; font-size: 12px; }
  .se-result-item { padding: 10px 12px; }
  .se-result-name { font-size: 14px; }
  .se-result-price { font-size: 14px; }
  .se-ind-grid { grid-template-columns: repeat(2, 1fr); }
  .se-ind-card { padding: 10px 12px; }
  .se-ind-temp { font-size: 20px; }
  .se-rank-metrics { gap: 6px; font-size: 11px; }
  .se-rank-metrics span { min-width: 42px; max-width: 56px; }
  .se-rank-name { font-size: 13px; }
  .se-chip { padding: 6px 10px; font-size: 12px; }
  .se-chip .avatar { width: 22px; height: 22px; }
  .se-wl-row { padding: 10px 12px; }
  .se-wl-price b { font-size: 14px; }
  .se-expand-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
  .se-expand-refresh { padding: 5px 10px; font-size: 11px; }
}


/* ============================================================
   双栏联动：子页面进入动效 + 统一导航条 + 来自对话标记
   ============================================================ */

/* 子页面/首页内容进入：右滑淡入，感知「右侧已响应」 */
@keyframes pgIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: none; }
}
#pageContainer.pg-enter, #feed.pg-enter { animation: pgIn .32s cubic-bezier(.22,.9,.3,1); }

/* ---------- 统一子页面导航条 ---------- */
.subpage-bar {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.spb-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  padding: 7px 12px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  cursor: pointer; flex: none;
  transition: color .18s, transform .18s, border-color .18s;
}
.spb-back:hover { color: var(--ink-1); transform: translateX(-2px); border-color: var(--line-strong); }
.spb-crumb {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-3); font-weight: 600;
  min-width: 0; overflow: hidden; white-space: nowrap;
}
.spb-crumb-home { cursor: pointer; transition: color .18s; }
.spb-crumb-home:hover { color: var(--c-gold); }
.spb-crumb b { color: var(--ink-1); font-weight: 800; }
.spb-from {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 800; color: var(--c-gold);
  background: rgba(247,169,37,.12);
  border: 1px solid rgba(247,169,37,.35);
  padding: 2.5px 9px; border-radius: 999px; flex: none;
  animation: fromChatPulse 2.2s ease-out;
}
.spb-from svg { width: 11px; height: 11px; }
/* 来源问题全文：截断不撑破布局，完整内容在 title */
.spb-from .spb-q {
  max-width: min(38vw, 320px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 700;
}
@media (max-width: 560px) { .spb-from .spb-q { max-width: 32vw; } }
@keyframes fromChatPulse {
  0%   { box-shadow: 0 0 0 0 rgba(247,169,37,.55); }
  100% { box-shadow: 0 0 0 12px rgba(247,169,37,0); }
}
.subpage-bar.from-chat { box-shadow: inset 3px 0 0 var(--c-gold); }
.spb-close {
  margin-left: auto; flex: none;
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--ink-3); background: transparent;
  border: 1px solid transparent; cursor: pointer;
  transition: color .18s, background .18s;
}
.spb-close:hover { color: var(--ink-1); background: var(--bg-soft); }
.spb-close svg { width: 15px; height: 15px; }
