/* ===== 一頁式測驗樣式 ===== */
.kpt-one-page {
    max-width: 1200px;
    padding: 20px;
}

/* 標題區域 */
.kpt-test-header {
    text-align: center;
    margin-bottom: 40px;
}

.kpt-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FF9A8B, #A7C7E8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.kpt-subtitle {
    color: #666;
    font-size: 1rem;
}

.kpt-meta-info {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.kpt-badge {
    background: #F0F0F0;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #4A4A6A;
}

/* 維度區塊 */
.kpt-dimension-section {
    margin-bottom: 50px;
}

.kpt-dimension-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.dimension-icon {
    font-size: 2rem;
}

.kpt-dimension-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.dimension-desc {
    margin-left: auto;
    font-size: 0.85rem;
    opacity: 0.7;
}

.emotion-header { background: linear-gradient(135deg, #FFE4E1, #FFD0CC); }
.social-header { background: linear-gradient(135deg, #E0F7F0, #C5EEE2); }
.self-header { background: linear-gradient(135deg, #E8EEFF, #D6E2F8); }

/* 問題網格 */
.kpt-questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.kpt-question-card {
    background: white;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
}

.kpt-question-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.kpt-question-num {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #A7C7E8;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.kpt-question-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
    min-height: 55px;
}

/* 選項按鈕（水平排列） */
.kpt-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.kpt-option {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.kpt-option input {
    display: none;
}

.kpt-option span {
    display: block;
    padding: 8px 0;
    background: #F5F5F7;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
    cursor: pointer;
}

.kpt-option input:checked + span {
    background: linear-gradient(135deg, #FFB6B9, #FF9A8B);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 154, 139, 0.3);
}

.kpt-option span:hover {
    background: #E8E8EC;
    transform: scale(0.98);
}

/* 提交區域 */
.kpt-submit-section {
    background: white;
    border-radius: 30px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: sticky;
    bottom: 20px;
    z-index: 100;
}

.kpt-progress-summary {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.kpt-mini-progress {
    width: 200px;
    height: 6px;
    background: #E0E0E0;
    border-radius: 10px;
    margin: 10px auto 0;
    overflow: hidden;
}

.kpt-mini-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFB6B9, #A7C7E8);
    width: 0%;
    border-radius: 10px;
    transition: width 0.3s;
}

.kpt-submit-btn {
    background: linear-gradient(135deg, #A7C7E8, #8FB0D4);
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.kpt-submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(167, 199, 232, 0.4);
}

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

/* 結果區域 */
.kpt-result-area {
    margin-top: 40px;
    animation: fadeInUp 0.5s ease;
}

.kpt-report-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.kpt-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F0F0F0;
}

.kpt-reset-btn {
    background: #F0F0F0;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem;
}

.kpt-dimension-scores {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.score-card {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 15px 25px;
    text-align: center;
    min-width: 120px;
}

.score-icon { font-size: 1.8rem; display: block; }
.score-label { font-weight: 600; color: #666; margin: 8px 0; }
.score-value { font-size: 2rem; font-weight: 700; color: #4A4A6A; }
.score-unit { font-size: 0.9rem; }

.emotion-score .score-value { color: #FF8A7A; }
.social-score .score-value { color: #5BBF9A; }
.self-score .score-value { color: #6E9ED1; }

.kpt-suggestion-box {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #FFB6B9;
}

.kpt-print-btn {
    background: transparent;
    border: 1px solid #DDD;
    padding: 10px 25px;
    border-radius: 40px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
}

.kpt-print-btn:hover {
    background: #F0F0F0;
}

/* 響應式 */
@media (max-width: 768px) {
    .kpt-questions-grid {
        grid-template-columns: 1fr;
    }
    .kpt-dimension-header {
        flex-direction: column;
        text-align: center;
    }
    .dimension-desc {
        margin-left: 0;
    }
    .kpt-options {
        justify-content: space-between;
    }
    .kpt-option span {
        font-size: 0.7rem;
        padding: 6px 0;
    }
}