/* 测试选择页面样式 */

.test-selector {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.test-selector h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* 测试分类 */
.test-category {
    margin-bottom: 30px;
}

.category-title {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.test-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.test-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b9d;
    box-shadow: 0 10px 30px rgba(255,107,157,0.2);
}

.test-card.selected {
    border-color: #ff6b9d;
    background: linear-gradient(135deg, #fff5f8 0%, #fff 100%);
}

.test-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.test-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.test-desc {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 15px;
    line-height: 1.5;
}

.test-price {
    font-size: 1.4em;
    font-weight: bold;
    color: #ff6b9d;
    margin-bottom: 10px;
}

.test-tag {
    display: inline-block;
    padding: 5px 15px;
    background: #ff6b9d;
    color: #fff;
    border-radius: 15px;
    font-size: 0.75em;
}

.test-tag.warning {
    background: #f39c12;
}

.test-tag.adult {
    background: #9b59b6;
}

/* 套餐卡片 */
.package-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: #fff;
    margin-top: 30px;
}

.package-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.package-icon {
    font-size: 2em;
}

.package-header h3 {
    font-size: 1.5em;
}

.package-discount {
    background: #ff6b9d;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9em;
}

.package-card p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.package-price {
    margin-bottom: 20px;
}

.price-old {
    text-decoration: line-through;
    opacity: 0.6;
    margin-right: 15px;
}

.price-new {
    font-size: 2.5em;
    font-weight: bold;
}

/* 测试进行页面 */
.test-container {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    border-radius: 5px;
    transition: width 0.3s;
}

.question-card {
    text-align: center;
    padding: 30px;
}

.question-num {
    color: #ff6b9d;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.question-text {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.option-btn {
    padding: 20px;
    background: #f8f8f8;
    border: 2px solid #eee;
    border-radius: 15px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.option-btn:hover {
    border-color: #ff6b9d;
    background: #fff5f8;
}

.option-btn.selected {
    border-color: #ff6b9d;
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: #fff;
}

/* MBTI选择器 */
.mbti-double-selector {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.person-select {
    text-align: center;
    flex: 1;
}

.person-select h3 {
    margin-bottom: 20px;
    color: #333;
}

.mbti-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.mbti-mini-btn {
    padding: 10px 5px;
    background: #f8f8f8;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.mbti-mini-btn:hover {
    background: #fff;
    border-color: #ff6b9d;
}

.mbti-mini-btn.selected {
    background: #ff6b9d;
    color: #fff;
    border-color: #ff6b9d;
}

/* 结果页面 */
.result-container {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-type {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: #fff;
    border-radius: 15px;
    font-size: 1.5em;
    font-weight: bold;
}

.result-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f8f8;
    border-radius: 15px;
}

.result-section h3 {
    color: #ff6b9d;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.score-bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-bar-label {
    width: 100px;
    font-weight: bold;
}

.score-bar-track {
    flex: 1;
    height: 25px;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s;
}

.score-bar-value {
    width: 50px;
    text-align: right;
    font-weight: bold;
}

/* 响应式 */
@media (max-width: 600px) {
    .test-grid {
        grid-template-columns: 1fr;
    }

    .mbti-double-selector {
        flex-direction: column;
    }

    .mbti-mini-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}