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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* ==================== Auth Page ==================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-header .logo {
    font-size: 48px;
    margin-bottom: 16px;
}

.auth-header h1 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 8px;
}

.auth-header .subtitle {
    color: #718096;
    font-size: 15px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    color: #a0aec0;
    font-size: 13px;
}

/* ==================== Interview Page ==================== */
.interview-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #f5f7fa;
}

.interview-header {
    background: white;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8ecf1;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    border-radius: 12px;
    color: #fff;
    flex-shrink: 0;
}

.avatar svg {
    width: 22px;
    height: 22px;
}

.avatar .status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 11px;
    height: 11px;
    background: #22c55e;
    border: 2px solid #fff;
    margin: 0;
    animation: pulse 2s infinite;
}

.interviewer-info h2 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 12px;
    color: #22c55e;
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.timer-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.timer {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.timer.warning {
    color: #e53e3e;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 识别未确认的留存气泡：内容已在界面上说过，绝不凭空消失 */
.message.transcript-unconfirmed .message-content {
    color: #94a3b8;
    font-style: italic;
}
.message.transcript-unconfirmed .unconfirmed-tag {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 4px;
}

/* 实时字幕：说话过程中的临时转写气泡 */
.message.live-transcript .message-content {
    color: #94a3b8;
    font-style: italic;
    opacity: 0.85;
}

/* 下一题倒计时提示：作答落定窗口的可见化（静默倒计时，开口即重置） */
.next-question-countdown {
    align-self: center;
    margin: 8px auto;
    padding: 8px 18px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    animation: countdown-pulse 1s infinite;
}

.next-question-countdown.countdown-zero {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
    animation: none;
}

@keyframes countdown-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.welcome-message {
    background: #ebf8ff;
    color: #2c5282;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 0 auto;
    max-width: 500px;
    text-align: center;
}

.welcome-message p {
    margin-bottom: 8px;
}

.welcome-message p:last-child {
    margin-bottom: 0;
    color: #4a5568;
    font-size: 14px;
}

.message {
    max-width: 75%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.ai-message {
    align-self: flex-start;
}

.message.candidate-message {
    align-self: flex-end;
}

.message-content {
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ai-message .message-content {
    background: white;
    color: #2d3748;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.candidate-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: #a0aec0;
    margin-top: 4px;
}

.ai-message .message-time {
    margin-left: 4px;
}

.candidate-message .message-time {
    text-align: right;
    margin-right: 4px;
}

.follow-up-badge {
    display: inline-block;
    background: #ed8936;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.thinking-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    color: #718096;
    font-size: 14px;
    background: white;
    border-radius: 12px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.thinking-dots {
    display: flex;
    gap: 4px;
}

.thinking-dots span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.thinking-dots span:nth-child(1) { animation-delay: -0.32s; }
.thinking-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-input-area {
    background: white;
    padding: 16px 24px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.chat-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

/* 恢复面试提示条 */
.resume-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin: 12px 16px;
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f5ff 100%);
    border: 1px solid #91d5ff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
    animation: fadeIn 0.3s ease;
}

.resume-banner .resume-icon {
    font-size: 28px;
    line-height: 1;
}

.resume-banner .resume-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.resume-banner .resume-text strong {
    color: #1890ff;
    font-weight: 600;
}

.resume-banner .resume-text strong:not(:first-child) {
    color: #fa8c16;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-form textarea {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    resize: none;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.chat-form textarea:focus {
    border-color: #667eea;
}

.btn-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 80px;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.input-hint {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 8px;
}

/* ==================== Report Modal ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2d3748;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #a0aec0;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #4a5568;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.report-section {
    margin-bottom: 24px;
}

.report-section h3 {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.score-display {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.score-display .score-value {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
}

.score-display .score-label {
    font-size: 14px;
    color: #718096;
    margin-top: 4px;
}

.dimensions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.dimension-item {
    background: #f7fafc;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.dimension-name {
    font-size: 13px;
    color: #718096;
    margin-bottom: 4px;
}

.dimension-score {
    font-size: 24px;
    font-weight: 600;
    color: #667eea;
}

.summary-text {
    line-height: 1.8;
    color: #4a5568;
}

.strengths-list, .weaknesses-list {
    list-style: none;
    padding: 0;
}

.strengths-list li, .weaknesses-list li {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    line-height: 1.5;
}

.strengths-list li {
    background: #f0fff4;
    color: #22543d;
    border-left: 3px solid #48bb78;
}

.weaknesses-list li {
    background: #fff5f5;
    color: #742a2a;
    border-left: 3px solid #f56565;
}

/* ==================== Voice Features ==================== */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ===== 三段式模式切换器 ===== */
.mode-switcher {
    display: inline-flex;
    background: #edf2f7;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 13px;
    color: #4a5568;
    transition: all 0.2s;
    white-space: nowrap;
}

.mode-btn:hover {
    color: #2d3748;
}

.mode-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.mode-btn .mode-icon {
    font-size: 14px;
}

.voice-tip {
    font-size: 13px !important;
    color: #718096 !important;
    margin-top: 8px !important;
}

.input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.mic-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    min-width: 160px;
}

.mic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.mic-btn.recording {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(229, 62, 62, 0); }
}

.mic-icon {
    font-size: 20px;
}

.voice-preview {
    flex: 1;
    padding: 12px 16px;
    background: #f7fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #4a5568;
    min-height: 48px;
}

.voice-preview-text {
    color: #718096;
}

.recording-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 2px solid #e53e3e;
    color: #c53030;
    font-size: 14px;
    border-radius: 16px;
    margin: 0 auto;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(229, 62, 62, 0.15);
}

.recording-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recording-label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recording-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #e53e3e;
    border-radius: 50%;
    animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.waveform-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 8px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.waveform-container canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.recording-time {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 18px;
    color: #e53e3e;
    background: white;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid #fed7d7;
}

.tts-audio {
    width: 100%;
    max-width: 300px;
    margin-top: 8px;
}

.ai-message .audio-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 8px;
    transition: transform 0.2s;
}

.ai-message .audio-play-btn:hover {
    transform: scale(1.1);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .auth-card {
        padding: 32px 24px;
    }

    .interview-header {
        padding: 12px 16px;
    }

    .chat-area {
        padding: 16px;
    }

    .chat-input-area {
        padding: 12px 16px;
    }

    .chat-form {
        flex-direction: column;
    }

    .btn-send {
        width: 100%;
    }

    .message {
        max-width: 90%;
    }
}

/* ===== 实时会话面板 ===== */
.realtime-input-group {
    flex-direction: column;
    align-items: stretch;
}

.realtime-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 16px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* 6 种状态着色 */
.realtime-panel[data-state="listening"] {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}
.realtime-panel[data-state="recording"] {
    border-color: #e53e3e;
    box-shadow: 0 0 24px rgba(229, 62, 62, 0.25);
}
.realtime-panel[data-state="recognizing"] {
    border-color: #ed8936;
    box-shadow: 0 0 20px rgba(237, 137, 54, 0.2);
}
.realtime-panel[data-state="thinking"] {
    border-color: #764ba2;
    box-shadow: 0 0 20px rgba(118, 75, 162, 0.2);
}
.realtime-panel[data-state="speaking"] {
    border-color: #48bb78;
    box-shadow: 0 0 24px rgba(72, 187, 120, 0.25);
}

.realtime-state-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.rt-state-icon {
    font-size: 22px;
    display: inline-block;
}

.realtime-panel[data-state="listening"] .rt-state-icon,
.realtime-panel[data-state="recording"] .rt-state-icon {
    animation: rt-pulse 1.2s infinite ease-in-out;
}
.realtime-panel[data-state="recognizing"] .rt-state-icon {
    animation: rt-spin 1s linear infinite;
}
.realtime-panel[data-state="thinking"] .rt-state-icon {
    animation: rt-bounce 0.6s infinite alternate;
}
.realtime-panel[data-state="speaking"] .rt-state-icon {
    animation: rt-pulse 0.8s infinite ease-in-out;
}

@keyframes rt-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
@keyframes rt-spin {
    to { transform: rotate(360deg); }
}
@keyframes rt-bounce {
    to { transform: translateY(-4px); }
}

.realtime-waveform-wrap {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid #e2e8f0;
}

.realtime-waveform-wrap canvas {
    display: block;
    width: 100%;
    height: 70px;
}

.realtime-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.realtime-toggle-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.realtime-toggle-btn.active {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
    animation: rt-btn-pulse 2s infinite;
}

@keyframes rt-btn-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(229, 62, 62, 0.6); }
}

.realtime-hint {
    font-size: 12px;
    color: #a0aec0;
    text-align: center;
}

/* ==================== 准备视图（面试开始前） ==================== */

.interview-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.prep-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 24px;
    overflow-y: auto;
    animation: fade-in 0.35s ease;
}

/* 内容适配时垂直居中；视口不够高时自动贴顶滚动，避免顶部被裁切 */
.prep-inner {
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* --- 标题区 --- */

.prep-hero {
    text-align: center;
    margin-bottom: 2px;
}

.prep-hero h2 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1a202c;
}

.prep-hero p {
    margin: 0;
    font-size: 15px;
    color: #64748b;
}

/* --- 通用卡片 --- */

.prep-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
    padding: 20px 24px;
    box-sizing: border-box;
}

.prep-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.prep-card-title svg {
    width: 20px;
    height: 20px;
    color: #2563eb;
    flex-shrink: 0;
}

.prep-card-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.pc-optional {
    font-size: 12px;
    font-weight: normal;
    color: #94a3b8;
    margin-left: 4px;
}

/* --- 面试须知 --- */

.prep-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prep-info li {
    display: flex;
    align-items: baseline;
    padding: 6px 0;
    font-size: 14px;
    color: #475569;
}

.pi-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
    flex-shrink: 0;
    align-self: center;
    margin-right: 10px;
}

.prep-info .pi-label {
    display: inline-block;
    width: 44px;
    font-weight: 700;
    color: #1e293b;
    flex-shrink: 0;
}

.prep-info b {
    color: #2563eb;
    font-weight: 700;
}

.prep-tips {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px dashed #e8ecf1;
}

.prep-tips p {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.prep-tips ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.prep-tips li {
    position: relative;
    padding-left: 16px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.9;
}

.prep-tips li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.75em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #cbd5e1;
}

/* --- 设备检查 --- */

.prep-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    background: #eef4ff;
    border-radius: 10px;
}

.prep-check-row + .prep-check-row {
    margin-top: 12px;
}

.pc-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pc-left svg {
    width: 20px;
    height: 20px;
    color: #2563eb;
    flex-shrink: 0;
}

.pc-name {
    font-size: 15px;
    font-weight: 700;
    color: #2563eb;
}

.pc-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.pc-btn {
    padding: 8px 18px;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.pc-btn:hover {
    background: #1d4ed8;
}

.pc-state {
    font-size: 13px;
    color: #94a3b8;
    white-space: nowrap;
}

.pc-state.ok {
    color: #16a34a;
    font-weight: 500;
}

#micTestWave {
    display: none;
    width: 100%;
    height: 44px;
    margin-top: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
}

#deviceCheckCard.mic-testing #micTestWave {
    display: block;
}

/* --- 警示条 / 开始按钮 / 帮助 --- */

.prep-warn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 520px;
    padding: 12px 18px;
    background: #fef2f2;
    border-radius: 10px;
    color: #dc2626;
    font-size: 14px;
    box-sizing: border-box;
}

.prep-warn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.prep-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 520px;
    padding: 20px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    transition: background 0.2s, transform 0.15s;
}

.prep-start-btn svg {
    width: 20px;
    height: 20px;
}

.prep-start-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.prep-start-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.prep-help {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 完成卡片 ==================== */

.completion-card {
    max-width: 420px;
    margin: 24px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 32px 28px;
    text-align: center;
    animation: fade-in 0.4s ease;
}

.completion-card .cc-icon {
    font-size: 44px;
    margin-bottom: 10px;
}

.completion-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    color: #2d3748;
}

.completion-card p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
}

.completion-card .cc-note {
    color: #718096;
    font-size: 13px;
}
