:root {
  --bg: #0c0818;
  --panel: rgba(26, 18, 45, .86);
  --panel-strong: #211535;
  --line: rgba(255, 255, 255, .1);
  --text: #f8f4ff;
  --muted: #aaa2bc;
  --gold: #f2c879;
  --gold-deep: #b98132;
  --violet: #8b5cf6;
  --mint: #5eead4;
  --danger: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, .3);
  color-scheme: dark;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.home-body, .control-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(139, 92, 246, .18), transparent 28rem),
    radial-gradient(circle at 90% 40%, rgba(242, 200, 121, .1), transparent 30rem),
    #0d0917;
}

.home-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 32px; }
.home-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.home-hero h1 { margin: 10px 0 12px; font-size: clamp(36px, 5vw, 62px); letter-spacing: -.04em; }
.home-hero p { margin: 0; color: var(--muted); max-width: 700px; font-size: 18px; line-height: 1.8; }
.eyebrow, .panel-kicker { color: var(--gold); font-weight: 700; letter-spacing: .12em; font-size: 12px; text-transform: uppercase; }
.status-card { min-width: 290px; display: flex; gap: 13px; align-items: center; padding: 17px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.04); }
.status-card strong, .status-card small { display: block; }
.status-card small { color: var(--muted); margin-top: 5px; }
.status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 6px rgba(52, 211, 153, .12), 0 0 22px rgba(52, 211, 153, .7); }

.home-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 24px; padding: 24px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.panel h2 { margin: 8px 0 12px; }
.panel p { color: var(--muted); line-height: 1.7; }
.featured-panel { min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; position: relative; background: linear-gradient(145deg, rgba(70, 40, 115, .94), rgba(24, 16, 42, .94)); }
.featured-panel::before { content: "?"; position: absolute; right: 35px; top: -55px; font-family: Georgia, serif; font-size: 280px; color: rgba(255,255,255,.045); transform: rotate(10deg); }
.featured-panel > * { position: relative; }
.featured-panel h2 { font-size: 34px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.action-row.compact { margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 700; transition: .18s ease; color: var(--text); background: none; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.primary { color: #201424; background: linear-gradient(135deg, #f8d794, #d7a853); box-shadow: 0 10px 24px rgba(215, 168, 83, .2); }
.btn.accent { background: linear-gradient(135deg, #8b5cf6, #6d3ad6); }
.btn.secondary { border-color: var(--line); background: rgba(255,255,255,.07); }
.btn.ghost { color: var(--muted); border-color: var(--line); }
.btn.large { min-height: 52px; font-size: 16px; }
.btn.danger-text { width: 100%; color: #fda4af; margin-top: 16px; border: 0; }

.room-form { display: grid; gap: 13px; margin-top: 18px; }
.room-form label, .range-label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
input, select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; color: var(--text); background: rgba(0,0,0,.22); outline: none; }
input:focus, select:focus { border-color: rgba(242,200,121,.65); box-shadow: 0 0 0 3px rgba(242,200,121,.08); }
.rooms-panel { margin-top: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin-bottom: 0; }
.room-list { display: grid; gap: 10px; margin-top: 20px; }
.room-item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.03); }
.room-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #a78bfa, #6d28d9); font-weight: 900; font-size: 20px; }
.room-copy strong, .room-copy span { display: block; }
.room-copy span { color: var(--muted); margin-top: 4px; font-size: 13px; }
.room-actions { display: flex; gap: 8px; }
.home-footer { text-align: center; color: #716a80; padding-top: 28px; font-size: 13px; }

.control-header { height: 82px; padding: 0 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(11,7,19,.82); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.control-header h1 { font-size: 22px; margin: 4px 0 0; }
.back-link { color: var(--muted); font-size: 12px; }
.connection-pill { display: flex; align-items: center; gap: 10px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; color: #c9c2d5; font-size: 13px; }
.control-layout { width: min(1500px, calc(100% - 36px)); margin: 22px auto 40px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 22px; align-items: start; }
.control-main { min-width: 0; display: grid; gap: 18px; }
.controller-topline { display: flex; justify-content: space-between; align-items: center; }
.question-controller h2 { font-size: clamp(23px, 3vw, 34px); line-height: 1.45; max-width: 850px; }
.phase-badge { padding: 7px 11px; border-radius: 999px; color: #c7b9dc; background: rgba(255,255,255,.06); font-size: 12px; }
.phase-badge[data-phase="question"] { color: #99f6e4; background: rgba(20,184,166,.13); }
.phase-badge[data-phase="revealed"] { color: #fde68a; background: rgba(245,158,11,.13); }
.control-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.control-option { min-height: 64px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); }
.control-option b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--gold); background: rgba(242,200,121,.1); }
.control-option em { color: var(--muted); font-style: normal; font-size: 12px; }
.control-option.is-answer { border-color: rgba(94,234,212,.7); background: rgba(20,184,166,.09); }
.timer-line { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 20px; }
.timer-line > div { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.18); color: var(--muted); }
.timer-line strong { color: var(--text); }
.control-buttons { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 9px; }
.control-buttons .large { grid-column: span 2; }
.control-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.muted { color: var(--muted); font-size: 13px; }
.sim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.manual-answer { display: grid; grid-template-columns: 1fr 78px auto; gap: 8px; margin-top: 12px; }
.url-box { display: grid; gap: 7px; margin-top: 18px; }
.url-box span { color: var(--muted); font-size: 12px; }
.url-box code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 12px; border-radius: 10px; background: #0b0712; color: #d8c8ee; }
.bank-panel { padding-bottom: 10px; }
.search-input { margin: 18px 0 10px; }
.quiz-list { max-height: 410px; overflow: auto; display: grid; gap: 7px; padding-right: 4px; }
.quiz-item { width: 100%; display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 12px; text-align: left; border: 1px solid transparent; border-radius: 12px; padding: 12px; cursor: pointer; color: var(--text); background: rgba(255,255,255,.03); }
.quiz-item:hover, .quiz-item.active { border-color: rgba(242,200,121,.42); background: rgba(242,200,121,.07); }
.quiz-item span, .quiz-item em { color: var(--muted); font-style: normal; font-size: 12px; }
.preview-column { position: sticky; top: 104px; }
.preview-heading { margin-bottom: 10px; }
.preview-heading h2 { margin: 5px 0 0; font-size: 17px; }
.phone-frame { width: 390px; aspect-ratio: 9/16; padding: 9px; border-radius: 30px; background: #030205; box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.14); }
.phone-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 22px; background: #090611; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 12px; background: #f5d38b; color: #211425; font-weight: 700; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.live-body { min-height: 100vh; overflow-x: hidden; background: #08050f; }
.live-stage { width: 100vw; min-height: 100vh; position: relative; overflow: hidden; padding: clamp(22px, 3vw, 52px); background: radial-gradient(circle at 22% 5%, rgba(98,51,168,.38), transparent 35%), linear-gradient(160deg,#100a21 0%,#090611 58%,#08050f 100%); }
.ambient { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .15; pointer-events: none; }
.ambient-one { width: 26vw; height: 26vw; background: #8b5cf6; right: -8vw; top: 5vh; }
.ambient-two { width: 20vw; height: 20vw; background: #eab308; left: -8vw; bottom: 5vh; }
.live-header { position: relative; display: flex; justify-content: space-between; align-items: center; padding-bottom: clamp(16px,2vw,30px); border-bottom: 1px solid rgba(255,255,255,.1); }
.live-brand { color: var(--gold); font-weight: 900; font-size: clamp(15px, 1.6vw, 27px); letter-spacing: .12em; }
.live-header h1 { margin: 7px 0 0; font-size: clamp(13px, 1.1vw, 19px); color: #b8aec8; font-weight: 500; }
.round-clock { text-align: right; padding: 10px 15px; border-radius: 14px; background: rgba(255,255,255,.055); }
.round-clock small, .round-clock strong { display: block; }
.round-clock small { color: var(--muted); font-size: clamp(9px,.7vw,12px); }
.round-clock strong { margin-top: 4px; font-size: clamp(17px,1.5vw,25px); }
.live-content { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 28%); gap: clamp(16px, 2.2vw, 38px); margin-top: clamp(18px,2.5vw,38px); }
.quiz-area { min-width: 0; }
.question-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.question-meta span { padding: 6px 10px; border-radius: 999px; color: #c7bdd8; background: rgba(255,255,255,.06); font-size: clamp(9px,.9vw,14px); }
.question-meta span:first-child { color: var(--gold); }
.question-card { min-height: clamp(160px, 30vh, 420px); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(18px, 3vw, 46px); padding: clamp(18px,3vw,45px); border: 1px solid rgba(255,255,255,.1); border-radius: clamp(18px,2vw,32px); background: linear-gradient(145deg,rgba(48,27,78,.9),rgba(22,14,39,.92)); box-shadow: 0 22px 70px rgba(0,0,0,.28); }
.question-card h2 { margin: 0; font-size: clamp(21px, 3vw, 54px); line-height: 1.35; letter-spacing: -.02em; }
.card-image-wrap { width: clamp(110px, 16vw, 260px); aspect-ratio: .57/.95; position: relative; border-radius: 14px; overflow: hidden; background: #0a0710; box-shadow: 0 16px 35px rgba(0,0,0,.45); }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-mask { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; gap: 2px; transition: .5s; }
.image-mask i { background: #08060d; transition: transform .5s ease, opacity .5s; }
.image-mask i:nth-child(2), .image-mask i:nth-child(5) { opacity: 0; }
.image-mask.revealed i { opacity: 0; transform: scale(.5) rotate(8deg); }
.live-options { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px,1vw,15px); margin-top: clamp(12px,1.5vw,22px); }
.live-option { min-height: clamp(74px, 11vh, 150px); display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: clamp(10px,1.5vw,22px); border: 1px solid rgba(255,255,255,.1); border-radius: clamp(13px,1.5vw,22px); background: rgba(34,22,53,.88); transition: .3s; }
.option-copy { display: flex; align-items: center; min-width: 0; gap: clamp(9px,1.2vw,18px); }
.option-copy b { flex: 0 0 auto; width: clamp(34px,3vw,52px); height: clamp(34px,3vw,52px); display: grid; place-items: center; border: 1px solid rgba(242,200,121,.45); border-radius: 12px; color: var(--gold); background: rgba(242,200,121,.1); font-size: clamp(15px,1.4vw,24px); }
.option-copy strong { font-size: clamp(14px,1.45vw,26px); overflow: hidden; text-overflow: ellipsis; }
.option-avatars { display: flex; justify-content: flex-end; padding-left: 18px; }
.avatar { width: clamp(27px,2.4vw,42px); height: clamp(27px,2.4vw,42px); display: grid; flex: 0 0 auto; place-items: center; margin-left: -10px; border: 2px solid #211535; border-radius: 50%; object-fit: cover; color: white; background: var(--avatar); font-size: clamp(10px,.9vw,14px); font-weight: 900; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.avatar.small { width: clamp(24px,2vw,34px); height: clamp(24px,2vw,34px); margin-left: 0; }
.more-avatar { width: clamp(27px,2.4vw,42px); height: clamp(27px,2.4vw,42px); display: grid; place-items: center; margin-left: -10px; border-radius: 50%; border: 2px solid #211535; background: #413353; font-size: 10px; }
.live-option.correct { border-color: rgba(94,234,212,.8); background: linear-gradient(135deg,rgba(20,184,166,.22),rgba(34,22,53,.9)); box-shadow: 0 0 32px rgba(20,184,166,.14); }
.live-option.correct .option-copy b { color: #99f6e4; border-color: #5eead4; background: rgba(20,184,166,.2); }
.live-option.wrong { opacity: .55; }
.progress-area { margin-top: clamp(15px,1.8vw,26px); }
.progress-copy { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: clamp(11px,1vw,16px); }
.progress-copy strong { color: var(--text); font-size: clamp(28px,3vw,50px); line-height: 1; }
.progress-track { height: clamp(8px,.9vw,14px); overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.progress-fill { width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#4dd8c1,#8bf0dc); transition: width 1s linear; box-shadow: 0 0 18px rgba(94,234,212,.35); }
.progress-fill.urgent { background: linear-gradient(90deg,#fb7185,#f59e0b); }
.explain-card, .lead-card { margin-top: 14px; padding: 16px 18px; border-radius: 14px; }
.explain-card { border: 1px solid rgba(94,234,212,.24); background: rgba(20,184,166,.08); }
.explain-card span { color: #99f6e4; font-weight: 800; font-size: 12px; }
.explain-card p { margin: 6px 0 0; color: #d7efe9; line-height: 1.55; font-size: clamp(12px,1vw,17px); }
.lead-card { display: flex; justify-content: space-between; gap: 15px; color: #27181c; background: linear-gradient(135deg,#f6d48d,#dca957); }
.lead-card span { opacity: .75; }
.answer-feed { display: grid; gap: 5px; margin-top: 12px; }
.feed-item { width: fit-content; max-width: 100%; padding: 6px 10px; border-left: 2px solid #705a8e; border-radius: 3px 8px 8px 3px; background: rgba(255,255,255,.045); color: #bdb4ca; font-size: clamp(9px,.8vw,13px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item.reveal { border-color: var(--gold); color: #f4d99d; }
.ranking-area { display: grid; align-content: start; gap: 14px; }
.rank-card { padding: clamp(14px,1.5vw,24px); border: 1px solid rgba(255,255,255,.1); border-radius: clamp(14px,1.6vw,24px); background: rgba(25,17,42,.88); }
.rank-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 13px; }
.rank-title span { color: var(--gold); font-weight: 900; font-size: clamp(13px,1.3vw,22px); }
.rank-title small, .compact-rank p { color: var(--muted); }
.leaderboard { display: grid; gap: 6px; }
.rank-row { min-height: clamp(36px,4.5vw,57px); display: grid; grid-template-columns: 22px auto minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 9px; background: rgba(255,255,255,.035); }
.rank-row:first-child { background: linear-gradient(90deg,rgba(242,200,121,.17),rgba(255,255,255,.035)); }
.rank-row > b { color: var(--gold); }
.rank-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(10px,1vw,16px); }
.rank-row > strong { font-size: clamp(11px,1.1vw,18px); }
.empty-rank { padding: 28px 0; text-align: center; color: #716a80; }
.compact-rank .rank-title { margin: 0; }
.compact-rank .rank-title strong { font-size: clamp(25px,3vw,48px); }
.compact-rank p { margin: 4px 0 0; font-size: clamp(9px,.8vw,13px); }
.connection-note { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px; color: #90879e; font-size: 11px; }
.sound-button { position: fixed; right: 16px; bottom: 14px; z-index: 30; min-height: 36px; padding: 0 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #d6cce3; background: rgba(13,9,23,.78); backdrop-filter: blur(12px); cursor: pointer; }
.hidden { display: none !important; }

@media (max-width: 1050px) {
  .control-layout { grid-template-columns: 1fr; }
  .preview-column { position: static; }
  .phone-frame { margin: 0 auto; }
  .home-grid { grid-template-columns: 1fr; }
  .home-hero { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 700px) {
  .home-shell { width: min(100% - 24px, 1180px); padding-top: 28px; }
  .home-hero { gap: 20px; }
  .status-card { width: 100%; min-width: 0; }
  .room-item { grid-template-columns: 44px 1fr; }
  .room-actions { grid-column: 1/-1; }
  .control-header { padding: 0 14px; }
  .connection-pill { padding: 9px; }
  .control-layout { width: calc(100% - 20px); }
  .control-options, .control-columns { grid-template-columns: 1fr; }
  .control-buttons { grid-template-columns: 1fr 1fr; }
  .control-buttons .large { grid-column: span 1; }
  .manual-answer { grid-template-columns: 1fr 70px; }
  .manual-answer button { grid-column: 1/-1; }
  .quiz-item { grid-template-columns: 1fr; gap: 5px; }
  .phone-frame { width: min(100%, 390px); }
}

@media (orientation: portrait) and (max-aspect-ratio: 3/4) {
  .live-stage { padding: 18px 14px 54px; }
  .live-content { grid-template-columns: 1fr; }
  .ranking-area { grid-template-columns: 1fr 1fr; }
  .rank-card:first-child { grid-row: span 2; }
  .question-card { min-height: 250px; }
  .question-card h2 { font-size: clamp(22px,5.5vw,38px); }
  .live-option { min-height: 70px; }
  .option-copy strong { font-size: clamp(14px,3.3vw,21px); }
  .card-image-wrap { width: clamp(100px,28vw,180px); }
}


/* answer-page-v2 */
.answer-page { position: relative; display: grid; gap: clamp(14px,2vw,26px); margin-top: clamp(18px,2.5vw,38px); animation: answerIn .46s ease both; }
@keyframes answerIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.answer-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.answer-page-header span { color: var(--gold); font-weight: 900; letter-spacing: .16em; font-size: clamp(12px,1vw,17px); }
.answer-page-header h2 { margin: 8px 0 0; max-width: 980px; font-size: clamp(19px,2.2vw,38px); line-height: 1.35; }
.answer-round { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); white-space: nowrap; }
.answer-hero { min-height: clamp(300px,48vh,590px); display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: clamp(24px,4vw,70px); padding: clamp(24px,4vw,62px); border: 1px solid rgba(242,200,121,.24); border-radius: clamp(22px,2.5vw,38px); background: radial-gradient(circle at 12% 10%,rgba(139,92,246,.22),transparent 38%),linear-gradient(145deg,rgba(52,31,82,.95),rgba(19,13,33,.96)); box-shadow: 0 30px 90px rgba(0,0,0,.34); }
.answer-image-wrap { width: clamp(170px,22vw,350px); aspect-ratio: .57/.95; overflow: hidden; border: 3px solid rgba(242,200,121,.58); border-radius: 18px; box-shadow: 0 20px 55px rgba(0,0,0,.5),0 0 40px rgba(242,200,121,.12); }
.answer-image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; }
.answer-main-copy { min-width: 0; }
.answer-label { color: #a89db8; letter-spacing: .18em; font-weight: 800; font-size: clamp(11px,.9vw,15px); }
.answer-choice { display: flex; align-items: center; gap: clamp(15px,2vw,30px); margin: 14px 0 28px; }
.answer-choice b { width: clamp(62px,7vw,112px); height: clamp(62px,7vw,112px); flex: 0 0 auto; display: grid; place-items: center; border-radius: 24px; color: #26180e; background: linear-gradient(135deg,#ffe0a0,#d7a342); font-family: Georgia,serif; font-size: clamp(30px,4vw,65px); box-shadow: 0 16px 35px rgba(215,163,66,.25); }
.answer-choice strong { color: #fff7e8; font-size: clamp(28px,4vw,72px); line-height: 1.1; overflow-wrap: anywhere; }
.answer-explanation { padding: clamp(14px,1.8vw,24px); border-left: 3px solid var(--mint); border-radius: 0 16px 16px 0; background: rgba(20,184,166,.075); }
.answer-explanation span { color: #82ead7; font-size: 12px; font-weight: 900; }
.answer-explanation p { margin: 7px 0 0; color: #dfe8e6; line-height: 1.65; font-size: clamp(13px,1.25vw,21px); }
.answer-lower-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.answer-stat-card { padding: clamp(15px,1.8vw,25px); border: 1px solid var(--line); border-radius: 20px; background: rgba(26,18,45,.86); }
.answer-stat-card > header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 13px; }
.answer-stat-card > header span { color: var(--gold); font-weight: 900; }
.answer-stat-card > header strong { color: var(--muted); font-size: 12px; }
.answer-distribution,.answer-winners { display: grid; gap: 7px; }
.distribution-row { display: grid; grid-template-columns: 30px minmax(80px,1fr) minmax(90px,1.4fr) 48px; align-items: center; gap: 9px; color: #b8afc5; font-size: clamp(10px,.9vw,14px); }
.distribution-row b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.06); }
.distribution-row > div { height: 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.distribution-row i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: #736382; }
.distribution-row.correct { color: #a7f3d0; }
.distribution-row.correct b,.distribution-row.correct i { background: #2dd4bf; color: #08231e; }
.answer-winner { display: grid; grid-template-columns: 22px auto minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 38px; padding: 5px 8px; border-radius: 9px; background: rgba(255,255,255,.035); }
.answer-winner:first-child { background: rgba(242,200,121,.11); }
.answer-winner > b { color: var(--gold); }
.answer-winner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.answer-lead { display: flex; justify-content: space-between; gap: 15px; padding: 15px 20px; border-radius: 14px; color: #28190f; background: linear-gradient(135deg,#ffe0a0,#d7a342); }
.next-tip { text-align: center; color: #776f85; font-size: 12px; }
@media (orientation: portrait) and (max-aspect-ratio: 3/4) {
  .answer-page { gap: 12px; }
  .answer-page-header { align-items: flex-start; }
  .answer-hero { min-height: 470px; grid-template-columns: 38% 1fr; gap: 16px; padding: 20px 16px; }
  .answer-image-wrap { width: 100%; }
  .answer-choice { align-items: flex-start; flex-direction: column; gap: 10px; margin: 10px 0 16px; }
  .answer-choice b { width: 52px; height: 52px; border-radius: 15px; }
  .answer-choice strong { font-size: clamp(24px,7vw,40px); }
  .answer-explanation { padding: 11px; }
  .answer-lower-grid { grid-template-columns: 1fr; }
  .answer-winners { grid-template-columns: 1fr 1fr; }
  .answer-lead { flex-direction: column; gap: 4px; }
}


/* lead-settings-v2 */
.lead-settings-box { display: grid; gap: 9px; margin-top: 18px; padding: 14px; border: 1px solid rgba(242,200,121,.2); border-radius: 14px; background: rgba(242,200,121,.045); }
.lead-settings-box .setting-title { color: var(--gold); font-weight: 800; }
.lead-settings-box label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.lead-settings-box small { color: #887f94; line-height: 1.55; }
.lead-settings-box .toggle-line { display: flex; align-items: center; gap: 8px; }
.lead-settings-box .toggle-line input { width: 17px; min-height: 17px; accent-color: var(--gold-deep); }


/* douyin-official-integration */
.integration-panel { display: grid; gap: 16px; }
.integration-badge { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.integration-badge[data-state="waiting"] { color: #fde68a; border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.08); }
.integration-badge[data-state="verified"] { color: #99f6e4; border-color: rgba(45,212,191,.45); background: rgba(20,184,166,.1); }
.integration-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.integration-steps > div { display: flex; gap: 11px; align-items: center; min-height: 74px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.integration-steps b { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #8d849a; background: rgba(255,255,255,.06); }
.integration-steps span,.integration-steps strong,.integration-steps small { display: block; }
.integration-steps small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.integration-steps .done { border-color: rgba(45,212,191,.28); background: rgba(20,184,166,.06); }
.integration-steps .done b { color: #08231e; background: #5eead4; }
.integration-form { display: grid; grid-template-columns: .8fr 1.2fr 1fr auto; gap: 9px; align-items: end; }
.integration-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.callback-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 13px; border-radius: 13px; background: rgba(0,0,0,.18); }
.callback-box span { grid-column: 1/-1; color: var(--muted); font-size: 12px; }
.callback-box code { overflow: hidden; color: #d8c8ee; text-overflow: ellipsis; white-space: nowrap; }
.integration-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.integration-stats span { display: flex; justify-content: space-between; align-items: center; padding: 11px; border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 12px; }
.integration-stats strong { color: var(--text); font-size: 17px; }
.integration-note { margin: 0 !important; padding-left: 12px; border-left: 2px solid #675879; font-size: 12px; }
@media (max-width: 900px) {
  .integration-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .integration-steps,.integration-stats,.integration-form { grid-template-columns: 1fr; }
}

.integration-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
.integration-form .btn { min-height: 44px; }
.task-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.task-actions > span { margin-right: auto; color: var(--muted); font-size: 12px; }
.task-actions > span strong { margin-left: 5px; color: var(--mint); }
@media (max-width: 900px) { .integration-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .integration-form { grid-template-columns: 1fr; } }


/* automatic-answer-flow */
.auto-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 6px; padding: 11px 13px; border-radius: 13px; background: rgba(0,0,0,.18); }
.auto-flow span { display: flex; align-items: center; gap: 6px; color: #756d82; font-size: 12px; font-weight: 700; }
.auto-flow span b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #82788f; background: rgba(255,255,255,.06); }
.auto-flow span.active { color: #f5ddb0; }
.auto-flow span.active b { color: #291a0f; background: var(--gold); }
.auto-flow i { color: #554c62; font-style: normal; }
@media (max-width: 700px) { .auto-flow i { display: none; } .auto-flow { display: grid; grid-template-columns: 1fr 1fr; } }


/* unattended-autoplay */
.autoplay-banner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; margin: 18px 0 12px; padding: 15px; border: 1px solid rgba(94,234,212,.28); border-radius: 15px; background: linear-gradient(135deg,rgba(20,184,166,.09),rgba(139,92,246,.07)); }
.autoplay-banner div strong,.autoplay-banner div span { display: block; }
.autoplay-banner div strong { color: #a7f3d0; }
.autoplay-banner div span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.autoplay-banner.running { border-color: rgba(94,234,212,.7); box-shadow: 0 0 30px rgba(20,184,166,.12); }
.autoplay-banner.running > div strong::before { content: '●'; margin-right: 7px; color: #34d399; }
.manual-controls { opacity: .82; }
.auto-time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.auto-time-note { display: block; margin-top: 8px; color: #8f869c; line-height: 1.5; }
@media (max-width: 700px) { .autoplay-banner { grid-template-columns: 1fr 1fr; } .autoplay-banner > div { grid-column: 1/-1; } .auto-time-grid { grid-template-columns: 1fr; } }


/* production-login */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 25% 10%,rgba(139,92,246,.22),transparent 34rem),#0d0917; }
.login-card { width: min(430px,100%); padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); }
.login-card h1 { margin: 10px 0 8px; }
.login-card p { margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.login-card form { display: grid; gap: 14px; }
.login-card label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.login-error { min-height: 22px; margin-top: 14px; color: #fda4af; font-size: 13px; }
