/* Codex 重置雷达：结构对齐模板站，配色改为 AIplain 黄玻璃（暗色默认 / 亮色）。
   背景字符场仍由 site-bg.js 使用 #41ff8b，本页不引入琥珀色字形。 */
.cr {
  --cr-bg: #12140e;
  --cr-panel: #191b14;
  --cr-line: rgba(243, 210, 74, 0.16);
  --cr-text: #eee9d4;
  --cr-sec: #9a9578;
  --cr-dim: #6f6b56;
  --cr-gold: #f3d24a;
  --cr-gold-d: #c9a227;
  --cr-red: #f87171;
  --cr-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  max-width: 1080px;
  margin: 0 auto 1.4rem;
  padding: 22px 22px 18px;
  border-radius: 22px;
  color: var(--cr-text);
  background:
    radial-gradient(700px 300px at 50% -60px, rgba(243, 210, 74, 0.14), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px),
    var(--cr-bg);
  border: 1px solid var(--cr-line);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
html:not(.dark) .cr {
  --cr-bg: rgba(255, 252, 245, 0.78);
  --cr-panel: rgba(255, 252, 245, 0.9);
  --cr-line: rgba(201, 162, 39, 0.28);
  --cr-text: #1c1a12;
  --cr-sec: #5a5646;
  --cr-dim: #7a7664;
  --cr-gold: #c9a227;
  --cr-gold-d: #8f7010;
  box-shadow: 0 18px 48px -24px rgba(80, 60, 10, 0.28);
}
.cr a { color: var(--cr-gold); }
.cr a:hover { text-decoration: underline; }
.cr-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--cr-mono);
  font-size: 11.5px;
  color: var(--cr-sec);
}
.cr-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  color: var(--cr-gold);
}
.cr-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cr-gold);
  box-shadow: 0 0 rgba(243, 210, 74, 0.6);
  animation: crPulse 1.8s infinite;
}
@keyframes crPulse {
  70% { box-shadow: 0 0 0 9px rgba(243, 210, 74, 0); }
  to { box-shadow: 0 0 rgba(243, 210, 74, 0); }
}
.cr-title {
  text-align: center;
  font-size: clamp(28px, 5.4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 22px 0 12px;
  line-height: 1.15;
  color: var(--cr-text);
}
.cr-title span {
  color: var(--cr-gold);
  text-shadow: 0 0 24px rgba(243, 210, 74, 0.35);
}
.cr-verdict-row { display: flex; justify-content: center; margin-bottom: 18px; }
.cr-verdict {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--cr-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cr-sec);
  text-align: center;
}
html:not(.dark) .cr-verdict { background: rgba(201, 162, 39, 0.06); }
.cr-verdict b { margin-right: 8px; font-family: var(--cr-mono); }
.cr-verdict.yes {
  border-color: rgba(243, 210, 74, 0.45);
  color: var(--cr-text);
  background: rgba(243, 210, 74, 0.1);
}
.cr-verdict.yes b { color: var(--cr-gold); }
.cr-verdict.done {
  border-color: rgba(243, 210, 74, 0.55);
  background: rgba(243, 210, 74, 0.14);
  color: var(--cr-text);
}
.cr-verdict.done b { color: var(--cr-gold); }
.cr-error {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: var(--cr-red);
  font-size: 13px;
}
.cr-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)), var(--cr-panel);
  border: 1px solid var(--cr-line);
  border-radius: 16px;
  padding: 16px 18px;
  min-width: 0;
}
.cr-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.cr-k { font-family: var(--cr-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--cr-dim); }
.cr-v { font-size: 13px; color: var(--cr-sec); margin-top: 4px; }
.cr-note { font-size: 11.5px; color: var(--cr-dim); line-height: 1.5; font-weight: 400; }
.cr-gauge-panel { display: flex; align-items: center; gap: 20px; }
.cr-gauge-wrap { position: relative; width: 190px; height: 190px; flex-shrink: 0; }
.cr-gauge { width: 100%; height: 100%; transform: rotate(-90deg); }
.cr-g-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 12; }
html:not(.dark) .cr-g-track { stroke: rgba(28, 26, 18, 0.1); }
.cr-g-val {
  fill: none;
  stroke: var(--cr-gold);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease;
  filter: drop-shadow(0 0 6px rgba(243, 210, 74, 0.45));
}
.cr-g-ring { fill: none; stroke: rgba(243, 210, 74, 0.18); stroke-width: 1; stroke-dasharray: 2 4; }
.cr-g-sweep {
  stroke: rgba(243, 210, 74, 0.5);
  stroke-width: 1.5;
  transform-origin: 100px 100px;
  animation: crSweep 4s linear infinite;
}
@keyframes crSweep { to { transform: rotate(360deg); } }
.cr-gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cr-pct {
  font-family: var(--cr-mono);
  font-size: 46px;
  font-weight: 800;
  color: var(--cr-gold);
  line-height: 1;
  text-shadow: 0 0 22px rgba(243, 210, 74, 0.35);
  font-variant-numeric: tabular-nums;
}
.cr-pct-label { font-size: 12px; color: var(--cr-sec); margin-top: 6px; }
.cr-gauge-side { flex: 1; min-width: 0; }
.cr-bars { margin: 14px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.cr-bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 42px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--cr-sec);
}
.cr-bar-row b {
  font-family: var(--cr-mono);
  color: var(--cr-gold);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cr-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
html:not(.dark) .cr-bar { background: rgba(28, 26, 18, 0.08); }
.cr-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cr-gold-d), var(--cr-gold));
  transition: width 1s ease;
}
.cr-last-panel { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.cr-ago {
  font-family: var(--cr-mono);
  font-size: clamp(30px, 4.6vw, 42px);
  font-weight: 800;
  color: var(--cr-gold);
  margin: 8px 0 2px;
  text-shadow: 0 0 22px rgba(243, 210, 74, 0.3);
  font-variant-numeric: tabular-nums;
}
.cr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.cr-chip {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--cr-line);
  color: var(--cr-sec);
}
.cr-banked {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(243, 210, 74, 0.35);
  background: rgba(243, 210, 74, 0.08);
  font-size: 12.5px;
  color: var(--cr-text);
}
.cr-banked b { color: var(--cr-gold); }
.cr-signal {
  margin-bottom: 14px;
  border-color: rgba(243, 210, 74, 0.35);
  background: linear-gradient(180deg, rgba(243, 210, 74, 0.08), rgba(243, 210, 74, 0.02)), var(--cr-panel);
}
.cr-signal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cr-text);
}
.cr-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--cr-mono);
  font-weight: 800;
  background: linear-gradient(135deg, #f3d24a, #8f7010);
  color: #1c1a12;
  flex-shrink: 0;
}
.cr-state {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.cr-state.wait { color: var(--cr-gold); border: 1px solid rgba(243, 210, 74, 0.4); }
.cr-state.ok { color: var(--cr-gold); border: 1px solid rgba(243, 210, 74, 0.55); }
.cr-signal-text {
  font-size: 15px;
  line-height: 1.75;
  margin: 12px 0 10px;
  color: var(--cr-text);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.cr-signal-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--cr-sec);
}
.cr-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.cr-stat-v {
  font-family: var(--cr-mono);
  font-size: 19px;
  font-weight: 800;
  margin: 6px 0 4px;
  color: var(--cr-text);
}
.cr-h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 800;
  color: var(--cr-text);
  margin-bottom: 12px;
}
.cr-rhythm { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.cr-rb {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}
.cr-rb i {
  display: block;
  width: 100%;
  max-width: 34px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--cr-gold), rgba(201, 162, 39, 0.25));
  min-height: 4px;
}
.cr-rb b { font-family: var(--cr-mono); font-size: 11px; color: var(--cr-gold); font-weight: 700; }
.cr-rb span { font-family: var(--cr-mono); font-size: 10.5px; color: var(--cr-dim); white-space: nowrap; }
.cr-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px;
  margin: 14px 0;
}
.cr-feed { display: flex; flex-direction: column; }
.cr-it { padding: 11px 0; border-top: 1px dashed var(--cr-line); }
.cr-it:first-child { border-top: 0; padding-top: 0; }
.cr-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--cr-dim);
  margin-bottom: 5px;
}
.cr-meta b { color: var(--cr-sec); font-weight: 700; font-family: var(--cr-mono); }
.cr-tag {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cr-gold-d);
  background: rgba(243, 210, 74, 0.14);
}
html.dark .cr-tag { color: var(--cr-gold); }
.cr-tag.hot {
  color: var(--cr-gold);
  background: rgba(243, 210, 74, 0.22);
}
.cr-tx {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--cr-text);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.cr-empty { font-size: 13px; color: var(--cr-dim); }
.cr-promo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(243, 210, 74, 0.35);
  background: linear-gradient(90deg, rgba(243, 210, 74, 0.14), rgba(243, 210, 74, 0.04));
  color: var(--cr-sec) !important;
  font-size: 13px;
  text-decoration: none !important;
}
.cr-promo b { color: var(--cr-text); margin-right: 8px; }
.cr-promo-go { color: var(--cr-gold); font-weight: 800; white-space: nowrap; }
.cr-promo:hover { border-color: var(--cr-gold); }
.cr-foot {
  font-size: 11.5px;
  color: var(--cr-dim);
  line-height: 1.7;
  margin-top: 14px;
}
@media (max-width: 860px) {
  .cr { padding: 16px 12px; border-radius: 18px; }
  .cr-main, .cr-cols { grid-template-columns: minmax(0, 1fr); }
  .cr-stats { gap: 8px; }
  .cr-stat { padding: 12px; }
  .cr-stat-v { font-size: 15px; }
}
@media (max-width: 520px) {
  .cr-gauge-panel { flex-direction: column; align-items: stretch; }
  .cr-gauge-wrap { margin: 0 auto; width: 170px; height: 170px; }
  .cr-pct { font-size: 40px; }
  .cr-stats { grid-template-columns: minmax(0, 1fr); }
  .cr-promo { flex-direction: column; align-items: flex-start; }
  .cr-rb span { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-live i, .cr-g-sweep { animation: none; }
}
