/* ========================================
   MBTI 专业测评 - 答题页样式
   ======================================== */

.quiz-container {
    max-width: 750px;
    margin: 0 auto;
    padding: var(--space-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部栏 */
.quiz-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-primary);
    padding: var(--space-md) 0;
    margin-bottom: var(--space-xl);
}

.progress-section {
    margin-bottom: var(--space-md);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 2%;
}

.progress-text {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    text-align: right;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dimension-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.btn-back-home {
    padding: 6px 14px;
    font-size: 14px;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.btn-back-home:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* 题目卡片 */
.question-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeInUp 0.4s ease;
}

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

.question-number {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.question-text {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

/* 选项 */
.options-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.option-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: left;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.5;
    transition: var(--transition);
}

.option-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.option-btn.selected {
    background: rgba(232, 168, 56, 0.08);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.option-btn.selected .option-letter {
    color: var(--bg-primary);
    background: var(--accent);
}

.option-score-hint {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-btn:hover .option-score-hint,
.option-btn.selected .option-score-hint {
    opacity: 1;
}

/* 底部导航 */
.quiz-footer {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border);
}

.btn-prev,
.btn-next {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-prev {
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.btn-prev:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-next {
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: var(--shadow-sm);
}

.btn-next:hover {
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit {
    color: var(--bg-primary);
    background: linear-gradient(135deg, #27AE60, #2ECC71);
}

.btn-submit:hover {
    box-shadow: var(--shadow-md), 0 0 20px rgba(39,174,96,0.3);
}

/* ========== 测谎警告 ========== */
.lie-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lie-warning-content {
    background: var(--bg-card);
    border: 1px solid #E74C3C;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 420px;
    text-align: center;
    box-shadow: 0 0 40px rgba(231,76,60,0.2);
}

.lie-warning-content h3 {
    color: #E74C3C;
    font-size: 20px;
    margin-bottom: var(--space-md);
}

.lie-warning-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.lie-warning-content button {
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.lie-warning-content button:hover {
    border-color: var(--border-light);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .question-text {
        font-size: 18px;
    }

    .option-btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 15px;
    }

    .btn-prev,
    .btn-next {
        padding: 12px 24px;
        font-size: 15px;
    }
}
