﻿/* 核心动画与逻辑定位样式 - 严禁修改 ID 和 宽高 */
div#total { width: 820px; height: 420px; border: 2px solid #3B82F6; border-radius: 12px; box-sizing: border-box; overflow: hidden; position: relative !important; background: #fff; }
div#canvas { width: 560px; height: 420px; background-color: #f8f9fa; }
div#panel { left: 560px; width: 260px; height: 420px; background-color: #ffffff; border-left: 1px solid #e2e8f0; } 
input[type="text"] { left: 140px; width: 60px; border: 1px solid #cbd5e1; border-radius: 4px; padding: 2px 5px; }
select { width: 240px; border: 1px solid #cbd5e1; border-radius: 4px; padding: 4px; background: #fff; }
.pos1 { left: 10px; }
.pos2 { left: 140px; }
.pos3 { left: 220px; }

/* 全球顶级教育 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;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: #64748B;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: all 0.2s;
}
.back-btn:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #CBD5E1;
}
h1 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #0F172A;
    letter-spacing: -0.025em;
}
p {
    font-size: 17px;
    color: #334155;
    margin-bottom: 20px;
    text-align: justify;
}
.highlight-box {
    background: #F8FAFC;
    border-left: 4px solid #3B82F6;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}
.highlight-box p { margin-bottom: 0; font-size: 16px; color: #475569; }

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

/* 公式样式 */
.formula-card {
    background: #EEF2FF;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
    border: 1px solid #C7D2FE;
}
.formula {
    font-family: "Times New Roman", Times, serif;
    font-size: 24px;
    font-weight: 700;
    color: #1E3A8A;
}

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