/* ==========================================================================
 * css/module6-xhs-yuqing.css — 模块六：《今天是太阳雨》小红书舆情样式
 * 每日舆情切换与历史归档舱 + 纯定性风险温度计 + 负面雷达与AI Prompt生成器 + 单栏切换爆款榜
 * ========================================================================== */

.xhs-yuqing-root {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
 * 顶部：每日舆情切换与历史归档舱
 * ========================================================================== */
.xhs-switcher-card {
  position: relative;
  border-radius: 16px;
  padding: 15px 18px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.055) 0%, var(--bg-elevated) 46%, rgba(2, 132, 199, 0.06) 100%);
  border: 1.5px solid var(--hairline-strong);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body[data-theme="dark"] .xhs-switcher-card {
  background: linear-gradient(135deg, rgba(244, 91, 105, 0.1) 0%, var(--bg-elevated) 48%, rgba(56, 189, 248, 0.09) 100%);
}

.xhs-switcher-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.xhs-date-select {
  padding: 5px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-panel);
  color: var(--ink-primary);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  outline: none;
}
.xhs-date-select:focus {
  border-color: var(--rose-hot);
}

.xhs-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-panel);
  color: var(--ink-primary);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: all 0.15s ease;
}
.xhs-step-btn:hover:not(:disabled) {
  border-color: var(--rose-hot);
  color: var(--rose-hot);
}
.xhs-step-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.xhs-day-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 10px;
}

.xhs-day-card {
  text-align: left;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--bg-panel);
  border: 1.5px solid var(--hairline);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: all 0.16s ease;
}
.xhs-day-card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-1px);
}
.xhs-day-card.is-active {
  background: var(--bg-elevated);
  border-color: var(--rose-hot);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.12);
}
body[data-theme="dark"] .xhs-day-card.is-active {
  border-color: #FB7185;
  box-shadow: 0 4px 16px rgba(244, 91, 105, 0.18);
}

.xhs-day-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}
.xhs-day-tag.is-latest {
  background: rgba(21, 128, 61, 0.13);
  color: var(--leaf-emerald);
}
body[data-theme="dark"] .xhs-day-tag.is-latest {
  background: rgba(74, 222, 128, 0.16);
  color: #4ADE80;
}
.xhs-day-tag.is-archive {
  background: var(--bg-elevated);
  color: var(--ink-muted);
  border: 1px solid var(--hairline);
}

.xhs-history-notice {
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(2, 132, 199, 0.09);
  border: 1px solid rgba(2, 132, 199, 0.28);
  color: var(--ink-primary);
}
body[data-theme="dark"] .xhs-history-notice {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.xhs-archive-drawer {
  border-top: 1px dashed var(--hairline-strong);
  padding-top: 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.xhs-archive-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  font-size: 12px;
}
.xhs-archive-row.is-active {
  border-color: var(--rose-hot);
  background: var(--bg-elevated);
}

.xhs-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.xhs-sec-num {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(225, 29, 72, 0.11);
  color: var(--rose-hot);
  border: 1px solid rgba(225, 29, 72, 0.24);
}
body[data-theme="dark"] .xhs-sec-num {
  background: rgba(244, 91, 105, 0.16);
  color: #FB7185;
  border-color: rgba(244, 91, 105, 0.3);
}

.xhs-sec-title {
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

.xhs-sec-sub {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ==========================================================================
 * 板块 01：纯定性舆情风险温度计 & 四维体感探针
 * ========================================================================== */
.xhs-hero-banner {
  position: relative;
  border-radius: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.06) 0%, var(--bg-panel) 52%, rgba(21, 128, 61, 0.06) 100%);
  border: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body[data-theme="dark"] .xhs-hero-banner {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, var(--bg-panel) 52%, rgba(74, 222, 128, 0.08) 100%);
}

.xhs-risk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(2, 132, 199, 0.13);
  color: var(--rain-cyan);
  border: 1px solid rgba(2, 132, 199, 0.35);
}
body[data-theme="dark"] .xhs-risk-pill {
  background: rgba(56, 189, 248, 0.16);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.36);
}

/* 可视化四档冷暖温度计刻度条 */
.xhs-thermo-box {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px 10px;
}

.xhs-thermo-track-wrap {
  position: relative;
  padding: 8px 0 4px;
}

.xhs-thermo-track {
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0284C7 0%, #15803D 28%, #D97706 62%, #EA580C 82%, #E11D48 100%);
  position: relative;
}

.xhs-thermo-pointer {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 3.5px solid var(--rain-cyan);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.45);
}

.xhs-thermo-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-muted);
}
.xhs-thermo-labels span.is-current {
  color: var(--rain-cyan);
  font-weight: 700;
}
body[data-theme="dark"] .xhs-thermo-labels span.is-current {
  color: #38BDF8;
}

.xhs-alert-strip {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--status-amber-bg);
  color: var(--status-amber-text);
  border: 1px solid rgba(217, 119, 6, 0.28);
}
body[data-theme="dark"] .xhs-alert-strip {
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.13);
  border-color: rgba(245, 158, 11, 0.3);
}

.xhs-summary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.xhs-summary-item {
  min-width: 0;
  max-width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  overflow-wrap: anywhere;
}
.xhs-summary-item strong {
  color: var(--ink-primary);
}

/* 4 张定性体感探针卡 */
.xhs-probe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.xhs-probe-card {
  min-width: 0;
  max-width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--card-shadow);
  overflow-wrap: anywhere;
}

.xhs-weather-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.xhs-sub-panel {
  min-width: 0;
  max-width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 13px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-wrap: anywhere;
}

.xhs-struct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.xhs-struct-card {
  min-width: 0;
  max-width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: anywhere;
}

.xhs-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.xhs-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  background: var(--bg-panel);
  color: var(--ink-primary);
  border: 1px solid var(--hairline);
}
.xhs-tag-chip small {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 0.5px 5px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--ink-muted);
}

/* 分段切换胶囊组 */
.xhs-seg-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  background: var(--bg-panel);
  padding: 3px;
  border-radius: 9px;
  border: 1px solid var(--hairline);
}

.xhs-seg-btn {
  padding: 4.5px 11px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.xhs-seg-btn:hover {
  color: var(--ink-primary);
}
.xhs-seg-btn.is-active {
  background: var(--bg-inner);
  color: var(--rose-hot);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
body[data-theme="dark"] .xhs-seg-btn.is-active {
  color: #FB7185;
}

/* ==========================================================================
 * 板块 02：负面舆情与争议雷达 + 舆情回应话术生成器
 * ========================================================================== */
.xhs-neg-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xhs-neg-card {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 13px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.xhs-neg-card.is-selected {
  border-color: var(--rose-hot);
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.2);
}
.xhs-neg-card[data-severity="watch"] {
  border-left: 4px solid #EA580C;
}
.xhs-neg-card[data-severity="debate"] {
  border-left: 4px solid var(--sun-gold);
}
.xhs-neg-card[data-severity="resolved"] {
  border-left: 4px solid var(--rain-cyan);
}
.xhs-neg-card .ea-badge {
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.xhs-sev-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.xhs-sev-badge.is-watch {
  background: rgba(234, 88, 12, 0.13);
  color: #C2410C;
  border: 1px solid rgba(234, 88, 12, 0.3);
}
body[data-theme="dark"] .xhs-sev-badge.is-watch {
  background: rgba(251, 146, 60, 0.16);
  color: #FB923C;
}
.xhs-sev-badge.is-debate {
  background: var(--status-amber-bg);
  color: var(--status-amber-text);
  border: 1px solid rgba(217, 119, 6, 0.3);
}
body[data-theme="dark"] .xhs-sev-badge.is-debate {
  color: #FBBF24;
}
.xhs-sev-badge.is-resolved {
  background: rgba(2, 132, 199, 0.12);
  color: var(--rain-cyan);
  border: 1px solid rgba(2, 132, 199, 0.28);
}
body[data-theme="dark"] .xhs-sev-badge.is-resolved {
  color: #38BDF8;
}

.xhs-neg-duel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.xhs-voice-box {
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.xhs-voice-box.is-neg {
  background: rgba(225, 29, 72, 0.055);
  border: 1px solid rgba(225, 29, 72, 0.2);
}
body[data-theme="dark"] .xhs-voice-box.is-neg {
  background: rgba(244, 91, 105, 0.09);
  border-color: rgba(244, 91, 105, 0.24);
}
.xhs-voice-box.is-reb {
  background: rgba(21, 128, 61, 0.06);
  border: 1px solid rgba(21, 128, 61, 0.22);
}
body[data-theme="dark"] .xhs-voice-box.is-reb {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.24);
}
.xhs-neg-card.is-site-notice {
  border-left: 4px solid var(--leaf-emerald);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.04) 0%, var(--bg-elevated) 55%, rgba(21, 128, 61, 0.05) 100%);
}
body[data-theme="dark"] .xhs-neg-card.is-site-notice {
  border-left-color: #34D399;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, var(--bg-elevated) 55%, rgba(52, 211, 153, 0.08) 100%);
}
.xhs-voice-box.is-notice-why {
  background: rgba(2, 132, 199, 0.055);
  border: 1px solid rgba(2, 132, 199, 0.2);
}
body[data-theme="dark"] .xhs-voice-box.is-notice-why {
  background: rgba(56, 189, 248, 0.09);
  border-color: rgba(56, 189, 248, 0.24);
}
.xhs-voice-box.is-notice-guide {
  background: rgba(21, 128, 61, 0.06);
  border: 1px solid rgba(21, 128, 61, 0.22);
}
body[data-theme="dark"] .xhs-voice-box.is-notice-guide {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.24);
}
.xhs-link-btn.xhs-notice-cta {
  background: rgba(2, 132, 199, 0.12);
  color: var(--rain-cyan);
  border-color: rgba(2, 132, 199, 0.34);
  font-weight: 700;
}
.xhs-link-btn.xhs-notice-cta:hover {
  background: var(--rain-cyan);
  color: #FFFFFF;
  border-color: var(--rain-cyan);
}
body[data-theme="dark"] .xhs-link-btn.xhs-notice-cta {
  background: rgba(56, 189, 248, 0.16);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.36);
}
body[data-theme="dark"] .xhs-link-btn.xhs-notice-cta:hover {
  background: #38BDF8;
  color: #082F49;
  border-color: #38BDF8;
}
.xhs-voice-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  min-width: 0;
}
.xhs-voice-speaker {
  flex: 1 1 170px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.xhs-voice-stats {
  flex: 0 1 auto;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.xhs-neg-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--hairline);
  font-size: 12px;
}

/* 舆情回应话术生成器工作台 */
.xhs-reply-studio {
  border-radius: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.05) 0%, var(--bg-panel) 50%, rgba(217, 119, 6, 0.06) 100%);
  border: 1.5px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body[data-theme="dark"] .xhs-reply-studio {
  background: linear-gradient(135deg, rgba(244, 91, 105, 0.09) 0%, var(--bg-panel) 50%, rgba(245, 185, 82, 0.08) 100%);
}

.xhs-topic-pill {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--ink-secondary);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: all 0.15s ease;
}
.xhs-topic-pill:hover {
  border-color: var(--rose-hot);
  color: var(--ink-primary);
}
.xhs-topic-pill.is-active {
  background: var(--rose-hot);
  color: #FFFFFF;
  border-color: var(--rose-hot);
}

.xhs-quote-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--bg-elevated);
  color: var(--ink-primary);
  border: 1px solid var(--hairline-strong);
  font-size: 12.5px;
  line-height: 1.5;
  outline: none;
}
.xhs-quote-input:focus {
  border-color: var(--rose-hot);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.xhs-reply-textarea {
  width: 100%;
  min-height: 235px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--bg-elevated);
  color: var(--ink-primary);
  border: 1px solid var(--hairline-strong);
  font-size: 12.5px;
  line-height: 1.66;
  resize: vertical;
  outline: none;
}
.xhs-reply-textarea:focus {
  border-color: var(--rose-hot);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.xhs-taboo-tip {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 12px;
  background: rgba(225, 29, 72, 0.07);
  color: var(--status-rose-text);
  border: 1px solid rgba(225, 29, 72, 0.2);
}
body[data-theme="dark"] .xhs-taboo-tip {
  color: #FDA4AF;
  background: rgba(244, 91, 105, 0.12);
}

/* 原帖直达与操作按钮 */
.xhs-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-panel);
  color: var(--ink-primary);
  border: 1px solid var(--hairline-strong);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.xhs-link-btn:hover {
  background: var(--rose-hot);
  color: #FFFFFF;
  border-color: var(--rose-hot);
}

.xhs-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--rose-hot);
  color: #FFFFFF;
  border: 1px solid var(--rose-hot);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.xhs-primary-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ==========================================================================
 * 板块 03 / 04 / 05：派系网格、单视图爆款榜与高赞路人漏斗
 * ========================================================================== */
.xhs-faction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.xhs-faction-card {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 13px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.xhs-heat-track {
  height: 5px;
  border-radius: 999px;
  background: var(--bg-panel);
  overflow: hidden;
}
.xhs-heat-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sun-gold), var(--rose-hot));
}

.xhs-quote-item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-panel);
  border-left: 3px solid var(--sun-gold);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-primary);
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: transform 0.15s ease, border-left-color 0.15s ease;
}
.xhs-quote-item:hover {
  transform: translateX(2px);
  border-left-color: var(--rose-hot);
}

/* 单视图切换榜单（两列清爽卡片网格，不再左右双榜并列挤压） */
.xhs-single-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.xhs-post-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: border-color 0.15s ease;
}
.xhs-post-row:hover {
  border-color: var(--hairline-strong);
}
.xhs-post-row.is-has-site-note {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.xhs-post-row-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.xhs-site-note-trigger-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 3px;
}
.xhs-site-note-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: #B45309;
  background: rgba(217, 119, 6, 0.11);
  border: 1px solid rgba(217, 119, 6, 0.34);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.xhs-site-note-btn:hover {
  background: rgba(217, 119, 6, 0.18);
  border-color: rgba(217, 119, 6, 0.55);
}
.xhs-site-note-btn.is-open {
  background: rgba(217, 119, 6, 0.2);
  border-color: rgba(217, 119, 6, 0.55);
}
body[data-theme="dark"] .xhs-site-note-btn {
  color: #FCD34D;
  background: rgba(245, 185, 82, 0.14);
  border-color: rgba(245, 185, 82, 0.36);
}
body[data-theme="dark"] .xhs-site-note-btn:hover,
body[data-theme="dark"] .xhs-site-note-btn.is-open {
  background: rgba(245, 185, 82, 0.22);
  border-color: rgba(245, 185, 82, 0.58);
}
.xhs-site-note-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--sun-gold);
  flex-shrink: 0;
}
.xhs-site-note-card {
  border-radius: 10px;
  padding: 13px 15px;
  background: linear-gradient(155deg, rgba(254, 243, 199, 0.42) 0%, var(--bg-panel) 62%, rgba(224, 242, 254, 0.32) 100%);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-left: 3.5px solid var(--sun-gold);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--ink-primary);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.xhs-site-note-card[hidden] {
  display: none;
}
body[data-theme="dark"] .xhs-site-note-card {
  background: linear-gradient(155deg, rgba(245, 185, 82, 0.11) 0%, var(--bg-panel) 62%, rgba(56, 189, 248, 0.08) 100%);
  border-color: rgba(245, 185, 82, 0.3);
  border-left-color: #F5B952;
}
.xhs-site-note-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--hairline-strong);
}
.xhs-site-note-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
}
.xhs-site-note-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--ink-muted);
  border: 1px solid var(--hairline);
}
.xhs-site-note-card p {
  margin: 0;
  color: var(--ink-secondary);
}
.xhs-site-note-strong {
  color: var(--ink-primary);
  font-weight: 700;
}
.xhs-site-note-quote {
  margin: 2px 0;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border-left: 3px solid var(--rose-hot);
  color: var(--ink-primary);
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.65;
}
.xhs-site-note-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}
.xhs-site-note-close {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  background: transparent;
  border: 0;
  padding: 2px 4px;
  cursor: pointer;
}
.xhs-site-note-close:hover {
  color: var(--ink-primary);
}

.xhs-rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-panel);
  color: var(--ink-secondary);
  border: 1px solid var(--hairline);
}
.xhs-rank-badge.is-top1 {
  background: rgba(225, 29, 72, 0.15);
  color: var(--rose-hot);
  border-color: rgba(225, 29, 72, 0.38);
}
.xhs-rank-badge.is-top2 {
  background: rgba(217, 119, 6, 0.16);
  color: var(--sun-gold);
  border-color: rgba(217, 119, 6, 0.38);
}
.xhs-rank-badge.is-top3 {
  background: rgba(2, 132, 199, 0.15);
  color: var(--rain-cyan);
  border-color: rgba(2, 132, 199, 0.35);
}

.xhs-engage-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(2, 132, 199, 0.1);
  color: var(--rain-cyan);
  border: 1px solid rgba(2, 132, 199, 0.25);
}
body[data-theme="dark"] .xhs-engage-pill {
  background: rgba(56, 189, 248, 0.14);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.3);
}

.xhs-funnel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.xhs-funnel-col {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 13px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* 响应式与 412px 手机模拟适配 */
@media (max-width: 1023px) {
  .xhs-probe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .xhs-weather-grid,
  .xhs-faction-grid,
  .xhs-single-board-grid,
  .xhs-funnel-grid,
  .xhs-summary-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 639px) {
  .xhs-day-strip,
  .xhs-neg-duel,
  .xhs-struct-grid,
  .xhs-probe-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .xhs-thermo-labels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 10px;
    gap: 4px 6px;
  }
}

body.is-mobile-sim .xhs-day-strip,
body.is-mobile-sim .xhs-probe-grid,
body.is-mobile-sim .xhs-weather-grid,
body.is-mobile-sim .xhs-struct-grid,
body.is-mobile-sim .xhs-neg-duel,
body.is-mobile-sim .xhs-faction-grid,
body.is-mobile-sim .xhs-single-board-grid,
body.is-mobile-sim .xhs-funnel-grid,
body.is-mobile-sim .xhs-summary-list {
  grid-template-columns: minmax(0, 1fr) !important;
}
body.is-mobile-sim .xhs-thermo-labels {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  font-size: 10px !important;
  gap: 4px 6px !important;
}

/* 顶部快捷定位条（桌面端完整返回+目录；真手机 <=767px 无论独立页还是首页切换进舆情，均将 01~05 并入顶部冻结行左侧并去掉多余空白；412px 模拟因有退出预览按钮保留单行胶囊条） */
.xhs-jump-full {
  display: inline;
}
.xhs-jump-short {
  display: none;
}
.xhs-header-jumps {
  display: none;
}
.xhs-header-jump-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.3;
  padding: 4px 6.5px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-panel);
  color: var(--ink-primary);
  cursor: pointer;
}
.xhs-header-jump-btn.is-active {
  border-color: rgba(225, 29, 72, 0.42);
  background: rgba(225, 29, 72, 0.08);
  color: var(--rose-hot);
  font-weight: 600;
}
body[data-theme="dark"] .xhs-header-jump-btn.is-active {
  border-color: rgba(251, 113, 133, 0.42);
  background: rgba(251, 113, 133, 0.12);
}

@media (max-width: 767px) {
  body.xhs-standalone-page:not(.is-mobile-sim) .ea-header-actions,
  body[data-active-view="xhs"]:not(.is-mobile-sim) .ea-header-actions {
    overflow-x: visible !important;
    padding-left: 8px;
    padding-right: 8px;
  }
  body[data-active-view="xhs"]:not(.is-mobile-sim) #btnClockPill,
  body[data-active-view="xhs"]:not(.is-mobile-sim) #btnDecodeAll {
    display: none !important;
  }
  body.xhs-standalone-page:not(.is-mobile-sim) .xhs-header-jumps,
  body[data-active-view="xhs"]:not(.is-mobile-sim) .xhs-header-jumps {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.xhs-standalone-page:not(.is-mobile-sim) .xhs-top-bar,
  body[data-active-view="xhs"]:not(.is-mobile-sim) .xhs-top-bar {
    display: none !important;
  }
  body.xhs-standalone-page:not(.is-mobile-sim) main,
  body[data-active-view="xhs"]:not(.is-mobile-sim) main {
    padding-top: 12px !important;
  }
  body.xhs-standalone-page:not(.is-mobile-sim) #mount-xhs-yuqing,
  body[data-active-view="xhs"]:not(.is-mobile-sim) #mount-xhs-yuqing {
    margin-top: 0 !important;
  }
  .xhs-top-bar {
    padding: 6px 8px !important;
    border-radius: 11px !important;
  }
  .xhs-top-brand,
  .xhs-jump-switcher {
    display: none !important;
  }
  .xhs-top-jumps {
    width: 100%;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px !important;
  }
  .xhs-jump-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1.35;
  }
  .xhs-jump-full {
    display: none;
  }
  .xhs-jump-short {
    display: inline;
  }
}

@media (max-width: 389px) {
  body.xhs-standalone-page:not(.is-mobile-sim) .xhs-header-jumps,
  body[data-active-view="xhs"]:not(.is-mobile-sim) .xhs-header-jumps {
    gap: 2.5px;
  }
  body.xhs-standalone-page:not(.is-mobile-sim) .xhs-header-jump-btn,
  body[data-active-view="xhs"]:not(.is-mobile-sim) .xhs-header-jump-btn {
    font-size: 9.8px;
    padding: 4px 4.5px;
    letter-spacing: -0.02em;
  }
}

body.is-mobile-sim .xhs-header-jumps {
  display: none !important;
}
body.is-mobile-sim .xhs-top-bar {
  padding: 6px 8px !important;
  border-radius: 11px !important;
}
body.is-mobile-sim .xhs-top-brand,
body.is-mobile-sim .xhs-jump-switcher {
  display: none !important;
}
body.is-mobile-sim .xhs-top-jumps {
  width: 100%;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 5px !important;
}
body.is-mobile-sim .xhs-jump-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  line-height: 1.35;
}
body.is-mobile-sim .xhs-jump-full {
  display: none;
}
body.is-mobile-sim .xhs-jump-short {
  display: inline;
}
