/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4a5568;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 90%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

header {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    padding: 35px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
    font-size: 1.1rem;
    opacity: 0.98;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

main {
    padding: 35px 25px;
}

/* 屏幕切换 */
.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 开始屏幕 */
#start-screen {
    text-align: center;
    padding: 60px 20px;
    position: relative;
}

#start-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

#start-screen h2 {
    font-size: 2rem;
    color: #8b5cf6;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

#start-screen p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #64748b;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

#start-screen p:last-of-type {
    animation-delay: 0.4s;
}

/* 心情选择器 */
.mood-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.mood-option {
    padding: 15px 20px;
    background-color: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mood-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
}

.mood-option.selected {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border-color: #8b5cf6;
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
}

/* 测试屏幕 */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f4f8;
    border-radius: 4px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    100% { left: 100%; }
}

.question-counter {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

#question-text {
    font-size: 1.4rem;
    margin-bottom: 35px;
    color: #2d3748;
    text-align: center;
    line-height: 1.6;
    font-weight: 600;
    padding: 0 10px;
    animation: questionFadeIn 0.5s ease-out;
}

@keyframes questionFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.options {
    margin-bottom: 35px;
    animation: optionsFadeIn 0.5s ease-out 0.2s both;
}

@keyframes optionsFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 进度条容器 */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

/* 数值显示 */
.slider-value {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* 进度条样式 */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #8b5cf6 0%, #ec4899 100%);
    outline: none;
    transition: all 0.3s ease;
}

/* Chrome, Safari, Edge, Opera */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 3px solid #8b5cf6;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.5);
}

/* Firefox */
.slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 3px solid #8b5cf6;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* 进度条轨道背景 */
.slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #8b5cf6 0%, #ec4899 100%);
    outline: none;
}

/* 数值标记 */
.slider-marks {
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    margin-top: 10px;
}

.slider-mark {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
    position: relative;
    text-align: center;
    width: 20px;
    transform: translateX(-50%);
}

.slider-mark::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background-color: #cbd5e1;
    border-radius: 1px;
}

/* 文字说明 */
.slider-description {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 15px;
    font-weight: 500;
    background-color: rgba(139, 92, 246, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .slider-container {
        padding: 15px;
    }
    
    .slider-value {
        font-size: 2rem;
    }
    
    .slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    .slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
    
    .slider-mark {
        font-size: 0.75rem;
    }
}

.navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    animation: navigationFadeIn 0.5s ease-out 0.4s both;
}

@keyframes navigationFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 结果屏幕 */
.result-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.result-summary::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateX(-50%) scale(1.2); opacity: 0.8; }
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
    position: relative;
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.score-circle::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.score-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
    animation: countUp 1.5s ease-out;
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.score-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.98);
    margin-top: 5px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.result-message {
    font-size: 1.2rem;
    text-align: center;
    color: #4a5568;
    max-width: 85%;
    line-height: 1.7;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.energy-report, .action-suggestions {
    margin-bottom: 45px;
    padding: 0 15px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.8s ease-out 0.5s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.energy-report h3, .action-suggestions h3 {
    font-size: 1.4rem;
    margin-bottom: 22px;
    color: #8b5cf6;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.energy-report h3::after, .action-suggestions h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 2px;
}

.analysis-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px 20px;
    background-color: #fafbfc;
    border-radius: 12px;
    border: 1px solid #f0f4f8;
    transition: all 0.3s ease;
}

.analysis-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.analysis-label {
    font-weight: 600;
    width: 120px;
    color: #4a5568;
    font-size: 1rem;
}

.analysis-bar {
    flex-grow: 1;
    height: 10px;
    background-color: #f0f4f8;
    border-radius: 5px;
    margin: 0 15px;
    overflow: hidden;
    position: relative;
}

.analysis-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 5px;
    transition: width 1s ease-out 0.3s;
    position: relative;
    overflow: hidden;
}

.analysis-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    100% { left: 100%; }
}

.analysis-value {
    width: 40px;
    text-align: right;
    color: #8b5cf6;
    font-size: 1rem;
    font-weight: 600;
}

.suggestion {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin-bottom: 18px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.suggestion::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.suggestion:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #8b5cf6;
}

.suggestion-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #8b5cf6;
    font-size: 1.1rem;
}

.suggestion-desc {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 按钮样式 */
.btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    width: auto;
    min-width: 130px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn.secondary {
    background: white;
    color: #8b5cf6;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn.secondary:hover {
    background: #fafbfc;
    border-color: #8b5cf6;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.15);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled::before {
    display: none;
}

/* 特殊按钮动画 */
.btn.animate {
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 20px;
    }
    
    #question-text {
        font-size: 1.3rem;
    }
    
    .navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .navigation button {
        width: 100%;
    }
}/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    width: 90%;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    padding: 30px;
}

/* 屏幕切换 */
.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 开始屏幕 */
#start-screen {
    text-align: center;
    padding: 40px 20px;
}

#start-screen h2 {
    font-size: 2rem;
    color: #4a5568;
    margin-bottom: 20px;
}

#start-screen p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #718096;
}

/* 测试屏幕 */
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.question-counter {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #4a5568;
}

#question-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #2d3748;
    text-align: center;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option {
    padding: 15px 20px;
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.option:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
}

.option.selected {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.navigation {
    display: flex;
    justify-content: space-between;
}

/* 结果屏幕 */
.result-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.score-value {
    font-size: 3rem;
    font-weight: bold;
    color: white;
}

.score-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
}

.result-message {
    font-size: 1.3rem;
    text-align: center;
    color: #4a5568;
    max-width: 80%;
    line-height: 1.6;
}

.energy-report, .action-suggestions {
    margin-bottom: 30px;
}

.energy-report h3, .action-suggestions h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.analysis-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f7fafc;
    border-radius: 8px;
}

.analysis-label {
    font-weight: bold;
    width: 120px;
    color: #4a5568;
}

.analysis-bar {
    flex-grow: 1;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 5px;
    margin: 0 15px;
    overflow: hidden;
}

.analysis-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
    border-radius: 5px;
}

.analysis-value {
    width: 40px;
    text-align: right;
    color: #4a5568;
}

.suggestion {
    background-color: #f7fafc;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

.suggestion-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #4a5568;
}

.suggestion-desc {
    color: #718096;
    line-height: 1.5;
}

/* 按钮样式 */
.btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn.secondary:hover {
    background: #cbd5e0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 20px;
    }
    
    #question-text {
        font-size: 1.3rem;
    }
    
    .navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .navigation button {
        width: 100%;
    }
}