/* 韩国市场风险监测站 — 样式 */
.korea-sticky {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 10px 18px; margin-bottom: 8px;
  background: var(--bg-card, #1a2332);
  border: 1px solid var(--border, #334155); border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.korea-sticky-item { display: flex; align-items: baseline; gap: 8px; }
.ks-label { font-size: 12px; color: var(--text-muted, #94a3b8); }
.ks-score { font-size: 24px; font-weight: 800; color: var(--text-primary, #f1f5f9); line-height: 1; }
.ks-level { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.korea-sticky-update { margin-left: auto; font-size: 11px; color: var(--text-muted, #94a3b8); }
.korea-refresh-btn {
  font-size: 12px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border, #334155); background: var(--bg-surface, #111827); color: var(--text-primary, #f1f5f9);
}
.korea-refresh-btn:hover { border-color: var(--accent, #297fd5); }

/* 总览 */
.korea-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.korea-panel {
  background: var(--bg-card, #1a2332); border: 1px solid var(--border, #334155);
  border-radius: 14px; padding: 18px 20px;
}
.korea-panel h3 { margin: 0 0 12px; font-size: 14px; color: var(--text-muted, #94a3b8); font-weight: 600; }
.korea-score-big { font-size: 52px; font-weight: 900; line-height: 1; }
.korea-level-pill { display: inline-block; margin-left: 10px; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; vertical-align: middle; }
.korea-diag { margin-top: 12px; font-size: 13px; color: var(--text-secondary, #cbd5e1); line-height: 1.6; }
.korea-bars { margin-top: 6px; }
.korea-bar-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; font-size: 12px; }
.korea-bar-name { width: 64px; color: var(--text-muted, #94a3b8); flex-shrink: 0; }
.korea-bar-track { flex: 1; height: 10px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.korea-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#297fd5,#62a0d8); }
.korea-bar-val { width: 78px; text-align: right; color: var(--text-primary, #f1f5f9); flex-shrink: 0; }

/* 域 */
.korea-domain { margin: 26px 0 8px; }
.korea-domain-title { font-size: 16px; font-weight: 700; color: var(--text-primary, #f1f5f9); padding-left: 10px; border-left: 3px solid var(--accent, #297fd5); margin-bottom: 12px; }
.korea-domain-title small { color: var(--text-muted, #94a3b8); font-weight: 400; margin-left: 8px; font-size: 12px; }
.korea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

/* 卡片 */
.korea-card {
  background: var(--bg-card, #1a2332); border: 1px solid var(--border, #334155);
  border-radius: 12px; padding: 14px 15px; display: flex; flex-direction: column; gap: 6px;
  cursor: pointer; transition: border-color .15s, transform .15s;
}
.korea-card:hover { border-color: var(--accent, #297fd5); transform: translateY(-2px); }
.kc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.kc-title { font-size: 13px; font-weight: 600; color: var(--text-primary, #f1f5f9); line-height: 1.3; }
.kc-badge { font-size: 10px; padding: 2px 7px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.kc-value { font-size: 26px; font-weight: 800; color: var(--text-primary, #f1f5f9); line-height: 1.1; }
.kc-value.empty { color: var(--text-muted, #64748b); font-size: 20px; font-weight: 600; }
.kc-delta { font-size: 12px; color: var(--text-muted, #94a3b8); }
.kc-meta { font-size: 10.5px; color: var(--text-muted, #94a3b8); display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.kc-flag { color: #f59e0b; font-size: 11px; }
.kc-spark { width: 100%; height: 46px; display: block; margin: 2px 0; }
.km-chart-label { font-size: 12px; color: var(--text-muted, #94a3b8); margin: 14px 0 4px; }
.kc-spark.km-big { height: 200px; }

/* 新鲜度 */
.fresh-live { background: rgba(34,197,94,.18); color: #4ade80; }
.fresh-fresh { background: rgba(34,197,94,.18); color: #4ade80; }
.fresh-stale { background: rgba(250,204,21,.18); color: #facc15; }
.fresh-old { background: rgba(239,68,68,.18); color: #f87171; }
.fresh-pending { background: rgba(148,163,184,.18); color: #94a3b8; }

/* 风险等级 */
.lv-high { background: rgba(239,68,68,.2); color: #f87171; }
.lv-mid { background: rgba(250,204,21,.2); color: #facc15; }
.lv-low { background: rgba(34,197,94,.2); color: #4ade80; }

/* 待接入清单 */
.korea-pending { margin-top: 30px; background: var(--bg-card, #1a2332); border: 1px solid var(--border, #334155); border-radius: 14px; padding: 18px 20px; }
.korea-pending h3 { margin: 0 0 10px; font-size: 14px; color: #f59e0b; }
.korea-pending ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text-secondary, #cbd5e1); line-height: 1.9; }
.korea-pending li b { color: var(--text-primary, #f1f5f9); }

/* 详情弹窗 */
.korea-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.korea-modal { background: var(--bg-card, #1a2332); border: 1px solid var(--border, #334155); border-radius: 14px; max-width: 560px; width: 100%; padding: 22px; max-height: 86vh; overflow: auto; }
.korea-modal h2 { margin: 0 0 4px; font-size: 18px; }
.korea-modal .km-row { display: flex; gap: 10px; font-size: 13px; margin: 8px 0; }
.korea-modal .km-k { width: 96px; color: var(--text-muted, #94a3b8); flex-shrink: 0; }
.korea-modal .km-close { float: right; cursor: pointer; color: var(--text-muted, #94a3b8); font-size: 20px; }
