:root {
  --bg: #0f1420;
  --bg2: #161d2e;
  --card: #1c2438;
  --card-hover: #232d46;
  --line: #2c3754;
  --text: #e8edf7;
  --text-dim: #94a0b8;
  --accent: #4f8cff;
  --accent2: #7c5cff;
  --ok: #2fbf8f;
  --warn: #ffb648;
  --bad: #ff5d6c;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: radial-gradient(1200px 800px at 20% -10%, #1a2440 0%, var(--bg) 55%);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app { height: 100%; }

.screen { display: none; min-height: 100vh; }
.screen.active { display: flex; flex-direction: column; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px; border-bottom: 1px solid var(--line);
  background: rgba(15, 20, 32, 0.6); backdrop-filter: blur(8px);
}
.logo { font-size: 18px; font-weight: 700; }
.tagline { color: var(--text-dim); font-size: 13px; }

.screen-body { flex: 1; padding: 32px 40px; max-width: 1080px; width: 100%; margin: 0 auto; }
.screen-body.center { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.title { font-size: 30px; font-weight: 700; margin-bottom: 12px; text-align: center; }
.title em { font-style: normal; color: var(--accent); }
.subtitle { color: var(--text-dim); margin-bottom: 32px; text-align: center; max-width: 560px; }

/* ---------- 卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; width: 100%; max-width: 920px; margin-bottom: 28px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: all .15s ease; text-align: left;
}
.card:hover { background: var(--card-hover); transform: translateY(-2px); }
.card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(79,140,255,.2); }
.card h3 { font-size: 17px; margin-bottom: 4px; }
.card .emoji { font-size: 30px; display: block; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.card .count { font-size: 12px; color: var(--accent); margin-top: 8px; display: block; }

/* ---------- 按钮 ---------- */
.btn {
  border: none; border-radius: 12px; padding: 12px 24px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .15s ease; font-family: inherit;
}
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.primary:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text-dim); }
.btn.ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-row { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }

/* ---------- 简历 ---------- */
.warn-box {
  background: rgba(255,182,72,.1); border: 1px solid rgba(255,182,72,.4);
  color: #ffd58a; border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-size: 14px; max-width: 620px;
}
.resume-form { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 620px; }
.resume-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-dim); }
.resume-form input, .resume-form textarea {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical;
}
.resume-form input:focus, .resume-form textarea:focus { outline: none; border-color: var(--accent); }

/* ---------- 候场 ---------- */
.waiting-stage { flex: 1; display: flex; align-items: center; justify-content: center; }
.waiting-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 40px 48px; min-width: 420px; text-align: center; }
.waiting-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.waiting-label { font-weight: 600; }
.waiting-status { color: var(--text-dim); font-size: 14px; }
.waiting-status.ok { color: var(--ok); }
.waiting-status.bad { color: var(--bad); }
.countdown { margin: 24px 0 8px; }
.countdown-num, #countdown-num { font-size: 72px; font-weight: 800; color: var(--accent); }
.waiting-hint { color: var(--text-dim); }

/* ---------- 面试 ---------- */
.interview-layout { display: grid; grid-template-columns: 1fr 420px; gap: 24px; flex: 1; padding: 24px 32px; max-width: 1280px; width: 100%; margin: 0 auto; min-height: 100vh; }
.interviewer-panel {
  background: linear-gradient(160deg, var(--bg2), var(--bg));
  border: 1px solid var(--line); border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px;
}
.avatar { position: relative; width: 240px; height: 240px; filter: drop-shadow(0 10px 22px rgba(0,0,0,.35)); }
.avatar-svg { width: 100%; height: 100%; overflow: visible; }
.avatar-halo { fill: none; stroke: url(#haloGrad); stroke-width: 2.5; opacity: .7; }
.avatar-face { fill: url(#faceGrad); stroke: #4a5b85; stroke-width: 2; }
.avatar-hair { fill: url(#hairGrad); }
.avatar-ear { fill: #2a3554; stroke: #3d4b6e; stroke-width: 1.5; }
.avatar-eye { fill: #e8edf7; }
.avatar-pupil { fill: #12182e; }
.avatar-brow { fill: none; stroke: #e8edf7; stroke-width: 3; stroke-linecap: round; }
.avatar-mouth { fill: none; stroke: #e8edf7; stroke-width: 3; stroke-linecap: round; }
.avatar-suit { fill: url(#suitGrad); stroke: #3d4b6e; stroke-width: 2; }
.avatar-collar { fill: #e8edf7; opacity: .95; }
.avatar-tie { fill: var(--accent); }
.avatar-note .note-pad { fill: #f5e9c8; stroke: #b9a878; stroke-width: 2; }
.avatar-note .note-lines { fill: none; stroke: #b9a878; stroke-width: 2; }
.avatar-name { text-align: center; margin-top: 8px; }
.avatar-name span { display: block; }
#avatar-title { font-weight: 700; }
.avatar-mood { font-size: 20px; }
.avatar { animation: idleFloat 4s ease-in-out infinite; }
@keyframes idleFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* 表情/动作 */
.avatar[data-action="frown"] .avatar-brow { transform: translateY(4px); }
.avatar[data-action="frown"] .avatar-mouth { transform: scaleY(.8); }
.avatar[data-action="smile"] .avatar-mouth { transform: scaleY(1.1); }
.avatar[data-action="nod"] .avatar-head { animation: nod .6s ease; }
.avatar[data-action="shake"] .avatar-head { animation: shake .6s ease; }
.avatar[data-action="note"] .avatar-note { display: block; animation: note .8s ease; }
.avatar.speaking .avatar-mouth { animation: talk .5s ease infinite; }
@keyframes nod { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes note { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
@keyframes talk { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.4); } }
.avatar-head { transform-origin: center; }
.avatar-mouth { transform-origin: center; }

.bubble {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; max-width: 560px; font-size: 16px; line-height: 1.7; min-height: 60px;
  position: relative;
}
.bubble::before { content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-bottom-color: var(--card); }
#bubble-text { white-space: pre-wrap; }

/* 思考中指示器：AI 等待期间显示，带三点呼吸动画；不受 strict/hell 隐藏气泡影响 */
.thinking-indicator {
  margin-top: 10px; font-size: 14px; color: var(--text-dim);
  background: rgba(79,140,255,.08); border: 1px dashed var(--accent);
  border-radius: 12px; padding: 8px 14px; width: fit-content; max-width: 560px;
  display: flex; align-items: center; gap: 6px;
}
.thinking-dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.thinking-dots i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  animation: thinking-blink 1.2s infinite ease-in-out;
}
.thinking-dots i:nth-child(2) { animation-delay: .2s; }
.thinking-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes thinking-blink { 0%,70%,100% { opacity: .2; transform: scale(.85); } 35% { opacity: 1; transform: scale(1); } }

/* 简历翻阅 */
.resume-review { width: 100%; max-width: 560px; }
.resume-toggle {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); padding: 10px 16px; font-size: 14px; cursor: pointer; font-family: inherit;
  width: 100%; text-align: left; transition: border-color .12s ease;
}
.resume-toggle:hover { border-color: var(--accent); }
.resume-toggle.flip { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,140,255,.15); }
.resume-panel {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-top: 8px; font-size: 13px; line-height: 1.8;
}
.resume-panel .rv-row { display: flex; gap: 8px; }
.resume-panel .rv-label { color: var(--text-dim); flex-shrink: 0; min-width: 76px; }
.resume-panel .rv-value { color: var(--text); white-space: pre-wrap; word-break: break-word; }
.resume-panel .rv-empty { color: var(--text-dim); }

/* AI 点评标记 */
.fb-ai { color: var(--accent); font-weight: 600; }

.control-panel { display: flex; flex-direction: column; gap: 16px; }
.interview-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; font-size: 13px; }
.fullscreen-btn { cursor: pointer; color: var(--text-dim); font-family: inherit; transition: all .2s; }
.fullscreen-btn:hover { border-color: var(--accent); color: var(--accent); }
.fullscreen-btn.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.exit-btn { cursor: pointer; color: var(--text-dim); font-family: inherit; transition: all .2s; }
.exit-btn:hover { border-color: var(--bad); color: var(--bad); }

.tension-indicator { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.tension-label { font-size: 13px; color: var(--text-dim); }
.tension-value { font-size: 40px; font-weight: 800; display: block; margin: 4px 0; }
.tension-bar { height: 10px; background: var(--bg2); border-radius: 6px; overflow: hidden; margin: 10px 0 14px; }
.tension-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), var(--warn), var(--bad)); border-radius: 6px; transition: width .5s ease; }
.tension-signals { display: flex; gap: 8px; }
.tension-signals span { flex: 1; text-align: center; font-size: 12px; padding: 6px; border-radius: 8px; background: var(--bg2); color: var(--text-dim); transition: all .2s; }
.tension-signals span.on { background: rgba(79,140,255,.2); color: var(--accent); font-weight: 600; }
.ability-signals { display: flex; gap: 8px; margin-top: 8px; }
.ability-item { flex: 1; text-align: center; font-size: 12px; font-weight: 600; padding: 6px; border-radius: 8px; background: var(--bg2); color: var(--text-dim); transition: all .2s; }
.ability-item.good { color: var(--ok); }
.ability-item.mid { color: var(--warn); }
.ability-item.bad { color: var(--bad); }
.tension-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.tension-stats .stat { font-size: 12px; padding: 5px 8px; border-radius: 8px; background: var(--bg2); color: var(--text-dim); line-height: 1.5; }
.tension-stats .stat .v { font-weight: 700; color: var(--text); }

.answer-area { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.answer-timer { text-align: center; font-size: 14px; font-weight: 700; color: var(--text-dim); }
.answer-timer.urgent { color: var(--bad); animation: pulse 1s infinite; }
.record-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  border: none; border-radius: 12px; padding: 16px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.record-btn.recording { background: linear-gradient(135deg, var(--bad), #c0392b); }.record-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.record-btn.recording .record-dot { animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.record-status { font-size: 12px; color: var(--text-dim); text-align: center; }

.answer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-btn {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }
.mini-btn.recording { border-color: var(--bad); color: var(--bad); animation: pulse 1s infinite; }
.ask-box { background: var(--bg2); border: 1px dashed var(--line); border-radius: 10px; padding: 12px; }
.ask-hint { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.ask-box textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical; }
.ask-box .btn-row { margin-top: 10px; justify-content: flex-start; }

.transcript { background: var(--bg2); border-radius: 10px; padding: 12px; }
.transcript-head { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.filler-count { color: var(--warn); }
.transcript-text { font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.filler-word { background: rgba(255,182,72,.25); border-radius: 4px; padding: 0 2px; }

.fallback-input textarea { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical; }
.fallback-hint { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }

/* ---------- 报告 ---------- */
.report-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; }
.stat-card .stat-num { font-size: 34px; font-weight: 800; }
.stat-card .stat-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.stat-card .stat-num.high { color: var(--bad); }
.stat-card .stat-num.mid { color: var(--warn); }
.stat-card .stat-num.low { color: var(--ok); }

.report-grid { display: grid; grid-template-columns: 1fr 420px; gap: 16px; margin-bottom: 16px; }
.report-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 16px; }
.report-card h2 { font-size: 18px; margin-bottom: 14px; }
.chart-note { font-size: 12px; color: var(--text-dim); margin-top: 8px; }
#chart-emotion, #chart-radar { width: 100%; height: auto; }

.feedback-item { padding: 14px; border-bottom: 1px solid var(--line); }
.feedback-item:last-child { border-bottom: none; }
.feedback-item .fb-q { font-weight: 600; margin-bottom: 6px; }
.feedback-item .fb-ask { font-size: 12px; color: var(--warn); margin-bottom: 4px; }
.feedback-item .fb-tension { font-size: 12px; color: var(--text-dim); }
.feedback-item .fb-comment { color: var(--accent); margin-top: 6px; font-size: 14px; }

.suggestion-list { list-style: none; }
.suggestion-list li { padding: 8px 0 8px 24px; position: relative; line-height: 1.6; }
.suggestion-list li::before { content: '💡'; position: absolute; left: 0; }

/* ---------- 面试总分评分卡 ---------- */
.score-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 16px; }
.score-card.hidden { display: none; }
.score-main { display: flex; align-items: center; gap: 20px; }
.score-ring { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.score-ring.good { background: conic-gradient(var(--ok) 0 100%); }
.score-ring.mid { background: conic-gradient(var(--warn) 0 100%); }
.score-ring.bad { background: conic-gradient(var(--bad) 0 100%); }
.score-ring .score-num { width: 92px; height: 92px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 42px; font-weight: 900; }
.score-meta { flex: 1; }
.score-title { font-size: 15px; color: var(--text-dim); }
.score-level { font-size: 26px; font-weight: 800; margin: 4px 0; }
.score-level.good { color: var(--ok); }
.score-level.mid { color: var(--warn); }
.score-level.bad { color: var(--bad); }
.score-hint { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.ai-overview { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--text); line-height: 1.7; font-size: 14px; }
.fb-content { color: var(--accent); font-weight: 600; }

/* ---------- 岗位适配度卡片 ---------- */
#ai-fit-card { display: flex; flex-direction: column; gap: 12px; }
#ai-fit-card.hidden { display: none; }
.fit-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fit-badge { display: inline-block; padding: 6px 20px; border-radius: 999px; color: #fff; font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.fit-badge.good { background: var(--ok); }
.fit-badge.mid { background: var(--warn); color: #1c2438; }
.fit-badge.bad { background: var(--bad); }
.fit-title { font-size: 16px; color: var(--text-dim); }
.fit-reason { color: var(--text); line-height: 1.7; font-size: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* ---------- 首页模式选择 ---------- */
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; width: 100%; max-width: 920px; }
.mode-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 20px; cursor: pointer; transition: all .15s ease; font-family: inherit; color: var(--text);
}
.mode-card:hover { background: var(--card-hover); transform: translateY(-3px); border-color: var(--accent); }
.mode-icon { font-size: 44px; }
.mode-name { font-size: 19px; font-weight: 700; }
.mode-desc { color: var(--text-dim); font-size: 13px; line-height: 1.5; }

/* ---------- 刷题 / 自测 ---------- */
.quiz-head { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.quiz-question-card, .quiz-answer-box, .test-question-list {
  width: 100%; max-width: 720px;
}
.quiz-q { font-size: 17px; font-weight: 600; line-height: 1.6; margin-bottom: 16px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; cursor: pointer; transition: all .12s ease; font-size: 14px; line-height: 1.5;
}
.quiz-option:hover { background: var(--card-hover); border-color: var(--accent); }
.quiz-option input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.quiz-opt-letter {
  width: 26px; height: 26px; border-radius: 8px; background: var(--bg2);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; color: var(--text-dim);
}
.quiz-option.chosen { border-color: var(--accent); background: rgba(79,140,255,.12); }
.quiz-option.chosen .quiz-opt-letter { background: var(--accent); color: #fff; }
.quiz-option.correct { border-color: var(--ok); background: rgba(47,191,143,.12); }
.quiz-option.correct .quiz-opt-letter { background: var(--ok); color: #fff; }
.quiz-option.wrong { border-color: var(--bad); background: rgba(255,93,108,.12); }
.quiz-option.wrong .quiz-opt-letter { background: var(--bad); color: #fff; }
.quiz-opt-text { flex: 1; }

.quiz-answer-box { margin-top: 16px; }
.quiz-explain {
  background: rgba(47,191,143,.1); border: 1px solid rgba(47,191,143,.4); border-radius: 12px;
  padding: 14px 18px; font-size: 14px; line-height: 1.7;
}
.quiz-explain strong { color: var(--ok); }
.quiz-explain p { margin-top: 6px; color: var(--text); }
.quiz-actions { width: 100%; max-width: 720px; justify-content: center; }

.test-warning { color: var(--warn); font-size: 13px; margin-bottom: 16px; text-align: center; }
.timer-chip { font-weight: 700; }
.timer-chip.urgent { color: var(--bad); border-color: var(--bad); }
.test-question { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }

.test-result-detail { width: 100%; max-width: 760px; margin-bottom: 20px; }
.test-detail-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.td-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; }
.td-status { font-size: 13px; padding: 3px 10px; border-radius: 20px; }
.td-status.correct { background: rgba(47,191,143,.15); color: var(--ok); }
.td-status.wrong { background: rgba(255,93,108,.15); color: var(--bad); }
.td-status.skip { background: rgba(255,182,72,.15); color: var(--warn); }
.td-q { font-size: 14px; line-height: 1.6; margin-bottom: 6px; }
.td-your { font-size: 13px; color: var(--bad); }
.td-ans { font-size: 13px; color: var(--ok); font-weight: 600; }
.td-exp { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-top: 6px; }

/* ---------- 管理后台 ---------- */
.admin-link { color: var(--text-dim); font-size: 13px; text-decoration: none; margin-top: 20px; }
.admin-link:hover { color: var(--accent); }

.admin-login { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 420px; }
.admin-input {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 11px 14px; font-size: 14px; font-family: inherit; width: 100%;
}
.admin-input:focus { outline: none; border-color: var(--accent); }
.admin-select { width: auto; }
.admin-textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 12px; font-size: 14px; font-family: inherit; resize: vertical; line-height: 1.6;
}
.admin-textarea:focus { outline: none; border-color: var(--accent); }

.admin-main { width: 100%; max-width: 960px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.admin-tab {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--text-dim);
  padding: 10px 18px; font-size: 14px; cursor: pointer; font-family: inherit; transition: all .12s ease;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { border-color: var(--accent); color: var(--text); background: rgba(79,140,255,.12); font-weight: 600; }

.admin-pane { width: 100%; }
.admin-pane-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.admin-card h2 { font-size: 17px; margin-bottom: 14px; }
.admin-hint { color: var(--text-dim); font-size: 13px; margin-bottom: 12px; line-height: 1.6; }
.admin-label { display: block; color: var(--text); font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.admin-empty { color: var(--text-dim); font-size: 14px; text-align: center; padding: 20px; }

.dash-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dash-bar-label { width: 100px; font-size: 13px; flex-shrink: 0; }
.dash-bar-track { flex: 1; height: 10px; background: var(--bg2); border-radius: 6px; overflow: hidden; }
.dash-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 6px; transition: width .4s ease; }
.dash-bar-val { width: 110px; font-size: 12px; color: var(--text-dim); text-align: right; flex-shrink: 0; }
.dash-recent-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.dash-recent-row:last-child { border-bottom: none; }
.dash-recent-time { color: var(--text-dim); font-size: 12px; }

.admin-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.admin-q-list { width: 100%; }
.admin-q-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.admin-q-text { font-size: 14px; line-height: 1.5; flex: 1; }
.admin-q-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.admin-row { margin: 12px 0; }
.admin-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); cursor: pointer; }
.admin-check input { accent-color: var(--accent); width: 16px; height: 16px; }

.hidden { display: none !important; }

/* ---------- 前台登录弹窗（模拟面试需登录） ---------- */
#front-login-modal {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(8, 12, 22, 0.66);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
#front-login-modal.hidden { display: none; }
.front-login-box {
  width: 100%; max-width: 400px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 26px; text-align: left;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.front-login-box .title { font-size: 24px; }
.front-login-box .admin-input { margin-bottom: 4px; }
.front-login-box .admin-list { list-style: none; padding: 0; margin: 0; width: 100%; }
.front-login-box .admin-list li { font-size: 13px; color: var(--text-dim); line-height: 1.7; }@media (max-width: 900px) {
  .interview-layout { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
}
