﻿/* 核心动画与逻辑定位样式 - 严禁修改 ID 和 宽高 */
div#total { width: 900px; height: 400px; border: 2px solid #3B82F6; border-radius: 12px; box-sizing: border-box; overflow: hidden; position: relative !important; background: #fff; }
div#canvas { width: 600px; height: 400px; background-color: #f8f9fa; }
div#panel { left: 600px; width: 300px; height: 400px; background-color: #ffffff; border-left: 1px solid #e2e8f0; }
.pos1 { left: 10px; }
.pos2 { left: 50px; }

/* 全球顶级教育 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;
}
h2 {
    font-size: 20px;
    color: #0F172A;
    margin: 30px 0 15px;
    font-weight: 700;
}
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; }
ul {
    padding-left: 25px;
    margin-bottom: 20px;
}
li {
    font-size: 16px;
    color: #475569;
    margin-bottom: 8px;
}

/* Panel 内部布局 */
#panel > div {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 0 15px;
}
#panel span {
    white-space: normal !important;
}

.input-row {
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.radio-group {
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.radio-item {
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

select, input[type="text"] {
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    font-size: 0.85rem;
}
select { flex: 1; width: 160px; }
input[type="text"] { width: 80px; text-align: center; }

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

/* 响应式媒体查询 */
@media (max-width: 950px) {
    #total { /* scale removed */ }
}
@media (max-width: 850px) {
    #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; }
}

