/* ============================================
   Floating Report Cards
   5 张卡片漂浮在大界面上
   ============================================ */

.fcard {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  padding: 0;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(40, 30, 10, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(0, 24px) scale(0.96) rotate(var(--rot, 0deg));
  transition:
    opacity 480ms var(--ease-out),
    transform 600ms var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    background var(--t-fast) var(--ease-out),
    width 480ms var(--ease-out),
    height 480ms var(--ease-out),
    left 480ms var(--ease-out),
    top 480ms var(--ease-out);
  cursor: grab;
  pointer-events: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity, width, height;
  color: var(--text-primary);
}

.fcard.is-shown {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(var(--rot, 0deg));
}

.fcard-btn {
  margin-top: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-1);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
  align-self: flex-start;
}
.fcard-btn:hover {
  border-color: var(--accent);
  background: var(--bg-panel);
  color: var(--accent);
}

/* ====================== SUBDIM CARD (具象子维度小卡) ====================== */
.subdim {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
}
.subdim-head {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: var(--sp-2);
}
.subdim-icon {
  font-family: var(--font-mono);
  font-size: 18px;
  text-align: center;
}
.subdim-hint {
  font-family: var(--font-cn);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  line-height: 1.4;
}
.subdim-value {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.subdim-bar {
  position: relative;
  height: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.subdim-fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: var(--r-pill);
  transition: width 600ms var(--ease-out);
}
.subdim-triggers {
  font-family: var(--font-cn);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.4;
  padding: 4px 8px;
  background: var(--bg-elevated);
  border-radius: var(--r-1);
  border: 1px solid var(--border-faint);
}

.fcard.is-shown {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(var(--rot, 0deg));
}

.fcard:hover {
  z-index: 20;
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(37, 99, 217, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.fcard:active {
  cursor: grabbing;
}

.fcard.is-focused {
  z-index: 25;
  border-color: var(--accent);
  background: rgba(20, 27, 37, 0.95);
  box-shadow:
    0 16px 64px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--accent),
    0 0 24px rgba(74, 158, 255, 0.25);
}

/* ---- 5 张卡的尺寸（位置/角度由 JS 随机设置） ---- */

.fcard[data-card="01"] { width: 360px; max-width: 38vw; }
.fcard[data-card="02"] { width: 360px; max-width: 36vw; }
.fcard[data-card="03"] { width: 520px; max-width: 50vw; }
.fcard[data-card="04"] { width: 400px; max-width: 40vw; }
.fcard[data-card="05"] { width: 500px; max-width: 48vw; }

/* ---- v36.1 兜底：单张卡不超过视口，body 内部可滚动 ---- */
.fcard {
  max-height: calc(100vh - 48px - 200px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fcard-body,
.fcard-body-hero {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

@media (max-width: 1280px) {
  .fcard[data-card="01"] { width: 300px; }
  .fcard[data-card="02"] { width: 300px; }
  .fcard[data-card="03"] { width: 420px; }
  .fcard[data-card="04"] { width: 340px; }
  .fcard[data-card="05"] { width: 420px; }
}

@media (max-width: 768px) {
  .fcard {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: translate(0, 0) rotate(0) !important;
    margin-bottom: var(--sp-3);
  }
  .fcard.is-shown {
    transform: translate(0, 0) rotate(0) !important;
  }
  .stage-canvas {
    height: auto;
    padding: var(--sp-3);
    overflow-y: auto;
  }
}

/* ====================== CARD HEADER ====================== */

.fcard-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg,
    rgba(20, 27, 37, 0.6) 0%,
    rgba(15, 20, 27, 0.3) 100%
  );
  flex-shrink: 0;
}

.fcard-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  color: var(--accent);
  padding: 2px var(--sp-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-1);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.fcard-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fcard-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  padding: 1px var(--sp-1);
  background: var(--bg-deepest);
  border: 1px solid var(--border);
  border-radius: var(--r-1);
  flex-shrink: 0;
}

.fcard-tag.is-fallback { color: var(--warn); border-color: var(--warn); }

/* ====================== CARD BODY ====================== */

.fcard-body {
  padding: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.6;
  flex: 1;
  overflow-y: auto;
  max-height: 50vh;
}

/* 01 Summary */
.summary-input-echo {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  padding: var(--sp-2) var(--sp-2);
  background: var(--bg-deepest);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-1);
  margin-bottom: var(--sp-3);
  word-break: break-all;
  max-height: 80px;
  overflow-y: auto;
}

.summary-text {
  font-family: var(--font-cn);
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--text-primary);
}

/* 02 Clues */
.clues {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.clue {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: var(--sp-2);
  padding: var(--sp-2);
  background: var(--bg-deepest);
  border: 1px solid var(--border);
  border-radius: var(--r-1);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.clue-index {
  color: var(--text-tertiary);
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}

.clue-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clue-feature {
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: var(--fs-sm);
}

.clue-effect {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* 03 Scores */
.scores {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.score-row {
  display: grid;
  grid-template-columns: 110px 1fr 50px;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.score-label {
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.score-bar {
  position: relative;
  height: 6px;
  background: var(--bg-deepest);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.score-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--cyan) 100%);
  border-radius: var(--r-pill);
  transition: width 800ms var(--ease-out);
}

.score-fill.is-阳性倾向,
.score-fill.is-阴性倾向 {
  background: linear-gradient(90deg, var(--violet) 0%, var(--pink) 100%);
}
.score-fill.is-中性倾向 {
  background: linear-gradient(90deg, var(--text-tertiary) 0%, var(--text-secondary) 100%);
}
.score-fill.is-亲密倾向 {
  background: linear-gradient(90deg, var(--pink) 0%, var(--warn) 100%);
}
.score-fill.is-规范倾向 {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--accent) 100%);
}
.score-fill.is-偏移倾向 {
  background: linear-gradient(90deg, var(--mute) 0%, var(--ok) 100%);
}
.score-fill.is-不可归类指数 {
  background: linear-gradient(90deg, var(--warn) 0%, var(--violet) 100%);
}

.score-value {
  text-align: right;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.score-unit {
  color: var(--text-tertiary);
  font-size: 9px;
  margin-left: 1px;
}

/* 04 Judgement */
.judgement {
  font-family: var(--font-cn);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-primary);
  padding: var(--sp-3);
  background: var(--bg-deepest);
  border: 1px solid var(--border);
  border-left: 2px solid var(--mute);
  border-radius: var(--r-1);
}

.judgement-prefix {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--mute);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: var(--sp-2);
}

/* 05 Reveal */
.fcard[data-card="05"] {
  background: linear-gradient(180deg,
    rgba(74, 158, 255, 0.06) 0%,
    rgba(15, 20, 27, 0.78) 50%
  );
}

.reveal {
  font-family: var(--font-cn);
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  padding: var(--sp-2) 0;
  border-top: 1px dashed var(--border);
  margin-top: var(--sp-2);
}

.reveal-prefix {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: var(--sp-2);
  font-style: normal;
}

/* ====================== BIAS SOURCES (folded inside 02) ====================== */

.bias-sources {
  margin-top: var(--sp-2);
  padding: var(--sp-2);
  background: var(--bg-deepest);
  border: 1px solid var(--border);
  border-radius: var(--r-1);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  max-height: 200px;
  overflow-y: auto;
  animation: source-in 240ms var(--ease-out);
}

.bias-source {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: var(--sp-1) 0;
  border-bottom: 1px solid var(--border-faint);
}

.bias-source:last-child {
  border-bottom: 0;
}

.bias-source-id {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.bias-source-label {
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: var(--fs-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes source-in {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 200px; }
}

/* ====================== FOCUS MODE (click to focus a card) ====================== */

.fcard.is-focused {
  z-index: 100;
}

.fcard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 247, 0.4);
  z-index: 90;
  display: none;
  cursor: pointer;
}

.fcard-overlay.is-active {
  display: block;
  animation: overlay-in 240ms var(--ease-out);
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ====================== IMAGE OVERLAY (居中显示上传的图片) ====================== */

.image-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 250, 247, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: overlay-in 240ms var(--ease-out);
  padding: 5vh 5vw;
}
.image-overlay-img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--r-2);
  border: 1px solid var(--border);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.18);
  background: var(--bg-panel);
}
.image-overlay-info {
  position: absolute;
  left: 5vw;
  bottom: 5vh;
  max-width: 360px;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  font-family: var(--font-cn);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  line-height: 1.6;
}
.image-overlay-info-row { display: flex; gap: var(--sp-2); margin: 2px 0; }
.image-overlay-info-label { color: var(--text-tertiary); font-family: var(--font-mono); font-size: var(--fs-xs); }
.image-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast) var(--ease-out);
}
.image-overlay-close:hover {
  background: var(--warn);
  border-color: var(--warn);
  color: #fff;
}

/* ====================== FCARD REACTION STATES (被反应后高亮) ====================== */

.fcard.is-accept {
  border-color: var(--ok);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.12),
    0 0 0 1px var(--ok),
    0 0 32px rgba(22, 163, 74, 0.24);
}
.fcard.is-reject {
  border-color: var(--warn);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.12),
    0 0 0 1px var(--warn),
    0 0 32px rgba(217, 76, 58, 0.24);
}
.fcard.is-modified {
  border-color: var(--accent);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.12),
    0 0 0 1px var(--accent),
    0 0 32px rgba(37, 99, 217, 0.24);
}

/* ====================== SLIDER (modify drawer 用) ====================== */

.bias-slider {
  display: grid;
  grid-template-columns: 110px 1fr 48px;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
}
.bias-slider-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}
.bias-slider-track {
  position: relative;
  height: 6px;
  background: var(--bg-deepest);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.bias-slider-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--cyan) 100%);
  border-radius: var(--r-pill);
  transition: width 240ms var(--ease-out);
}
.bias-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.bias-slider-value {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ====================== BIAS SOURCES (查看偏见来源弹层) ====================== */

.bias-sources-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(250, 250, 247, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  animation: overlay-in 240ms var(--ease-out);
}
.bias-sources-modal {
  max-width: 720px;
  width: 100%;
  max-height: 80vh;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}
.bias-sources-modal-head {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  letter-spacing: 0.1em;
}
.bias-sources-modal-body {
  padding: var(--sp-3) var(--sp-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.bias-sources-modal-body .bias-source {
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-deepest);
  border: 1px solid var(--border);
  border-radius: var(--r-1);
  grid-template-columns: 88px 1fr 80px;
}
.bias-sources-modal-body .bias-source-id { color: var(--accent); }
.bias-sources-modal-body .bias-source-label { font-family: var(--font-cn); }
.bias-sources-modal-body .bias-source-weight {
  text-align: right;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

/* ====================== 偏见来源 · 精确化 ====================== */

.bias-sources-modal-body .bias-source {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-1);
  margin-bottom: var(--sp-2);
}
.bias-sources-modal-body .bias-source:hover {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.bias-sources-modal-body .clue-feature-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-bottom: 4px;
}
.bias-sources-modal-body .clue-feature-row .clue-feature {
  flex: 1;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
}
.bias-sources-modal-body .bias-cats {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.bias-sources-modal-body .bias-cat-badge {
  display: inline-block;
  padding: 1px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  border: 1px solid;
  border-radius: var(--r-pill);
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.bias-sources-modal-body .bias-counter {
  margin-top: 4px;
  padding: 4px 8px;
  font-family: var(--font-cn);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  background: rgba(0,0,0,0.03);
  border-radius: var(--r-1);
  line-height: 1.5;
  font-style: italic;
}
.bias-sources-modal-body .clue-effect {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.bias-sources-modal-head {
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%);
  border-bottom: 1px solid var(--accent-line);
}

.fcard-hero {
  z-index: 30;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(250, 250, 247, 0.96) 100%);
  border-color: var(--accent);
  box-shadow:
    0 16px 64px rgba(0, 0, 0, 0.18),
    0 0 0 1px var(--accent-line),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
.fcard-hero:hover {
  background: linear-gradient(180deg, #fff 0%, #fafaf7 100%);
  box-shadow:
    0 24px 96px rgba(0, 0, 0, 0.24),
    0 0 0 1px var(--accent),
    0 0 32px rgba(37, 99, 217, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
.fcard-head-hero {
  background: linear-gradient(180deg,
    var(--accent-soft) 0%,
    rgba(255, 255, 255, 0.6) 100%);
  border-bottom: 1px solid var(--accent-line);
}
.fcard-head-hero .fcard-num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.fcard-head-hero .fcard-title {
  color: var(--accent);
  font-weight: 600;
}
.fcard-body-hero {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-4);
  max-height: none;
  overflow-y: auto;
}
.hero-input {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-deepest);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-1);
  word-break: break-all;
  max-height: 96px;
  overflow-y: auto;
  line-height: 1.5;
}
.hero-title {
  font-family: var(--font-cn);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-top: var(--sp-1);
}
.hero-desc {
  font-family: var(--font-cn);
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.65;
  padding: var(--sp-2) 0;
  border-bottom: 1px dashed var(--border);
}
.hero-dims {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
}
.hero-dim {
  display: grid;
  grid-template-columns: 130px 1fr 56px;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}
.hero-dim-label {
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-dim-bar {
  position: relative;
  height: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.hero-dim-fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: var(--r-pill);
  transition: width 700ms var(--ease-out);
  box-shadow: 0 0 12px currentColor;
  opacity: 0.85;
}
.hero-dim-val {
  text-align: right;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: var(--fs-sm);
}
.hero-clues {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-1);
}
.hero-clue {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: baseline;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 3px 0;
  border-bottom: 1px dashed var(--border-faint);
}
.hero-clue:last-child { border-bottom: 0; }
.hero-clue-mark {
  color: var(--accent);
  text-align: center;
  font-weight: 700;
}
.hero-clue-feature {
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: var(--fs-sm);
}
.hero-clue-effect {
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  font-size: var(--fs-xs);
  text-align: right;
  white-space: nowrap;
}

/* ============================================
   v36 hero inline block · 与 v36 demo 视觉统一
   ============================================ */
.hero-v36-block {
  margin: 14px 0 16px 0;
  padding: 12px 14px 14px 14px;
  background: #fafafa;
  border: 1px solid #1a1a1a;
  border-left: 4px solid #1a1a1a;
}
.hero-v36-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #d1d5db;
}
.hero-v36-num {
  font-size: 11px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 1px;
  font-family: var(--mono, monospace);
}
.hero-v36-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 1px;
}
.hero-v36-meta {
  font-size: 11px;
  color: #6b7280;
  font-style: italic;
}
.hero-v36-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fafafa;
  background: #1a1a1a;
  padding: 2px 6px;
}
.hero-v36-radar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  min-height: 260px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  margin-bottom: 10px;
}
.hero-v36-radar svg { max-width: 100%; height: auto; }
.hero-v36-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.hero-v36-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-top: 3px solid #059669;
  font-size: 11px;
}
.hero-v36-card-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hero-v36-card-num {
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--mono, monospace);
}
.hero-v36-card-name {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 12px;
  flex: 1;
}
.hero-v36-card-score {
  font-size: 12px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
  font-family: var(--mono, monospace);
}
.hero-v36-card-score-high     { background: #d1fae5; color: #065f46; }
.hero-v36-card-score-mid      { background: #fef3c7; color: #92400e; }
.hero-v36-card-score-low      { background: #fee2e2; color: #991b1b; }
.hero-v36-card-score-overflow { background: #1a1a1a; color: #dc2626; font-size: 13px; }
.hero-v36-card-overflow {
  padding: 6px 8px;
  background: #1a1a1a;
  color: #fafafa;
  font-size: 10px;
  line-height: 1.4;
  border-left: 3px solid #dc2626;
}
.hero-v36-card-overflow-label { color: #f59e0b; font-weight: 700; }
.hero-v36-card-overflow-num   { color: #dc2626; font-weight: 700; font-size: 14px; }
.hero-v36-card-overflow-msg   { color: #d1d5db; margin-top: 2px; }
.hero-v36-card-rationale {
  font-size: 11px;
  color: #374151;
  line-height: 1.5;
}
.hero-v36-card-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px dashed #e5e7eb;
}
.hero-v36-card-ev-tag {
  padding: 2px 6px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #1a1a1a;
  font-size: 10px;
  font-family: var(--mono, monospace);
}

.hero-reveal {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  padding: var(--sp-3);
  background: linear-gradient(90deg,
    rgba(37, 99, 217, 0.04) 0%,
    transparent 100%);
  border: 1px solid var(--border-faint);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-1);
  font-family: var(--font-cn);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
}
.hero-reveal-mark {
  color: var(--accent);
  font-weight: 700;
  font-style: normal;
  font-size: var(--fs-md);
}

/* ====================== SYSTEM WARNING（危险系统输出） ====================== */
.hero-warning {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: linear-gradient(135deg,
    rgba(220, 38, 38, 0.05) 0%,
    rgba(124, 58, 237, 0.04) 100%);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-left: 3px solid #dc2626;
  border-radius: var(--r-1);
  position: relative;
  overflow: hidden;
}
.hero-warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(220, 38, 38, 0.6) 50%,
    transparent 100%);
  animation: hero-warning-scan 2.4s linear infinite;
}
@keyframes hero-warning-scan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.hero-warning-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.hero-warning-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  background: #dc2626;
  color: #fff;
  border-radius: var(--r-1);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
}
.hero-warning-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}
.hero-warning-body {
  font-family: var(--font-cn);
  font-size: var(--fs-sm);
  color: #991b1b;
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ====================== BIAS AGENT LOG（系统运行日志） ====================== */
.hero-bias-log {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  background: linear-gradient(180deg,
    rgba(15, 23, 42, 0.04) 0%,
    rgba(15, 23, 42, 0.01) 100%);
  border: 1px dashed var(--border);
  border-radius: var(--r-1);
  font-family: var(--font-mono);
}
.hero-bias-log-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--border);
}
.hero-bias-log-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 6px #16a34a;
  animation: hero-bias-log-pulse 1.6s ease-in-out infinite;
}
@keyframes hero-bias-log-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.2); }
}
.hero-bias-log-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}
.hero-bias-log-line {
  display: grid;
  grid-template-columns: 64px 56px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  line-height: 1.5;
  padding: 1px 0;
  color: var(--text-secondary);
}
.hero-bias-log-ts {
  color: var(--text-tertiary);
  font-size: 9px;
  letter-spacing: 0.02em;
}
.hero-bias-log-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 1px 4px;
  border-radius: 2px;
  text-align: center;
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  border: 1px solid var(--border);
}
.hero-bias-log-gender  .hero-bias-log-tag { color: #ec4899; border-color: #ec4899; background: rgba(236, 72, 153, 0.06); }
.hero-bias-log-relation .hero-bias-log-tag { color: #d97706; border-color: #d97706; background: rgba(217, 119, 6, 0.06); }
.hero-bias-log-platform .hero-bias-log-tag { color: #7c3aed; border-color: #7c3aed; background: rgba(124, 58, 237, 0.06); }
.hero-bias-log-ad      .hero-bias-log-tag { color: #0891b2; border-color: #0891b2; background: rgba(8, 145, 178, 0.06); }
.hero-bias-log-archive .hero-bias-log-tag { color: #dc2626; border-color: #dc2626; background: rgba(220, 38, 38, 0.06); }
.hero-bias-log-txt {
  color: var(--text-secondary);
  font-family: var(--font-cn);
  font-size: 11px;
  letter-spacing: 0.01em;
}

/* ====================== SATELLITE CARDS (3 张小卡 · 顶部维度) ====================== */

.fcard-sat {
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border);
}
.fcard-sat:hover {
  border-color: var(--accent-line);
  z-index: 25;
}
.fcard-head-sat {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(250, 250, 247, 0.3) 100%);
}
.sat-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  max-height: none;
  overflow: hidden;
}
.sat-text {
  font-family: var(--font-cn);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.sat-bar {
  position: relative;
  height: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.sat-bar-fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: var(--r-pill);
  transition: width 600ms var(--ease-out);
}

/* ====================== DATA POINT CARDS (4 张数据点小卡) ====================== */

.fcard-data {
  z-index: 22;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-left-width: 3px;
}
.fcard-data:hover {
  z-index: 28;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.fcard-head-data {
  padding: 2px var(--sp-2);
  border-bottom: 1px solid var(--border-faint);
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, transparent 100%);
}
.fcard-head-data .data-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.data-body {
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 2px;
  padding: 4px var(--sp-2) !important;
  max-height: none !important;
  overflow: hidden;
}
.data-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-unit {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-tertiary);
  font-weight: 500;
}

@media (max-width: 1280px) {
  .fcard-hero { width: 540px !important; min-height: 480px !important; }
  .hero-dim { grid-template-columns: 110px 1fr 48px; }
  .fcard-sat { width: 200px !important; height: 140px !important; }
}
@media (max-width: 900px) {
  .fcard-hero { width: calc(100vw - 32px) !important; left: 16px !important; min-height: auto !important; }
  .fcard-sat { width: calc(50vw - 24px) !important; height: auto !important; }
  .fcard-data { display: none; }
  .hero-title { font-size: 22px; }
  .hero-dim { grid-template-columns: 90px 1fr 40px; font-size: 10px; }
}
@media (max-width: 640px) {
  .fcard-hero, .fcard-sat, .fcard-data { position: relative !important; top: auto !important; left: auto !important; right: auto !important; width: 100% !important; max-width: 100% !important; transform: rotate(0) !important; margin-bottom: var(--sp-3); }
  .fcard-hero.is-shown, .fcard-sat.is-shown, .fcard-data.is-shown { transform: rotate(0) !important; }
}
