* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Microsoft YaHei', sans-serif; }

body { min-height: 100vh; color: #1a365d; overflow-x: hidden; }

.bg-animation {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(-45deg, #f0f8ff, #e0f2fe, #bae6fd, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-box {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(14,65,136,0.1);
    padding: 20px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

.top-bar { display: flex; align-items: center; margin-bottom: 20px; }
.back-btn {
    text-decoration: none;
    background: #e0f2fe;
    color: #0284c7;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    margin-right: 20px;
    border: 1px solid #bae6fd;
}
.back-btn:hover { background: #0284c7; color: #fff; }
.top-bar h1 { font-size: 22px; color: #0f4c81; }

.experiment-area { display: flex; gap: 20px; flex-wrap: wrap; }

.control-panel { width: 350px; flex-shrink: 0; display: flex; flex-direction: column; }
.control-panel h2 {
    font-size: 16px;
    color: #0f4c81;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.hint { font-size: 13px; color: #64748b; margin-bottom: 10px; }

.slider-box {
    background: #f8fafc;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}
.slider-box label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #334155;
    margin-bottom: 8px;
}
.slider-hint { font-size: 11px; color: #64748b; margin-top: 6px; }

input[type=range] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #bfdbfe, #60a5fa);
    border-radius: 3px;
    outline: none;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    cursor: pointer;
}
input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.theory-box {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 12px;
    border-radius: 0 10px 10px 0;
    margin-top: 4px;
}
.theory-box h3 { font-size: 14px; color: #166534; margin-bottom: 8px; }
.theory-box .formula {
    font-family: 'Times New Roman', serif;
    font-size: 15px;
    font-style: italic;
    font-weight: bold;
    color: #15803d;
    text-align: center;
    margin: 8px 0;
    background: rgba(255,255,255,0.6);
    padding: 6px;
    border-radius: 4px;
}
.theory-box p { font-size: 12px; color: #166534; line-height: 1.6; margin: 4px 0; }

.contact-box {
    background: #eff6ff;
    border: 1px dashed #3b82f6;
    padding: 12px;
    border-radius: 10px;
    margin-top: auto;
}
.contact-box h3 { font-size: 14px; color: #1d4ed8; margin-bottom: 8px; }
.contact-info { background: white; padding: 8px; border-radius: 8px; }
.contact-info p { font-size: 13px; color: #0f4c81; margin-bottom: 4px; }

.chart-panel { flex: 1; min-width: 500px; }
.chart-header { margin-bottom: 12px; }
.chart-header h2 { font-size: 18px; color: #0f4c81; }

.chart-section {
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}
.chart-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.green { background: #22c55e; }
.dot.orange { background: #f59e0b; }
.dot.blue { background: #3b82f6; }
.dot.purple { background: #8b5cf6; }

@media (max-width: 900px) {
    .experiment-area { flex-direction: column; }
    .control-panel { width: 100%; }
    .chart-panel { min-width: 100%; }
}
