
        .settings-top-bar {
            padding: 45px 20px 0 20px;
            display: flex;
            align-items: center;
            background-color: #f2f2f7;
            z-index: 10;
        }
        .settings-scroll-area {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden; /* 新增：防止内部元素撑开导致水平滑动 */
            padding-bottom: 40px;
            scrollbar-width: none;
        }
        .settings-app-container.show {
            transform: translateX(0);
        }
        .settings-scroll-area::-webkit-scrollbar { display: none; }

        /* 全局搜索抽屉与搜索输入框样式 (防止被其他CSS挤压变形) */
        .search-drawer .search-input-container {
            width: 100% !important;
            height: 40px !important;
            min-height: 40px !important;
            box-sizing: border-box !important;
            background-color: #e3e3e8 !important;
            border-radius: 12px !important;
            display: flex !important;
            align-items: center !important;
            padding: 0 12px !important;
            flex-shrink: 0 !important;
        }
        .global-search-drawer-input {
            flex: 1 1 auto !important;
            width: 100% !important;
            height: 100% !important;
            min-height: 32px !important;
            border: none !important;
            outline: none !important;
            background: transparent !important;
            font-size: 16px !important;
            color: #000000 !important;
            padding: 0 6px !important;
            margin: 0 !important;
            box-sizing: border-box !important;
            line-height: normal !important;
        }
        .global-search-drawer-input::placeholder {
            color: #8e8e93 !important;
            font-size: 15px !important;
        }
        
        .set-page-title { font-size: 34px; font-weight: 800; padding: 4px 20px 10px; color: #000; letter-spacing: 0.4px; cursor: pointer; }
        .set-search-container { padding: 0 20px; margin-bottom: 16px; }
        .set-search-bar { background-color: #e3e3e8; border-radius: 10px; height: 36px; display: flex; align-items: center; padding: 0 8px; color: #8a8a8e; }
        .set-search-bar svg { width: 16px; height: 16px; fill: #8e8e93; margin: 0 4px; }
        .set-search-bar input { border: none; background: transparent; flex: 1; margin: 0 6px; font-size: 17px; font-weight: 500; color: #000; outline: none; }
        .set-card { background-color: #ffffff; border-radius: 10px; margin: 0 20px 16px; overflow: hidden; }
        
        @keyframes setAvatarBreathe { 0% { transform: scale(1); } 50% { transform: scale(1.04); } 100% { transform: scale(1); } }
        .set-profile-card { display: flex; align-items: center; padding: 12px 16px; }
        .set-avatar { width: 60px; height: 60px; margin-right: 16px; border-radius: 50%; display: flex; justify-content: center; align-items: center; overflow: hidden; animation: setAvatarBreathe 4s infinite ease-in-out; will-change: transform; transform: translateZ(0); }
        .set-avatar svg { width: 100%; height: 100%; }
        .set-profile-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
        .set-profile-name { font-size: 20px; font-weight: 600; margin-bottom: 2px; letter-spacing: 0.3px; }
        .set-profile-sub { font-size: 13px; font-weight: 500; color: #8a8a8e; letter-spacing: -0.1px; }
        
        .set-list-item { display: flex; align-items: center; padding-left: 16px; background-color: #ffffff; min-height: 44px; }
        .set-list-item:active { background-color: #e5e5ea; }
        
        @keyframes setIconBreathe { 0% { transform: scale(1); box-shadow: none; } 50% { transform: scale(1.06); box-shadow: 0 4px 10px rgba(0,0,0,0.12); } 100% { transform: scale(1); box-shadow: none; } }
                .set-item-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; justify-content: center; align-items: center; margin-right: 16px; animation: setIconBreathe 3s infinite ease-in-out; will-change: transform, box-shadow; transform: translateZ(0); }
        .set-item-icon svg { width: 20px; height: 20px; fill: white; }
        .set-item-icon svg[stroke="#fff"] { fill: none; width: 16px; height: 12px; }
        .set-item-content { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 11px 16px 11px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.2px; }
        .set-list-item:last-child .set-item-content { border-bottom: none; }
        
        .set-chevron { width: 8px; height: 13px; stroke: #c5c5c7; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
        .set-toggle { width: 51px; height: 31px; background-color: #e9e9eb; border-radius: 15.5px; position: relative; cursor: pointer; transition: background-color 0.2s ease; }
        .set-toggle::after { content: ''; position: absolute; width: 27px; height: 27px; background-color: white; border-radius: 50%; top: 2px; left: 2px; box-shadow: 0 3px 8px rgba(0,0,0,0.15), 0 1px 1px rgba(0,0,0,0.16), 0 3px 1px rgba(0,0,0,0.1); transition: transform 0.2s ease; }
        .set-toggle.on { background-color: #34c759; }
        .set-toggle.on::after { transform: translateX(20px); }
        
        .set-bg-orange { background-color: #ff9500; }
        .set-bg-blue { background-color: #007aff; }
        .set-bg-green { background-color: #34c759; }
        .set-bg-gray { background-color: #8e8e93; }
        .set-bg-black { background-color: #000000; }
        .set-bg-red { background-color: #ff3b30; }
        .set-bg-pink { background-color: #ff2d55; }
        .set-bg-purple { background-color: #5856d6; }

        /* --- Apple ID 页面 UI 样式 --- */
        .apple-id-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #f2f2f7;
            z-index: 160; /* 层级比设置页面高 */
            display: none;
            flex-direction: column;
            transform: translateX(100%);
            transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
        .apple-id-container.show {
            transform: translateX(0);
        }
        .apple-id-nav-bar {
            height: 90px;
            padding: 45px 20px 10px 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            background-color: #f2f2f7;
            z-index: 10;
        }
        .apple-id-back-btn {
            position: absolute;
            left: 16px;
            bottom: 10px;
            width: 30px;
            height: 30px;
            background-color: #fff;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        .apple-id-nav-title {
            font-size: 17px;
            font-weight: 600;
            position: absolute;
            bottom: 14px;
        }
        .apple-id-content {
            flex: 1;
            overflow-y: auto;
            padding-bottom: 40px;
        }
        .apple-id-content::-webkit-scrollbar {
            display: none;
        }
        .apple-id-profile-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px 0 30px;
        }
        .apple-id-avatar {
            width: 86px;
            height: 86px;
            border-radius: 50%;
            background-color: #8E939D;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 12px;
            overflow: hidden;
        }
        .apple-id-avatar svg {
            width: 100%;
            height: 100%;
        }
        .apple-id-name-container {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .apple-id-name {
            font-size: 24px;
            font-weight: 600;
        }
        .apple-id-avatar-edit-wrapper {
            position: relative;
            display: inline-flex;
            justify-content: center;
            align-items: center;
        }
        .apple-id-avatar-edit-badge {
            position: absolute;
            bottom: -6px;
            background: rgba(0, 122, 255, 0.9);
            color: #fff;
            font-size: 12px;
            font-weight: 600;
            padding: 2px 10px;
            border-radius: 12px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        }
        .ls-sheet-container.apple-id-profile-sheet-compact {
            height: 65%;
        }
        .apple-id-card {
            background-color: #ffffff;
            border-radius: 20px; /* 增加圆角，从 16px 改为 20px */
            margin: 0 16px 16px;
            overflow: hidden;
        }
        .apple-id-list-item {
            display: flex;
            align-items: center;
            padding-left: 16px;
            min-height: 48px;
            cursor: pointer;
        }
        .apple-id-list-item:active {
            background-color: #e5e5ea;
        }
        .apple-id-item-icon {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 16px;
            color: #fff;
        }
        .apple-id-icon-gray-3d {
            background: linear-gradient(135deg, #a3a3a8, #8e8e93);
            box-shadow: 0 2px 5px rgba(0,0,0,0.15), inset 0 1px 1px rgba(255,255,255,0.4);
        }
        .apple-id-icon-blue-3d {
            background: linear-gradient(135deg, #3295ff, #007aff);
            box-shadow: 0 2px 5px rgba(0,122,255,0.3), inset 0 1px 1px rgba(255,255,255,0.4);
        }
        .apple-id-icon-transparent {
            background-color: transparent;
            color: #007aff;
        }
        .apple-id-item-icon svg {
            width: 18px;
            height: 18px;
        }
        .apple-id-item-content {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px 12px 0;
            border-bottom: none; /* 去除列表项之间的横线 */
            font-size: 16px;
        }
        .apple-id-list-item:last-child .apple-id-item-content {
            border-bottom: none;
        }
        .apple-id-item-right {
            display: flex;
            align-items: center;
            color: #8e8e93;
        }
        .apple-id-item-value {
            margin-right: 8px;
            font-size: 16px;
        }
        .apple-id-chevron {
            width: 8px;
            height: 13px;
            stroke: #c5c5c7;
            stroke-width: 2.5;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
        }
        .apple-id-logout-btn {
            color: #ff3b30;
            justify-content: center;
            padding: 14px 0;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            text-align: center;
        }
        .apple-id-logout-btn:active {
            background-color: #e5e5ea;
        }

        /* 登录与安全 - 容器与动画 */
        .login-security-container {
            position: absolute;
            inset: 0;
            z-index: 170;
            display: none;
            background: #000; /* 底色改为黑色，配合缩放动画 */
            transform: translateX(100%);
            transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
        .login-security-container.show { transform: translateX(0); }

        .login-security-main {
            position: absolute;
            inset: 0;
            background: #f2f2f7;
            display: flex;
            flex-direction: column;
            border-radius: 0;
            transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), border-radius 0.4s cubic-bezier(0.32, 0.72, 0, 1), filter 0.4s cubic-bezier(0.32, 0.72, 0, 1);
            transform-origin: top center;
            z-index: 10;
        }
        .login-security-main.scaled {
            transform: scale(0.93) translateY(16px);
            border-radius: 32px;
            filter: brightness(0.65);
            pointer-events: none;
        }

        /* 导航栏与磨砂返回键 */
        .login-security-nav-bar {
            position: relative;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            box-sizing: border-box;
            height: 90px;
            padding: 45px 20px 10px;
            background: #f2f2f7;
            flex-shrink: 0;
        }
        .ls-nav-btn-circle {
            position: absolute;
            left: 16px;
            bottom: 6px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
        }
        .ls-nav-btn-circle svg {
            width: 18px;
            height: 18px;
            stroke: #000;
            stroke-width: 2.5;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
        }
        .login-security-nav-title { font-size: 17px; font-weight: 600; line-height: 30px; color: #000; }

        /* 内容区与设备展示 */
        .login-security-content { flex: 1; overflow-y: auto; padding: 0 16px calc(40px + env(safe-area-inset-bottom)); }
        .login-security-content::-webkit-scrollbar { display: none; }
        
        .ls-hero-device { display: flex; flex-direction: column; align-items: center; padding: 16px 0 10px; }
        .ls-hero-device-icon { height: 120px; display: flex; justify-content: center; align-items: center; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.12)); }
        .ls-hero-device-icon svg { height: 100%; width: auto; }
        .ls-hero-device-name { font-size: 20px; font-weight: 600; color: #000; margin-top: 12px; letter-spacing: 0.3px; }
        .ls-hero-device-badge { font-size: 13px; color: #8e8e93; margin-top: 4px; }

        /* 卡片与列表通用样式 */
        .login-security-section-title { margin: 20px 16px 6px; color: #6d6d72; font-size: 13px; text-transform: uppercase; }
        .login-security-card { background-color: #ffffff; border-radius: 20px; overflow: hidden; margin-bottom: 20px; }
        
        .login-security-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 38px; 
            padding: 8px 16px; 
            font-size: 16px; 
            background-color: #ffffff;
            position: relative;
            box-sizing: content-box; /* 修复挤压问题：确保高度不受全局 border-box 影响 */
        }
        /* 紧凑型卡片 (严格增加 2px 高度，min-height 设为 34px) */
        .login-security-card.ls-compact .login-security-row {
            min-height: 34px; 
            padding: 6px 16px; 
            box-sizing: content-box; /* 修复挤压问题 */
        }
        .login-security-row:not(:last-child)::after {
            content: ''; position: absolute; bottom: 0; left: 16px; right: 0; height: 1px; background-color: #c6c6c8; transform: scaleY(0.5);
        }
        .ls-clickable { cursor: pointer; }
        .ls-clickable:active { background-color: #e5e5ea; }
        .ls-row-value { color: #8e8e93; display: flex; align-items: center; }
        .ls-text-blue { color: #007aff; }
        .ls-chevron { width: 8px; height: 13px; stroke: #c5c5c7; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; margin-left: 8px; }

        /* 退出登录卡片专属样式 (完美居中、红色字样) */
        .ls-logout-btn { 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            min-height: 46px; 
            color: #ff3b30; 
            font-size: 16px; 
            font-weight: 400; 
            background-color: #ffffff;
        }

        /* 设备列表样式 */
        .login-security-devices-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
        .login-security-devices-heading .login-security-section-title { margin-top: 0; }
        .login-security-refresh { min-height: 32px; margin-right: 12px; padding: 0 8px; border: 0; color: #007aff; background: transparent; font: inherit; font-size: 15px; cursor: pointer; }
        .login-security-refresh:active { opacity: 0.7; }
        .login-security-device { padding: 8px 16px; border-bottom: 1px solid #ececf0; min-height: 44px; display: flex; flex-direction: column; justify-content: center; box-sizing: content-box; }
        .login-security-device:last-child { border-bottom: 0; }
        .login-security-device-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #111; font-size: 16px; font-weight: 500; margin-bottom: 2px; }
        .login-security-device-current { flex: 0 0 auto; color: #8e8e93; font-size: 12px; font-weight: 400; }
        .login-security-device-meta { color: #8e8e93; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
        .login-security-device-empty { padding: 18px 16px; color: #6d6d72; font-size: 14px; text-align: center; }
        .login-security-notice { min-height: 20px; margin: 12px 16px 0; color: #6d6d72; font-size: 13px; line-height: 1.45; }
        .login-security-notice.is-error { color: #d70015; }

        /* =========================================
           半屏层叠卡片 (Sheet) 样式 - 更改密码
           ========================================= */
        .ls-sheet-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.4); z-index: 20; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
        }
        .ls-sheet-overlay.show { opacity: 1; pointer-events: auto; }

        .ls-sheet-container {
            position: absolute; bottom: 0; left: 0; width: 100%; height: 90%; z-index: 30;
            transform: translateY(calc(100% + 20px)); transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        }
        .ls-sheet-container.show { transform: translateY(0); }

        .ls-sheet-bg-card {
            position: absolute; top: -14px; left: 4%; width: 92%; height: 40px;
            background-color: #d1d1d6; border-radius: 20px 20px 0 0; z-index: 1;
        }

        .ls-sheet-main {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background-color: #ffffff; border-radius: 24px 24px 0 0; z-index: 2;
            display: flex; flex-direction: column; box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
        }

        .ls-sheet-header { display: flex; align-items: center; padding: 16px; }
        .ls-sheet-cancel { color: #007aff; font-size: 17px; cursor: pointer; }
        .ls-sheet-content { padding: 0 24px; display: flex; flex-direction: column; align-items: center; }
        .ls-sheet-icon { margin-top: 10px; margin-bottom: 16px; }
        .ls-sheet-title { font-size: 26px; font-weight: 700; color: #000; margin: 0 0 8px 0; }
        .ls-sheet-subtitle { font-size: 15px; color: #000; margin: 0 0 24px 0; }

        /* 输入框组：圆角 20px */
        .ls-sheet-input-group { width: 100%; background-color: #f2f2f7; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
        .ls-pwd-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
        .ls-sheet-input-group input { width: 100%; box-sizing: border-box; border: none; background: transparent; padding: 16px 44px 16px 16px; font-size: 17px; outline: none; color: #000; }
        .ls-sheet-input-group input::placeholder { color: #c7c7cc; }
        .ls-pwd-toggle { position: absolute; right: 12px; width: 32px; height: 32px; border: none; background: transparent; color: #a3a3a8; display: flex; justify-content: center; align-items: center; cursor: pointer; padding: 0; }
        .ls-pwd-toggle .ls-eye-slash { display: block; }
        .ls-pwd-toggle.is-visible .ls-eye-slash { display: none; }
        .ls-divider { height: 1px; background-color: #c6c6c8; margin-left: 16px; transform: scaleY(0.5); }
        .ls-sheet-hint { width: 100%; font-size: 13px; color: #8e8e93; margin: 8px 0 32px 16px; text-align: left; }

        /* 继续按钮：圆角 20px */
        .ls-sheet-btn {
            width: 100%; padding: 16px; border-radius: 20px; border: none;
            background-color: #f2f2f7; color: #c7c7cc; font-size: 17px; font-weight: 600;
            cursor: pointer; transition: background-color 0.2s, color 0.2s; margin-top: 16px;
        }
        .ls-sheet-btn.active { background-color: #007aff; color: #ffffff; }
        
        .login-security-password-notice { min-height: 20px; margin: 0 16px 14px; color: #248a3d; font-size: 13px; line-height: 1.45; text-align: center; }
        .login-security-password-notice.is-error { color: #d70015; }

        /* --- API 连接页面 UI 样式 --- */
        .api-app-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #f2f2f7; z-index: 160; display: none; flex-direction: column; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); overflow: hidden; }
        .api-app-container.show { transform: translateX(0); }
        .api-page { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #f2f2f7; display: flex; flex-direction: column; transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); }
        .api-page.slide-right { transform: translateX(100%); }
        .api-page.slide-left { transform: translateX(-30%); opacity: 0.8; }
        .api-page.active { transform: translateX(0); opacity: 1; z-index: 10; }
        
        /* 导航栏与磨砂按钮 */
        .api-nav-bar { height: 90px; padding: 45px 20px 10px 20px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 20; }
        .api-nav-btn-circle { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 2px 10px rgba(0,0,0,0.08); display: flex; justify-content: center; align-items: center; cursor: pointer; color: #000; font-size: 15px; font-weight: 600; }
        .api-nav-btn-circle svg { width: 20px; height: 20px; stroke: #000; }
        .api-nav-btn-circle.text-btn { width: auto; padding: 0 16px; border-radius: 18px; }
        .api-nav-title { position: absolute; left: 0; right: 0; text-align: center; font-size: 17px; font-weight: 700; color: #000; pointer-events: none; }
        
        .api-content { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 40px; }
        .api-content::-webkit-scrollbar { display: none; }
        .api-hero-card { background-color: #fff; border-radius: 20px; margin: 10px 16px 0; padding-top: 24px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
        .api-hero-icon-bg { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, #4eb3ff 0%, #007aff 100%); box-shadow: inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.5), inset -1.5px -1.5px 3px rgba(0, 0, 0, 0.15); display: flex; justify-content: center; align-items: center; }
        .api-hero-title { font-size: 22px; font-weight: 800; color: #000; margin-top: 16px; }
        .api-hero-desc { font-size: 13px; color: #000; text-align: center; padding: 0 24px; margin-top: 8px; line-height: 1.4; margin-bottom: 20px; }
        .api-hero-desc span { color: #007aff; }
        .api-list-group { background-color: #fff; border-radius: 20px; margin: 0 16px; overflow: hidden; }
        .api-list-title { font-size: 14px; color: #8e8e93; margin: 24px 16px 8px 32px; text-transform: uppercase; }
        .api-row { display: flex; align-items: center; padding: 12px 16px; min-height: 48px; position: relative; background-color: #fff; }
        .api-row.clickable:active { background-color: #e5e5ea; cursor: pointer; }
        .api-row-left { width: 32px; display: flex; align-items: center; justify-content: flex-start; }
        .api-row-left svg { width: 20px; height: 20px; stroke: #007aff; }
        .api-row-text { flex: 1; display: flex; flex-direction: column; justify-content: center; }
        .api-row-title-text { font-size: 17px; color: #000; }
        .api-row-subtitle-text { font-size: 13px; color: #8e8e93; margin-top: 2px; }
        .api-row-right { display: flex; align-items: center; gap: 10px; }
        .api-icon-lock { width: 12px; height: 14px; fill: #000; opacity: 0.8; }
        .api-icon-wifi { width: 18px; height: 18px; fill: #000; }
        .api-icon-info { width: 22px; height: 22px; cursor: pointer; }
        .api-toggle { width: 51px; height: 31px; background-color: #34c759; border-radius: 15.5px; position: relative; cursor: pointer; transition: background-color 0.3s; }
        .api-toggle::after { content: ''; position: absolute; width: 27px; height: 27px; background-color: white; border-radius: 50%; top: 2px; right: 2px; box-shadow: 0 2px 4px rgba(0,0,0,0.2); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
        .api-toggle.off { background-color: #e9e9eb; }
        .api-toggle.off::after { transform: translateX(-20px); }
        
        /* 抽屉样式 */
        .api-drawer-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 100; }
        .api-drawer-overlay.show { opacity: 1; pointer-events: auto; }
        .api-drawer { position: absolute; bottom: 0; left: 0; width: 100%; min-width: 0; height: 88%; background: #f2f2f7; border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1); z-index: 101; display: flex; flex-direction: column; overflow: hidden; }
        .api-drawer.show { transform: translateY(0); }
        .api-app-container.show .api-drawer-overlay.show,
        .voice-app-container.show .api-drawer-overlay.show,
        .imggen-app-container.show .api-drawer-overlay.show {
            position: fixed;
            inset: 0;
            width: auto;
            height: auto;
            z-index: 10000;
        }
        .api-app-container.show .api-drawer.show,
        .voice-app-container.show .api-drawer.show,
        .imggen-app-container.show .api-drawer.show {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            width: auto;
            height: min(88dvh, 88%);
            max-height: calc(100dvh - env(safe-area-inset-top, 0px));
            z-index: 10001;
        }
        .api-drawer-header { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; position: relative; background: #f2f2f7; z-index: 10; }
        .api-drawer-handle { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 36px; height: 5px; background: #c7c7cc; border-radius: 3px; }
        .api-drawer-title { font-size: 17px; font-weight: 700; position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
        
        /* 新增：图1风格表单样式 (卡片包裹) */
        .api-form-card { min-width: 0; background-color: #fff; border-radius: 20px; padding: 20px 16px; margin: 0 16px 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
        .api-form-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding: 0 4px; }
        .api-form-title { font-size: 15px; font-weight: 700; color: #333; text-transform: uppercase; letter-spacing: 0.5px; }
        .api-form-fetch-btn { font-size: 13px; color: #007aff; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
        .api-form-fetch-btn:active { opacity: 0.5; }
        .api-form-group { margin-bottom: 16px; display: flex; flex-direction: column; }
        .api-form-label { font-size: 12px; color: #8e8e93; margin-bottom: 6px; margin-left: 4px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
        .api-form-input-wrapper { background-color: #f2f2f7; border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; }
        .api-form-input { flex: 1; width: 100%; border: none; outline: none; font-size: 16px; color: #000; background: transparent; font-weight: 600; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
        .api-form-input::placeholder { color: #c7c7cc; }
        .api-form-select { flex: 1; width: 100%; border: none; outline: none; font-size: 16px; color: #000; background: transparent; appearance: none; font-weight: 600; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
        .api-form-btn { background-color: #007aff; color: #fff; border-radius: 14px; padding: 14px; text-align: center; font-size: 16px; font-weight: 600; cursor: pointer; margin: 0 16px 24px; transition: opacity 0.2s; }
        .api-form-btn:active { opacity: 0.8; }
        .api-form-btn.api-test-btn { margin-top: -12px; background-color: #34c759; }
        .api-form-btn.api-test-btn.disabled { background-color: #c7c7cc; cursor: not-allowed; }
       .api-form-btn.danger { background-color: #ff3b30; }
        .voice-app-container, .imggen-app-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #f2f2f7; z-index: 160; display: none; flex-direction: column; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); overflow: hidden; }
        .voice-app-container.show, .imggen-app-container.show { transform: translateX(0); }
        .api-segment { display: flex; background-color: #f2f2f7; border-radius: 12px; padding: 4px; gap: 4px; margin: 0 0 4px; }
        .api-segment-item { flex: 1; text-align: center; padding: 10px 4px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #8e8e93; cursor: pointer; transition: all 0.2s; }
        .api-segment-item.active { background-color: #ffffff; color: #007aff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
        .api-segment-item:active { opacity: 0.7; }
        .api-textarea-wrapper { background-color: #f2f2f7; border-radius: 12px; padding: 12px 16px; }
        .api-textarea { width: 100%; min-height: 80px; border: none; outline: none; font-size: 16px; color: #000; background: transparent; font-family: inherit; resize: vertical; line-height: 1.5; }
        .api-textarea::placeholder { color: #c7c7cc; }
        .api-audio-preview { width: 100%; margin-top: 12px; }
        .api-preview-area { margin: 0 16px 24px; }
        .api-gen-result { min-height: 140px; border-radius: 16px; background-color: #fff; display: flex; align-items: center; justify-content: center; color: #8e8e93; font-size: 14px; margin-top: 16px; padding: 12px; box-sizing: border-box; text-align: center; word-break: break-word; }
        .api-image-preview { width: 100%; border-radius: 16px; display: block; }
        .api-image-preview.hidden { display: none; }
        .api-gen-loading { color: #007aff; font-weight: 600; }
        .api-gen-error { color: #ff3b30; }
        .api-settings-card { min-width: 0; background-color: #fff; border-radius: 20px; margin: 0 16px 16px; padding: 16px; }
        .api-settings-row { display: flex; flex-direction: column; margin-bottom: 14px; }
        .api-settings-row:last-child { margin-bottom: 0; }
        .api-settings-label { font-size: 12px; color: #8e8e93; margin-bottom: 6px; margin-left: 4px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
        .api-settings-input { background-color: #f2f2f7; border-radius: 10px; padding: 10px 14px; border: none; outline: none; font-size: 15px; color: #000; font-weight: 600; }
        .api-settings-select { background-color: #f2f2f7; border-radius: 10px; padding: 10px 14px; border: none; outline: none; font-family: inherit; font-size: 15px; color: #000; font-weight: 600; appearance: none; -webkit-appearance: none; }
        .api-universal-select-trigger { width: 100%; min-width: 0; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; }
        .api-universal-select-trigger:active { background-color: #e5e5ea; }
        .api-universal-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .api-universal-select-chevron { width: 7px; height: 7px; flex: none; margin-right: 2px; border-right: 2px solid #007aff; border-bottom: 2px solid #007aff; transform: translateY(-2px) rotate(45deg); }
        .api-settings-inline { display: flex; width: 100%; min-width: 0; gap: 10px; }
        .api-settings-inline .api-settings-row { flex: 1 1 0; min-width: 0; margin-bottom: 0; }
        .api-settings-inline > .api-settings-input,
        .api-settings-inline > .api-settings-select,
        .api-settings-inline > .api-universal-select-trigger { flex: 1 1 0; width: 0; min-width: 0; box-sizing: border-box; }
        .api-check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-bottom: 10px; cursor: pointer; }
        .api-check-row:last-child { margin-bottom: 0; }
        .api-check-row .api-settings-label { margin: 0; }
        .api-check-row > span:last-child { position: relative; display: flex; width: 42px; height: 26px; flex: none; }
        .api-check-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
        .api-check-control { width: 42px; height: 26px; border-radius: 13px; background: #e9e9eb; position: relative; flex: none; transition: background-color 0.2s; cursor: pointer; }
        .api-check-control::after { content: ''; position: absolute; width: 22px; height: 22px; top: 2px; left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.22); transition: transform 0.2s; }
        .api-check-input:checked + .api-check-control { background: #34c759; }
        .api-check-input:checked + .api-check-control::after { transform: translateX(16px); }
        .api-field-row { display: flex; gap: 8px; align-items: stretch; }
        .api-field-row .api-form-input-wrapper { flex: 1; }
        .api-mini-fetch { flex: none; min-width: 64px; padding: 0 14px; background-color: #007aff; color: #fff; border: none; outline: none; appearance: none; -webkit-appearance: none; border-radius: 12px; font-family: inherit; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; cursor: pointer; white-space: nowrap; margin-bottom: 0; }
        .api-mini-fetch:active { opacity: 0.8; }
        .api-prompt-preset-row { position: relative; display: flex; gap: 8px; align-items: stretch; }
        .api-prompt-preset-row .api-settings-select { min-width: 0; width: 100%; height: 44px; flex: 1; padding: 0 42px 0 14px; border: 0.5px solid rgba(60, 60, 67, 0.18); border-radius: 10px; background-color: rgba(255, 255, 255, 0.78); color: #000; font-family: inherit; font-size: 15px; font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); transition: background-color 0.15s ease, opacity 0.15s ease; }
        .api-prompt-preset-row .api-settings-select:active { background-color: rgba(242, 242, 247, 0.92); }
        .api-prompt-preset-row .api-settings-select:focus-visible { box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18); }
        .api-prompt-actions { display: flex; gap: 8px; margin-top: 10px; }
        .api-prompt-action { flex: 1; min-height: 38px; border: none; outline: none; appearance: none; -webkit-appearance: none; border-radius: 10px; background-color: #e9f2ff; color: #007aff; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
        .api-prompt-action.danger { background-color: #fff0ef; color: #ff3b30; }
        .api-prompt-action:active { opacity: 0.7; }
        .api-gen-fetched { margin: 0 16px 16px; border-radius: 14px; max-height: 180px; overflow: auto; -webkit-overflow-scrolling: touch; }
        .api-gen-fetched-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background-color: #fff; border-bottom: 0.5px solid #e5e5ea; font-size: 15px; color: #000; font-weight: 600; cursor: pointer; }
        .api-gen-fetched-item:active { background-color: #f2f2f7; }
        .api-gen-fetched-close { text-align: center; color: #007aff; font-weight: 600; padding: 14px; background-color: #fff; border-radius: 0 0 14px 14px; cursor: pointer; }
       .icloud-app-container.show { transform: translateX(0); }
        .ic-page { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #f2f2f7; display: block; transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
        .ic-page::-webkit-scrollbar { display: none; }
        .ic-page.slide-right { transform: translateX(100%); }
        .ic-page.slide-left { transform: translateX(-30%); opacity: 0.8; }
        .ic-page.active { transform: translateX(0); opacity: 1; z-index: 10; }
        
        .ic-header-area { padding: 45px 16px 20px; display: flex; flex-direction: column; gap: 16px; }
        .ic-back-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.06); cursor: pointer; }
        .ic-header-title-row { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
        .ic-header-title { font-size: 26px; font-weight: 700; color: #000; letter-spacing: 0.5px; }
        .ic-nav-bar-detail { display: flex; align-items: center; padding: 10px 16px 20px; position: relative; }
        .ic-nav-title-detail { flex: 1; text-align: center; font-size: 17px; font-weight: 600; color: #000; }
        .ic-card { background: #fff; border-radius: 16px; margin: 0 16px 16px; padding: 16px; }
        .ic-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
        .ic-card-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; color: #000; }
        .ic-dot { width: 8px; height: 8px; background-color: #34c759; border-radius: 50%; }
        .ic-dot.gray { background-color: #8e8e93; }
        .ic-dot.red { background-color: #ff3b30; }
        .ic-dot.orange { background-color: #ff9500; }
        .ic-dot.light-gray { background-color: #d1d1d6; }
        .ic-card-action { font-size: 15px; color: #8e8e93; display: flex; align-items: center; gap: 4px; }
        .ic-storage-row { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
        .ic-storage-left { display: flex; align-items: center; gap: 12px; }
        .ic-storage-label { font-size: 16px; font-weight: 500; color: #000; }
        .ic-progress-bar-bg { width: 80px; height: 8px; background-color: #e5e5ea; border-radius: 4px; overflow: hidden; }
        .ic-progress-bar-fill { width: 90%; height: 100%; background-color: #34c759; border-radius: 4px; }
        .ic-storage-detail-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
        .ic-storage-detail-title { font-size: 17px; font-weight: 500; }
        .ic-storage-detail-size { font-size: 15px; color: #8e8e93; }
        .ic-multi-progress-bar { display: flex; height: 22px; border-radius: 4px; overflow: hidden; gap: 2px; margin-bottom: 12px; }
        .ic-segment { height: 100%; }
        .ic-segment.red { background-color: #ff3b30; width: 45%; }
        .ic-segment.orange { background-color: #ff9500; width: 30%; }
        .ic-segment.gray { background-color: #8e8e93; width: 10%; }
        .ic-segment.light-gray { background-color: #d1d1d6; width: 15%; }
        .ic-legend-container { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
        .ic-legend-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #333; }
        .ic-sort-row { display: flex; justify-content: flex-end; padding: 0 24px 8px; color: #007aff; font-size: 14px; align-items: center; gap: 4px; }
        .ic-grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .ic-grid-item { display: flex; align-items: center; gap: 8px; background: #f2f2f7; border: 0.5px solid #e5e5ea; border-radius: 12px; padding: 10px 8px; min-width: 0; box-sizing: border-box; }
        .ic-app-icon-wrapper { width: 36px; height: 36px; background: #ffffff; border-radius: 10px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.06), inset 0px 1px 1px rgba(255, 255, 255, 0.9), inset 0px -1px 2px rgba(0, 0, 0, 0.03); border: 0.5px solid rgba(0, 0, 0, 0.04); overflow: hidden; }
        .ic-app-icon-wrapper svg { width: 24px; height: 24px; }
        .ic-item-info { display: flex; flex-direction: column; overflow: hidden; min-width: 0; flex: 1; }
        .ic-item-name { font-size: 14px; font-weight: 600; color: #000; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
        .ic-item-desc { font-size: 12px; color: #8e8e93; margin-top: 2px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
        .ic-list-card { background: #fff; border-radius: 16px; margin: 0 16px 16px; overflow: hidden; }
        .ic-list-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #f2f2f7; min-height: 52px; }
        .ic-list-item:last-child { border-bottom: none; }
        .ic-list-item-left { display: flex; align-items: center; gap: 14px; }
        .ic-list-item-title { font-size: 16px; font-weight: 500; color: #000; }
        .ic-list-item-right { display: flex; align-items: center; gap: 8px; color: #8e8e93; font-size: 16px; }
        .ic-app-list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f2f2f7; }
        .ic-app-list-item:last-child { border-bottom: none; }
        .ic-app-list-left { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
        .ic-app-list-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
        .ic-app-list-name { font-size: 16px; color: #000; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
        .ic-app-list-date { font-size: 12px; color: #8e8e93; margin-top: 2px; }
        .ic-app-list-right { display: flex; align-items: center; gap: 8px; color: #8e8e93; font-size: 15px; flex-shrink: 0; }
        .ic-chevron { width: 8px; height: 13px; stroke: #c5c5c7; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
        .ic-custom-icon { width: 100%; height: 100%; background-size: cover; background-position: center; border-radius: 10px; }
        .ic-card-btn:active, .ic-list-item:active { background-color: #e5e5ea; }

        /* --- 显示与亮度 页面 UI 样式 --- */
        .display-settings-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #f2f2f7; z-index: 160; display: none; flex-direction: column; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); overflow: hidden; }
        .display-settings-container.show { transform: translateX(0); }
        .ds-nav-bar { height: 90px; padding: 45px 20px 10px 20px; display: flex; align-items: center; justify-content: center; position: relative; background-color: #f2f2f7; z-index: 10; }
        .ds-back-btn { position: absolute; left: 16px; bottom: 10px; width: 30px; height: 30px; background-color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
        .ds-nav-title { font-size: 17px; font-weight: 600; position: absolute; bottom: 14px; }
        .ds-content { flex: 1; overflow-y: auto; padding-bottom: 40px; }
        .ds-content::-webkit-scrollbar { display: none; }
        .ds-section-title { font-size: 13px; color: #8e8e93; margin: 24px 32px 8px; text-transform: uppercase; }
        .ds-section-footer { font-size: 13px; color: #8e8e93; margin: 8px 32px 0; line-height: 1.4; }
        .ds-card-group { background-color: #ffffff; border-radius: 14px; margin: 0 16px; overflow: hidden; }
        .ds-list-item { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 16px; position: relative; }
        .ds-appearance-selector { display: flex; justify-content: space-around; padding: 20px 0; position: relative; }
        .ds-appearance-option { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
        .ds-phone-mockup { width: 70px; height: 140px; border-radius: 12px; padding: 4px; margin-bottom: 12px; position: relative; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .ds-phone-mockup.light { background-color: #fff; border: 1px solid #e5e5ea; }
        .ds-phone-mockup.dark { background-color: #1c1c1e; border: 1px solid #38383a; }
        .ds-mockup-screen { width: 100%; height: 100%; border-radius: 8px; background: linear-gradient(to bottom, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); position: relative; overflow: hidden; }
        .ds-phone-mockup.dark .ds-mockup-screen { background: linear-gradient(to bottom, #4facfe 0%, #00f2fe 100%); }
        .ds-mockup-time { font-size: 8px; text-align: center; margin-top: 6px; color: #fff; font-weight: bold; }
        .ds-mockup-widget { width: 80%; height: 20px; background: rgba(255,255,255,0.5); border-radius: 4px; margin: 10px auto 0; }
        .ds-phone-mockup.dark .ds-mockup-widget { background: rgba(0,0,0,0.5); }
        .ds-radio-circle { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #c7c7cc; display: flex; justify-content: center; align-items: center; margin-top: 8px; }
        .ds-appearance-option.active .ds-radio-circle { background-color: #007aff; border-color: #007aff; }
        .ds-appearance-option.active .ds-radio-circle::after { content: ''; width: 10px; height: 10px; background-color: #fff; border-radius: 50%; }
        .ds-toggle { width: 51px; height: 31px; background-color: #e9e9eb; border-radius: 15.5px; position: relative; cursor: pointer; transition: background-color 0.3s; }
        .ds-toggle::after { content: ''; position: absolute; width: 27px; height: 27px; background-color: white; border-radius: 50%; top: 2px; left: 2px; box-shadow: 0 3px 8px rgba(0,0,0,0.15), 0 1px 1px rgba(0,0,0,0.16), 0 3px 1px rgba(0,0,0,0.1); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
        .ds-toggle.on { background-color: #34c759; }
        .ds-toggle.on::after { transform: translateX(20px); }
        .ds-brightness-container { display: flex; align-items: center; padding: 12px 16px; min-height: 44px; position: relative; }
        .ds-sun-icon { width: 22px; height: 22px; color: #8e8e93; flex-shrink: 0; }
        .ds-sun-icon.small { width: 16px; height: 16px; }
        .ds-slider { flex: 1; margin: 0 15px; -webkit-appearance: none; height: 4px; border-radius: 2px; outline: none; background: linear-gradient(to right, #007aff 30%, #e5e5ea 30%); }
        .ds-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 3px 8px rgba(0,0,0,0.15); cursor: pointer; }
        .standby-diagnostics-container .ds-diagnostic-card { padding: 16px; box-sizing: border-box; }
        .ds-diagnostic-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
        .ds-diagnostic-title { font-size: 17px; font-weight: 600; color: #111; margin-bottom: 4px; }
        .ds-diagnostic-desc { font-size: 13px; color: #8e8e93; line-height: 1.35; }
        .ds-diagnostic-count { flex-shrink: 0; font-size: 12px; color: #007aff; background: rgba(0, 122, 255, 0.1); border-radius: 999px; padding: 5px 9px; font-weight: 600; }
        .ds-diagnostic-output { width: 100%; min-height: 220px; resize: vertical; border: 0; outline: none; border-radius: 12px; background: #f2f2f7; color: #1c1c1e; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.45; padding: 12px; box-sizing: border-box; }
        .ds-diagnostic-output::placeholder { color: #8e8e93; }
        .ds-diagnostic-actions { display: flex; gap: 8px; margin-top: 12px; }
        .ds-diagnostic-btn { flex: 1; border: 0; border-radius: 12px; padding: 10px 8px; background: #007aff; color: #fff; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; }
        .ds-diagnostic-btn.secondary { background: #e5e5ea; color: #1c1c1e; }
        .ds-diagnostic-btn.danger { background: rgba(255, 59, 48, 0.12); color: #ff3b30; }
        .ds-diagnostic-btn:active { transform: scale(0.98); opacity: 0.86; }

        /* ===== Widget 小组件库 (作用域: #themeAppUI 内, 前缀隔离) ===== */
        #themeAppUI .widget-app-container { flex: 1; display: flex; flex-direction: column; position: relative; width: 100%; height: 100%; min-height: 0; padding-bottom: 0; box-sizing: border-box; }
        .ds-card-group .ds-diagnostic-btn:active { opacity: 0.85; transform: scale(0.99); }

        /* ================= 通用 (General) 容器与页面样式 ================= */
        .general-settings-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #f2f2f7;
            z-index: 160;
            display: none;
            flex-direction: column;
            transform: translateX(100%);
            transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            overflow: hidden;
        }
        .general-settings-container.show {
            transform: translateX(0);
        }

        .gen-sub-page {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #f2f2f7;
            display: flex;
            flex-direction: column;
            transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
        .gen-sub-page.slide-right { transform: translateX(100%); }
        .gen-sub-page.slide-left { transform: translateX(-30%); opacity: 0.8; }
        .gen-sub-page.active { transform: translateX(0); opacity: 1; z-index: 10; }

        /* 顶部 Hero 介绍大卡片 */
        .gen-hero-card {
            background-color: #ffffff;
            border-radius: 20px;
            margin: 10px 16px 16px;
            padding: 22px 20px 20px 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .gen-hero-icon-bg {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            background: linear-gradient(135deg, #9c9ca1 0%, #808085 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
            margin-bottom: 12px;
        }
        .gen-hero-title {
            font-size: 24px;
            font-weight: 700;
            color: #000;
            margin-bottom: 6px;
        }
        .gen-hero-desc {
            font-size: 14px;
            color: #6e6e73;
            line-height: 1.45;
        }

        /* ================= 自定义桌面图标：超大预览、无边框灰箭头、走马灯隐现、2x2预设 ================= */
        .gen-pwa-preview-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 16px 16px 14px;
            background: transparent;
            user-select: none;
            overflow: hidden;
        }
        .gen-pwa-carousel-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            position: relative;
        }
        .gen-pwa-nav-btn {
            background: transparent;
            border: none;
            outline: none;
            box-shadow: none;
            padding: 0;
            width: 32px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #8e8e93;
            transition: opacity 0.15s ease, transform 0.15s ease;
            flex-shrink: 0;
        }
        .gen-pwa-nav-btn:active {
            opacity: 0.35;
            transform: scale(0.85);
        }
        .gen-pwa-nav-btn svg {
            width: 24px;
            height: 24px;
            stroke: #8e8e93;
            stroke-width: 2.6;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
        }
        .gen-pwa-carousel-stage {
            position: relative;
            width: 270px;
            height: 165px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .gen-pwa-side-preview {
            position: absolute;
            width: 106px;
            height: 106px;
            border-radius: 24px;
            overflow: hidden;
            opacity: 0.32;
            filter: blur(0.8px);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            z-index: 1;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            background-color: #ffffff;
        }
        .gen-pwa-side-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            pointer-events: none;
        }
        .gen-pwa-side-preview.left {
            left: 0;
            transform: translateX(-18px) scale(0.82);
        }
        .gen-pwa-side-preview.right {
            right: 0;
            transform: translateX(18px) scale(0.82);
        }
        .gen-pwa-side-preview:active {
            opacity: 0.6;
        }
        .gen-pwa-preview-box {
            width: 154px;
            height: 154px;
            border-radius: 34px;
            background-color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18), 0 3px 10px rgba(0, 0, 0, 0.06);
            overflow: hidden;
            flex-shrink: 0;
            position: relative;
            z-index: 2;
            cursor: pointer;
            transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .gen-pwa-preview-box:active {
            transform: scale(0.97);
        }
        .gen-pwa-preview-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            pointer-events: none;
        }
        .gen-pwa-preview-name {
            font-size: 16px;
            font-weight: 600;
            color: #000000;
            margin-top: 14px;
            text-align: center;
            letter-spacing: -0.2px;
        }
        .gen-pwa-preview-sub {
            font-size: 12px;
            color: #8e8e93;
            margin-top: 3px;
            text-align: center;
        }
        .gen-pwa-name-input-wrapper {
            display: flex;
            align-items: center;
            flex: 1;
            min-width: 0;
            margin-left: 8px;
            box-sizing: border-box;
        }
        .gen-pwa-name-input {
            flex: 1 1 0%;
            min-width: 0;
            width: 100%;
            border: none;
            outline: none;
            background: transparent;
            text-align: left;
            font-size: 16px;
            color: #007aff;
            font-weight: 500;
            box-sizing: border-box;
            padding: 0;
            margin: 0;
        }
        .gen-pwa-name-input::placeholder {
            color: #c7c7cc;
        }
        .gen-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 22px 20px 8px 32px;
        }
        .gen-icon-menu-trigger {
            background: transparent;
            border: none;
            outline: none;
            box-shadow: none;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: opacity 0.15s ease, transform 0.15s ease;
        }
        .gen-icon-menu-trigger:active {
            opacity: 0.45;
            transform: scale(0.9);
        }
        .gen-icon-menu-trigger svg {
            width: 18px;
            height: 18px;
            display: block;
        }
        .gen-preset-grid-2x2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            width: 100%;
            box-sizing: border-box;
        }
        .gen-preset-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 12px 14px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            border: 2px solid transparent;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            transition: all 0.2s ease;
            box-sizing: border-box;
        }
        .gen-preset-card:active {
            transform: scale(0.97);
            background-color: #f8f8fa;
        }
        .gen-preset-card.active {
            border-color: #007aff;
            background: #fbfdff;
            box-shadow: 0 4px 14px rgba(0, 122, 255, 0.15);
        }
        .gen-preset-thumb {
            width: 44px;
            height: 44px;
            border-radius: 11px;
            overflow: hidden;
            flex-shrink: 0;
            background: #f2f2f7;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        }
        .gen-preset-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .gen-preset-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .gen-preset-title {
            font-size: 14px;
            font-weight: 600;
            color: #1c1c1e;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .gen-preset-check {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 1.5px solid #d1d1d6;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }
        .gen-preset-card.active .gen-preset-check {
            border-color: #007aff;
            background-color: #007aff;
        }
        .gen-preset-check svg {
            width: 11px;
            height: 11px;
            stroke: #ffffff;
            stroke-width: 3;
            fill: none;
            display: none;
        }
        .gen-preset-card.active .gen-preset-check svg {
            display: block;
        }

        /* 半屏 Sheet 弹窗组件 */
        .gen-sheet-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            z-index: 10000;
        }
        .gen-sheet-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }
        .gen-sheet-container {
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            background: #f2f2f7;
            border-radius: 24px 24px 0 0;
            padding: 16px 16px calc(30px + env(safe-area-inset-bottom));
            transform: translateY(100%);
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
            z-index: 10001;
            box-sizing: border-box;
        }
        .gen-sheet-container.show {
            transform: translateY(0);
        }
        .gen-sheet-handle {
            width: 36px;
            height: 5px;
            background: #c7c7cc;
            border-radius: 3px;
            margin: 0 auto 16px;
        }
        .gen-safari-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            background: #e5e5ea;
            border-radius: 6px;
            vertical-align: middle;
            margin: 0 4px;
        }

        /* ================= 个人热点 (全屏页面) 样式 ================= */
        .hotspot-settings-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #f2f2f7;
            z-index: 160;
            display: none;
            flex-direction: column;
            transform: translateX(100%);
            transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            overflow: hidden;
            box-sizing: border-box;
        }
        .hotspot-settings-container.show {
            transform: translateX(0);
        }
        .hotspot-nav-bar {
            height: 90px;
            padding: 45px 20px 10px 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            background-color: #f2f2f7;
            z-index: 10;
            flex-shrink: 0;
            box-sizing: border-box;
        }
        .hotspot-back-btn {
            position: absolute;
            left: 16px;
            bottom: 10px;
            width: 30px;
            height: 30px;
            background-color: #fff;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        .hotspot-nav-title {
            font-size: 17px;
            font-weight: 600;
            position: absolute;
            bottom: 14px;
            color: #000;
        }
        .hotspot-content {
            flex: 1;
            overflow-y: auto;
            padding-bottom: 40px;
            box-sizing: border-box;
        }
        .hotspot-content::-webkit-scrollbar {
            display: none;
        }
        .hotspot-hero-card {
            background-color: #ffffff;
            border-radius: 20px;
            margin: 10px 16px 16px;
            padding: 22px 20px 20px 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .hotspot-hero-icon-bg {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            background: linear-gradient(135deg, #34c759 0%, #28a745 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 3px 10px rgba(52, 199, 89, 0.3);
            margin-bottom: 12px;
        }
        .hotspot-hero-title {
            font-size: 22px;
            font-weight: 700;
            color: #000;
            margin-bottom: 6px;
        }
        .hotspot-hero-desc {
            font-size: 13px;
            color: #6e6e73;
            line-height: 1.45;
        }
        .hotspot-hero-desc span {
            color: #007aff;
            cursor: pointer;
        }
        .hotspot-section-title {
            font-size: 13px;
            color: #8e8e93;
            margin: 20px 24px 8px;
            text-transform: uppercase;
            font-weight: 500;
        }
        .hotspot-card-group {
            background-color: #ffffff;
            border-radius: 16px;
            margin: 0 16px;
            overflow: hidden;
        }
        .hotspot-input-row {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            min-height: 48px;
            border-bottom: 0.5px solid #e5e5ea;
            box-sizing: border-box;
        }
        .hotspot-input-row:last-child {
            border-bottom: none;
        }
        .hotspot-input-label {
            font-size: 15px;
            color: #000;
            width: 105px;
            flex-shrink: 0;
        }
        .hotspot-input {
            flex: 1;
            min-width: 0;
            border: none;
            background: transparent;
            text-align: right;
            font-size: 15px;
            color: #007aff;
            outline: none;
            box-shadow: none;
            -webkit-appearance: none;
            appearance: none;
            font-family: inherit;
        }
        .hotspot-input::placeholder {
            color: #c7c7cc;
            font-size: 14px;
        }
        .hotspot-select {
            flex: 1;
            min-width: 0;
            border: none;
            background: transparent;
            text-align: right;
            font-size: 15px;
            color: #007aff;
            outline: none;
            box-shadow: none;
            -webkit-appearance: none;
            appearance: none;
            font-family: inherit;
            direction: rtl;
            cursor: pointer;
        }
        .hotspot-select option {
            direction: ltr;
            color: #000;
        }
        .hotspot-btn-row {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 14px 16px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            border-bottom: 0.5px solid #e5e5ea;
            background-color: #fff;
            transition: background-color 0.15s ease;
        }
        .hotspot-btn-row:last-child {
            border-bottom: none;
        }
        .hotspot-btn-row:active {
            background-color: #e5e5ea;
        }
        .hotspot-btn-blue { color: #007aff; }
        .hotspot-btn-green { color: #34c759; }
        .hotspot-status-card {
            margin: 16px;
            padding: 16px;
            background: #fff;
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 50px;
        }
        .hotspot-status-text {
            color: #8e8e93;
            font-size: 13px;
            line-height: 1.45;
            text-align: center;
        }

        /* --- API 教程 iOS 弹窗样式 --- */
        .api-help-modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 100000;
            display: flex;
            justify-content: center;
            align-items: flex-end;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .api-help-modal-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }
        .api-help-modal {
            width: 100%;
            max-width: 430px;
            height: 85vh;
            background: rgba(248, 248, 250, 0.96);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-radius: 28px 28px 0 0;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transform: translateY(100%);
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        }
        .api-help-modal-overlay.show .api-help-modal {
            transform: translateY(0);
        }
        .api-help-header {
            padding: 12px 20px 14px;
            background: rgba(255, 255, 255, 0.85);
            border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            flex-shrink: 0;
        }
        .api-help-handle {
            width: 36px;
            height: 5px;
            background: #d1d1d6;
            border-radius: 3px;
            margin-bottom: 12px;
        }
        .api-help-nav {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .api-help-title {
            font-size: 17px;
            font-weight: 700;
            color: #000;
        }
        .api-help-done-btn {
            font-size: 16px;
            font-weight: 600;
            color: #007aff;
            cursor: pointer;
        }
        .api-help-content {
            flex: 1;
            overflow-y: auto;
            padding: 16px 20px 40px;
            -webkit-overflow-scrolling: touch;
        }
        .api-help-section {
            background: #ffffff;
            border-radius: 18px;
            padding: 18px 16px;
            margin-bottom: 16px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
        }
        .api-help-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 8px;
            background: rgba(0, 122, 255, 0.1);
            color: #007aff;
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 10px;
        }
        .api-help-p {
            font-size: 14px;
            line-height: 1.6;
            color: #333333;
            margin-bottom: 12px;
        }
        .api-help-diagram {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #f2f2f7;
            border-radius: 14px;
            padding: 12px 14px;
            margin: 12px 0;
        }
        .api-diagram-node {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 600;
            color: #555;
        }
        .api-diagram-icon {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #fff;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
        }
        .api-diagram-arrow {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            font-size: 11px;
            font-weight: 600;
            color: #8e8e93;
        }
        .api-help-tip {
            font-size: 13px;
            color: #666;
            background: rgba(0, 122, 255, 0.05);
            border-left: 3px solid #007aff;
            padding: 8px 12px;
            border-radius: 0 8px 8px 0;
            line-height: 1.5;
        }
        .api-help-step {
            display: flex;
            gap: 12px;
            margin-bottom: 16px;
        }
        .api-help-step:last-child {
            margin-bottom: 0;
        }
        .api-step-num {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #007aff;
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: 2px;
        }
        .api-step-body {
            flex: 1;
        }
        .api-step-title {
            font-size: 15px;
            font-weight: 700;
            color: #000;
            margin-bottom: 4px;
        }
        .api-step-desc {
            font-size: 13px;
            line-height: 1.5;
            color: #666;
        }
        .api-code-block {
            background: #f2f2f7;
            border-radius: 8px;
            padding: 8px 10px;
            font-family: ui-monospace, Menlo, Consolas, monospace;
            font-size: 12px;
            color: #1c1c1e;
            margin-top: 6px;
            line-height: 1.5;
            word-break: break-all;
        }
        .api-faq-item {
            margin-bottom: 12px;
        }
        .api-faq-item:last-child {
            margin-bottom: 0;
        }
        .api-faq-q {
            font-size: 14px;
            font-weight: 700;
            color: #000;
            margin-bottom: 4px;
        }
        .api-faq-a {
            font-size: 13px;
            color: #666;
            line-height: 1.5;
        }

        /* ================= 辅助功能 (Accessibility) 顶部 Hero 卡片样式 ================= */
        .access-hero-card {
            background-color: #ffffff;
            border-radius: 20px;
            margin: 10px 16px 16px;
            padding: 24px 20px 22px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .access-hero-icon-bg {
            width: 64px;
            height: 64px;
            border-radius: 18px;
            background: linear-gradient(135deg, #4eb3ff 0%, #007aff 100%);
            box-shadow: inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.5), inset -1.5px -1.5px 3px rgba(0, 0, 0, 0.15);
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 14px;
        }
        .access-hero-title {
            font-size: 24px;
            font-weight: 700;
            color: #000;
            margin-bottom: 8px;
            letter-spacing: -0.2px;
        }
        .access-hero-desc {
            font-size: 14px;
            color: #6e6e73;
            line-height: 1.48;
            max-width: 320px;
        }

        /* ================= iOS 悬浮球 (AssistiveTouch) 样式 ================= */
        .ios-assistive-ball {
            position: fixed !important;
            right: 14px;
            top: 50%;
            width: 58px;
            height: 58px;
            border-radius: 50%;
            background: rgba(28, 28, 30, 0.72);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 0.5px solid rgba(255, 255, 255, 0.22);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 2147483647 !important;
            touch-action: none;
            user-select: none;
            transition: opacity 0.3s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        /* 自定义悬浮球图标模式 (透明底图、无边框、无背景) */
        .ios-assistive-ball.custom-mode {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }
        .ios-assistive-custom-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            pointer-events: none;
            filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
        }
        .ios-assistive-ball.idle {
            opacity: 0.42;
        }
        .ios-assistive-ball.active {
            opacity: 1;
            transform: scale(1.08);
        }
        .ios-assistive-ball-inner {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.22);
            border: 2.5px solid rgba(255, 255, 255, 0.88);
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
            pointer-events: none;
        }

        /* ================= 自定顶层菜单卡片与 3x3 虚线框 (图2) ================= */
        .access-custom-grid-card {
            background-color: #ffffff;
            border-radius: 20px;
            margin: 0 16px 14px;
            padding: 24px 16px 18px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .access-custom-grid-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px 12px;
            width: 100%;
            max-width: 320px;
            margin-bottom: 24px;
        }
        .access-grid-slot {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            user-select: none;
        }
        .access-grid-slot.center-empty {
            pointer-events: none;
            visibility: hidden;
        }
        .access-slot-box {
            width: 68px;
            height: 68px;
            border: 1.5px dashed #8e8e93;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            box-sizing: border-box;
            background-color: #fafafa;
        }
        .access-grid-slot.active .access-slot-box {
            border-color: #555558;
            background-color: #ffffff;
        }
        .access-grid-slot.inactive .access-slot-box {
            opacity: 0.4;
        }
        .access-slot-box:active {
            transform: scale(0.92);
            background-color: #f2f2f7;
        }
        .access-slot-icon-circle {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #1c1c1e;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .access-slot-icon-circle svg {
            width: 22px;
            height: 22px;
        }
        .access-slot-label {
            font-size: 13px;
            font-weight: 500;
            color: #000;
            margin-top: 8px;
            text-align: center;
            white-space: nowrap;
        }

        /* 底部 Stepper 控制行 (图2红圈) */
        .access-custom-stepper-row {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding-top: 14px;
            border-top: 0.5px solid #e5e5ea;
            box-sizing: border-box;
        }
        .access-custom-reset-btn {
            font-size: 15px;
            color: #007aff;
            font-weight: 500;
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 8px;
            transition: background-color 0.15s ease, opacity 0.15s ease;
            user-select: none;
        }
        .access-custom-reset-btn:active {
            background-color: rgba(0, 122, 255, 0.12);
            opacity: 0.7;
        }
        .access-custom-stepper-text {
            font-size: 16px;
            font-weight: 600;
            color: #000;
        }
        .access-custom-stepper {
            display: flex;
            align-items: center;
            background-color: #e5e5ea;
            border-radius: 10px;
            padding: 3px 6px;
            gap: 6px;
        }
        .access-stepper-btn {
            background: transparent;
            border: none;
            outline: none;
            width: 32px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #000;
        }
        .access-stepper-btn:active {
            opacity: 0.4;
        }
        .access-stepper-btn svg {
            width: 16px;
            height: 16px;
        }
        .access-stepper-divider {
            width: 1px;
            height: 16px;
            background-color: #c7c7cc;
        }

        /* 全局置顶搜索抽屉与遮罩样式 (支持任意页面置顶唤起) */
        .search-drawer-overlay {
            position: fixed !important;
            inset: 0 !important;
            width: 100% !important;
            height: 100% !important;
            background: rgba(0, 0, 0, 0.4) !important;
            backdrop-filter: blur(8px) !important;
            -webkit-backdrop-filter: blur(8px) !important;
            z-index: 2147483645 !important;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .search-drawer-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }
        .search-drawer {
            position: fixed !important;
            left: 0 !important;
            bottom: 0 !important;
            width: 100% !important;
            height: 75% !important;
            background: #f2f2f7 !important;
            border-radius: 24px 24px 0 0 !important;
            z-index: 2147483646 !important;
            transform: translateY(100%);
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1) !important;
            display: flex;
            flex-direction: column;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25) !important;
            overflow: hidden;
        }
        .search-drawer.show {
            transform: translateY(0);
        }

        /* 动作选择器抽屉列表样式 (确保内部可流畅纵向滚动) */
        #accessSlotPickerSheet .ls-sheet-main {
            height: 100%;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        #accessSlotPickerSheet .ls-sheet-content {
            flex: 1 1 auto;
            min-height: 0;
            display: block !important;
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y !important;
            overscroll-behavior-y: contain;
            padding: 0 16px calc(80px + env(safe-area-inset-bottom, 20px)) !important;
            width: 100%;
            box-sizing: border-box;
        }
        #accessSlotPickerSheet .ls-sheet-content::-webkit-scrollbar {
            display: none;
        }
        .access-picker-list-card {
            background-color: #ffffff;
            border-radius: 18px;
            overflow: hidden;
            width: 100%;
            margin-bottom: 30px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }
        .access-picker-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            border-bottom: 0.5px solid #e5e5ea;
            cursor: pointer;
            background-color: #ffffff;
        }
        .access-picker-row:last-child {
            border-bottom: none;
        }
        .access-picker-row:active {
            background-color: #f2f2f7;
        }
        .access-picker-icon-box {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            background: #1c1c1e;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .access-picker-icon-box svg {
            width: 18px;
            height: 18px;
        }

        /* ================= iOS 悬浮球展开菜单 (严格还原图1) ================= */
        .ios-assistive-menu-overlay {
            position: fixed !important;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 2147483647 !important;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease;
        }
        .ios-assistive-menu-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }
        .ios-assistive-menu {
            width: 280px;
            min-height: 280px;
            background: rgba(30, 30, 32, 0.88);
            backdrop-filter: blur(35px) saturate(190%);
            -webkit-backdrop-filter: blur(35px) saturate(190%);
            border: 0.5px solid rgba(255, 255, 255, 0.18);
            border-radius: 36px;
            padding: 24px 16px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
            transform: scale(0.75);
            opacity: 0;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
            box-sizing: border-box;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px 8px;
            align-content: center;
        }
        .ios-assistive-menu.show {
            transform: scale(1);
            opacity: 1;
        }
        .ios-assistive-menu-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            user-select: none;
            transition: transform 0.15s ease, opacity 0.15s ease;
        }
        .ios-assistive-menu-item:active {
            transform: scale(0.86);
            opacity: 0.65;
        }
        .ios-assistive-menu-icon {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .ios-assistive-menu-icon svg {
            width: 32px;
            height: 32px;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
        }
        .ios-assistive-menu-item span {
            font-size: 12px;
            color: #ffffff;
            font-weight: 500;
            letter-spacing: -0.1px;
            text-align: center;
        }
