* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.card h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    color: #999;
    margin-bottom: 25px;
}

.intro p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 功能特性 */
.features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
    text-align: left;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
}

.feature-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 0.9rem;
    color: #666;
}

.note {
    color: #999;
    font-size: 0.85rem;
    margin-top: 20px;
}

.tip {
    color: #667eea;
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: 500;
}

/* 按钮样式 */
.btn {
    border: none;
    padding: 14px 40px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* 进度条 */
.progress-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: white;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.section-name {
    font-weight: 600;
}

.question-counter {
    opacity: 0.9;
}

/* 问题区域 */
.question-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.question-number {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.question-card h2 {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.6;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 选项按钮 */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: white;
    border: 2px solid transparent;
    padding: 18px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.option-btn:hover {
    border-color: #667eea;
    transform: translateX(5px);
}

.option-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.option-btn.selected .option-label,
.option-btn.selected .option-text {
    color: white;
}

.option-label {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
}

.option-btn.selected .option-label {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.option-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

/* 导航按钮 */
.navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* 密码表单 */
.password-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    text-align: center;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.error-msg {
    color: #e74c3c;
    font-size: 0.9rem;
    margin: 10px 0 0 0;
    min-height: 20px;
}

/* 加载动画 */
.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 结果页面 */
.result-container {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.result-container h1 {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.result-container h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 基础得分卡片 */
.score-overview-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.career-type-display {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.score-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

.score-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.career-type-result {
    flex: 1;
    text-align: left;
}

.type-label {
    font-size: 0.9rem;
    color: #666;
}

.type-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    display: block;
    margin: 5px 0;
}

.type-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-top: 8px;
}

/* 分数范围条 */
.score-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-label {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

.range-bar {
    flex: 1;
    height: 30px;
    background: #e8e8e8;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.range-zones {
    display: flex;
    height: 100%;
}

.zone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: 600;
}

.zone-1 { background: #2ecc71; }
.zone-2 { background: #f39c12; }
.zone-3 { background: #e67e22; }
.zone-4 { background: #e74c3c; }

.range-marker {
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    background: #333;
    left: 0%;
    transition: left 0.5s ease;
    z-index: 2;
}

.range-marker::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -6px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #333;
}

/* 图表卡片 */
.chart-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.chart {
    max-width: 100%;
    margin: 15px auto;
}

.mbti-type,
.holland-top {
    margin-top: 15px;
    font-size: 1rem;
}

.type-code,
.top-codes {
    font-weight: bold;
    color: #667eea;
    font-size: 1.3rem;
}

/* AI 分析报告 */
.ai-report-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.ai-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    line-height: 2;
    color: #444;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.95rem;
    text-align: left;
}

.ai-content::-webkit-scrollbar {
    width: 8px;
}

.ai-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.ai-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.ai-content .placeholder {
    color: #999;
    text-align: center;
}

/* 结果操作按钮 */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* 响应式 */
@media (max-width: 600px) {
    .card, .result-container, .question-card {
        padding: 25px;
    }

    .card h1, .result-container h1 {
        font-size: 1.5rem;
    }

    .question-card h2 {
        font-size: 1.1rem;
        min-height: 100px;
    }

    .option-btn {
        padding: 15px;
    }

    .option-text {
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .career-type-display {
        flex-direction: column;
        text-align: center;
    }

    .career-type-result {
        text-align: center;
    }

    .score-circle {
        width: 100px;
        height: 100px;
    }

    .score-value {
        font-size: 2rem;
    }

    .type-name {
        font-size: 1.5rem;
    }
}
