﻿/* 核心动画与逻辑定位样式 - 严禁修改 ID 和 宽高 */
div#total { width: 660px; height: 440px; border: 2px solid #3B82F6; border-radius: 12px; box-sizing: border-box; overflow: hidden; position: relative !important; background: #fff; }
div#canvas { width: 400px; height: 440px; background-color: #f8f9fa; }
div#panel { left: 400px; width: 260px; height: 440px; background-color: #ffffff; border-left: 1px solid #e2e8f0; } 
button { width: 240px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 8px; margin-left: 10px; cursor: pointer; transition: all 0.2s; font-weight: 600; }
button:hover { filter: brightness(0.95); transform: translateY(-1px); }
input[type="text"] { left: 110px; width: 85px; border: 1px solid #cbd5e1; border-radius: 4px; padding: 4px 8px; font-family: 'Courier New', monospace; }
.pos1 { left: 10px; font-size: 14px; color: #475569; }
.pos3 { left: 205px; font-size: 14px; color: #64748b; }
.wagon1 { color: #ef4444 !important; font-weight: 700; }
.wagon2 { color: #3b82f6 !important; font-weight: 700; }

/* 全球顶级教育 UI 样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Segoe UI", "Microsoft YaHei", -apple-system, sans-serif;
    background: #F1F5F9;
    color: #1E293B;
    line-height: 1.8;
    }
.container { margin: 20px; }
.card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 50px;
    border: 1px solid #E2E8F0;
}
h1 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #0F172A;
    letter-spacing: -0.025em;
}
h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 25px 0 15px;
    color: #1E293B;
    border-left: 4px solid #3B82F6;
    padding-left: 12px;
}
p {
    font-size: 17px;
    color: #334155;
    margin-bottom: 20px;
    text-align: justify;
}
ul {
    padding-left: 25px;
    margin-bottom: 25px;
    list-style-type: none;
}
li {
    font-size: 16px;
    color: #475569;
    margin-bottom: 12px;
    padding: 12px 20px;
    background: #F8FAFC;
    border-left: 4px solid #3B82F6;
    border-radius: 4px;
}
li strong { color: #1E293B; }
.formula-card {
    background: #F1F5F9;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-family: "Times New Roman", serif;
    font-style: italic;
    text-align: center;
    font-size: 1.2em;
    border: 1px dashed #3B82F6;
}

/* 仿真器容器适配 */
.sim-wrapper {
    justify-content: center;
    margin: 40px 0;
    }
#total {
    transform-origin: center top;
    flex-shrink: 0;
}

/* 响应式媒体查询 */
@media (max-width: 820px) {
    #total { /* scale removed */ }
    .card { padding: 30px; }
}
@media (max-width: 720px) {
    #total { /* scale removed */ }
    h1 { font-size: 24px; }
}
@media (max-width: 480px) {
    #total { /* scale removed */ }
    body { padding: 20px 10px; }
    li { padding: 10px; font-size: 14px; }
}
