/* ══════════════════════════════════════════════════════════
   modules.css — Module 01（宏观经济）& Module 02（情报台）
   共享设计系统
   字体依赖：Space Grotesk / Inter / JetBrains Mono
   变量依赖：style.css :root（--ease-out, --spring）
══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ────────────────────────────────────── */
:root {
  --mc-bg:          #ffffff;
  --mc-border:      rgba(20, 18, 40, 0.07);
  --mc-shadow:      0 1px 3px rgba(20, 18, 40, 0.05), 0 1px 2px rgba(20, 18, 40, 0.03);
  --mc-shadow-h:    0 4px 16px rgba(20, 18, 40, 0.08), 0 2px 6px rgba(20, 18, 40, 0.04);
  --mc-radius:      12px;
  --mc-pad:         clamp(14px, 1.5vw, 18px);
  --mc-gap:         clamp(10px, 1.1vw, 13px);
  --mc-inner:       10px;
  --mg-gap:         clamp(12px, 1.4vw, 18px);
  --mc-metric-gap:  clamp(6px, 0.7vw, 9px);

  --mp-color:       #3B6FD9;
  --mp-color-h:     #2E5BB5;
  --mp-bg:          rgba(59, 111, 217, 0.08);
  --mp-bg-hover:    rgba(59, 111, 217, 0.14);

  --mt-primary:     #1A1A2E;
  --mt-secondary:   #6B6B80;
  --mt-muted:       #9B9BB0;

  --ms-up:          #22A06B;
  --ms-down:        #DC4C4C;
  --ms-warn:        #C08500;
  --ms-up-bg:       rgba(34, 160, 107, 0.09);
  --ms-down-bg:     rgba(220, 76, 76, 0.09);
  --ms-warn-bg:     rgba(192, 133, 0, 0.09);

  --mi-bg:          #F8F7F5;
  --mi-border:      rgba(20, 18, 40, 0.05);
}

body.dark-mode {
  --mc-bg:          rgba(255, 255, 255, 0.055);
  --mc-border:      rgba(255, 255, 255, 0.09);
  --mc-shadow:      0 1px 4px rgba(0, 0, 0, 0.20), 0 1px 2px rgba(0, 0, 0, 0.14);
  --mc-shadow-h:    0 6px 20px rgba(0, 0, 0, 0.30), 0 2px 8px rgba(0, 0, 0, 0.18);
  --mp-bg:          rgba(59, 111, 217, 0.16);
  --mp-bg-hover:    rgba(59, 111, 217, 0.24);
  --mt-primary:     rgba(255, 255, 255, 0.90);
  --mt-secondary:   rgba(255, 255, 255, 0.52);
  --mt-muted:       rgba(255, 255, 255, 0.32);
  --mi-bg:          rgba(255, 255, 255, 0.04);
  --mi-border:      rgba(255, 255, 255, 0.06);
  --ms-up-bg:       rgba(34, 160, 107, 0.14);
  --ms-down-bg:     rgba(220, 76, 76, 0.14);
  --ms-warn-bg:     rgba(192, 133, 0, 0.14);
}

/* ─── Page Wrapper ─────────────────────────────────────── */
#macro-view > .m-page,
#health-view > .m-page,
#review-view > .m-page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vh, 16px);
  padding:
    calc(clamp(6px, 1vh, 10px) + 44px + clamp(4px, 0.6vh, 8px))
    clamp(12px, 1.8vw, 28px)
    clamp(16px, 2vh, 24px);
}

#macro-view .m-header--compact,
#health-view .m-header--compact,
#review-view .m-header--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  min-height: 32px;
}

#macro-view .m-header--compact .m-title,
#health-view .m-header--compact .m-title,
#review-view .m-header--compact .m-title {
  font-size: clamp(18px, 1.75vw, 22px);
  line-height: 1.2;
}

#macro-view .m-filter-bar--compact,
#health-view .m-filter-bar--compact,
#review-view .m-filter-bar--compact {
  padding: 7px 10px;
  gap: 8px;
}

#macro-view .m-filter-bar--compact .m-chips,
#health-view .m-filter-bar--compact .m-chips,
#review-view .m-filter-bar--compact .m-chips {
  gap: 4px;
}

#macro-view .m-chip,
#health-view .m-chip,
#review-view .m-chip {
  padding: 5px 11px;
  font-size: 11.5px;
}

.m-filter-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mt-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.m-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 3.5vh, 40px) clamp(20px, 3vw, 44px) clamp(32px, 4vh, 52px);
}

/* ─── Page Header ──────────────────────────────────────── */
.m-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 24px);
  flex-wrap: nowrap;
}

.m-header-left {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.8vh, 10px);
  flex: 1 1 auto;
  min-width: 0;
}

.m-module-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mt-muted);
  line-height: 1;
}

.m-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--mt-primary);
  margin: 0;
}

.m-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.05vw, 14.5px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--mt-secondary);
  max-width: min(640px, 100%);
  margin: 0;
}

.m-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--mt-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.m-meta-time {
  color: var(--mt-secondary);
}

.m-header-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 4px;
  margin-left: auto;
}

/* ─── Refresh Button ───────────────────────────────────── */
.m-refresh-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--mc-border);
  background: var(--mc-bg);
  color: var(--mt-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.35s var(--ease-out);
  flex-shrink: 0;
}

.m-refresh-btn:hover {
  border-color: rgba(20, 18, 40, 0.16);
  color: var(--mp-color);
  transform: rotate(90deg);
}

body.dark-mode .m-refresh-btn:hover {
  border-color: rgba(255, 255, 255, 0.20);
}

@keyframes m-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.m-refresh-btn.spinning {
  animation: m-spin 0.55s var(--ease-out) forwards;
  pointer-events: none;
}

/* ─── Filter Bar ───────────────────────────────────────── */
.m-filter-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(12px, 1.5vw, 18px);
  padding: clamp(11px, 1.2vh, 14px) clamp(14px, 1.6vw, 18px);
  background: var(--mc-bg);
  border: 1px solid var(--mc-border);
  border-radius: 10px;
  box-shadow: var(--mc-shadow);
  flex-wrap: wrap;
  overflow: visible;
}

.m-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1 1 200px;
  min-width: 0;
}

.m-chip {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mt-secondary);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.m-chip:hover {
  background: rgba(20, 18, 40, 0.04);
  color: var(--mt-primary);
}

.m-chip.active {
  background: var(--mp-bg);
  color: var(--mp-color);
  border-color: rgba(59, 111, 217, 0.18);
}

.m-filter-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.m-select {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--mt-secondary);
  background: transparent;
  border: 1px solid var(--mc-border);
  border-radius: 6px;
  padding: 5px 28px 5px 10px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239B9BB0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.m-select:hover {
  border-color: rgba(20, 18, 40, 0.14);
  color: var(--mt-primary);
}

body.dark-mode .m-chip:hover {
  background: rgba(255, 255, 255, 0.06);
}
body.dark-mode .m-chip.active {
  background: rgba(59, 111, 217, 0.20);
  border-color: rgba(59, 111, 217, 0.30);
}
body.dark-mode .m-select option {
  background: #1c1b2e;
  color: rgba(255, 255, 255, 0.85);
}

/* ─── Grid ─────────────────────────────────────────────── */
.m-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--mg-gap);
  align-items: stretch;
}

@media (min-width: 1280px) {
  .m-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .m-grid              { grid-template-columns: 1fr; }
  .m-filter-bar        { flex-direction: column; align-items: stretch; gap: 10px; }
  .m-chips             { flex-wrap: wrap; overflow: visible; }
  .m-filter-right      { justify-content: flex-end; width: 100%; }
  .m-header            { flex-wrap: wrap; }
  .m-header-actions    { margin-left: 0; }
  #macro-view > .m-page {
    padding-left: clamp(14px, 4vw, 20px);
    padding-right: clamp(14px, 4vw, 20px);
  }
}

/* ─── Card ─────────────────────────────────────────────── */
@keyframes mc-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mc-card {
  background: var(--mc-bg);
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius);
  box-shadow: var(--mc-shadow);
  padding: var(--mc-pad);
  display: flex;
  flex-direction: column;
  gap: var(--mc-gap);
  opacity: 0;
  animation: mc-card-in 0.32s var(--ease-out) forwards;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.mc-card:hover {
  box-shadow: var(--mc-shadow-h);
  transform: translateY(-2px);
  border-color: rgba(20, 18, 40, 0.11);
}

body.dark-mode .mc-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* ─── Card Header ──────────────────────────────────────── */
.mc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(10px, 1.2vw, 14px);
  flex-wrap: wrap;
}

.mc-header-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.mc-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(20, 18, 40, 0.03);
  border: 1px solid var(--mc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--mt-secondary);
}

body.dark-mode .mc-icon-wrap {
  background: rgba(255, 255, 255, 0.06);
}

.mc-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 120px;
}

.mc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(14px, 1.05vw, 15.5px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mt-primary);
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

.mc-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--mt-muted);
  line-height: 1.3;
}

/* ─── Status Badge ─────────────────────────────────────── */
.mc-badge {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
  align-self: flex-start;
  margin-left: auto;
  max-width: 100%;
}

.mc-badge-neutral { background: rgba(20, 18, 40, 0.05);  color: var(--mt-secondary); }
.mc-badge-up      { background: var(--ms-up-bg);          color: var(--ms-up);        }
.mc-badge-down    { background: var(--ms-down-bg);        color: var(--ms-down);      }
.mc-badge-warn    { background: var(--ms-warn-bg);        color: var(--ms-warn);      }
.mc-badge-blue    { background: var(--mp-bg);             color: var(--mp-color);     }

body.dark-mode .mc-badge-neutral { background: rgba(255, 255, 255, 0.08); }

/* ─── Tags ─────────────────────────────────────────────── */
.mc-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.mc-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.2;
}

.mc-tag-gray  { background: rgba(20, 18, 40, 0.05); color: var(--mt-secondary); }
.mc-tag-blue  { background: var(--mp-bg);            color: var(--mp-color);     }
.mc-tag-green { background: var(--ms-up-bg);         color: var(--ms-up);        }
.mc-tag-red   { background: var(--ms-down-bg);       color: var(--ms-down);      }
.mc-tag-warn  { background: var(--ms-warn-bg);       color: var(--ms-warn);      }

body.dark-mode .mc-tag-gray { background: rgba(255, 255, 255, 0.08); }

/* ─── Metrics Row ──────────────────────────────────────── */
.mc-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mc-metric-gap) clamp(12px, 1.4vw, 18px);
}

.mc-metric {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.mc-metric-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--mt-muted);
  line-height: 1.25;
  word-break: break-word;
}

.mc-metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  color: var(--mt-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.mc-metric-delta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.mc-delta-up   { color: var(--ms-up); }
.mc-delta-down { color: var(--ms-down); }
.mc-delta-flat { color: var(--mt-muted); }

/* ─── Insight Box ──────────────────────────────────────── */
.mc-insight {
  background: var(--mi-bg);
  border: 1px solid var(--mi-border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mc-insight-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mt-muted);
  line-height: 1;
}

.mc-insight-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--mt-secondary);
  margin: 0;
}

/* ─── Supporting Info ──────────────────────────────────── */
.mc-support {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-support-item {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 0.95vw, 13px);
  color: var(--mt-secondary);
  line-height: 1.55;
  align-items: start;
}

.mc-support-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  grid-row: 1 / -1;
  grid-column: 1;
  align-self: start;
}

.mc-support-text {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  word-break: break-word;
}

.mc-support-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--mt-muted);
  white-space: nowrap;
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
}

/* ─── Card Footer / Actions ────────────────────────────── */
.mc-footer {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--mc-border);
  margin-top: auto;
}

body.dark-mode .mc-footer {
  border-top-color: rgba(255, 255, 255, 0.07);
}

.mc-btn {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
  line-height: 1;
  border: 1px solid transparent;
}

.mc-btn-primary {
  background: var(--mp-color);
  color: #ffffff;
  flex: 1 1 auto;
  min-width: 0;
}

.mc-btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  flex: 0 0 32px;
}

.mc-btn-primary:hover {
  background: var(--mp-color-h);
}

.mc-btn-secondary {
  background: transparent;
  color: var(--mt-secondary);
  border-color: var(--mc-border);
  flex-shrink: 0;
}

.mc-btn-secondary:hover {
  background: rgba(20, 18, 40, 0.04);
  border-color: rgba(20, 18, 40, 0.13);
  color: var(--mt-primary);
}

body.dark-mode .mc-btn-secondary {
  border-color: rgba(255, 255, 255, 0.10);
}

body.dark-mode .mc-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--mt-primary);
}

/* ─── Divider ──────────────────────────────────────────── */
.mc-divider {
  height: 1px;
  background: var(--mc-border);
  margin: 0;
}

/* ─── Empty State ──────────────────────────────────────── */
.m-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 56px 24px;
  color: var(--mt-muted);
}

.m-empty-icon {
  opacity: 0.4;
  line-height: 1;
}

.m-empty-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--mt-muted);
}

/* ════════════════════════════════════════════════════════════
   MODULE 03 健康度追踪 — 雷达 + 波形 + 时间轴（mh-）
════════════════════════════════════════════════════════════ */
.mh-page {
  --mod-accent: var(--c-tiffany);
  --mod-accent-rgb: var(--c-tiffany-rgb);
  gap: clamp(16px, 2vh, 22px);
}

.mh-mast {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
}

.mh-mast-left {
  flex: 1 1 260px;
  min-width: 0;
}

.mh-tagline {
  margin: 6px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: var(--mt-secondary);
  max-width: 520px;
}

.mh-periods {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(20, 18, 40, 0.04);
  border: 1px solid var(--mc-border);
}

body.dark-mode .mh-periods {
  background: rgba(255, 255, 255, 0.05);
}

.mh-period {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--mt-secondary);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.mh-period.is-active {
  background: var(--mc-bg);
  color: var(--mod-accent);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(20, 18, 40, 0.06);
}

.mh-canvas {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 1.05fr);
  gap: clamp(14px, 1.8vw, 20px);
  align-items: stretch;
}

.mh-radar-panel,
.mh-vitals {
  background: var(--mc-bg);
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius);
  box-shadow: var(--mc-shadow);
  padding: clamp(14px, 1.6vw, 18px);
  position: relative;
  overflow: hidden;
}

.mh-radar-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.mh-radar-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(var(--mod-accent-rgb), 0.08), transparent 62%);
  pointer-events: none;
}

.mh-radar-svg {
  width: min(100%, 280px);
  height: auto;
  position: relative;
  z-index: 1;
}

.mh-radar-grid {
  fill: none;
  stroke: rgba(20, 18, 40, 0.07);
  stroke-width: 1;
}

body.dark-mode .mh-radar-grid {
  stroke: rgba(255, 255, 255, 0.1);
}

.mh-radar-axis {
  stroke: rgba(20, 18, 40, 0.06);
  stroke-width: 1;
}

.mh-radar-fill {
  fill: rgba(var(--mod-accent-rgb), 0.22);
}

.mh-radar-stroke {
  fill: none;
  stroke: var(--mod-accent);
  stroke-width: 2;
  stroke-linejoin: round;
}

.mh-radar-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  fill: var(--mt-secondary);
}

.mh-radar-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  fill: var(--mt-primary);
}

.mh-radar-score-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  fill: var(--mt-muted);
}

.mh-delta-pill {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ms-up);
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--ms-up-bg);
}

.mh-vitals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mh-vitals-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--mt-primary);
}

.mh-proto-badge,
.mr-proto-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mt-muted);
  padding: 3px 7px;
  border: 1px dashed var(--mc-border);
  border-radius: 4px;
}

.mh-spark-svg {
  width: 100%;
  height: auto;
  display: block;
}

.mh-spark-area {
  fill: rgba(var(--mod-accent-rgb), 0.12);
}

.mh-spark-line {
  fill: none;
  stroke: var(--mod-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mh-spark-dot {
  fill: var(--mc-bg);
  stroke: var(--mod-accent);
  stroke-width: 2;
}

.mh-spark-day {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  fill: var(--mt-muted);
}

.mh-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--mc-border);
}

.mh-stat {
  text-align: center;
  padding: 6px 4px;
}

.mh-stat-k {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mt-muted);
}

.mh-stat-v {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--mt-primary);
  margin-top: 3px;
}

.mh-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--mt-primary);
  margin: 0 0 12px;
}

.mh-timeline {
  position: relative;
  padding-left: 4px;
}

.mh-tl-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding-bottom: 16px;
}

.mh-tl-item:last-child {
  padding-bottom: 0;
}

.mh-tl-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.mh-tl-rail::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: -6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(var(--mod-accent-rgb), 0.35), rgba(var(--mod-accent-rgb), 0.06));
}

.mh-tl-item:last-child .mh-tl-rail::before {
  display: none;
}

.mh-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mc-bg);
  border: 2px solid var(--mod-accent);
  margin-top: 4px;
  z-index: 1;
}

.mh-tl-up .mh-tl-dot { border-color: var(--ms-up); box-shadow: 0 0 0 3px var(--ms-up-bg); }
.mh-tl-down .mh-tl-dot { border-color: var(--ms-down); box-shadow: 0 0 0 3px var(--ms-down-bg); }

.mh-tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.mh-tl-meta time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--mt-muted);
}

.mh-tl-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--mod-accent);
}

.mh-tl-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--mt-secondary);
}

@media (max-width: 820px) {
  .mh-canvas { grid-template-columns: 1fr; }
  .mh-stat-strip { grid-template-columns: 1fr; text-align: left; }
}


/* ════════════════════════════════════════════════════════════
   MODULE 04 复盘 — 笔记本 spread + 双栏时间线（mr-）
════════════════════════════════════════════════════════════ */
.mr-page {
  --mod-accent: var(--c-burgundy);
  --mod-accent-rgb: var(--c-burgundy-rgb);
  gap: clamp(18px, 2.2vh, 26px);
}

.mr-mast {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mr-tagline {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: var(--mt-secondary);
  max-width: 560px;
}

.mr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  border-bottom: 1px solid var(--mc-border);
  padding-bottom: 0;
  margin-top: 4px;
}

.mr-tab {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 2px 10px;
  margin-bottom: -1px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--mt-secondary);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.mr-tab:hover {
  color: var(--mt-primary);
}

.mr-tab.is-active {
  color: var(--mod-accent);
  border-bottom-color: var(--mod-accent);
  font-weight: 600;
}

.mr-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(18px, 2vw, 24px);
  border-radius: var(--mc-radius);
  background: linear-gradient(135deg, rgba(var(--mod-accent-rgb), 0.06) 0%, var(--mc-bg) 48%);
  border: 1px solid var(--mc-border);
  box-shadow: var(--mc-shadow);
}

.mr-hero-margin {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
  border-right: 1px solid rgba(var(--mod-accent-rgb), 0.15);
}

.mr-hero-date {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mod-accent);
}

.mr-hero-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mt-muted);
  margin: 0 0 8px;
}

.mr-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--mt-primary);
  margin: 0 0 10px;
}

.mr-hero-lead {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mt-secondary);
  margin: 0;
}

.mr-hero-quote {
  margin: 14px 0 0;
  padding: 12px 0 0 16px;
  border-left: 3px solid var(--mod-accent);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mt-primary);
  font-style: italic;
}

.mr-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mr-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(var(--mod-accent-rgb), 0.08);
  color: var(--mod-accent);
}

.mr-stream-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mr-stream-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mt-muted);
}

.mr-journal {
  position: relative;
  padding: 8px 0 12px;
}

.mr-journal::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(var(--mod-accent-rgb), 0.2), rgba(var(--mod-accent-rgb), 0.04));
}

.mr-j-item {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 0;
  margin-bottom: 18px;
  align-items: start;
}

.mr-j-item:last-child {
  margin-bottom: 0;
}

.mr-j-left .mr-j-card {
  grid-column: 1;
  margin-right: 12px;
}

.mr-j-left .mr-j-spine {
  grid-column: 2;
}

.mr-j-right .mr-j-spine {
  grid-column: 2;
}

.mr-j-right .mr-j-card {
  grid-column: 3;
  margin-left: 12px;
}

.mr-j-spine {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}

.mr-j-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mc-bg);
  border: 2px solid var(--mod-accent);
  box-shadow: 0 0 0 3px rgba(var(--mod-accent-rgb), 0.12);
}

.mr-j-win .mr-j-node { border-color: var(--ms-up); box-shadow: 0 0 0 3px var(--ms-up-bg); }
.mr-j-loss .mr-j-node { border-color: var(--ms-down); }
.mr-j-wisdom .mr-j-node { border-color: var(--c-chanel-gold); }

.mr-j-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--mc-bg);
  border: 1px solid var(--mc-border);
  box-shadow: var(--mc-shadow);
}

.mr-j-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mr-j-type {
  font-size: 10px;
  font-weight: 700;
  color: var(--mod-accent);
}

.mr-j-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--mt-muted);
}

.mr-j-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--mt-primary);
}

.mr-j-excerpt {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mt-secondary);
}

.mr-j-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.mr-j-src {
  font-size: 10px;
  color: var(--mt-muted);
}

.mr-empty {
  text-align: center;
  padding: 32px;
  font-size: 13px;
  color: var(--mt-muted);
}

@media (max-width: 720px) {
  .mr-hero {
    grid-template-columns: 1fr;
  }
  .mr-hero-margin {
    writing-mode: horizontal-tb;
    transform: none;
    border-right: none;
    border-bottom: 1px solid rgba(var(--mod-accent-rgb), 0.15);
    padding-bottom: 8px;
    align-items: flex-start;
  }
  .mr-hero-date {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .mr-journal::before {
    left: 11px;
    transform: none;
  }
  .mr-j-item {
    grid-template-columns: 24px 1fr;
  }
  .mr-j-left .mr-j-card,
  .mr-j-right .mr-j-card {
    grid-column: 2;
    margin: 0 0 0 10px;
  }
  .mr-j-left .mr-j-spine,
  .mr-j-right .mr-j-spine {
    grid-column: 1;
    grid-row: 1;
  }
}



/* ════════════════════════════════════════════════════════════
   MODULE 02 情报台 v2 — 双栏布局 + 多平台监控
   前缀：it2-
   字体层级对齐首页：card-title / card-desc / card-meta
════════════════════════════════════════════════════════════ */

/* ─── 整体布局 ──────────────────────────────────────────── */
#intel-view {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

#intel-view .it2-layout {
  flex: 1 1 0;
  width: 100%;
  height: auto;
  align-self: stretch;
}

.it2-layout {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  gap: clamp(16px, 2vw, 24px);
  /* 首页 card-title */
  --it2-title-font: 'Space Grotesk', sans-serif;
  --it2-title-weight: 800;
  --it2-title-size: clamp(16px, 1.4vw, 20px);
  --it2-title-color: #0f0e1a;
  --it2-title-track: -0.03em;
  /* 首页 card-desc */
  --it2-body-font: 'Inter', system-ui, sans-serif;
  --it2-body-size: clamp(14px, 1.1vw, 16px);
  --it2-body-color: #35344a;
  --it2-body-lh: 1.7;
  /* 首页 card-meta / 侧栏次级 */
  --it2-muted-color: #6868a0;
  --it2-muted-size: clamp(12px, 0.9vw, 13px);
  --it2-accent: var(--c-hermes);
  --it2-accent-rgb: var(--c-hermes-rgb);
  --it2-radius: clamp(12px, 1.1vw, 16px);
  --it2-nav-size: clamp(13px, 0.95vw, 14px);
  --it2-gap-sm: 10px;
  --it2-gap-md: 14px;
  /* 消息卡片字体层级（方案 A：同站字体，微调字重与字号对比） */
  --it2-feed-meta-size: clamp(10px, 0.78vw, 11px);
  --it2-feed-src-size: clamp(11px, 0.84vw, 12px);
  --it2-feed-author-size: clamp(15px, 1.1vw, 16.5px);
  --it2-feed-body-size: clamp(14.5px, 1.06vw, 15.5px);
  --it2-feed-body-lh: 1.76;
  --it2-feed-preview-lines: 3;
  --it2-feed-sub-size: clamp(11.5px, 0.88vw, 12.5px);
  --it2-feed-pad-x: clamp(15px, 1.15vw, 17px);
  --it2-feed-strip: 3px;
  --it2-feed-inset: calc(var(--it2-feed-strip) + var(--it2-feed-pad-x));
  --it2-feed-row-gap: 7px;
  --it2-feed-meta-col: minmax(88px, 40%);
}

@keyframes it2-cardIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── 左侧导航 ──────────────────────────────────────────── */
.it2-sidebar {
  width: 176px;
  min-width: 176px;
  max-width: 176px;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(10px, 1.1vw, 14px) 0 0;
  box-sizing: border-box;
  background: transparent;
  border-right: 1px solid rgba(20, 18, 40, 0.07);
  overflow-y: auto;
  flex-shrink: 0;
  --it2-nav-size: clamp(14px, 1.05vw, 16px);
  --it2-muted-size: clamp(13px, 1vw, 14.5px);
}

.it2-sidebar .it2-nav-icon svg {
  width: 17px;
  height: 17px;
}

.it2-sidebar .it2-nav-badge {
  font-size: 10px;
}

.it2-sidebar .it2-search-icon svg {
  width: 15px;
  height: 15px;
}

body.dark-mode .it2-layout {
  --it2-title-color: rgba(255, 255, 255, 0.94);
  --it2-body-color: rgba(255, 255, 255, 0.80);
  --it2-muted-color: rgba(255, 255, 255, 0.58);
}

body.dark-mode .it2-sidebar {
  background: transparent;
  border-right-color: rgba(255, 255, 255, 0.08);
}

.it2-sidebar-header {
  padding: 0 0 11px;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.it2-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 4px 6px;
  border: 1px solid rgba(var(--c-ferrari-rgb), 0.18);
  border-radius: 10px;
  background: rgba(255, 244, 240, 0.98);
  color: var(--c-ferrari);
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.28s var(--spring),
              box-shadow 0.22s ease;
}

.it2-home-btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 0;
  color: var(--c-ferrari);
}

.it2-home-btn-arrow svg {
  width: clamp(24px, 2.4vw, 32px);
  height: clamp(24px, 2.4vw, 32px);
  stroke: currentColor;
  stroke-width: 2.6;
}

.it2-home-btn:hover {
  background: #fff0eb;
  border-color: rgba(var(--c-ferrari-rgb), 0.32);
  box-shadow: 0 2px 12px rgba(var(--c-ferrari-rgb), 0.14);
}

.it2-home-btn:hover .it2-home-btn-arrow {
  color: #c40000;
}

.it2-home-btn:active {
  transform: scale(0.98);
}

body.dark-mode .it2-home-btn {
  background: rgba(var(--c-ferrari-rgb), 0.14);
  border-color: rgba(var(--c-ferrari-rgb), 0.28);
  color: #ff6b6b;
}

body.dark-mode .it2-home-btn-arrow {
  color: #ff5a5a;
}

body.dark-mode .it2-home-btn:hover {
  background: rgba(var(--c-ferrari-rgb), 0.22);
  border-color: rgba(var(--c-ferrari-rgb), 0.42);
  box-shadow: 0 2px 14px rgba(var(--c-ferrari-rgb), 0.22);
}

body.dark-mode .it2-home-btn:hover .it2-home-btn-arrow {
  color: #ff8080;
}

/* ─── 侧栏：夜间信息一览（搜索框上方） ─────────── */
.it2-sidebar-night {
  flex-shrink: 0;
  padding: 0 0 10px;
}

.it2-night-digest-btn {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(20, 18, 40, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(20, 18, 40, 0.88);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.it2-night-digest-btn:hover {
  border-color: rgba(20, 18, 40, 0.2);
  background: #fff;
}

.it2-sidebar[data-active-menu] .it2-night-digest-btn.is-active {
  border-color: var(--it2-accent-border);
  background: var(--it2-accent-bg);
  color: var(--it2-accent);
  box-shadow: 0 0 0 2px var(--it2-accent-ring);
}

.it2-sidebar[data-active-menu] .it2-night-digest-btn.is-active:hover {
  border-color: var(--it2-accent-border);
  background: var(--it2-accent-bg-hover, var(--it2-accent-bg));
  box-shadow: 0 2px 12px var(--it2-accent-ring);
}

body.dark-mode .it2-night-digest-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .it2-night-digest-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.it2-night-digest-header {
  padding: 4px 2px 12px;
}

.it2-night-digest-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(20, 18, 40, 0.92);
}

.it2-night-digest-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(20, 18, 40, 0.55);
}

body.dark-mode .it2-night-digest-title {
  color: rgba(255, 255, 255, 0.92);
}

body.dark-mode .it2-night-digest-sub {
  color: rgba(255, 255, 255, 0.55);
}

/* ─── 侧栏搜索（底部，尺寸对齐返回首页按钮） ─────────── */
.it2-sidebar-search {
  margin-top: auto;
  padding: 11px 0 12px;
  flex-shrink: 0;
  position: relative;
  border-top: none;
}

.it2-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(20, 18, 40, 0.10);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  cursor: text;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.it2-search-box:focus-within {
  border-color: var(--it2-accent-border, rgba(var(--c-hermes-rgb), 0.35));
  background: #fff;
  box-shadow: 0 0 0 2px var(--it2-accent-ring, rgba(var(--c-hermes-rgb), 0.1));
}

body.dark-mode .it2-search-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .it2-search-box:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--it2-accent-border, rgba(var(--c-hermes-rgb), 0.45));
  box-shadow: 0 0 0 2px var(--it2-accent-ring, rgba(var(--c-hermes-rgb), 0.14));
}

body.dark-mode .it2-search-icon {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.52);
}

body.dark-mode .it2-search-box:focus-within .it2-search-icon {
  background: var(--it2-accent-bg-hover, rgba(var(--c-hermes-rgb), 0.16));
  color: var(--it2-accent, #ff9a5c);
}

body.dark-mode .it2-search-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
  opacity: 1;
}

.it2-search-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(20, 18, 40, 0.04);
  color: var(--it2-muted-color);
}

.it2-search-box:focus-within .it2-search-icon {
  background: var(--it2-accent-bg-hover, rgba(var(--c-hermes-rgb), 0.1));
  color: var(--it2-accent, var(--c-hermes));
}

.it2-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--it2-body-font);
  font-size: var(--it2-muted-size);
  font-weight: 500;
  color: var(--it2-body-color);
  outline: none;
}

.it2-search-input::placeholder {
  color: var(--it2-muted-color);
  opacity: 0.85;
}

.it2-search-dropdown {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(100% + 5px);
  top: auto;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(20, 18, 40, 0.1);
  box-shadow: 0 8px 28px rgba(20, 18, 40, 0.12);
  z-index: 30;
}

body.dark-mode .it2-search-dropdown {
  background: rgba(28, 26, 42, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

body.dark-mode .it2-search-result:hover {
  background: var(--it2-accent-bg-hover, rgba(var(--c-hermes-rgb), 0.14));
}

body.dark-mode .it2-search-result-src {
  color: color-mix(in srgb, var(--src-color, #3B6FD9) 72%, rgba(255, 255, 255, 0.85));
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 18%, transparent);
  border-color: color-mix(in srgb, var(--src-color, #3B6FD9) 24%, rgba(255, 255, 255, 0.1));
}

.it2-search-result {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 9px;
  border: none;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.16s ease;
}

.it2-search-result:hover {
  background: var(--it2-accent-bg-hover, rgba(var(--c-hermes-rgb), 0.08));
}

.it2-search-result-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.it2-search-result-src {
  flex-shrink: 0;
  font-family: var(--it2-body-font);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  color: color-mix(in srgb, var(--src-color, #3B6FD9) 80%, #242232);
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--src-color, #3B6FD9) 18%, transparent);
  white-space: nowrap;
}

.it2-search-result-label {
  font-family: var(--it2-title-font);
  font-size: 12px;
  font-weight: 700;
  color: var(--it2-title-color);
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.it2-search-result-sub {
  font-family: var(--it2-body-font);
  font-size: 11px;
  color: var(--it2-muted-color);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.it2-search-empty {
  padding: 10px 9px;
  font-family: var(--it2-body-font);
  font-size: 11px;
  color: var(--it2-muted-color);
  text-align: center;
}

.it2-nav-list {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding: 10px 0 8px;
  gap: 5px;
}

.it2-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px 8px 0;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
  color: #9b9bb0;
  width: 100%;
  position: relative;
}

.it2-nav-item:hover {
  background: rgba(20, 18, 40, 0.04);
  color: #6868a0;
}

body.dark-mode .it2-nav-item {
  color: rgba(255, 255, 255, 0.52);
}

body.dark-mode .it2-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
}

/* 当前菜单主题色（导航选中 + 夜间一览激活共用） */
.it2-sidebar[data-active-menu="platforms"] {
  --it2-accent: #c2410c;
  --it2-accent-bg: rgba(234, 88, 12, 0.14);
  --it2-accent-bg-hover: rgba(234, 88, 12, 0.2);
  --it2-accent-border: rgba(234, 88, 12, 0.48);
  --it2-accent-ring: rgba(234, 88, 12, 0.14);
}

.it2-sidebar[data-active-menu="sentiment"] {
  --it2-accent: #0f766e;
  --it2-accent-bg: rgba(13, 148, 136, 0.14);
  --it2-accent-bg-hover: rgba(13, 148, 136, 0.2);
  --it2-accent-border: rgba(13, 148, 136, 0.45);
  --it2-accent-ring: rgba(13, 148, 136, 0.14);
}

.it2-sidebar[data-active-menu="calendar"] {
  --it2-accent: #1d4ed8;
  --it2-accent-bg: rgba(37, 99, 235, 0.13);
  --it2-accent-bg-hover: rgba(37, 99, 235, 0.19);
  --it2-accent-border: rgba(37, 99, 235, 0.45);
  --it2-accent-ring: rgba(37, 99, 235, 0.14);
}

.it2-sidebar[data-active-menu="onchain"] {
  --it2-accent: #b91c1c;
  --it2-accent-bg: rgba(220, 38, 38, 0.12);
  --it2-accent-bg-hover: rgba(220, 38, 38, 0.18);
  --it2-accent-border: rgba(220, 38, 38, 0.45);
  --it2-accent-ring: rgba(220, 38, 38, 0.14);
}

.it2-sidebar[data-active-menu="trending"] {
  --it2-accent: #4338ca;
  --it2-accent-bg: rgba(79, 70, 229, 0.13);
  --it2-accent-bg-hover: rgba(79, 70, 229, 0.19);
  --it2-accent-border: rgba(79, 70, 229, 0.45);
  --it2-accent-ring: rgba(79, 70, 229, 0.14);
}

.it2-sidebar[data-active-menu="alerts"] {
  --it2-accent: #a16207;
  --it2-accent-bg: rgba(217, 119, 6, 0.14);
  --it2-accent-bg-hover: rgba(217, 119, 6, 0.21);
  --it2-accent-border: rgba(180, 83, 9, 0.5);
  --it2-accent-ring: rgba(217, 119, 6, 0.16);
}

body.dark-mode .it2-sidebar[data-active-menu="platforms"] {
  --it2-accent: #fb923c;
  --it2-accent-bg: rgba(251, 146, 60, 0.2);
  --it2-accent-bg-hover: rgba(251, 146, 60, 0.28);
  --it2-accent-border: rgba(251, 146, 60, 0.55);
  --it2-accent-ring: rgba(251, 146, 60, 0.2);
}

body.dark-mode .it2-sidebar[data-active-menu="sentiment"] {
  --it2-accent: #5eead4;
  --it2-accent-bg: rgba(45, 212, 191, 0.18);
  --it2-accent-bg-hover: rgba(45, 212, 191, 0.26);
  --it2-accent-border: rgba(45, 212, 191, 0.5);
  --it2-accent-ring: rgba(45, 212, 191, 0.18);
}

body.dark-mode .it2-sidebar[data-active-menu="calendar"] {
  --it2-accent: #93c5fd;
  --it2-accent-bg: rgba(96, 165, 250, 0.2);
  --it2-accent-bg-hover: rgba(96, 165, 250, 0.28);
  --it2-accent-border: rgba(96, 165, 250, 0.52);
  --it2-accent-ring: rgba(96, 165, 250, 0.18);
}

body.dark-mode .it2-sidebar[data-active-menu="onchain"] {
  --it2-accent: #fca5a5;
  --it2-accent-bg: rgba(248, 113, 113, 0.2);
  --it2-accent-bg-hover: rgba(248, 113, 113, 0.28);
  --it2-accent-border: rgba(248, 113, 113, 0.52);
  --it2-accent-ring: rgba(248, 113, 113, 0.18);
}

body.dark-mode .it2-sidebar[data-active-menu="trending"] {
  --it2-accent: #c4b5fd;
  --it2-accent-bg: rgba(167, 139, 250, 0.2);
  --it2-accent-bg-hover: rgba(167, 139, 250, 0.28);
  --it2-accent-border: rgba(167, 139, 250, 0.52);
  --it2-accent-ring: rgba(167, 139, 250, 0.18);
}

body.dark-mode .it2-sidebar[data-active-menu="alerts"] {
  --it2-accent: #fcd34d;
  --it2-accent-bg: rgba(251, 191, 36, 0.18);
  --it2-accent-bg-hover: rgba(251, 191, 36, 0.26);
  --it2-accent-border: rgba(251, 191, 36, 0.52);
  --it2-accent-ring: rgba(251, 191, 36, 0.2);
}

/* 侧栏搜索：随当前菜单主题色 */
.it2-sidebar[data-active-menu] .it2-search-box {
  border-color: color-mix(in srgb, var(--it2-accent) 22%, rgba(20, 18, 40, 0.1));
  background: color-mix(in srgb, var(--it2-accent) 5%, rgba(255, 255, 255, 0.72));
}

.it2-sidebar[data-active-menu] .it2-search-icon {
  background: var(--it2-accent-bg);
  color: var(--it2-accent);
}

.it2-sidebar[data-active-menu] .it2-search-dropdown {
  border-color: color-mix(in srgb, var(--it2-accent) 26%, rgba(20, 18, 40, 0.1));
  box-shadow:
    0 8px 28px rgba(20, 18, 40, 0.12),
    0 0 0 1px color-mix(in srgb, var(--it2-accent) 8%, transparent);
}

body.dark-mode .it2-sidebar[data-active-menu] .it2-search-box {
  border-color: color-mix(in srgb, var(--it2-accent) 28%, rgba(255, 255, 255, 0.1));
  background: color-mix(in srgb, var(--it2-accent) 8%, rgba(255, 255, 255, 0.05));
}

body.dark-mode .it2-sidebar[data-active-menu] .it2-search-icon {
  background: var(--it2-accent-bg);
  color: var(--it2-accent);
}

body.dark-mode .it2-sidebar[data-active-menu] .it2-search-dropdown {
  border-color: color-mix(in srgb, var(--it2-accent) 32%, rgba(255, 255, 255, 0.1));
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px color-mix(in srgb, var(--it2-accent) 10%, transparent);
}

.it2-sidebar[data-active-menu] .it2-nav-item.active {
  background: var(--it2-accent-bg);
  color: var(--it2-accent);
}

.it2-nav-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.55;
}

.it2-nav-item:hover .it2-nav-icon {
  opacity: 0.72;
}

.it2-sidebar[data-active-menu] .it2-nav-item.active .it2-nav-icon {
  opacity: 1;
  color: var(--it2-accent);
}

.it2-nav-label {
  font-family: var(--it2-body-font);
  font-size: var(--it2-nav-size);
  font-weight: 400;
  line-height: 1.45;
  color: var(--it2-body-color);
  opacity: 0.68;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
}

.it2-nav-item:hover .it2-nav-label {
  opacity: 0.88;
}

.it2-sidebar[data-active-menu] .it2-nav-item.active .it2-nav-label {
  font-weight: 600;
  opacity: 1;
  color: var(--it2-accent);
}

body.dark-mode .it2-nav-label {
  color: rgba(255, 255, 255, 0.62);
  opacity: 1;
}

body.dark-mode .it2-nav-item:hover .it2-nav-label {
  color: rgba(255, 255, 255, 0.82);
  opacity: 1;
}

body.dark-mode .it2-sidebar[data-active-menu] .it2-nav-item.active .it2-nav-label {
  opacity: 1;
  font-weight: 600;
  color: var(--it2-accent);
}

.it2-nav-badge {
  font-family: var(--it2-body-font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 2px 6px;
  border-radius: 5px;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.it2-nav-badge--alert {
  background: #DC4C4C;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(220, 76, 76, 0.22), 0 2px 6px rgba(220, 76, 76, 0.35);
  animation: it2-alert-badge-pulse 2s ease-in-out infinite;
}

@keyframes it2-alert-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(220, 76, 76, 0.22), 0 2px 6px rgba(220, 76, 76, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(220, 76, 76, 0.18), 0 2px 10px rgba(220, 76, 76, 0.5); }
}

.it2-nav-item[data-menu="onchain"] .it2-nav-label.is-alarm-flash {
  animation: it2-alarm-label-flash 0.75s ease-in-out infinite;
  font-weight: 700;
}

.it2-nav-item.has-anomaly-alert:not(.active) {
  background: rgba(220, 76, 76, 0.06);
}

body.dark-mode .it2-nav-item.has-anomaly-alert:not(.active) {
  background: rgba(220, 76, 76, 0.12);
}

@keyframes it2-alarm-label-flash {
  0%, 100% {
    color: var(--it2-body-color);
    opacity: 0.68;
    text-shadow: none;
  }
  50% {
    color: #DC4C4C;
    opacity: 1;
    text-shadow: 0 0 10px rgba(220, 76, 76, 0.65);
  }
}

body.dark-mode .it2-nav-item[data-menu="onchain"] .it2-nav-label.is-alarm-flash {
  animation-name: it2-alarm-label-flash-dark;
}

@keyframes it2-alarm-label-flash-dark {
  0%, 100% {
    color: rgba(255, 255, 255, 0.62);
    text-shadow: none;
  }
  50% {
    color: #ff6b6b;
    text-shadow: 0 0 12px rgba(255, 107, 107, 0.75);
  }
}

/* ─── 侧栏异常预警指示（项目情报与搜索框之间） ─────── */
.it2-sidebar-alert-zone {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  min-height: 36px;
  padding: 6px 0;
  box-sizing: border-box;
}

.it2-sidebar-alert-mark {
  position: relative;
  width: 58px;
  height: 52px;
  display: none;
  flex-shrink: 0;
  margin-inline: auto;
  align-items: flex-end;
  justify-content: center;
  transform-origin: center center;
  filter: drop-shadow(0 4px 12px rgba(220, 76, 76, 0.35));
  animation: it2-sidebar-alert-flash 0.85s ease-in-out infinite;
}

.it2-sidebar-alert-mark:not([hidden]) {
  display: flex;
}

.it2-sidebar-alert-triangle {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ef5a5a 0%, #dc4c4c 55%, #c73a3a 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  border-radius: 3px;
}

.it2-sidebar-alert-bang {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--it2-body-font);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 7px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.it2-sidebar-alert-zone.is-active .it2-sidebar-alert-mark {
  animation: it2-sidebar-alert-flash 0.85s ease-in-out infinite;
}

@keyframes it2-sidebar-alert-flash {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 4px 12px rgba(220, 76, 76, 0.35));
  }
  50% {
    opacity: 0.42;
    transform: scale(0.94);
    filter: drop-shadow(0 2px 6px rgba(220, 76, 76, 0.18));
  }
}

body.dark-mode .it2-sidebar-alert-triangle {
  background: linear-gradient(180deg, #ff6666 0%, #ff5555 55%, #e04444 100%);
}

/* ─── 右侧内容区（顶/右缘贴齐 intel-view 内边距，刷新右缘对齐顶栏时间） ── */
.it2-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  padding-top: 0;
  padding-right: 0;
}

.it2-content::before {
  content: none;
}

.it2-content > * {
  position: relative;
  z-index: 1;
}

/* ─── 通用面板 ──────────────────────────────────────────── */
.it2-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 0 clamp(16px, 2vh, 24px);
  gap: 0;
  min-height: 0;
}

.it2-panel-platforms {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
}

/* 右侧主区（无外层圆角框，顶缘与侧栏对齐） */
.it2-platforms-body {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: visible;
}

.it2-platforms-body .it2-src-section,
.it2-platforms-body .it2-src-bar,
.it2-platforms-body .it2-src-chips-wrap,
.it2-platforms-body .it2-src-chips {
  overflow: visible;
}

.it2-platforms-body .it2-src-bar {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 10px;
  min-height: 40px;
  gap: 8px;
  align-items: stretch;
}

.it2-platforms-body .it2-src-chips-wrap {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.it2-platforms-body .it2-src-chips {
  gap: 5px;
  padding: 3px 16px 3px 2px;
  scroll-padding-inline-end: 16px;
  box-sizing: content-box;
}

.it2-platforms-body .it2-src-chip {
  padding: 4px 10px 4px 4px;
  gap: 5px;
}

.it2-platforms-body .it2-src-chip-label {
  font-size: clamp(12px, 0.9vw, 13px);
}

.it2-platforms-body .it2-src-chip.on {
  box-shadow:
    0 1px 6px color-mix(in srgb, var(--src-color, #3B6FD9) 18%, transparent),
    0 0 0 1px color-mix(in srgb, var(--src-color, #3B6FD9) 12%, transparent);
}

.it2-platforms-body .it2-src-chips-wrap::before,
.it2-platforms-body .it2-src-chips-wrap::after {
  display: none;
}

.it2-platforms-body .it2-section-divider {
  display: none;
}

.it2-platforms-body .it2-src-bar-actions {
  border-left: none;
  padding-left: 4px;
  margin-left: 0;
  flex: 0 0 auto;
  align-self: center;
}

.it2-platforms-body .it2-src-action {
  padding: 4px 8px;
  font-size: 12px;
}

.it2-platforms-body .it2-feed-grid {
  padding: 6px 0 16px;
  gap: clamp(18px, 1.55vw, 26px);
}

.it2-platforms-body .it2-feed-section {
  overflow: hidden;
}

.it2-panel-platforms .it2-feed-card {
  border-width: 1.5px;
  border-color: rgba(20, 18, 40, 0.14);
  background: linear-gradient(
    165deg,
    #ffffff 0%,
    color-mix(in srgb, var(--src-color, #3B6FD9) 3%, #fafbff) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.85) inset,
    0 1px 2px rgba(20, 18, 40, 0.05),
    0 2px 8px rgba(20, 18, 40, 0.04);
}

.it2-panel-platforms .it2-feed-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--src-color, #3B6FD9) 32%, rgba(20, 18, 40, 0.14));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 2px 6px rgba(20, 18, 40, 0.07),
    0 8px 20px color-mix(in srgb, var(--src-color, #3B6FD9) 6%, rgba(20, 18, 40, 0.08));
}

body.dark-mode .it2-panel-platforms .it2-feed-card {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(
    165deg,
    rgba(36, 34, 50, 0.98) 0%,
    color-mix(in srgb, var(--src-color, #3B6FD9) 8%, rgba(28, 26, 40, 0.96)) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 2px 10px rgba(0, 0, 0, 0.32);
}

body.dark-mode .it2-panel-platforms .it2-feed-card:hover {
  border-color: color-mix(in srgb, var(--src-color, #3B6FD9) 38%, rgba(255, 255, 255, 0.18));
}


.it2-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.it2-panel-header-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.it2-panel-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  color: #0f0e1a;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

body.dark-mode .it2-panel-label {
  color: rgba(255, 255, 255, 0.92);
}

.it2-panel-desc {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 400;
  color: #35344a;
  margin: 0;
  line-height: 1.7;
  max-width: 560px;
}

body.dark-mode .it2-panel-desc {
  color: rgba(255, 255, 255, 0.58);
}

/* ─── 信息源选择区（单行工具栏，略大于侧栏、小于信息流） ─ */
.it2-src-section {
  flex-shrink: 0;
}

.it2-src-bar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(20, 18, 40, 0.08);
  border-radius: var(--it2-radius);
  padding: 9px 11px 9px 13px;
  display: flex;
  align-items: center;
  gap: var(--it2-gap-md);
  flex-wrap: nowrap;
  min-height: 44px;
  box-shadow: 0 1px 8px rgba(20, 18, 40, 0.04), 0 1px 2px rgba(20, 18, 40, 0.02);
}

body.dark-mode .it2-src-bar {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.it2-src-bar-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid rgba(20, 18, 40, 0.07);
}

.it2-src-chips-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

body.dark-mode .it2-src-bar-actions {
  border-left-color: rgba(255, 255, 255, 0.08);
}

.it2-src-action {
  font-family: var(--it2-body-font);
  font-size: var(--it2-muted-size);
  font-weight: 500;
  color: var(--it2-muted-color);
  background: rgba(20, 18, 40, 0.02);
  border: 1px solid rgba(20, 18, 40, 0.08);
  border-radius: 7px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.it2-src-action:hover {
  color: var(--it2-body-color);
  border-color: rgba(20, 18, 40, 0.14);
  background: rgba(20, 18, 40, 0.05);
}

.it2-src-action.is-busy {
  pointer-events: none;
  opacity: 0.65;
}

body.dark-mode .it2-src-action {
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .it2-src-action:hover {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.it2-src-chips-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.it2-src-chips-wrap::before,
.it2-src-chips-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.it2-src-chips-wrap.is-scrollable:not(.is-at-start)::before {
  opacity: 1;
}

.it2-src-chips-wrap.is-scrollable:not(.is-at-end)::after {
  opacity: 1;
}

.it2-src-chips-wrap::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.96), transparent);
}

.it2-src-chips-wrap::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.96), transparent);
}

body.dark-mode .it2-src-chips-wrap::before {
  background: linear-gradient(to right, rgba(32, 30, 44, 0.96), transparent);
}

body.dark-mode .it2-src-chips-wrap::after {
  background: linear-gradient(to left, rgba(32, 30, 44, 0.96), transparent);
}

.it2-src-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 1px;
}

.it2-src-chips::-webkit-scrollbar {
  display: none;
}

.it2-src-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 5px;
  border-radius: 20px;
  border: 1.5px solid rgba(20, 18, 40, 0.10);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.28s var(--spring);
  color: var(--it2-body-color);
  position: relative;
}

.it2-src-chip:hover {
  border-color: color-mix(in srgb, var(--src-color, #3B6FD9) 45%, transparent);
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 7%, #fff);
}

.it2-src-chip.on {
  border-color: var(--src-color, #3B6FD9);
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 11%, #fff);
  box-shadow:
    0 2px 8px color-mix(in srgb, var(--src-color, #3B6FD9) 20%, transparent),
    0 0 0 1px color-mix(in srgb, var(--src-color, #3B6FD9) 12%, transparent);
}

body.dark-mode .it2-src-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
}

body.dark-mode .it2-src-chip:hover {
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 14%, rgba(255, 255, 255, 0.06));
  border-color: color-mix(in srgb, var(--src-color, #3B6FD9) 40%, rgba(255, 255, 255, 0.12));
}

body.dark-mode .it2-src-chip.on {
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 22%, rgba(255, 255, 255, 0.06));
  border-color: color-mix(in srgb, var(--src-color, #3B6FD9) 55%, rgba(255, 255, 255, 0.12));
}

body.dark-mode .it2-src-chip-icon {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
}

body.dark-mode .it2-src-chip.on .it2-src-chip-icon {
  color: var(--src-color, #3B6FD9);
}

.it2-src-chip-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(20, 18, 40, 0.04);
  color: var(--it2-muted-color);
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.it2-src-chip.on .it2-src-chip-icon {
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 16%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--src-color, #3B6FD9) 25%, transparent);
}

.it2-src-chip-label {
  font-family: var(--it2-body-font);
  font-size: clamp(13px, 0.98vw, 14px);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0;
  color: var(--it2-body-color);
}

.it2-src-chip.on .it2-src-chip-label {
  font-weight: 600;
  color: #242232;
}

body.dark-mode .it2-src-chip-label {
  color: rgba(255, 255, 255, 0.76);
}

body.dark-mode .it2-src-chip.on .it2-src-chip-label {
  color: rgba(255, 255, 255, 0.94);
}

.it2-src-chip-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(20, 18, 40, 0.12);
  transition: background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  flex-shrink: 0;
  opacity: 0.5;
}

.it2-src-chip.on .it2-src-chip-dot {
  background: var(--src-color, #3B6FD9);
  box-shadow: 0 0 6px var(--src-color, #3B6FD9);
  opacity: 1;
}

/* ─── Telegram 频道子菜单（悬停展开，移出自动收起） ── */
.it2-src-chip-wrap--telegram {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.it2-src-chip-wrap--telegram.is-open {
  z-index: 42;
}

.it2-tg-channel-menu {
  position: absolute;
  z-index: 120;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.it2-tg-channel-menu:not([hidden]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.it2-tg-channel-menu-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  max-height: inherit;
  padding: 8px 7px 7px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(20, 18, 40, 0.09);
  border-radius: 12px;
  box-shadow:
    0 10px 36px rgba(20, 18, 40, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  pointer-events: auto;
  overflow: hidden;
}

.it2-tg-channel-chips {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--it2-accent) 22%, transparent) transparent;
  pointer-events: auto;
}

.it2-tg-channel-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(20, 18, 40, 0.06);
  pointer-events: auto;
}

.it2-tg-channel-toolbar--custom {
  justify-content: center;
}

.it2-tg-channel-toolbar--custom:not([hidden]) .it2-tg-channel-pager {
  margin-left: auto;
  margin-right: auto;
}

.it2-tg-channel-pager {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.it2-tg-channel-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid rgba(20, 18, 40, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--it2-muted-color);
  font-family: var(--it2-body-font);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.it2-tg-channel-pager-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.95);
  border-color: color-mix(in srgb, var(--it2-accent) 28%, rgba(20, 18, 40, 0.12));
  color: var(--it2-title-color);
}

.it2-tg-channel-pager-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.it2-tg-channel-pager-info {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-width: 34px;
  justify-content: center;
  font-family: var(--it2-body-font);
  font-size: 12px;
  font-weight: 500;
  color: var(--it2-muted-color);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.it2-tg-channel-pager-sep {
  opacity: 0.45;
  padding: 0 1px;
}

.it2-tg-channel-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  padding-left: 4px;
  border-left: 1px solid rgba(20, 18, 40, 0.08);
}

.it2-tg-channel-action {
  font-family: var(--it2-body-font);
  font-size: var(--it2-muted-size);
  font-weight: 500;
  color: var(--it2-muted-color);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(20, 18, 40, 0.08);
  border-radius: 7px;
  padding: 4px 10px;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.it2-tg-channel-action:hover {
  color: var(--it2-body-color);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(20, 18, 40, 0.12);
}

.it2-tg-channel-measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  white-space: nowrap;
}

.it2-tg-channel-measure.it2-tg-channel-measure--stack {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  overflow: visible;
  white-space: normal;
}

.it2-tg-channel-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 5px 8px 5px 4px;
  border-radius: 10px;
  border: 1px solid rgba(20, 18, 40, 0.08);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  color: var(--it2-body-color);
  font: inherit;
  white-space: nowrap;
  text-align: left;
  box-sizing: border-box;
}

.it2-tg-channel-chip .it2-src-chip-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.it2-tg-channel-chip .it2-src-chip-label {
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
}

.it2-tg-channel-chip .it2-src-chip-dot {
  width: 3px;
  height: 3px;
}

.it2-tg-channel-chip:hover {
  border-color: color-mix(in srgb, var(--src-color, #17A689) 45%, transparent);
  background: color-mix(in srgb, var(--src-color, #17A689) 9%, rgba(255, 255, 255, 0.88));
}

.it2-tg-channel-chip.on {
  border-color: var(--src-color, #17A689);
  background: color-mix(in srgb, var(--src-color, #17A689) 13%, rgba(255, 255, 255, 0.9));
  box-shadow:
    0 2px 8px color-mix(in srgb, var(--src-color, #17A689) 18%, transparent),
    0 0 0 1px color-mix(in srgb, var(--src-color, #17A689) 10%, transparent);
}

.it2-tg-channel-chip.on .it2-src-chip-label {
  font-weight: 600;
  color: color-mix(in srgb, var(--src-color, #17A689) 55%, #242232);
}

body.dark-mode .it2-tg-channel-menu-inner {
  background: rgba(22, 20, 36, 0.82);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
}

body.dark-mode .it2-tg-channel-pager-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
}

body.dark-mode .it2-tg-channel-pager-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
}

body.dark-mode .it2-tg-channel-pager-info {
  color: rgba(255, 255, 255, 0.58);
}

body.dark-mode .it2-tg-channel-actions {
  border-left-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .it2-tg-channel-action {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.58);
}

body.dark-mode .it2-tg-channel-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
}

body.dark-mode .it2-tg-channel-chip {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
}

body.dark-mode .it2-tg-channel-chip:hover {
  background: color-mix(in srgb, var(--src-color, #17A689) 16%, rgba(255, 255, 255, 0.08));
  border-color: color-mix(in srgb, var(--src-color, #17A689) 42%, rgba(255, 255, 255, 0.12));
}

body.dark-mode .it2-tg-channel-chip.on {
  background: color-mix(in srgb, var(--src-color, #17A689) 24%, rgba(255, 255, 255, 0.08));
  border-color: color-mix(in srgb, var(--src-color, #17A689) 55%, rgba(255, 255, 255, 0.14));
}

body.dark-mode .it2-tg-channel-chip.on .it2-src-chip-label {
  color: rgba(255, 255, 255, 0.92);
}

/* ─── 分隔线（渐变浅横线） ─────────────────────────────── */
.it2-section-divider {
  height: 1px;
  margin: var(--it2-gap-md) 0 calc(var(--it2-gap-sm) + 2px);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(20, 18, 40, 0.07) 22%,
    rgba(20, 18, 40, 0.07) 78%,
    transparent 100%);
  flex-shrink: 0;
}

body.dark-mode .it2-section-divider {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 18%,
    rgba(255, 255, 255, 0.08) 82%,
    transparent 100%);
}

/* ─── 信息流区域（占满右侧 + 动态条数 + 滚动） ─────────── */
.it2-feed-section {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.it2-feed-viewport-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--it2-radius) + 2px);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(20, 18, 40, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.it2-feed-card.is-long-focusable {
  cursor: pointer;
}

.it2-feed-card.is-long-focusable:hover {
  border-color: color-mix(in srgb, var(--src-color, #3B6FD9) 28%, rgba(20, 18, 40, 0.1));
}

.it2-feed-expand-hint {
  display: none !important;
}

body.dark-mode .it2-feed-viewport-wrap {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.it2-platforms-body .it2-feed-viewport-wrap,
body.dark-mode .it2-platforms-body .it2-feed-viewport-wrap {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.it2-feed-viewport {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: inherit;
}

.it2-feed-viewport::-webkit-scrollbar {
  display: none;
}

.it2-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: min-content;
  align-content: stretch;
  align-items: stretch;
  justify-items: stretch;
  gap: clamp(16px, 1.35vw, 22px);
  padding: 14px 15px 15px;
  box-sizing: border-box;
  flex: 1;
  width: 100%;
  min-height: 100%;
}

.it2-feed-list {
  width: 100%;
  box-sizing: border-box;
}

.it2-feed-list--empty {
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 11px 12px 12px;
}

.it2-platforms-body .it2-feed-viewport-wrap.is-empty {
  flex: 1 1 0;
  width: 100%;
  align-self: stretch;
}

.it2-feed-viewport-wrap.is-empty::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(20, 18, 40, 0.10);
  border-radius: var(--it2-radius);
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

body.dark-mode .it2-feed-viewport-wrap.is-empty::after {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.it2-feed-list--empty .it2-feed-empty {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  width: auto;
  height: auto;
  min-height: 0;
}

.it2-feed-grid.is-empty > .it2-feed-empty {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  align-self: stretch;
  justify-self: stretch;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  margin: 0;
  border: none;
  background: transparent;
}

.it2-feed-grid > .it2-feed-card {
  min-width: 0;
  width: 100%;
}

/* 更新 feed 时不重复播放入场动画，避免进入情报台后「再闪一下」 */
.it2-feed-grid.it2-feed-grid--static > .it2-feed-card {
  animation: none;
  opacity: 1;
  transform: none;
}

/* 有消息时：网格随内容增高，在 viewport 内滚动查看第 7–20 条 */
.it2-feed-grid:not(.is-empty) {
  flex: 0 0 auto;
  min-height: 0;
}

/* ─── 信息流分页（底部居中，紧凑） ─────────────────────── */
.it2-feed-pager {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 0 12px;
  min-height: 0;
}

.it2-feed-pager[hidden] {
  display: none !important;
}

.it2-feed-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(20, 18, 40, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--it2-muted-color);
  font-family: var(--it2-body-font);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.it2-feed-pager-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.95);
  border-color: color-mix(in srgb, var(--it2-accent) 28%, rgba(20, 18, 40, 0.12));
  color: var(--it2-title-color);
}

.it2-feed-pager-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.it2-feed-pager-btn--edge {
  font-size: 13px;
  letter-spacing: -0.06em;
}

.it2-feed-pager-info {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-width: 42px;
  justify-content: center;
  font-family: var(--it2-body-font);
  font-size: var(--it2-feed-sub-size);
  font-weight: 500;
  color: var(--it2-muted-color);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  user-select: none;
}

.it2-feed-pager-sep {
  opacity: 0.45;
  padding: 0 1px;
}

body.dark-mode .it2-feed-pager-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
}

body.dark-mode .it2-feed-pager-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
}

body.dark-mode .it2-feed-pager-info {
  color: rgba(255, 255, 255, 0.62);
}

/* ─── 信息流卡片 ─────────────────────────────────────────── */
@keyframes it2-feedCardIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.it2-feed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  min-width: 0;
  padding: 0;
  border-radius: clamp(12px, 1.08vw, 16px);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.99) 0%,
    color-mix(in srgb, var(--src-color, #3B6FD9) 2.5%, rgba(255, 255, 255, 0.98)) 100%
  );
  border: 1.5px solid rgba(20, 18, 40, 0.11);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 1px 2px rgba(20, 18, 40, 0.05),
    0 4px 14px rgba(20, 18, 40, 0.06);
  overflow: hidden;
  min-height: 0;
  animation: it2-feedCardIn 0.36s var(--ease-out) both;
  animation-delay: var(--it2-stagger, 0ms);
  transition:
    border-color 0.26s ease,
    box-shadow 0.26s ease,
    transform 0.26s var(--ease-out);
}

.it2-feed-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--src-color, #3B6FD9) 92%, #fff),
    color-mix(in srgb, var(--src-color, #3B6FD9) 35%, transparent)
  );
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
}

.it2-feed-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--src-color, #3B6FD9) 24%, rgba(20, 18, 40, 0.1));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 12px rgba(20, 18, 40, 0.06),
    0 16px 36px color-mix(in srgb, var(--src-color, #3B6FD9) 8%, rgba(20, 18, 40, 0.09));
}

.it2-feed-card--telegram:not(.is-long-focusable) {
  cursor: default;
}

.it2-feed-card--telegram:not(.is-long-focusable):hover {
  transform: translateY(-1px);
}

.it2-feed-card.is-expandable:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--src-color, #3B6FD9) 45%, transparent);
  outline-offset: 2px;
}

@keyframes it2-searchPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--src-color, #3B6FD9) 35%, transparent); }
  40%  { box-shadow: 0 0 0 4px color-mix(in srgb, var(--src-color, #3B6FD9) 22%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.it2-feed-card.is-search-hit {
  animation: it2-searchPulse 1.2s ease-out 1;
  border-color: color-mix(in srgb, var(--src-color, #3B6FD9) 45%, rgba(20, 18, 40, 0.12));
}

.it2-placeholder-body.is-search-hit {
  animation: it2-searchPulse 1.2s ease-out 1;
  border-radius: var(--it2-radius);
}

.it2-feed-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 var(--it2-feed-pad-x) clamp(11px, 1.1vh, 14px);
  padding-inline-start: var(--it2-feed-inset);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.it2-feed-cap,
.it2-feed-identity,
.it2-feed-body {
  padding-inline: 0;
  box-sizing: border-box;
}

/* 第一层：来源带（通栏，与正文左缘对齐） */
.it2-feed-cap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  flex-shrink: 0;
  min-height: 32px;
  box-sizing: border-box;
  margin-inline: calc(-1 * var(--it2-feed-pad-x));
  margin-inline-start: calc(-1 * var(--it2-feed-inset));
  padding-top: 7px;
  padding-bottom: 7px;
  padding-inline-start: var(--it2-feed-inset);
  padding-inline-end: var(--it2-feed-pad-x);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--src-color, #3B6FD9) 11%, rgba(255, 255, 255, 0.98)),
    color-mix(in srgb, var(--src-color, #3B6FD9) 4%, rgba(255, 255, 255, 0.99))
  );
  border-bottom: 1px solid color-mix(in srgb, var(--src-color, #3B6FD9) 18%, rgba(20, 18, 40, 0.08));
}

.it2-feed-src-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.it2-feed-src-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: var(--src-color, #3B6FD9);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--src-color, #3B6FD9) 25%, transparent);
}

.it2-feed-src-icon svg {
  width: 10px;
  height: 10px;
}

.it2-feed-src-name {
  font-family: var(--it2-body-font);
  font-size: var(--it2-feed-src-size);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--src-color, #3B6FD9) 52%, #5c5c78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.it2-feed-time {
  font-family: var(--it2-body-font);
  font-size: var(--it2-feed-sub-size);
  font-weight: 500;
  color: var(--it2-muted-color);
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  white-space: nowrap;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'kern' 1;
  letter-spacing: 0.015em;
  opacity: 0.92;
}

.it2-feed-time-sep {
  padding: 0 0.35em;
  margin: 0;
  opacity: 0.45;
  font-weight: 500;
}

.it2-feed-time--compact {
  flex-shrink: 0;
  max-width: none;
}

.it2-feed-modal-handle-time.it2-feed-time {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  font-size: clamp(11.5px, 0.95vw, 13.5px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.it2-feed-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  flex-shrink: 0;
  min-width: 0;
  padding-top: 8px;
  padding-bottom: 0;
  overflow: hidden;
}

.it2-feed-author {
  font-family: var(--it2-title-font);
  font-size: var(--it2-feed-author-size);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--it2-title-color);
  line-height: 1.32;
  min-width: 0;
  max-width: 100%;
}

.it2-feed-handle {
  font-family: var(--it2-body-font);
  font-size: var(--it2-feed-sub-size);
  font-weight: 400;
  color: var(--it2-muted-color);
  line-height: 1.3;
  letter-spacing: 0.01em;
  opacity: 0.82;
  min-width: 0;
  max-width: 100%;
}

.it2-feed-handle::before {
  content: '·';
  margin-inline-end: 0.35em;
  opacity: 0.45;
  font-weight: 600;
}

.it2-feed-body {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
  padding-top: 8px;
  padding-bottom: 0;
}

.it2-feed-body--text-only {
  padding-top: 7px;
}

.it2-feed-body--has-media {
  padding-top: 7px;
  gap: 8px;
}

.it2-feed-text.is-preview-capped {
  flex: 0 0 auto;
  max-height: calc(var(--it2-feed-preview-lines) * var(--it2-feed-body-lh) * 1em);
  max-height: calc(var(--it2-feed-preview-lines) * 1lh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 0;
}

.it2-feed-text.is-preview-capped::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.it2-feed-media {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  margin: 0;
  max-height: 108px;
  overflow: hidden;
}

.it2-feed-media-btn {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  flex: 1 1 42%;
  min-width: 0;
  max-width: calc(50% - 3px);
}

.it2-feed-media-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--src-color, #3B6FD9) 45%, transparent);
  outline-offset: 2px;
}

.it2-feed-media-img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(20, 18, 40, 0.04);
  border: 1px solid rgba(20, 18, 40, 0.06);
  box-shadow: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.it2-feed-media-btn:hover .it2-feed-media-img {
  transform: scale(1.02);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--src-color, #3B6FD9) 12%, rgba(20, 18, 40, 0.1));
}

.it2-feed-media[data-feed-media-count="1"] .it2-feed-media-btn {
  flex: 1 1 100%;
  max-width: 100%;
}

.it2-feed-modal-media {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 var(--it2-feed-pad-x);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.it2-feed-modal-media-item {
  margin: 0;
}

.it2-feed-modal-media .it2-feed-media-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(36vh, 280px);
  object-fit: contain;
  border-radius: 12px;
  background: rgba(20, 18, 40, 0.03);
  border: 1px solid rgba(20, 18, 40, 0.06);
  box-shadow: 0 4px 18px rgba(20, 18, 40, 0.06);
  transition: max-height 0.28s ease, box-shadow 0.22s ease;
}

.it2-feed-text {
  font-family: var(--it2-body-font);
  font-size: var(--it2-feed-body-size);
  font-weight: 400;
  line-height: var(--it2-feed-body-lh);
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--it2-body-color) 96%, #0f0e1a);
  margin: 0;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  text-align: start;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

.it2-feed-body-fade {
  display: none !important;
}

.it2-feed-expand-hint {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 4px;
  z-index: 2;
  transform: translateX(-50%);
  align-items: center;
  gap: 4px;
  padding: 4px 12px 5px;
  border-radius: 99px;
  font-family: var(--it2-body-font);
  font-size: clamp(10.5px, 0.8vw, 11.5px);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--src-color, #3B6FD9) 82%, #35344a);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--src-color, #3B6FD9) 22%, rgba(20, 18, 40, 0.08));
  box-shadow:
    0 2px 10px rgba(20, 18, 40, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  pointer-events: none;
  white-space: nowrap;
}

.it2-feed-expand-hint svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.it2-feed-card.is-expandable {
  cursor: pointer;
}

.it2-feed-card.is-expandable .it2-feed-expand-hint {
  display: inline-flex;
}

.it2-feed-card.is-expandable:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--src-color, #3B6FD9) 26%, rgba(20, 18, 40, 0.11));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 3px 8px rgba(20, 18, 40, 0.05),
    0 12px 32px color-mix(in srgb, var(--src-color, #3B6FD9) 9%, rgba(20, 18, 40, 0.08));
}

body.dark-mode .it2-feed-expand-hint {
  background: rgba(32, 30, 46, 0.96);
  border-color: color-mix(in srgb, var(--src-color, #3B6FD9) 28%, rgba(255, 255, 255, 0.12));
  color: color-mix(in srgb, var(--src-color, #3B6FD9) 55%, rgba(255, 255, 255, 0.88));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.it2-feed-foot {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  padding-top: 7px;
  margin-top: auto;
  flex-shrink: 0;
  border-top: 1px solid rgba(20, 18, 40, 0.05);
  position: relative;
  z-index: 1;
}

.it2-feed-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.it2-feed-tag {
  font-family: var(--it2-body-font);
  font-size: clamp(10px, 0.72vw, 11px);
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 9%, transparent);
  color: color-mix(in srgb, var(--src-color, #3B6FD9) 72%, #35344a);
  border: 1px solid color-mix(in srgb, var(--src-color, #3B6FD9) 12%, transparent);
  white-space: nowrap;
}

.it2-feed-stat {
  font-family: var(--it2-body-font);
  font-size: clamp(10px, 0.72vw, 11px);
  font-weight: 500;
  color: var(--it2-muted-color);
  white-space: nowrap;
}

body.dark-mode .it2-feed-card {
  background: linear-gradient(
    165deg,
    rgba(34, 32, 48, 0.96) 0%,
    color-mix(in srgb, var(--src-color, #3B6FD9) 6%, rgba(28, 26, 40, 0.94)) 100%
  );
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 4px 18px rgba(0, 0, 0, 0.28);
}

body.dark-mode .it2-feed-cap {
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 12%, rgba(255, 255, 255, 0.04));
  border-bottom-color: color-mix(in srgb, var(--src-color, #3B6FD9) 16%, rgba(255, 255, 255, 0.06));
}

body.dark-mode .it2-feed-src-name {
  color: color-mix(in srgb, var(--src-color, #3B6FD9) 72%, rgba(255, 255, 255, 0.82));
}

body.dark-mode .it2-feed-author {
  color: rgba(255, 255, 255, 0.94);
}

body.dark-mode .it2-feed-handle {
  color: rgba(255, 255, 255, 0.48);
  opacity: 1;
}

body.dark-mode .it2-feed-time {
  color: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

body.dark-mode .it2-feed-text {
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.018em;
}

body.dark-mode .it2-feed-icon {
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 16%, transparent);
}

@media (max-width: 720px) {
  .it2-feed-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── 消息详情弹层（右侧抽屉） ─────────────────────────── */
@keyframes it2-modalSlide {
  from { transform: translateX(12px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.it2-feed-modal {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}

.it2-feed-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(20, 18, 40, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: it2-modalBackdropIn 0.22s var(--ease-out) both;
}

@keyframes it2-modalBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.it2-feed-media-lightbox {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(8, 8, 16, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: it2-modalBackdropIn 0.2s var(--ease-out) both;
}

.it2-feed-media-lightbox[hidden] {
  display: none !important;
}

.it2-feed-media-lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.it2-feed-media-lightbox-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--it2-body-font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.it2-feed-media-lightbox-back:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.it2-feed-media-lightbox-counter {
  font-family: var(--it2-body-font);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
}

.it2-feed-media-lightbox-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 56px 20px;
  margin: 0;
  box-sizing: border-box;
}

.it2-feed-media-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.it2-feed-media-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: background 0.18s ease, opacity 0.18s ease;
}

.it2-feed-media-lightbox-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

.it2-feed-media-lightbox-nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.it2-feed-media-lightbox-nav[data-media-nav="prev"] {
  left: 14px;
}

.it2-feed-media-lightbox-nav[data-media-nav="next"] {
  right: 14px;
}

.it2-feed-modal-media-open {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.it2-feed-modal-media-open:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--src-color, #3B6FD9) 45%, transparent);
  outline-offset: 2px;
}

.it2-feed-modal-media-open .it2-feed-media-img {
  cursor: zoom-in;
}

.it2-feed-modal-panel {
  position: relative;
  z-index: 3;
  width: min(460px, 94%);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: calc(var(--it2-radius) + 4px) 0 0 calc(var(--it2-radius) + 4px);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--src-color, #3B6FD9) 4%, rgba(255, 255, 255, 0.99)) 0%,
    rgba(255, 255, 255, 0.98) 120px
  );
  border: 1px solid rgba(20, 18, 40, 0.09);
  border-right: none;
  box-shadow: -12px 0 48px rgba(20, 18, 40, 0.14);
  overflow: hidden;
  animation: it2-modalSlide 0.34s var(--ease-out) both;
}

.it2-feed-modal-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--src-color, #3B6FD9) 88%, #fff),
    color-mix(in srgb, var(--src-color, #3B6FD9) 35%, transparent)
  );
  z-index: 2;
  pointer-events: none;
}

body.dark-mode .it2-feed-modal-backdrop {
  background: rgba(0, 0, 0, 0.52);
}

body.dark-mode .it2-feed-modal-panel {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--src-color, #3B6FD9) 14%, rgba(26, 24, 38, 0.99)) 0%,
    rgba(26, 24, 38, 0.98) 140px
  );
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.42);
}

.it2-feed-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px var(--it2-feed-pad-x) 11px;
  border-bottom: 1px solid rgba(20, 18, 40, 0.07);
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 5%, rgba(255, 255, 255, 0.98));
  flex-shrink: 0;
}

body.dark-mode .it2-feed-modal-toolbar {
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 10%, rgba(26, 24, 38, 0.98));
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.it2-feed-modal-src-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--it2-body-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--src-color, #3B6FD9);
  letter-spacing: 0.01em;
}

.it2-feed-modal-src-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--src-color, #3B6FD9);
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--src-color, #3B6FD9) 16%, transparent);
}

.it2-feed-modal-src-icon svg {
  width: 13px;
  height: 13px;
}

.it2-feed-modal-close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(20, 18, 40, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--it2-muted-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.it2-feed-modal-close:hover {
  background: rgba(20, 18, 40, 0.05);
  color: var(--it2-body-color);
  border-color: rgba(20, 18, 40, 0.12);
}

body.dark-mode .it2-feed-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.58);
}

body.dark-mode .it2-feed-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
}

.it2-feed-modal-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 18, 40, 0.18) transparent;
}

.it2-feed-modal-hero {
  padding: 12px var(--it2-feed-pad-x) 11px;
  margin-bottom: 10px;
  border-radius: 0;
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 5%, rgba(255, 255, 255, 0.92));
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--src-color, #3B6FD9) 12%, rgba(20, 18, 40, 0.08));
}

body.dark-mode .it2-feed-modal-hero {
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 10%, rgba(255, 255, 255, 0.04));
  border-color: color-mix(in srgb, var(--src-color, #3B6FD9) 14%, rgba(255, 255, 255, 0.08));
}

body.dark-mode .it2-feed-modal-meta {
  border-top-color: rgba(255, 255, 255, 0.07);
}

.it2-feed-modal-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) var(--it2-feed-meta-col);
  align-items: center;
  column-gap: 10px;
  row-gap: 0;
  margin-bottom: 0;
}

.it2-feed-modal-head:not(:has(.it2-feed-modal-handle)) {
  grid-template-columns: 40px minmax(0, 1fr);
}

.it2-feed-modal-head:not(:has(.it2-feed-modal-handle)) .it2-feed-modal-author {
  grid-column: 2 / -1;
}

.it2-feed-modal-head-main {
  display: contents;
}

.it2-feed-modal-author {
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  font-family: var(--it2-title-font);
  font-size: var(--it2-feed-author-size);
  font-weight: 600;
  line-height: 1.32;
  color: var(--it2-body-color);
  letter-spacing: 0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dark-mode .it2-feed-modal-author {
  color: rgba(255, 255, 255, 0.94);
}

.it2-feed-modal-handle {
  grid-column: 3;
  grid-row: 1;
  font-family: var(--it2-body-font);
  font-size: var(--it2-feed-sub-size);
  color: color-mix(in srgb, var(--it2-muted-color) 88%, var(--it2-body-color));
  opacity: 0.78;
  justify-self: end;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.it2-feed-modal-meta {
  padding-top: 9px;
  margin-top: 9px;
  border-top: 1px solid rgba(20, 18, 40, 0.06);
  display: flex;
  justify-content: flex-end;
  text-align: right;
  width: 100%;
}

.it2-feed-modal-meta .it2-feed-modal-handle-time {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  max-width: 100%;
  margin-left: auto;
  white-space: nowrap;
  line-height: 1.25;
  color: var(--it2-muted-color);
  opacity: 0.88;
}

.it2-feed-modal-avatar {
  grid-column: 1;
  grid-row: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--it2-title-font);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  align-self: center;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95),
    0 4px 14px color-mix(in srgb, var(--src-color, #3B6FD9) 28%, transparent);
}

body.dark-mode .it2-feed-modal-avatar {
  box-shadow: 0 0 0 2px rgba(26, 24, 38, 0.95);
}

.it2-feed-modal-body {
  padding: 2px var(--it2-feed-pad-x) 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.dark-mode .it2-feed-modal-body {
  background: transparent;
  border: none;
  box-shadow: none;
}

.it2-feed-modal-text {
  display: flex;
  flex-direction: column;
  gap: calc(var(--it2-feed-body-lh) * 0.45em);
}

.it2-feed-modal-p {
  font-family: var(--it2-body-font);
  font-size: var(--it2-feed-body-size);
  line-height: var(--it2-feed-body-lh);
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--it2-body-color) 96%, #0f0e1a);
  text-align: start;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  margin: 0;
}

.it2-feed-modal-p + .it2-feed-modal-p {
  padding-top: 0;
}

body.dark-mode .it2-feed-modal-p {
  color: rgba(255, 255, 255, 0.78);
}

body.dark-mode .it2-feed-modal-src-badge {
  color: color-mix(in srgb, var(--src-color, #3B6FD9) 75%, rgba(255, 255, 255, 0.85));
}

.it2-feed-modal--tg-media .it2-feed-modal-scroll--media {
  padding: 14px 16px 18px;
}

.it2-feed-modal--tg-media .it2-feed-modal-panel {
  width: min(500px, 96%);
}

.it2-feed-modal-footer {
  flex-shrink: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(20, 18, 40, 0.07);
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 3%, rgba(20, 18, 40, 0.02));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.it2-feed-modal-origin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--src-color, #3B6FD9) 22%, rgba(20, 18, 40, 0.08));
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 8%, rgba(255, 255, 255, 0.92));
  color: var(--src-color, #3B6FD9);
  font-family: var(--it2-body-font);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.it2-feed-modal-origin:hover {
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 14%, rgba(255, 255, 255, 0.98));
  border-color: color-mix(in srgb, var(--src-color, #3B6FD9) 35%, rgba(20, 18, 40, 0.1));
}

.it2-feed-modal-origin-icon {
  display: flex;
  opacity: 0.88;
}

body.dark-mode .it2-feed-modal-origin {
  background: color-mix(in srgb, var(--src-color, #3B6FD9) 14%, rgba(255, 255, 255, 0.05));
  border-color: color-mix(in srgb, var(--src-color, #3B6FD9) 28%, rgba(255, 255, 255, 0.1));
  color: color-mix(in srgb, var(--src-color, #3B6FD9) 72%, rgba(255, 255, 255, 0.9));
}

body.dark-mode .it2-feed-modal-footer {
  border-top-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.it2-feed-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.it2-feed-modal-stats {
  font-family: var(--it2-body-font);
  font-size: var(--it2-muted-size);
  color: var(--it2-muted-color);
}

/* ─── 空状态 ────────────────────────────────────────────── */
.it2-feed-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 52px 28px;
  margin: 0;
  text-align: center;
  border: 1.5px dashed rgba(20, 18, 40, 0.10);
  border-radius: var(--it2-radius);
  background: rgba(255, 255, 255, 0.45);
  min-height: 0;
  box-sizing: border-box;
}

body.dark-mode .it2-feed-empty {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.it2-feed-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--c-hermes-rgb), 0.08);
  color: var(--c-hermes);
  opacity: 0.75;
  line-height: 1;
  margin-bottom: 2px;
}

.it2-feed-empty-title {
  font-family: var(--it2-title-font);
  font-size: var(--it2-title-size);
  font-weight: var(--it2-title-weight);
  color: var(--it2-title-color);
  letter-spacing: var(--it2-title-track);
}

body.dark-mode .it2-feed-empty-title {
  color: rgba(255, 255, 255, 0.82);
}

body.dark-mode .it2-feed-empty-sub {
  color: rgba(255, 255, 255, 0.58);
  opacity: 1;
}

.it2-feed-empty-sub {
  font-family: var(--it2-body-font);
  font-size: var(--it2-body-size);
  font-weight: 400;
  line-height: var(--it2-body-lh);
  color: var(--it2-body-color);
  opacity: 0.85;
  max-width: 280px;
}

/* ─── 占位面板 ──────────────────────────────────────────── */
.it2-panel-placeholder {
  align-items: stretch;
}

.it2-placeholder-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 48px 32px;
  margin: 8px 0 0;
  border: 2px solid rgba(20, 18, 40, 0.08);
  border-radius: var(--it2-radius);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 12px rgba(20, 18, 40, 0.04);
}

body.dark-mode .it2-placeholder-body {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.it2-placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--c-hermes-rgb), 0.08);
  color: var(--c-hermes);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 4px;
}

.it2-content .it2-panel-label,
.it2-placeholder-title {
  font-family: var(--it2-title-font);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: var(--it2-title-weight);
  color: var(--it2-title-color);
  letter-spacing: var(--it2-title-track);
  line-height: 1.12;
}

.it2-placeholder-title {
  color: #35344a;
}

body.dark-mode .it2-placeholder-title {
  color: rgba(255, 255, 255, 0.82);
}

body.dark-mode .it2-placeholder-desc {
  color: rgba(255, 255, 255, 0.58);
}

body.dark-mode .it2-placeholder-tag {
  color: rgba(255, 255, 255, 0.38);
  opacity: 1;
}

.it2-placeholder-desc {
  font-family: var(--it2-body-font);
  font-size: var(--it2-body-size);
  font-weight: 400;
  color: var(--it2-body-color);
  max-width: 400px;
  line-height: var(--it2-body-lh);
  margin: 0;
}

.it2-placeholder-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(59, 111, 217, 0.10);
  color: #3B6FD9;
  letter-spacing: 0.06em;
}

.it2-placeholder-badge-warn {
  background: rgba(192, 133, 0, 0.10);
  color: #C08500;
}

body.dark-mode .it2-placeholder-badge {
  background: rgba(59, 111, 217, 0.20);
  color: #7AAAF0;
}

body.dark-mode .it2-placeholder-badge-warn {
  background: rgba(192, 133, 0, 0.18);
  color: #E0A020;
}

.it2-placeholder-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--mt-muted);
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 6px;
}

/* ─── 异常 & 事件雷达面板 ─────────────────────────────── */
.it2-anomaly-body {
  padding: 0 4px 20px;
}

.it2-anomaly-desc {
  font-family: var(--it2-body-font);
  font-size: var(--it2-body-size);
  color: var(--it2-body-color);
  opacity: 0.72;
  line-height: var(--it2-body-lh);
  margin: 0 0 16px;
  max-width: 640px;
}

.it2-anomaly-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.it2-anomaly-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(20, 18, 40, 0.08);
  background: rgba(20, 18, 40, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.it2-anomaly-card.is-new {
  border-color: rgba(220, 76, 76, 0.35);
  box-shadow: 0 0 0 1px rgba(220, 76, 76, 0.08);
}

.it2-anomaly-card.is-search-hit {
  box-shadow: 0 0 0 2px rgba(var(--c-hermes-rgb), 0.35);
}

.it2-anomaly-card--critical {
  border-left: 3px solid #DC4C4C;
}

.it2-anomaly-card--warn {
  border-left: 3px solid #C08500;
}

.it2-anomaly-card--info {
  border-left: 3px solid #3B6FD9;
}

.it2-anomaly-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.it2-anomaly-level {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6868a0;
}

.it2-anomaly-new-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: #DC4C4C;
  padding: 1px 5px;
  border-radius: 4px;
}

.it2-anomaly-time {
  margin-left: auto;
  font-family: var(--it2-body-font);
  font-size: 11px;
  color: var(--mt-muted);
}

.it2-anomaly-title {
  font-family: var(--it2-body-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--it2-body-color);
  margin: 0 0 6px;
}

.it2-anomaly-text {
  font-family: var(--it2-body-font);
  font-size: var(--it2-body-size);
  color: var(--it2-body-color);
  opacity: 0.78;
  line-height: var(--it2-body-lh);
  margin: 0;
}

.it2-anomaly-empty {
  font-family: var(--it2-body-font);
  font-size: var(--it2-body-size);
  color: var(--mt-muted);
  padding: 24px 0;
  text-align: center;
}

body.dark-mode .it2-anomaly-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .it2-anomaly-card.is-new {
  border-color: rgba(255, 107, 107, 0.4);
}

/* ─── 响应式 ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .it2-sidebar {
    width: 52px;
    min-width: 52px;
  }
  .it2-sidebar-header {
    padding: 8px 6px;
  }
  .it2-home-btn {
    min-height: 38px;
    padding: 4px;
  }
  .it2-home-btn-arrow svg {
    width: 26px;
    height: 26px;
  }
  .it2-search-input {
    font-size: 0;
    width: 0;
    padding: 0;
  }
  .it2-search-input::placeholder {
    color: transparent;
  }
  .it2-search-box {
    justify-content: center;
    padding: 8px;
  }
  .it2-sidebar-search {
    padding: 8px 6px 10px;
  }
  .it2-nav-label,
  .it2-nav-badge {
    display: none;
  }
  .it2-sidebar-alert-zone {
    display: none;
  }
  .it2-nav-item {
    justify-content: center;
    padding: 10px;
  }
  .it2-panel {
    padding: 0 0 16px;
  }
}

@media (max-width: 600px) {
  .it2-src-bar {
    gap: 8px;
    padding: 8px 8px 8px 10px;
  }
  .it2-src-bar-actions {
    padding-left: 0;
    border-left: none;
  }
}

/* ══════════════════════════════════════════════
   BTC 技术指标面板
══════════════════════════════════════════════ */

/* BTC 模式：内容区纵向撑满 */
.it2-platforms-body .it2-feed-section.is-btc-mode {
  flex: 1 1 0;
  min-height: 0;
}

.it2-platforms-body .it2-feed-viewport-wrap.is-btc-mode {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.it2-feed-viewport.is-btc-mode {
  flex: 1 1 0;
  min-height: 0;
}

.it2-feed-grid--btc {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  grid-template-columns: none !important;
  padding: clamp(10px, 1vw, 16px) clamp(12px, 1.1vw, 18px) clamp(14px, 1.4vw, 22px);
  gap: 0;
  box-sizing: border-box;
}

/* ── 仪表盘根容器 ─────────────────────── */
.it2-btc-dashboard {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.25vw, 20px);
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

.it2-btc-dashboard--loading .it2-btc-state-msg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-family: var(--it2-body-font);
  font-size: var(--it2-muted-size);
  color: var(--it2-muted-color);
}

/* ── 顶栏（对齐夜间一览标题区） ───────── */
.it2-btc-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 2px 2px 4px;
  flex-shrink: 0;
}

.it2-btc-hero-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.it2-btc-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(247, 147, 26, 0.12);
  color: #c9740f;
  flex-shrink: 0;
}

.it2-btc-hero-title {
  margin: 0;
  font-family: var(--it2-title-font);
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: var(--it2-title-weight);
  letter-spacing: var(--it2-title-track);
  color: var(--it2-title-color);
}

.it2-btc-hero-sub {
  margin: 6px 0 0;
  padding-left: 46px;
  font-family: var(--it2-body-font);
  font-size: var(--it2-muted-size);
  line-height: 1.5;
  color: var(--it2-muted-color);
}

.it2-btc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
}

.it2-btc-hero-spot {
  font-family: var(--it2-title-font);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--it2-title-color);
}

.it2-btc-hero-time {
  font-size: var(--it2-muted-size);
  color: var(--it2-muted-color);
  font-variant-numeric: tabular-nums;
}

.it2-platforms-body .it2-btc-refresh-btn {
  flex-shrink: 0;
}

/* ── 图例条 ───────────────────────────── */
.it2-btc-legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 12px;
  border-radius: calc(var(--it2-radius) - 2px);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 18, 40, 0.08);
  font-size: var(--it2-feed-meta-size);
  color: var(--it2-muted-color);
  flex-shrink: 0;
}

body.dark-mode .it2-btc-legend-bar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.it2-btc-legend-item.it2-btc-bull { color: #1a9d62; font-weight: 600; }
.it2-btc-legend-item.it2-btc-bear { color: #d84343; font-weight: 600; }

/* ── 周期卡片网格（对齐 feed 双列） ───── */
.it2-btc-card-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.35vw, 22px);
  align-content: start;
  width: 100%;
  min-height: 0;
}

@media (min-width: 1180px) {
  .it2-btc-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .it2-btc-card-grid {
    grid-template-columns: 1fr;
  }
  .it2-btc-hero-sub {
    padding-left: 0;
  }
}

/* ── 单周期卡片（对齐 it2-feed-card） ─── */
.it2-btc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--it2-feed-pad-x);
  border-radius: var(--it2-radius);
  border: 1.5px solid rgba(20, 18, 40, 0.14);
  background: linear-gradient(
    165deg,
    #ffffff 0%,
    color-mix(in srgb, var(--src-color, #f7931a) 4%, #fffaf5) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.85) inset,
    0 1px 2px rgba(20, 18, 40, 0.05),
    0 2px 8px rgba(20, 18, 40, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.it2-btc-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--src-color, #f7931a) 28%, rgba(20, 18, 40, 0.14));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 2px 6px rgba(20, 18, 40, 0.06),
    0 4px 14px rgba(20, 18, 40, 0.06);
}

body.dark-mode .it2-btc-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.06) 0%,
    color-mix(in srgb, var(--src-color, #f7931a) 8%, rgba(20, 18, 40, 0.5)) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.it2-btc-card-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.it2-btc-card-period {
  font-size: var(--it2-feed-src-size);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--it2-muted-color);
}

.it2-btc-card-cross {
  font-size: var(--it2-feed-meta-size);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(20, 18, 40, 0.06);
  color: var(--it2-muted-color);
}

.it2-btc-card-cross.it2-btc-bull {
  background: rgba(38, 199, 133, 0.12);
  color: #1a9d62;
}

.it2-btc-card-cross.it2-btc-bear {
  background: rgba(239, 83, 80, 0.12);
  color: #d84343;
}

.it2-btc-card-price {
  font-family: var(--it2-title-font);
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--it2-title-color);
  line-height: 1.15;
}

.it2-btc-card-price.it2-btc-bull { color: #1a9d62; }
.it2-btc-card-price.it2-btc-bear { color: #d84343; }

/* ── 指标表 ───────────────────────────── */
.it2-btc-metrics {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--it2-body-font);
  font-size: var(--it2-feed-sub-size);
}

.it2-btc-metrics thead th {
  padding: 0 0 8px;
  font-size: var(--it2-feed-meta-size);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--it2-muted-color);
  text-align: right;
  border-bottom: 1px solid rgba(20, 18, 40, 0.08);
}

.it2-btc-metrics thead th:first-child {
  text-align: left;
  width: 28%;
}

body.dark-mode .it2-btc-metrics thead th {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.it2-btc-metrics tbody tr + tr td,
.it2-btc-metrics tbody tr + tr th {
  padding-top: 10px;
}

.it2-btc-metric-name {
  padding: 10px 0 0;
  font-weight: 600;
  text-align: left;
  color: var(--it2-muted-color);
}

.it2-btc-metric-conf,
.it2-btc-metric-live {
  padding: 10px 0 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--it2-body-color);
}

.it2-btc-metric-conf.it2-btc-bull { color: #1a9d62; }
.it2-btc-metric-conf.it2-btc-bear { color: #d84343; }

.it2-btc-metric-live {
  font-weight: 500;
  color: var(--it2-muted-color);
}

.it2-btc-metric-live.is-same {
  opacity: 0.45;
}

.it2-btc-card--error .it2-btc-card-error {
  margin: 0;
  font-size: var(--it2-feed-sub-size);
  color: #d84343;
  line-height: 1.5;
}

.it2-btc-footnote {
  flex-shrink: 0;
  margin: 0;
  padding-top: 4px;
  font-size: var(--it2-feed-meta-size);
  text-align: center;
  color: var(--it2-muted-color);
  opacity: 0.85;
}

.it2-btc-bull { color: #1a9d62; }
.it2-btc-bear { color: #d84343; }
