/* ============================================================
   win-tools.css 【20261010a 新增】
   「设置 → 加速与实用工具」标签页的全部样式 + 特效总开关规则。
   纯新增文件：不改 6.css / 2.css / 任何原有样式。
   加载顺序在 2.css 之后，覆盖规则可正常生效。
   ============================================================ */

/* ---------- ① 一键加速（dl-turbo）的补充覆盖 ----------
   原有 dl-turbo 规则（6.css）管的是电脑桌面那套图标，
   这里补上 Windows 黑色桌面、窗口、任务栏、漂浮按钮、面板等，
   开启时全部关动画 / 关毛玻璃 / 降阴影；再点一次（class 移除）
   即完整恢复 —— 原样式一行没动，恢复后和从前一模一样。 */
body.dl-turbo #windowsDesktopSystem .icon,
body.dl-turbo #windowsDesktopSystem .taskbar,
body.dl-turbo #windowsDesktopSystem .start-btn,
body.dl-turbo #windowsDesktopSystem .taskbar-app,
body.dl-turbo .floating-btn,
body.dl-turbo .desktop-float-btn,
body.dl-turbo .desktop-window,
body.dl-turbo #windowsDesktopSystem .window,
body.dl-turbo #windowsDesktopSystem .start-menu,
body.dl-turbo #windowsDesktopSystem .context-menu,
body.dl-turbo .search-upgrade-panel,
body.dl-turbo .function-panel,
body.dl-turbo .friend-panel,
body.dl-turbo .upgrade-panel,
body.dl-turbo .navigation-menu,
body.dl-turbo .glass-effect {
    animation: none !important;
    transition: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

body.dl-turbo #windowsDesktopSystem .window,
body.dl-turbo .desktop-window,
body.dl-turbo .search-upgrade-panel,
body.dl-turbo .function-panel,
body.dl-turbo .friend-panel,
body.dl-turbo .desktop-float-btn,
body.dl-turbo .desktop-toolbar,
body.dl-turbo .upgrade-panel {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
}

body.dl-turbo .desktop-fx-layer,
body.dl-turbo .desktop-toolbar::after,
body.dl-turbo .dl-dust-layer,
body.dl-turbo .dl-aurora-layer {
    display: none !important;
}

/* ---------- ② 毛玻璃总开关（默认管理） ----------
   毛玻璃（backdrop-filter）是自带且默认开启的最耗性能特效，
   老电脑 / 手机上会明显卡顿。body.dl-glass-off = 用户或弱设备
   默认逻辑把它关掉；随时在设置里开回（class 移除即完整恢复）。 */
body.dl-glass-off *,
body.dl-glass-off *::before,
body.dl-glass-off *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* ---------- ③ 装饰动画总开关（默认管理） ----------
   另一项自带且默认开启的重特效：按钮呼吸 / 漂浮框架的流光、
   呼吸发光、彩虹描边 / 背景特效层 / 桌面星尘极光等。 */
body.dl-decor-off .pulse-slow,
body.dl-decor-off .floating-btn,
body.dl-decor-off .desktop-float-btn,
body.dl-decor-off .desktop-toolbar,
body.dl-decor-off .toolbar-handle,
body.dl-decor-off .toolbar-proxy-btn,
body.dl-decor-off .desktop-fx-layer,
body.dl-decor-off #bgContainer,
body.dl-decor-off .dl-dust-layer,
body.dl-decor-off .dl-aurora-layer,
body.dl-decor-off .dl-ai-status .dl-ai-dot {
    animation: none !important;
}

body.dl-decor-off .desktop-fx-layer {
    display: none !important;
}

/* ---------- ④ 开关控件外观（与设置卡片风格一致） ---------- */
.wt-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex: none;
    margin-left: 12px;
}

.wt-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wt-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.wt-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.wt-switch input:checked + .wt-slider {
    background: #22c55e;
}

.wt-switch input:checked + .wt-slider::before {
    transform: translateX(22px);
}

/* ---------- ⑤ 垃圾清理 / 容量 / 设备列表 ---------- */
.wt-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 6px 0;
    font-size: 13px;
    background: #f8fafc;
    line-height: 1.5;
}

.wt-row input[type="checkbox"] {
    flex: none;
    width: 16px;
    height: 16px;
}

.wt-size {
    margin-left: auto;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}

.wt-total {
    font-size: 13px;
    color: #334155;
    margin: 8px 0 0;
}

.wt-bar {
    height: 14px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin: 8px 0 4px;
}

.wt-bar > i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #f59e0b);
    border-radius: 999px;
}

.wt-device {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin: 8px 0;
    font-size: 13px;
    background: #f8fafc;
}

.wt-device.current {
    outline: 2px solid #0078d7;
    background: #eff6ff;
}

.wt-device-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wt-device-sub {
    color: #64748b;
    font-size: 12px;
}

.wt-device-side {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.wt-allow-btn,
.wt-block-btn {
    border: none;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    cursor: pointer;
    color: #fff;
}

.wt-allow-btn {
    background: #22c55e;
}

.wt-block-btn {
    background: #ef4444;
}

/* ---------- ⑥ 相机自拍弹窗 ---------- */
.wt-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wt-modal-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    max-width: 92vw;
    max-height: 92vh;
    overflow: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.wt-modal-box h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #1f2937;
}

.wt-modal-box video {
    max-width: 100%;
    border-radius: 10px;
    background: #000;
    display: block;
}

.wt-modal-btns {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* ---------- ⑦ 设备禁止全屏提示 ---------- */
.wt-block-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 24px;
    font-size: 15px;
}

.wt-block-overlay .wt-block-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.wt-block-overlay .wt-block-close:hover {
    background: rgba(239, 68, 68, 0.45);
    border-color: #ef4444;
}

.wt-block-overlay .wt-hold {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    touch-action: none;
    transition: background 0.2s ease;
}

.wt-block-overlay .wt-hold:hover {
    background: #22c55e;
    border-color: #22c55e;
}

.wt-block-overlay .wt-hold.holding {
    background: rgba(239, 68, 68, 0.35);
    border-color: #ef4444;
}

/* ---------- ⑧ 轻提示 ---------- */
.wt-toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    transform: translateX(-50%);
    background: rgba(17, 24, 39, 0.92);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 10px;
    z-index: 2147483000;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    max-width: 86vw;
    text-align: center;
}

.wt-toast.show {
    opacity: 1;
}

/* ============================================================
   【20261010c】设置窗口：彩色开关 + 放大缩小按钮 + 手机适配
   ============================================================ */

/* ---------- ① 对勾框 → 真正的开/关（按标签页配色，各种颜色） ---------- */
#settingsWin .settings-main input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 46px;
    height: 26px;
    min-width: 46px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    flex: none;
    margin: 0 0 0 12px;
    vertical-align: middle;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
    outline: none;
}

#settingsWin .settings-main input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

#settingsWin .settings-main input[type="checkbox"]:hover {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(59, 130, 246, 0.18);
}

#settingsWin .settings-main input[type="checkbox"]:checked {
    background: #22c55e;
}

#settingsWin .settings-main input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

/* 个性化 / 本地图片：绿色 */
#settingsWin #background input[type="checkbox"]:checked,
#settingsWin #local-images input[type="checkbox"]:checked {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

/* 桌面图标：蓝色 */
#settingsWin #icons input[type="checkbox"]:checked {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* 桌面按钮：紫色 */
#settingsWin #desktopButtons input[type="checkbox"]:checked {
    background: linear-gradient(90deg, #8b5cf6, #6d28d9);
}

/* 动态壁纸：橙色 */
#settingsWin #dynamic input[type="checkbox"]:checked {
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

/* 字体设置：青色 */
#settingsWin #font input[type="checkbox"]:checked {
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

/* 系统：石板灰蓝 */
#settingsWin #system input[type="checkbox"]:checked {
    background: linear-gradient(90deg, #64748b, #475569);
}

/* 自定义网站：粉色 */
#settingsWin #websites input[type="checkbox"]:checked {
    background: linear-gradient(90deg, #ec4899, #db2777);
}

/* 回收站：暖灰 */
#settingsWin #trash input[type="checkbox"]:checked {
    background: linear-gradient(90deg, #78716c, #57534e);
}

/* 加速与实用工具：翠绿 */
#settingsWin #boost input[type="checkbox"]:checked {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* 例外①：加速与工具里的圆开关（wt-switch）继续隐藏原生框 */
#settingsWin #boost .wt-switch input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    position: absolute;
    box-shadow: none;
}

#settingsWin #boost .wt-switch input[type="checkbox"]::after {
    content: none;
}

/* 例外②：垃圾清理的多选列表保留方框样式 */
#settingsWin #boost .wt-row input[type="checkbox"] {
    -webkit-appearance: auto;
    appearance: auto;
    width: 17px;
    height: 17px;
    min-width: 17px;
    opacity: 1;
    position: static;
    margin: 0;
    border-radius: 4px;
    border: 1px solid #94a3b8;
    background: #ffffff;
    box-shadow: none;
    cursor: pointer;
}

#settingsWin #boost .wt-row input[type="checkbox"]::after {
    content: none;
}

/* ---------- ② 设置窗口标题栏：放大 / 缩小按钮组 ---------- */
.wt-zoom-group {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 2px 4px;
}

.wt-zoom-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.wt-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.wt-zoom-label {
    min-width: 44px;
    text-align: center;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    padding: 0 4px;
}

/* ---------- ③ 手机适配：侧边栏变顶部滑动条、文字更清楚 ---------- */
@media (max-width: 640px) {
    #settingsWin .settings-sidebar {
        float: none;
        width: auto;
        height: auto;
        max-height: none;
        padding: 6px 8px;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        -webkit-overflow-scrolling: touch;
    }

    #settingsWin .sidebar-item {
        flex: none;
        white-space: nowrap;
        border-left: none !important;
        border-radius: 999px;
        padding: 7px 12px !important;
        margin: 0 !important;
    }

    #settingsWin .sidebar-item.active {
        border-left: none !important;
        border-radius: 999px;
        background: var(--win-accent, #0078d7);
        color: #ffffff !important;
    }

    #settingsWin .settings-main {
        margin-left: 0 !important;
        width: 100%;
        padding: 10px 12px 24px;
    }

    /* 文字更清楚：间距、字号、颜色 */
    #settingsWin .setting-item {
        margin: 12px 0 !important;
    }

    #settingsWin .setting-item-text {
        min-width: 0;
    }

    #settingsWin .card-title {
        font-size: 15px !important;
    }

    #settingsWin .setting-bulk-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    #settingsWin .setting-bulk-actions .setting-run-btn {
        flex: 1 1 45%;
    }

    #settingsWin select {
        max-width: 100%;
        min-height: 36px;
    }

    /* 手机上标题栏紧凑一点，放得下放大缩小组 */
    .wt-zoom-group {
        margin-right: 4px;
    }

    .wt-zoom-label {
        min-width: 36px;
    }
}
