* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: #333;
}

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

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

.title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

.screen {
    display: none;
    flex: 1;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* 欢迎页面样式 */
.welcome-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555;
}

.sects-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin: 30px 0;
}

.sect-item {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 5px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.sect-item:hover {
    transform: translateY(-2px);
}

/* 测试页面样式 */
#test-screen {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.progress-bar {
    position: relative;
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 10%;
}

.progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}

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

.question-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.question-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    white-space: pre-line;
}

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

.option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    line-height: 1.4;
}

.option:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.option.selected {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* 结果页面样式 */
#result-screen {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.result-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.main-sect {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.main-sect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.sect-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.main-sect h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.sect-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 10px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.sect-score {
    font-size: 1.1rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.secondary-sect {
    background: linear-gradient(45deg, #ffecd2 0%, #fcb69f 100%);
    color: #8b4513;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.secondary-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.secondary-sect h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.secondary-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
    margin-top: 5px;
}

.sect-description {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
    border-left: 4px solid #667eea;
}

.sect-details h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.traits {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    color: #667eea;
    font-weight: bold;
}

.sect-story {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.05rem;
    text-indent: 2em;
}

.destiny-quote {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.destiny-quote h5 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.destiny-text {
    font-size: 1.2rem;
    font-weight: bold;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    line-height: 1.4;
}

.score-details {
    background: #f1f3f4;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #666;
}

.score-details h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.score-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.score-sect {
    font-weight: bold;
    color: #2c3e50;
}

.score-value {
    color: #667eea;
    font-weight: bold;
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .welcome-content, #test-screen, #result-screen {
        padding: 25px;
    }
    
    .sects-preview {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 8px;
    }
    
    .sect-item {
        padding: 8px 4px;
        font-size: 0.8rem;
    }
    
    .navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .welcome-content, #test-screen, #result-screen {
        padding: 20px;
    }
    
    .question-title {
        font-size: 1.3rem;
    }
    
    .main-sect h3 {
        font-size: 2rem;
    }
} 