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

body {
    font-family: 'Arial', sans-serif;
    background-color: #D7CDCC;
    color: #1D1E2C;
    line-height: 1.6;
}

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

/* 通用部分样式 */
.section {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hidden {
    display: none !important;
}

/* 标题样式 */
h1 {
    color: #59656F;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

h2 {
    color: #6B888F;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

h3 {
    color: #59656F;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* 段落样式 */
p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #59656F;
}

/* 按钮样式 */
button {
    background-color: #6B888F;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

button:hover {
    background-color: #59656F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 136, 143, 0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: #D7CDCC;
    color: #59656F;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 进度条样式 */
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #D7CDCC;
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #6B888F;
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* 选项样式 */
.options {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    background-color: #FFFFFF;
    border: 2px solid #D7CDCC;
    border-radius: 10px;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1D1E2C;
}

.option:hover {
    background-color: #D7CDCC;
    border-color: #6B888F;
    transform: translateX(5px);
}

.option.selected {
    background-color: #6B888F;
    border-color: #6B888F;
    color: #FFFFFF;
    font-weight: bold;
}

/* 导航按钮样式 */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* 结果页面样式 */
#result-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 15px;
    text-align: left;
    border: 2px solid #D7CDCC;
}

#result-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

#result-name {
    flex: 1;
    margin-right: 20px;
    color: #59656F;
}

#result-emoji {
    font-size: 4rem;
}

#result-description {
    margin-bottom: 20px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #1D1E2C;
}

#result-personality {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #D7CDCC;
}

#personality-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #59656F;
}

#result-image {
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#result-image img {
    max-width: 100%;
    border-radius: 10px;
    max-height: 300px;
    object-fit: cover;
}

.image-source {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

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

    .section {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 1rem;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
        margin: 5px 0;
    }
}

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

.section {
    animation: fadeIn 0.5s ease;
}

.option {
    animation: fadeIn 0.3s ease;
}

.option:nth-child(1) { animation-delay: 0.1s; }
.option:nth-child(2) { animation-delay: 0.2s; }
.option:nth-child(3) { animation-delay: 0.3s; }
.option:nth-child(4) { animation-delay: 0.4s; }
