/**
 * Smart Gym 原型 — v1.3 视觉基准（门店管理等页面）
 * iframe 子页不自带状态栏，由 index.html 设备框提供
 */
body.sg-v13 {
    background: linear-gradient(180deg, #fff5f0 0%, #fff 52%, #fff8f3 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2937;
}

.sg-v13 .card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.1);
}

.sg-v13 .grad {
    background: linear-gradient(135deg, #ff4500, #ff8c00);
}

.sg-v13 .chip {
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.sg-v13 .tab {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.3s;
}

.sg-v13 .tab.active,
.sg-v13 .tab.on {
    background: #ff4500;
    color: #fff;
    font-weight: 700;
}

.sg-v13 .switch {
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: #ccc;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
    flex-shrink: 0;
}

.sg-v13 .switch::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.sg-v13 .switch.on,
.sg-v13 .switch.active {
    background: #ff4500;
}

.sg-v13 .switch.on::after,
.sg-v13 .switch.active::after {
    left: 25px;
}

.sg-v13 .choice {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    border-radius: 14px;
    padding: 11px;
    text-align: center;
}

.sg-v13 .choice.on {
    border: 2px solid #ff4500;
    background: #fff1e8;
}

.sg-v13 .panel,
.sg-v13 .tab-pane {
    display: none;
}

.sg-v13 .panel.active,
.sg-v13 .tab-pane.active {
    display: block;
}

.sg-v13 .sg-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 140, 0, 0.15);
    padding: 0.75rem 1.25rem;
    z-index: 20;
}

.sg-v13 .sg-save-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 140, 0, 0.15);
    padding: 0.75rem 1.25rem;
    z-index: 20;
}

.sg-v13 input[type="range"] {
    accent-color: #ff4500;
}

.sg-v13 .hide {
    display: none;
}

.sg-v13 .locked {
    filter: saturate(0.45);
    opacity: 0.78;
}

.sg-v13 .sg-select {
    height: 46px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 0 12px;
    background: #fff;
    width: 100%;
}

.sg-v13 .safe-btn {
    min-height: 48px;
}

.sg-v13 .badge-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
}
