/* ===== 稳定器承重配平 ===== */
.gim-hero {
    background: linear-gradient(150deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 26px;
    box-shadow: 0 12px 36px rgba(29, 78, 216, .10);
}
.gim-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.gim-logo {
    font-size: 28px; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8 0%, #93c5fd 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(29, 78, 216, .3);
}
.gim-title { font-size: 20px; font-weight: 800; color: #1e3a8a; }
.gim-sub { font-size: 13px; color: #64748b; margin-top: 2px; }

.gim-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.gim-form {
    background: rgba(255,255,255,.92); border: 1px solid #93c5fd;
    border-radius: 16px; padding: 16px;
}
.gim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gim-field { display: flex; flex-direction: column; gap: 4px; }
.gim-field > span { font-size: 12px; color: #64748b; font-weight: 600; }
.gim-field input, .gim-field select {
    border: 2px solid #dbeafe; border-radius: 10px; padding: 9px 12px;
    font-size: 14px; background: #fff; color: #0f172a; outline: none; transition: border-color .2s;
}
.gim-field input:focus, .gim-field select:focus { border-color: #2563eb; }

.gim-result {
    background: rgba(255,255,255,.92); border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.gim-arm {
    position: relative; height: 120px; border-radius: 12px; overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
}
.gim-cam {
    position: absolute; top: 30px; left: 40%; font-size: 24px; transition: left .4s;
}
.gim-axis {
    position: absolute; top: 0; bottom: 0; left: 66%; width: 3px; background: #1d4ed8; border-radius: 2px;
}
.gim-axis::after { content: '俯仰轴'; position: absolute; top: 2px; left: 6px; font-size: 10px; color: #1d4ed8; font-weight: 700; }
.gim-cog {
    position: absolute; bottom: 14px; left: 40%; font-size: 12px; font-weight: 700; color: #b45309;
    background: #fef3c7; border: 1px solid #fcd34d; border-radius: 8px; padding: 2px 8px; transition: left .4s;
}
.gim-load {
    position: absolute; top: 8px; right: 10px; font-size: 12px; font-weight: 800;
    color: #1e3a8a; background: rgba(255,255,255,.92); border-radius: 8px; padding: 3px 9px;
}
.gim-break { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.gim-break li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px;
    padding: 8px 12px; font-size: 13px; color: #475569;
}
.gim-break li b { color: #0f172a; font-variant-numeric: tabular-nums; }
.gim-break li.ok { border-color: #2563eb; background: #dbeafe; color: #1e40af; font-weight: 700; }
.gim-break li.ok.bad { border-color: #f87171; background: #fef2f2; color: #b91c1c; }
.gim-note { margin-top: 14px; font-size: 12px; color: #64748b; line-height: 1.7; }

@media (max-width: 860px) {
    .gim-body { grid-template-columns: 1fr; }
    .gim-hero { padding: 20px 14px; }
}

/* ===== 深色模式 ===== */
[data-theme="dark"] .gim-hero {
    background: linear-gradient(150deg, #172554 0%, #0f172a 100%);
    border-color: rgba(147, 197, 253, .22);
}
[data-theme="dark"] .gim-title { color: #bfdbfe; }
[data-theme="dark"] .gim-form, [data-theme="dark"] .gim-result {
    background: rgba(255,255,255,.05); border-color: rgba(147, 197, 253, .18);
}
[data-theme="dark"] .gim-field input, [data-theme="dark"] .gim-field select {
    background: rgba(255,255,255,.06); color: #e2e8f0; border-color: rgba(147,197,253,.25);
}
[data-theme="dark"] .gim-field > span { color: #94a3b8; }
[data-theme="dark"] .gim-arm { background: linear-gradient(180deg, rgba(15,23,42,.5) 0%, rgba(30,41,59,.5) 100%); border-color: rgba(148,163,184,.2); }
[data-theme="dark"] .gim-axis { background: #60a5fa; }
[data-theme="dark"] .gim-axis::after { color: #93c5fd; }
[data-theme="dark"] .gim-cog { background: rgba(180,83,9,.25); border-color: rgba(252,211,77,.4); color: #fcd34d; }
[data-theme="dark"] .gim-load { background: rgba(15,23,42,.85); color: #bfdbfe; }
[data-theme="dark"] .gim-break li { background: rgba(255,255,255,.04); border-color: rgba(148,163,184,.2); color: #94a3b8; }
[data-theme="dark"] .gim-break li b { color: #e2e8f0; }
[data-theme="dark"] .gim-break li.ok { background: rgba(29,78,216,.2); border-color: rgba(96,165,250,.4); color: #93c5fd; }
[data-theme="dark"] .gim-break li.ok.bad { background: rgba(220,38,38,.18); border-color: rgba(248,113,113,.4); color: #fca5a5; }
