/* EQ开关样式 - 被设备页/EX3D页/SY102页复用 */
.eq-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.eq-switch span {
    color: var(--text-primary);
}

.eq-switch input {
    display: none;
}

.slider {
    width: 50px;
    height: 20px;
    background: #ccc;
    border-radius: 10px;
    position: relative;
    transition: background 0.3s;
}

.slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.eq-switch input:checked + .slider {
    background: #d2b16f;
}

.eq-switch input:checked + .slider::before {
    transform: translateX(30px);
}

/* 隐藏原生 number 输入微调箭头 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }

/* 自定义数字输入框上下箭头 */
.number-input-wrap { position: relative; display: inline-block; }
.number-input-wrap .custom-spinner {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 28px;
    height: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid #e4e7ed;
    border-radius: 0 3px 3px 0;
    overflow: hidden;
    background: transparent;
}
.custom-spinner .spinner-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    background: transparent;
    font-size: 0;
    color: transparent;
    line-height: 0;
}
.custom-spinner .spinner-btn + .spinner-btn { border-top: 1px solid #e4e7ed; }
.custom-spinner .spinner-btn::before { content: none !important; }
.custom-spinner .spinner-btn svg { width: 12px; height: 12px; display: block; }
.custom-spinner .spinner-btn:hover { background: #f5f7fa; }
.custom-spinner .spinner-btn:hover svg path { stroke: #2d3238; }

/* 页面内容容器 */
.page-content {
    width: 100%;
    height: 100%;
}

.page-content#homePage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: calc(100% + 22px);
    min-width: 0;
    min-height: 0;
    height: calc(100% + 22px);
    flex: 1;
    overflow: hidden;
    margin: -11px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }
}
