:root {
--bg: #0b1020;
--bg-soft: #121933;
--card: #161f3a;
--card-border: rgba(148, 163, 184, 0.14);
--text: #e8edf7;
--muted: #94a3b8;
--accent: #60a5fa;
--accent-2: #34d399;
--warn: #fbbf24;
--danger: #f87171;
--shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
--radius: 18px;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
background:
radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 28%),
radial-gradient(circle at top right, rgba(52, 211, 153, 0.12), transparent 24%),
var(--bg);
color: var(--text);
line-height: 1.6;
}
.page {
width: min(1100px, calc(100% - 32px));
margin: 0 auto;
padding: 32px 0 48px;
}
.hero {
padding: 24px 0 12px;
}
.eyebrow {
color: var(--accent);
font-size: 0.92rem;
letter-spacing: 0.08em;
text-transform: uppercase;
margin: 0 0 10px;
}
.hero h1 {
margin: 0;
font-size: clamp(2.2rem, 5vw, 3.6rem);
line-height: 1.1;
}
.hero h1 span {
color: var(--accent-2);
}
.lead {
max-width: 760px;
color: var(--muted);
font-size: 1.05rem;
margin-top: 16px;
}
.card {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
border: 1px solid var(--card-border);
border-radius: var(--radius);
padding: 24px;
margin-top: 20px;
box-shadow: var(--shadow);
}
.card h2 {
margin: 0 0 16px;
font-size: 1.35rem;
}
.flow {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
gap: 8px;
align-items: stretch;
}
.flow-step {
background: var(--bg-soft);
border: 1px solid var(--card-border);
border-radius: 14px;
padding: 14px;
min-height: 120px;
}
.flow-step.highlight {
border-color: rgba(52, 211, 153, 0.45);
background: rgba(52, 211, 153, 0.08);
}
.flow-step .num {
display: inline-flex;
width: 28px;
height: 28px;
align-items: center;
justify-content: center;
border-radius: 50%;
background: rgba(96, 165, 250, 0.18);
color: var(--accent);
font-weight: 700;
margin-bottom: 8px;
}
.flow-step p {
margin: 6px 0 0;
color: var(--muted);
font-size: 0.92rem;
}
.flow-arrow {
display: flex;
align-items: center;
justify-content: center;
color: var(--muted);
font-size: 1.4rem;
}
.compare-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.compare-item {
border-radius: 14px;
padding: 16px;
border: 1px solid var(--card-border);
}
.compare-item.weak {
background: rgba(248, 113, 113, 0.08);
border-color: rgba(248, 113, 113, 0.25);
}
.compare-item.strong {
background: rgba(52, 211, 153, 0.08);
border-color: rgba(52, 211, 153, 0.25);
}
.compare-item h3 {
margin: 0 0 8px;
font-size: 1.05rem;
}
.question {
color: var(--muted);
margin: 0;
}
.prompt-box {
margin-top: 18px;
background: #0a1228;
border: 1px solid var(--card-border);
border-radius: 14px;
overflow: hidden;
}
.prompt-label {
padding: 10px 14px;
font-size: 0.85rem;
color: var(--accent);
border-bottom: 1px solid var(--card-border);
}
pre {
margin: 0;
padding: 16px;
white-space: pre-wrap;
word-break: break-word;
font-family: Consolas, "Courier New", monospace;
font-size: 0.92rem;
color: #cbd5e1;
}
.controls {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
margin-top: 18px;
}
.btn {
border: none;
border-radius: 999px;
padding: 12px 20px;
font-size: 0.98rem;
cursor: pointer;
transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover:not(:disabled) {
transform: translateY(-1px);
}
.btn:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.btn.primary {
background: linear-gradient(135deg, #3b82f6, #2563eb);
color: white;
}
.btn.ghost {
background: transparent;
color: var(--text);
border: 1px solid var(--card-border);
}
.toggle {
display: flex;
align-items: center;
gap: 8px;
color: var(--muted);
font-size: 0.92rem;
}
.status {
margin-top: 16px;
padding: 12px 14px;
border-radius: 12px;
background: rgba(96, 165, 250, 0.08);
border: 1px solid rgba(96, 165, 250, 0.18);
color: #bfdbfe;
}
.chains {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 14px;
margin-top: 18px;
}
.chain-card {
background: var(--bg-soft);
border: 1px solid var(--card-border);
border-radius: 14px;
padding: 16px;
min-height: 280px;
opacity: 0;
transform: translateY(12px);
transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.25s ease;
}
.chain-card.visible {
opacity: 1;
transform: translateY(0);
}
.chain-card.winner {
border-color: rgba(52, 211, 153, 0.55);
box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.2);
}
.chain-card.wrong {
border-color: rgba(248, 113, 113, 0.45);
}
.chain-head {
display: flex;
justify-content: space-between;
gap: 8px;
align-items: center;
margin-bottom: 10px;
}
.chain-title {
font-weight: 700;
}
.badge {
font-size: 0.78rem;
padding: 4px 8px;
border-radius: 999px;
white-space: nowrap;
}
.badge.pending {
background: rgba(148, 163, 184, 0.15);
color: var(--muted);
}
.badge.thinking {
background: rgba(96, 165, 250, 0.18);
color: #bfdbfe;
}
.badge.correct {
background: rgba(52, 211, 153, 0.18);
color: #86efac;
}
.badge.wrong {
background: rgba(248, 113, 113, 0.18);
color: #fca5a5;
}
.chain-steps {
display: flex;
flex-direction: column;
gap: 8px;
}
.step {
padding: 10px 12px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid transparent;
color: #cbd5e1;
font-size: 0.92rem;
opacity: 0;
transform: translateX(-8px);
transition: opacity 0.25s ease, transform 0.25s ease;
}
.step.show {
opacity: 1;
transform: translateX(0);
}
.step.answer {
margin-top: 4px;
font-weight: 700;
color: var(--text);
border-color: rgba(96, 165, 250, 0.25);
}
.step.answer.correct {
border-color: rgba(52, 211, 153, 0.35);
background: rgba(52, 211, 153, 0.08);
}
.step.answer.wrong {
border-color: rgba(248, 113, 113, 0.35);
background: rgba(248, 113, 113, 0.08);
}
.vote-panel {
margin-top: 20px;
padding-top: 18px;
border-top: 1px solid var(--card-border);
}
.vote-panel.hidden {
display: none;
}
.vote-panel h3 {
margin: 0 0 14px;
}
.vote-bars {
display: flex;
flex-direction: column;
gap: 10px;
}
.vote-row {
display: grid;
grid-template-columns: 80px 1fr 72px;
gap: 12px;
align-items: center;
}
.vote-label {
font-weight: 700;
}
.bar-track {
height: 14px;
background: rgba(255, 255, 255, 0.06);
border-radius: 999px;
overflow: hidden;
}
.bar-fill {
height: 100%;
width: 0;
border-radius: 999px;
transition: width 0.6s ease;
}
.bar-fill.a24 {
background: linear-gradient(90deg, #ef4444, #f87171);
}
.bar-fill.a47 {
background: linear-gradient(90deg, #10b981, #34d399);
}
.vote-count {
color: var(--muted);
text-align: right;
}
.final-answer {
margin-top: 16px;
padding: 16px;
border-radius: 14px;
background: rgba(52, 211, 153, 0.1);
border: 1px solid rgba(52, 211, 153, 0.28);
}
.final-answer strong {
color: #86efac;
font-size: 1.2rem;
}
.takeaway ul {
margin: 0;
padding-left: 20px;
color: #cbd5e1;
}
.takeaway li + li {
margin-top: 8px;
}
footer {
text-align: center;
color: var(--muted);
margin-top: 28px;
font-size: 0.9rem;
}
@media (max-width: 900px) {
.flow {
grid-template-columns: 1fr;
}
.flow-arrow {
transform: rotate(90deg);
}
.compare-grid,
.chains {
grid-template-columns: 1fr;
}
}