/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #FFFFFF;
    color: #000000;
    line-height: 1.6;
    transition: all 0.3s ease;
}

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

/* 首页样式 */
.container {
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.container h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #000000;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #666;
    font-weight: 400;
}

.start-btn {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin: 30px 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 100;
}

.start-btn:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

.warning {
    font-size: 0.9rem;
    color: #999;
    margin-top: 60px;
}

/* 测试页样式 */
.test-page {
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #FF0000;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.question-container {
    margin-bottom: 40px;
}

.question-number {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #000000;
}

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

.option {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.option:hover {
    border-color: #FF0000;
    background-color: #FFF5F5;
}

.option.selected {
    border-color: #FF0000;
    background-color: #FF0000;
    color: #FFFFFF;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 16px;
}

.nav-button {
    padding: 12px 30px;
    border: 2px solid #000000;
    background-color: transparent;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.nav-button:hover {
    background-color: #FF0000;
    color: #FFFFFF;
    border-color: #FF0000;
    transform: scale(1.05);
}

.nav-button:disabled {
    border-color: #e0e0e0;
    color: #e0e0e0;
    cursor: not-allowed;
}

.nav-button:disabled:hover {
    background-color: transparent;
    color: #e0e0e0;
    border-color: #e0e0e0;
    transform: none;
}

/* 结果页样式 */
.result-page {
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.result-type {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #000000;
    line-height: 1.2;
    animation: popIn 0.5s ease;
}

.match-percentage {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: #FF0000;
    animation: popIn 0.5s ease 0.1s both;
}

.result-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
    overflow: hidden;
}

.author-section {
    background-color: #f0f0f0;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: left;
}

.author-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000000;
}

.author-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    overflow: hidden;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.action-button {
    padding: 15px 30px;
    border: 2px solid #000000;
    background-color: transparent;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.action-button:hover {
    background-color: #FF0000;
    color: #FFFFFF;
    border-color: #FF0000;
    transform: scale(1.05);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

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

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

    .homepage h1 {
        font-size: 2.5rem;
    }

    .homepage p {
        font-size: 1rem;
    }

    #start-test {
        padding: 12px 30px;
        font-size: 1rem;
        min-height: 48px;
    }

    .question-text {
        font-size: 1.3rem;
    }

    .result-type {
        font-size: 2rem;
    }

    .match-percentage {
        font-size: 3rem;
    }

    .result-description {
        font-size: 1.1rem;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .nav-button {
        width: 100%;
        text-align: center;
        min-height: 48px;
    }

    .option {
        min-height: 48px;
        padding: 12px 16px;
    }

    .action-button {
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .homepage h1 {
        font-size: 2rem;
    }

    .result-type {
        font-size: 1.8rem;
    }

    .match-percentage {
        font-size: 2.5rem;
    }

    .container {
        padding: 15px 12px;
    }
}