/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 页面样式 */
.page {
    display: none;
    text-align: center;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

.page.active {
    display: block;
}

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

/* ========== 开始页面 - 深色简洁风格 ========== */
#start-page h1 {
    font-size: 64px;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#start-page h2 {
    font-size: 32px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

#start-page .divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    margin: 0 auto 24px;
    border-radius: 2px;
}

#start-page p {
    font-size: 18px;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* ========== 测试页面 ========== */
.progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 2px;
    transition: width 0.4s ease;
}

#question-number {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

#question-text {
    font-size: 28px;
    margin-bottom: 48px;
    color: #fff;
    font-weight: 400;
    line-height: 1.5;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.option {
    padding: 20px 28px;
    font-size: 17px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    backdrop-filter: blur(10px);
}

.option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.option:active {
    transform: translateY(0);
    background: rgba(245, 158, 11, 0.2);
}

/* ========== 结果页面 ========== */
#result-page h1 {
    font-size: 28px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.personality {
    font-size: 96px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -4px;
}

.result-title {
    font-size: 36px;
    margin-bottom: 48px;
    color: #fff;
    font-weight: 400;
}

/* ========== 按钮样式 ========== */
button {
    padding: 18px 48px;
    font-size: 17px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

button:active {
    transform: translateY(-1px);
}

/* ========== 装饰元素 ========== */
.decorations {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.decorations::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.decorations::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(252, 211, 77, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .container {
        padding: 24px;
    }

    #start-page h1 {
        font-size: 48px;
    }

    #start-page h2 {
        font-size: 24px;
    }

    #question-text {
        font-size: 22px;
        margin-bottom: 36px;
    }

    .option {
        font-size: 16px;
        padding: 16px 20px;
    }

    .personality {
        font-size: 72px;
    }

    .result-title {
        font-size: 28px;
    }

    button {
        padding: 16px 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #start-page h1 {
        font-size: 36px;
    }

    #start-page h2 {
        font-size: 20px;
    }

    #start-page p {
        font-size: 16px;
        margin-bottom: 40px;
    }

    #question-text {
        font-size: 19px;
    }

    .option {
        font-size: 15px;
        padding: 14px 18px;
    }

    .personality {
        font-size: 56px;
    }

    .result-title {
        font-size: 24px;
        margin-bottom: 36px;
    }
}