/* ============================================
   FluentOS-On-Web 移动端适配 - 核心覆盖样式
   不修改原文件，仅覆盖
   ============================================ */

@media (max-width: 768px) {

    /* ===== 1. 基础重置 ===== */
    * {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        box-sizing: border-box;
    }

    html, body {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
        font-size: 14px;
        -webkit-text-size-adjust: 100%;
    }

    .mobile-mode {
        --nav-height: 48px;
        --taskbar-height: 48px;
        --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* ===== 2. 桌面容器 ===== */
    #desktop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: calc(var(--taskbar-height, 48px) + var(--safe-area-bottom, 0px) + 48px);
        overflow: hidden;
        background-size: cover;
        background-position: center;
    }

    /* ===== 3. 桌面图标 - 网格布局 ===== */
    .desktop-icons {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 8px 8px 12px 8px;
        overflow-y: auto;
        height: 100%;
        align-content: start;
        -webkit-overflow-scrolling: touch;
    }

    .desktop-icon {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 4px;
        border-radius: 12px;
        min-height: 72px;
        cursor: pointer;
        transition: all 0.15s ease;
        background: transparent;
        position: relative;
        -webkit-touch-callout: none;
        user-select: none;
        -webkit-user-select: none;
    }

    .desktop-icon:active {
        transform: scale(0.92);
        background: rgba(255, 255, 255, 0.12);
    }

    .desktop-icon.selected {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.3);
    }

    .desktop-icon .icon-wrapper {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 2px;
        position: relative;
    }

    .desktop-icon .icon-wrapper img,
    .desktop-icon .icon-wrapper svg {
        width: 40px;
        height: 40px;
        object-fit: contain;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

    .desktop-icon .app-name {
        font-size: 10px;
        text-align: center;
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 0, 0, 0.3);
        max-width: 56px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.2;
        font-weight: 500;
        letter-spacing: 0.3px;
    }

    .desktop-icon .app-name.light-text {
        color: rgba(255, 255, 255, 0.95);
    }

    .desktop-icon .app-name.dark-text {
        color: rgba(0, 0, 0, 0.85);
    }

    /* ===== 4. 任务栏 ===== */
    .taskbar {
        position: fixed !important;
        bottom: calc(48px + var(--safe-area-bottom, 0px)) !important;
        left: 0 !important;
        right: 0 !important;
        height: 48px !important;
        padding: 0 6px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        z-index: 9999 !important;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.2) !important;
    }

    .taskbar .taskbar-left {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }

    .taskbar .start-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 8px !important;
        padding: 4px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .taskbar .start-btn:active {
        background: rgba(255, 255, 255, 0.15) !important;
        transform: scale(0.92);
    }

    .taskbar .start-btn img,
    .taskbar .start-btn svg {
        width: 24px;
        height: 24px;
    }

    .taskbar .taskbar-center {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        overflow-x: auto;
        padding: 0 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .taskbar .taskbar-center::-webkit-scrollbar {
        display: none;
    }

    .taskbar .taskbar-app {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        padding: 4px !important;
        border-radius: 8px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .taskbar .taskbar-app:active {
        transform: scale(0.9);
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .taskbar .taskbar-app img,
    .taskbar .taskbar-app svg {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .taskbar .taskbar-app.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #4a9eff;
        box-shadow: 0 0 6px rgba(74, 158, 255, 0.5);
    }

    .taskbar .taskbar-right {
        display: flex;
        align-items: center;
        gap: 2px;
        flex-shrink: 0;
    }

    .taskbar .taskbar-right .system-tray {
        font-size: 13px;
        padding: 4px 6px;
        color: rgba(255, 255, 255, 0.9);
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        border-radius: 4px;
        min-height: 32px;
    }

    .taskbar .taskbar-right .system-tray:active {
        background: rgba(255, 255, 255, 0.1);
    }

    .taskbar .taskbar-search {
        display: none !important;
    }

    /* ===== 5. 锁屏 ===== */
    .lock-screen {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        background-size: cover !important;
        background-position: center !important;
        z-index: 999999 !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }

    .lock-screen .lock-clock {
        font-size: 56px !important;
        font-weight: 200 !important;
        color: white !important;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
        font-variant-numeric: tabular-nums;
    }

    .lock-screen .lock-date {
        font-size: 18px !important;
        margin-bottom: 24px !important;
        color: rgba(255, 255, 255, 0.8) !important;
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3) !important;
    }

    .lock-screen .lock-pin-input {
        font-size: 28px !important;
        padding: 8px 16px !important;
        width: 180px !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.15) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 12px !important;
        color: white !important;
        outline: none !important;
        letter-spacing: 8px;
        font-weight: 300;
    }

    .lock-screen .lock-pin-input:focus {
        border-color: rgba(74, 158, 255, 0.6) !important;
        box-shadow: 0 0 20px rgba(74, 158, 255, 0.2) !important;
    }

    .lock-screen .lock-pin-input::placeholder {
        color: rgba(255, 255, 255, 0.3);
        letter-spacing: 0;
    }

    .lock-screen .lock-keypad {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        margin-top: 20px !important;
        max-width: 240px !important;
        width: 100% !important;
    }

    .lock-screen .lock-keypad button {
        width: 56px !important;
        height: 56px !important;
        font-size: 20px !important;
        border-radius: 50% !important;
        border: none !important;
        background: rgba(255, 255, 255, 0.12) !important;
        color: white !important;
        cursor: pointer !important;
        transition: all 0.15s !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
        font-weight: 300;
    }

    .lock-screen .lock-keypad button:active {
        transform: scale(0.88) !important;
        background: rgba(255, 255, 255, 0.25) !important;
    }

    .lock-screen .lock-keypad .key-empty {
        background: transparent !important;
        box-shadow: none !important;
        cursor: default !important;
    }

    .lock-screen .lock-keypad .key-empty:active {
        transform: none !important;
        background: transparent !important;
    }

    .lock-screen .lock-error {
        color: #ff6b6b !important;
        font-size: 14px !important;
        margin-top: 12px !important;
        min-height: 24px !important;
        text-shadow: 0 1px 8px rgba(255, 0, 0, 0.2) !important;
    }

    /* ===== 6. 窗口 ===== */
    .window-container.mobile-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 96px) !important;
        border-radius: 0 !important;
        z-index: 1000;
        background: var(--bg-primary, #1a1a2e) !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
        transition: opacity 0.25s ease, transform 0.25s ease !important;
    }

    .window-container.mobile-window.opening {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    .window-container.mobile-window.open {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    .window-container.mobile-window .window-title-bar {
        min-height: 44px !important;
        padding: 0 8px 0 12px !important;
        background: rgba(0, 0, 0, 0.03) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        cursor: default !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-shrink: 0 !important;
    }

    .window-container.mobile-window .window-title-bar .window-title {
        font-size: 15px !important;
        font-weight: 500 !important;
        color: var(--text-primary, #e0e0e0) !important;
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .window-container.mobile-window .window-title-bar .window-title .title-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .window-container.mobile-window .window-controls {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
    }

    .window-container.mobile-window .window-controls button {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 50% !important;
        border: none !important;
        font-size: 14px !important;
        cursor: pointer !important;
        transition: all 0.15s !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        color: var(--text-secondary, #999) !important;
    }

    .window-container.mobile-window .window-controls button:active {
        transform: scale(0.85) !important;
    }

    .window-container.mobile-window .window-controls .window-min-btn,
    .window-container.mobile-window .window-controls .window-max-btn {
        display: none !important;
    }

    .window-container.mobile-window .window-controls .window-close-btn {
        background: rgba(255, 0, 0, 0.15) !important;
        color: #ff6b6b !important;
    }

    .window-container.mobile-window .window-controls .window-close-btn:active {
        background: rgba(255, 0, 0, 0.3) !important;
    }

    .window-container.mobile-window .window-body {
        height: calc(100% - 44px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        background: var(--bg-secondary, #1a1a2e) !important;
        padding: 0 !important;
    }

    .window-container.mobile-window .window-border,
    .window-container.mobile-window .window-resize-handle {
        display: none !important;
    }

    .window-container.mobile-window.slide-in {
        animation: slideIn 0.3s cubic-bezier(0.32, 0.72, 0, 1) forwards;
    }

    .window-container.mobile-window.slide-out {
        animation: slideOut 0.25s cubic-bezier(0.32, 0.72, 0, 1) forwards;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(30px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes slideOut {
        from {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        to {
            opacity: 0;
            transform: translateY(30px) scale(0.95);
        }
    }

    /* ===== 7. 开始菜单 ===== */
    .start-menu {
        position: fixed !important;
        bottom: calc(48px + var(--safe-area-bottom, 0px)) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 55vh !important;
        max-height: 480px !important;
        border-radius: 20px 20px 0 0 !important;
        transform: translateY(100%) !important;
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1) !important;
        background: rgba(20, 20, 35, 0.95) !important;
        backdrop-filter: blur(30px) !important;
        -webkit-backdrop-filter: blur(30px) !important;
        padding: 12px 16px 20px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 99999 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.3) !important;
        display: none;
    }

    .start-menu.active {
        transform: translateY(0) !important;
        display: block;
    }

    .start-menu::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.15);
    }

    .start-menu .start-search {
        display: block !important;
        position: sticky !important;
        top: 0 !important;
        background: rgba(20, 20, 35, 0.95) !important;
        z-index: 1 !important;
        padding: 8px 0 12px !important;
        margin: -4px -4px 12px -4px !important;
        border-radius: 0 0 12px 12px !important;
    }

    .start-menu .start-search input {
        width: 100% !important;
        padding: 10px 16px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: rgba(255, 255, 255, 0.06) !important;
        color: white !important;
        font-size: 14px !important;
        outline: none !important;
        transition: all 0.2s !important;
    }

    .start-menu .start-search input:focus {
        border-color: rgba(74, 158, 255, 0.3) !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }

    .start-menu .start-search input::placeholder {
        color: rgba(255, 255, 255, 0.3);
    }

    .start-menu .start-apps-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
        padding: 4px !important;
        padding-bottom: 20px !important;
    }

    .start-menu .start-app-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 10px 4px !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        min-height: 72px !important;
        cursor: pointer !important;
        transition: all 0.15s !important;
        border: 1px solid transparent !important;
    }

    .start-menu .start-app-item:active {
        transform: scale(0.92) !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .start-menu .start-app-item .app-icon {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 2px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .start-menu .start-app-item .app-icon img,
    .start-menu .start-app-item .app-icon svg {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

    .start-menu .start-app-item .app-name {
        font-size: 10px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        text-align: center !important;
        max-width: 52px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-weight: 400;
    }

    .start-menu .start-section-title {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.3);
        padding: 8px 4px 4px;
        font-weight: 500;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    /* ===== 8. 通知中心 ===== */
    .notification-center {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 45vh;
        max-height: 400px;
        border-radius: 0 0 20px 20px;
        transform: translateY(-100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        background: rgba(20, 20, 35, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 100000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
        display: none;
    }

    .notification-center.active {
        display: block;
        transform: translateY(0);
    }

    .notification-center .notification-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 16px;
        font-weight: 500;
        color: white;
    }

    .notification-center .notification-badge {
        background: #ff6b6b;
        color: white;
        border-radius: 50%;
        padding: 1px 8px;
        font-size: 11px;
        min-width: 20px;
        text-align: center;
    }

    .notification-center .notification-clear {
        background: rgba(255, 0, 0, 0.15);
        border: none;
        color: #ff6b6b;
        padding: 4px 14px;
        border-radius: 12px;
        font-size: 12px;
        cursor: pointer;
    }

    .notification-center .notification-list {
        padding-top: 12px;
    }

    .notification-center .notification-empty {
        color: rgba(255, 255, 255, 0.3);
        text-align: center;
        padding: 30px 0;
        font-size: 14px;
    }

    .notification-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        margin-bottom: 8px;
        border-left: 3px solid transparent;
    }

    .notification-item.unread {
        border-left-color: #4a9eff;
        background: rgba(74, 158, 255, 0.06);
    }

    .notification-item .notification-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 50%;
    }

    .notification-item .notification-content {
        flex: 1;
        min-width: 0;
    }

    .notification-item .notification-title {
        font-size: 14px;
        font-weight: 500;
        color: white;
    }

    .notification-item .notification-body {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.6);
        margin-top: 2px;
    }

    .notification-item .notification-time {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.3);
        margin-top: 4px;
    }

    .notification-item .notification-mark-read {
        background: rgba(74, 158, 255, 0.15);
        border: none;
        color: #4a9eff;
        padding: 2px 12px;
        border-radius: 10px;
        font-size: 11px;
        cursor: pointer;
        flex-shrink: 0;
        height: 28px;
        align-self: center;
    }

    .notification-center::after {
        content: '';
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.1);
    }

    /* ===== 9. 控制中心 ===== */
    .control-center {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 35vh;
        max-height: 300px;
        border-radius: 0 0 20px 20px;
        transform: translateY(-100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        background: rgba(20, 20, 35, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 100000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
        display: none;
    }

    .control-center.active {
        display: block;
        transform: translateY(0);
    }

    .control-center .control-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding-top: 8px;
    }

    .control-center .control-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px 8px;
        border-radius: 12px;
        border: none;
        background: rgba(255, 255, 255, 0.04);
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        transition: all 0.2s;
        min-height: 64px;
        gap: 4px;
    }

    .control-center .control-item:active {
        transform: scale(0.92);
        background: rgba(255, 255, 255, 0.08);
    }

    .control-center .control-item.active {
        background: rgba(74, 158, 255, 0.15);
        color: #4a9eff;
    }

    .control-center .control-item .control-icon {
        font-size: 20px;
        line-height: 1;
    }

    .control-center .control-item .control-label {
        font-size: 11px;
        text-align: center;
        line-height: 1.2;
    }

    .control-center::after {
        content: '';
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.1);
    }

    /* ===== 10. 上下文菜单 ===== */
    .context-menu {
        position: fixed !important;
        border-radius: 12px !important;
        background: rgba(30, 30, 46, 0.95) !important;
        backdrop-filter: blur(30px) !important;
        -webkit-backdrop-filter: blur(30px) !important;
        padding: 6px !important;
        min-width: 160px !important;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        z-index: 100000 !important;
    }

    .context-menu .menu-item {
        padding: 10px 16px !important;
        min-height: 40px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.85) !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .context-menu .menu-item:active {
        background: rgba(255, 255, 255, 0.08) !important;
    }

    /* ===== 11. Toast ===== */
    .android-toast {
        position: fixed !important;
        bottom: calc(112px + var(--safe-area-bottom, 0px)) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: rgba(0, 0, 0, 0.8) !important;
        color: white !important;
        padding: 10px 24px !important;
        border-radius: 24px !important;
        font-size: 14px !important;
        z-index: 999999 !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        max-width: 80% !important;
        text-align: center !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        animation: toastIn 0.3s ease !important;
    }

    @keyframes toastIn {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(20px) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0) scale(1);
        }
    }

    /* ===== 12. 滚动条 ===== */
    ::-webkit-scrollbar {
        width: 3px !important;
        height: 3px !important;
    }

    ::-webkit-scrollbar-track {
        background: transparent !important;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15) !important;
        border-radius: 10px !important;
    }

    ::-webkit-scrollbar-thumb:active {
        background: rgba(255, 255, 255, 0.25) !important;
    }

    /* ===== 13. 图标加载 ===== */
    .mobile-icon-wrapper {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .icon-loading {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.06);
        border-top-color: #4a9eff;
        animation: iconSpin 0.8s linear infinite;
    }

    @keyframes iconSpin {
        to { transform: rotate(360deg); }
    }

    .empty-icon {
        background: rgba(255, 255, 255, 0.06);
        border-radius: 8px;
        border: 1px dashed rgba(255, 255, 255, 0.1);
    }

    /* ===== 14. 浅色主题 ===== */
    .theme-light .taskbar {
        background: rgba(255, 255, 255, 0.88) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .theme-light .taskbar .taskbar-right .system-tray {
        color: rgba(0, 0, 0, 0.8) !important;
    }

    .theme-light .start-menu {
        background: rgba(245, 245, 250, 0.97) !important;
    }

    .theme-light .start-menu .start-app-item .app-name {
        color: rgba(0, 0, 0, 0.7) !important;
    }

    .theme-light .start-menu .start-search input {
        background: rgba(0, 0, 0, 0.04) !important;
        color: #1a1a2e !important;
        border-color: rgba(0, 0, 0, 0.06) !important;
    }

    .theme-light .start-menu .start-search input::placeholder {
        color: rgba(0, 0, 0, 0.3);
    }

    .theme-light .notification-center {
        background: rgba(245, 245, 250, 0.97) !important;
    }

    .theme-light .notification-center .notification-header {
        color: #1a1a2e !important;
    }

    .theme-light .notification-item .notification-title {
        color: #1a1a2e !important;
    }

    .theme-light .notification-item .notification-body {
        color: rgba(0, 0, 0, 0.5) !important;
    }

    .theme-light .notification-item .notification-time {
        color: rgba(0, 0, 0, 0.3) !important;
    }

    .theme-light .notification-item {
        background: rgba(0, 0, 0, 0.03) !important;
    }

    .theme-light .notification-item.unread {
        background: rgba(74, 158, 255, 0.06) !important;
    }

    .theme-light .control-center {
        background: rgba(245, 245, 250, 0.97) !important;
    }

    .theme-light .control-center .control-item {
        background: rgba(0, 0, 0, 0.03) !important;
        color: rgba(0, 0, 0, 0.5) !important;
    }

    .theme-light .control-center .control-item.active {
        background: rgba(74, 158, 255, 0.12) !important;
        color: #4a9eff !important;
    }

    .theme-light .window-container.mobile-window {
        background: #f5f5fa !important;
    }

    .theme-light .window-container.mobile-window .window-title-bar {
        background: rgba(0, 0, 0, 0.02) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    }

    .theme-light .window-container.mobile-window .window-title-bar .window-title {
        color: #1a1a2e !important;
    }

    .theme-light .window-container.mobile-window .window-body {
        background: #f5f5fa !important;
    }

    .theme-light .context-menu {
        background: rgba(245, 245, 250, 0.97) !important;
        border-color: rgba(0, 0, 0, 0.04) !important;
    }

    .theme-light .context-menu .menu-item {
        color: rgba(0, 0, 0, 0.8) !important;
    }

    .theme-light .lock-screen .lock-clock {
        color: #1a1a2e !important;
    }

    .theme-light .lock-screen .lock-date {
        color: rgba(0, 0, 0, 0.6) !important;
    }

    .theme-light .lock-screen .lock-pin-input {
        background: rgba(0, 0, 0, 0.04) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #1a1a2e !important;
    }

    .theme-light .lock-screen .lock-keypad button {
        background: rgba(0, 0, 0, 0.04) !important;
        color: #1a1a2e !important;
    }

    .theme-light .lock-screen .lock-keypad button:active {
        background: rgba(0, 0, 0, 0.1) !important;
    }

    /* ===== 15. 安全区域 ===== */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .taskbar {
            bottom: calc(48px + env(safe-area-inset-bottom)) !important;
        }

        .start-menu {
            bottom: calc(48px + env(safe-area-inset-bottom)) !important;
        }

        .window-container.mobile-window {
            height: calc(100vh - 96px - env(safe-area-inset-bottom)) !important;
        }

        .android-toast {
            bottom: calc(112px + env(safe-area-inset-bottom)) !important;
        }
    }

    /* ===== 16. 横屏 ===== */
    @media (orientation: landscape) and (max-height: 500px) {
        .desktop-icons {
            grid-template-columns: repeat(6, 1fr) !important;
            gap: 2px !important;
            padding: 4px !important;
        }

        .desktop-icon {
            min-height: 56px !important;
            padding: 4px !important;
        }

        .desktop-icon .icon-wrapper {
            width: 32px !important;
            height: 32px !important;
        }

        .desktop-icon .icon-wrapper img,
        .desktop-icon .icon-wrapper svg {
            width: 28px !important;
            height: 28px !important;
        }

        .desktop-icon .app-name {
            font-size: 8px !important;
            max-width: 40px !important;
        }

        .start-menu {
            height: 70vh !important;
            max-height: 320px !important;
        }

        .start-menu .start-apps-grid {
            grid-template-columns: repeat(6, 1fr) !important;
            gap: 4px !important;
        }

        .start-menu .start-app-item {
            min-height: 56px !important;
            padding: 6px 2px !important;
        }

        .start-menu .start-app-item .app-icon {
            width: 28px !important;
            height: 28px !important;
        }

        .start-menu .start-app-item .app-icon img,
        .start-menu .start-app-item .app-icon svg {
            width: 24px !important;
            height: 24px !important;
        }

        .start-menu .start-app-item .app-name {
            font-size: 8px !important;
        }

        .lock-screen .lock-clock {
            font-size: 32px !important;
        }

        .lock-screen .lock-keypad {
            grid-template-columns: repeat(5, 1fr) !important;
            max-width: 320px !important;
        }

        .lock-screen .lock-keypad button {
            width: 40px !important;
            height: 40px !important;
            font-size: 16px !important;
        }

        .notification-center {
            height: 60vh !important;
            max-height: 300px !important;
        }

        .control-center {
            height: 50vh !important;
            max-height: 220px !important;
        }

        .control-center .control-grid {
            grid-template-columns: repeat(6, 1fr) !important;
            gap: 8px !important;
        }
    }

    /* ===== 17. 小屏 ===== */
    @media (max-width: 359px) {
        .desktop-icons {
            grid-template-columns: repeat(3, 1fr) !important;
            gap: 2px !important;
            padding: 4px !important;
        }

        .desktop-icon {
            min-height: 60px !important;
            padding: 4px 2px !important;
        }

        .desktop-icon .icon-wrapper {
            width: 36px !important;
            height: 36px !important;
        }

        .desktop-icon .icon-wrapper img,
        .desktop-icon .icon-wrapper svg {
            width: 30px !important;
            height: 30px !important;
        }

        .desktop-icon .app-name {
            font-size: 9px !important;
            max-width: 44px !important;
        }

        .start-menu .start-apps-grid {
            grid-template-columns: repeat(3, 1fr) !important;
        }

        .taskbar .taskbar-app {
            width: 28px !important;
            height: 28px !important;
            min-width: 28px !important;
        }

        .taskbar .taskbar-app img,
        .taskbar .taskbar-app svg {
            width: 16px !important;
            height: 16px !important;
        }

        .lock-screen .lock-clock {
            font-size: 40px !important;
        }

        .lock-screen .lock-keypad {
            gap: 6px !important;
            max-width: 180px !important;
        }

        .lock-screen .lock-keypad button {
            width: 44px !important;
            height: 44px !important;
            font-size: 16px !important;
        }

        .notification-center .control-grid {
            grid-template-columns: repeat(3, 1fr) !important;
        }

        .control-center .control-grid {
            grid-template-columns: repeat(3, 1fr) !important;
        }
    }

}