* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.3rem;
    font-weight: 300;
}

.screen {
    display: none;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome-content {
    text-align: center;
}

.welcome-content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.welcome-content p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.test-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-item .icon {
    font-size: 1.5rem;
}

.test-tips {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: left;
}

.test-tips h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.test-tips ul {
    list-style: none;
    padding: 0;
}

.test-tips li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.test-tips li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.disclaimer {
    color: #666;
    font-size: 0.9rem;
    margin: 1.5rem 0;
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.progress-container {
    margin-bottom: 2.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.question-container {
    text-align: center;
}

#question-text {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.6;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.option-btn {
    background-color: white;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-align: left;
}

.option-btn:hover {
    background-color: #3498db;
    color: white;
    transform: translateX(5px);
}

.result-content {
    text-align: center;
    padding: 2rem;
}

.result-header {
    margin-bottom: 3rem;
}

.result-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mbti-type-container {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#mbti-type {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.type-code {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.type-name {
    font-size: 1.5rem;
    color: #34495e;
    font-weight: 500;
}

.type-description, .type-details, .type-traits, .career-suggestions, .relationship-insights {
    margin: 2.5rem 0;
    text-align: left;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.type-description:hover, .type-details:hover, .type-traits:hover, .career-suggestions:hover, .relationship-insights:hover {
    transform: translateY(-5px);
}

.type-description h3, .type-details h3, .type-traits h3, .career-suggestions h3, .relationship-insights h3 {
    color: #2c3e50;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.type-description p, .type-details p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.traits-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.trait-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.trait-label {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.trait-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.trait-progress {
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease;
}

.result-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* 性格特质分析样式 */
.trait-analysis {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.trait-analysis h5 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.trait-analysis h5:first-child {
    margin-top: 0;
}

.trait-analysis ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trait-analysis li {
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.trait-analysis li:hover {
    transform: translateX(5px);
}

/* 调整其他部分的样式 */
#type-description {
    text-align: left;
}

#type-description h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

#type-description p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* 性格特质分析样式 */
.trait-dimension {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.trait-dimension h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.trait-bar {
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin: 1rem 0;
    overflow: hidden;
}

.trait-progress {
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 5px;
    transition: width 1s ease;
}

.trait-dimension p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.type-summary {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.type-summary h5 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.type-summary h5:first-child {
    margin-top: 0;
}

.type-summary p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.type-summary ul {
    list-style: none;
    padding: 0;
}

.type-summary li {
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border-radius: 6px;
    color: #666;
    transition: transform 0.2s ease;
}

.type-summary li:hover {
    transform: translateX(5px);
    background: #edf2f7;
}

/* 捐赠按钮样式 */
.donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.donate-icon {
    font-size: 1.2rem;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 推荐测试区域样式 */
.recommended-tests {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.recommended-tests h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.recommended-tests h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 3px;
}

.test-category {
    margin-bottom: 2rem;
}

.test-category h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.test-category h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background: linear-gradient(to bottom, #3498db, #2980b9);
    border-radius: 2px;
}

.test-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.test-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.test-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f5f7fa 0%, #e6ebf1 100%);
}

.test-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.test-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.test-desc {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* 页脚样式 */
.site-footer {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.copyright {
    color: #999;
    font-size: 0.8rem;
    margin-top: 1.5rem;
}

.copyright a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #2980b9;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
        margin: 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .screen {
        padding: 1.5rem;
    }

    .test-info {
        flex-direction: column;
        gap: 1rem;
    }

    #question-text {
        font-size: 1.3rem;
    }

    .option-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    .result-content {
        padding: 1rem;
    }

    #mbti-type {
        font-size: 3rem;
    }

    .type-description, .type-details, .type-traits, .career-suggestions, .relationship-insights {
        padding: 1.5rem;
    }

    .type-description h3, .type-details h3, .type-traits h3, .career-suggestions h3, .relationship-insights h3 {
        font-size: 1.4rem;
    }

    .type-description p, .type-details p {
        font-size: 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }

    .recommended-tests {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .recommended-tests h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .test-links {
        grid-template-columns: 1fr;
    }

    .test-link {
        padding: 1.2rem;
    }

    .test-icon {
        font-size: 2rem;
    }

    .test-title {
        font-size: 1.1rem;
    }

    .test-desc {
        font-size: 0.8rem;
    }

    .site-footer {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .footer-content p {
        font-size: 0.8rem;
    }

    .copyright {
        font-size: 0.7rem;
    }
}