/* 九型人格测试页 - 独有样式 */

/* 页面标题区 */
.page-header {
    padding: 140px 24px 60px;
    background: var(--gold-light);
    text-align: center;
}
.page-header h1 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.page-header p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 测试容器 */
.enneagram-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 0;
}

.progress-info {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 500;
}

/* 问题卡片 */
.question {
    background: var(--card);
    border-radius: 12px;
    padding: 48px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.question:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.questionnum {
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
    font-size: 16px;
}

/* 选项 */
.statement {
    display: flex;
    align-items: flex-start;
    padding: 14px 18px;
    margin: 10px 0;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
    background: var(--bg);
}
.statement:hover {
    border-color: var(--gold);
    background: var(--gold-light);
}
.statement.selected {
    border-color: var(--gold);
    background: var(--gold-light);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}
.statement input {
    margin-right: 14px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}
.statement-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* 底部固定按钮 */
.enneagram-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 24px 24px 48px 24px;
    background: var(--bg);
}
.enneagram-buttons.is-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
}
.enneagram-buttons .btn {
    padding: 12px 24px;
    font-size: 15px;
    width: 180px;
    text-align: center;
}
.enneagram-buttons:not(.is-fixed) .btn {
    padding: 16px 32px;
    font-size: 16px;
}

/* 结果区域 */
.results {
    display: none;
    background: var(--card);
    padding: 32px;
    margin-bottom: 100px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.results.show {
    display: block;
}
.result-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}
.score-item:last-child {
    border-bottom: none;
}
.score-item.dominant {
    background: var(--gold-light);
    border: 2px solid var(--gold);
    border-radius: 8px;
    margin-bottom: 8px;
}
.score-type {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.score-bar {
    height: 10px;
    background: var(--border);
    border-radius: 5px;
    overflow: hidden;
}
.score-bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 5px;
    transition: width 0.6s ease;
}
.score-value {
    font-weight: 700;
    color: var(--gold);
    font-size: 18px;
    white-space: nowrap;
    min-width: 48px;
    text-align: right;
}

/* 底部CTA */
.cta-section {
    background: var(--gold-light);
    color: var(--text-primary);
    padding: 80px 24px;
    text-align: center;
}
.cta-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
}
.cta-section p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 32px;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-header {
        padding: 120px 20px 40px;
    }
    .page-header h1 {
        font-size: 26px;
    }
    .enneagram-container {
        padding: 24px 16px 0;
    }
    .question {
        padding: 18px;
    }
    .statement {
        padding: 12px 14px;
    }
    .statement-text {
        font-size: 14px;
    }
    .results {
        padding: 20px;
    }
    .score-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .score-value {
        text-align: left;
    }
    .cta-section {
        padding: 60px 20px;
    }
    .cta-section h2 {
        font-size: 24px;
    }
}
