/* MBTI 性格测试专属样式 */

/* 测试说明卡片 */
.intro-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.intro-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.intro-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.intro-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.intro-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.intro-card strong {
    color: var(--primary-color);
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #FFD700);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.question-counter {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* 题目卡片 */
.question-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.question-card h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 选项按钮 */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateX(4px);
}

.option-btn:active {
    transform: translateX(2px);
}

/* 结果卡片 */
.result-main {
    text-align: center;
    padding: 32px;
}

.type-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #FFD700);
    color: #000;
    font-size: 2.5rem;
    font-weight: bold;
    padding: 16px 32px;
    border-radius: 16px;
    letter-spacing: 4px;
}

.type-title {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 8px 0 24px;
}

/* 特质标签 */
.traits-section {
    margin: 24px 0;
}

.traits-section h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.traits-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.trait-tag {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 维度分析条形图 */
.dimension-bars {
    margin: 32px 0;
    text-align: left;
}

.dimension-bars h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.dim-bar {
    display: flex;
    align-items: center;
    margin: 16px 0;
    gap: 12px;
}

.dim-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 60px;
    text-align: center;
}

.bar-container {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.bar-fill.active {
    background: linear-gradient(90deg, var(--primary-color), #FFD700);
}

/* 详细信息区块 */
.strengths-section,
.careers-section,
.advice-section {
    margin: 24px 0;
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.strengths-section h3,
.careers-section h3,
.advice-section h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1rem;
}

.strengths-section p,
.careers-section p,
.advice-section p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #B8941F);
    color: #000;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

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

/* 响应式适配 */
@media (max-width: 640px) {
    .intro-card,
    .question-card,
    .result-card {
        padding: 16px;
        margin: 0 12px;
    }

    .type-badge {
        font-size: 2rem;
        padding: 12px 24px;
    }

    .option-btn {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .dim-label {
        font-size: 0.75rem;
        min-width: 50px;
    }

    .actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-area,
.result-card {
    animation: fadeIn 0.5s ease;
}
