/* ===== Quiz Page Styles ===== */

.quiz-container {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 28px;
}

.quiz-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-sub {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.quiz-progress {
    position: relative;
    background: var(--bg-input);
    border-radius: 20px;
    height: 8px;
    margin-bottom: 4px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    transition: width 0.3s ease;
}

.progress-text {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 6px;
}

/* Question */
.question-card {
    animation: fadeIn 0.3s ease;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.6;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    line-height: 1.5;
}

.option-btn:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.08);
}

.option-btn.selected {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
    font-weight: 500;
}

/* Actions */
.quiz-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

.btn {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--text-dim);
}

/* Result */
.result-container {
    max-width: 640px;
    margin: 0 auto;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.result-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-desc {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.stat-item {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
}

/* Share */
.share-section {
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.share-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.share-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.share-wechat { background: #07c160; }
.share-wechat:hover { background: #06ad56; }
.share-weibo { background: #e6162d; }
.share-weibo:hover { background: #c91428; }
.share-copy { background: var(--accent); }
.share-copy:hover { background: var(--accent-hover); }

.result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

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

/* Mobile */
@media (max-width: 640px) {
    .quiz-container,
    .result-card {
        padding: 20px 16px;
    }

    .result-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .share-buttons {
        flex-wrap: wrap;
    }
}
