
        .wb-app-container.show { transform: translateX(0); }
        .wb-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); }
        .wb-page.slide-right { transform: translateX(100%); }
        .wb-page.slide-left { transform: translateX(-30%); opacity: 0.8; }
        .wb-page.active { transform: translateX(0); opacity: 1; z-index: 10; }
        .wb-scroll-area { flex: 1; overflow-y: auto; padding-bottom: 100px; scrollbar-width: none; }
        .wb-scroll-area::-webkit-scrollbar { display: none; }
        .wb-main-header { padding: 54px 20px 16px; }
        .wb-header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
        .wb-header-bottom { display: flex; flex-direction: column; gap: 6px; padding-left: 4px; }
        .wb-nav-btn-circle { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
        .wb-nav-btn-circle svg { width: 20px; height: 20px; stroke: #000; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
        .wb-header-right { display: flex; gap: 10px; align-items: center; }
        .wb-float-btn { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; height: 36px; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.2s; }
        .wb-float-btn:active { transform: scale(0.95); }
        .wb-float-btn.icon-only { width: 46px; }
        .wb-float-btn.text-only { padding: 0 16px; font-size: 16px; font-weight: 600; color: #000; }
        .wb-float-btn svg { width: 22px; height: 22px; stroke: #000; stroke-width: 1.5; fill: none; }
        .wb-header-title { font-size: 34px; font-weight: 800; letter-spacing: 0.5px; color: #000; }
        .wb-header-subtitle { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: #e4af0a; font-weight: 600; cursor: pointer; align-self: flex-start; padding: 4px 8px 4px 0; border-radius: 8px; transition: opacity 0.2s; }
        .wb-header-subtitle:active { opacity: 0.6; }
        .wb-header-subtitle svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
        .wb-list-card { background-color: #ffffff; border-radius: 16px; margin: 0 16px 20px; padding: 8px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
        .wb-list-item { display: flex; align-items: center; padding: 10px 16px; cursor: pointer; transition: background-color 0.2s, transform 0.2s; }
        .wb-list-item:active { background-color: rgba(0,0,0,0.04); }
        .wb-list-item.pressing { transform: scale(0.98); background-color: rgba(0,0,0,0.06); }
        .wb-delete-btn { width: 0; overflow: hidden; display: flex; justify-content: flex-start; align-items: center; transition: width 0.3s ease; opacity: 0; }
        .wb-edit-mode .wb-delete-btn { width: 36px; opacity: 1; }
        .wb-delete-btn svg { width: 22px; height: 22px; fill: #ff3b30; }
        .wb-item-icon { width: 32px; height: 32px; display: flex; justify-content: center; align-items: center; margin-right: 14px; flex-shrink: 0; }
        .wb-item-icon svg { width: 28px; height: 28px; fill: none; stroke: #e5b53c; stroke-width: 1.2; stroke-linejoin: round; }
        .wb-item-content { flex: 1; display: flex; justify-content: space-between; align-items: center; }
        .wb-item-title { font-size: 17px; font-weight: 500; color: #000; }
        .wb-item-right { display: flex; align-items: center; gap: 8px; color: #c5c5c7; transition: opacity 0.2s; }
        .wb-edit-mode .wb-item-right { opacity: 0; pointer-events: none; }
        .wb-item-count { font-size: 16px; color: #8e8e93; }
        .wb-chevron { width: 8px; height: 13px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
        .wb-nav-bar { height: 44px; margin-top: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; position: relative; z-index: 50; }
        .wb-nav-back { display: flex; align-items: center; color: #e4af0a; font-size: 17px; cursor: pointer; z-index: 2; }
        .wb-nav-back svg { width: 20px; height: 20px; stroke: currentColor; margin-right: 4px; }
        .wb-nav-title { position: absolute; left: 0; width: 100%; text-align: center; font-size: 17px; font-weight: 600; z-index: 1; pointer-events: none; color: #000; }
        .wb-nav-right { display: flex; gap: 16px; align-items: center; color: #e4af0a; cursor: pointer; z-index: 2; }
        .wb-nav-right svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
        .wb-notes-container { padding: 20px 16px 100px; }
        .wb-view-list { display: block; }
        .wb-doc-list-card { background-color: #ffffff; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); overflow: hidden; }
        .wb-doc-list-item { display: flex; align-items: center; padding: 14px 16px; border-bottom: 0.5px solid #c6c6c8; cursor: pointer; transition: background-color 0.2s, transform 0.2s; }
        .wb-doc-list-item:last-child { border-bottom: none; }
        .wb-doc-list-item:active { background-color: rgba(0,0,0,0.04); }
        .wb-doc-list-item.pressing { transform: scale(0.98); background-color: rgba(0,0,0,0.06); }
        .wb-doc-thumbnail { width: 38px; height: 52px; border: 1px solid #e5e5ea; border-radius: 4px; margin-right: 14px; padding: 5px; display: flex; flex-direction: column; gap: 3px; background: #fff; flex-shrink: 0; }
        .wb-doc-line { height: 2px; background: #d1d1d6; border-radius: 1px; width: 100%; }
        .wb-doc-line.short { width: 60%; }
        .wb-doc-line.medium { width: 80%; }
        .wb-doc-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
        .wb-doc-title { font-size: 17px; font-weight: 600; color: #000; margin-bottom: 4px; }
        .wb-doc-sub { font-size: 14px; color: #8e8e93; }
        .wb-doc-action-text { color: #e4af0a; font-size: 15px; font-weight: 600; cursor: pointer; padding: 4px 8px; }
        .wb-view-grid { display: none; grid-template-columns: repeat(3, 1fr); gap: 20px 12px; }
        .wb-grid-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: transform 0.2s; }
        .wb-grid-item:active .wb-grid-preview-box { transform: scale(0.95); }
        .wb-grid-item.pressing { transform: scale(0.95); }
        .wb-grid-preview-box { width: 100%; aspect-ratio: 1; background-color: #ffffff; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); padding: 8px; overflow: hidden; display: flex; flex-direction: column; }
        .wb-mock-text-line { height: 4px; background: #e5e5ea; border-radius: 2px; margin-bottom: 6px; width: 100%; filter: blur(0.5px); }
        .wb-mock-text-line.short { width: 60%; }
        .wb-mock-text-line.medium { width: 80%; }
        .wb-grid-title { font-size: 13px; font-weight: 600; color: #000; text-align: center; margin-top: 8px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .wb-editor-page { background-color: #ffffff; }
        .wb-editor-nav { height: 44px; margin-top: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
        .wb-editor-nav-right { display: flex; gap: 10px; align-items: center; }
        .wb-nav-capsule { height: 36px; background-color: #f2f2f7; border-radius: 18px; display: flex; align-items: center; padding: 0 12px; gap: 12px; }
        .wb-entry-import-trigger { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
        .wb-nav-capsule svg { width: 20px; height: 20px; stroke: #000; stroke-width: 2; fill: none; cursor: pointer; }
        .wb-nav-btn-circle.yellow { background-color: #e4af0a; }
        .wb-nav-btn-circle.yellow svg { stroke: #fff; }
        .wb-editor-content-area { padding: 10px 20px 40px; display: flex; flex-direction: column; height: 100%; }
        .wb-editor-title-input { font-size: 32px; font-weight: 700; border: none; outline: none; width: 100%; margin-bottom: 8px; color: #000; background: transparent; }
        .wb-editor-title-input::placeholder { color: #c7c7cc; }
        .wb-editor-key-container { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 0.5px solid #c6c6c8; margin-bottom: 16px; }
        .wb-editor-key-container svg { width: 18px; height: 18px; stroke: #e4af0a; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
        .wb-editor-key-input { flex: 1; border: none; outline: none; font-size: 16px; color: #e4af0a; font-weight: 500; background: transparent; }
        .wb-editor-key-input::placeholder { color: #c7c7cc; font-weight: 400; }
        .wb-editor-textarea { flex: 1; width: 100%; border: none; outline: none; font-size: 17px; line-height: 1.5; color: #000; resize: none; background: transparent; min-height: 200px; }
        .wb-editor-textarea::placeholder { color: #c7c7cc; }
        .wb-settings-group-title { font-size: 13px; color: #8e8e93; text-transform: uppercase; margin: 30px 0 8px 16px; font-weight: 600; }
        .wb-settings-card { background-color: #f2f2f7; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
        .wb-settings-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: none; min-height: 48px; }
        .wb-settings-row:last-child { border-bottom: none; }
        .wb-settings-row.clickable { cursor: pointer; }
        .wb-settings-row.clickable:active { background-color: #e5e5ea; }
        .wb-settings-label { font-size: 16px; color: #000; }
        .wb-settings-value-with-arrow { display: flex; align-items: center; gap: 8px; color: #8e8e93; font-size: 16px; }
        .wb-settings-input { text-align: right; border: none; background: transparent; font-size: 16px; color: #8e8e93; outline: none; width: 100px; }
        .wb-settings-select { border: none; background: transparent; font-size: 16px; color: #8e8e93; outline: none; appearance: none; text-align: right; direction: rtl; }
        .wb-ios-switch { position: relative; width: 51px; height: 31px; background-color: #d1d1d6; border-radius: 15.5px; cursor: pointer; transition: background-color 0.3s; }
        .wb-ios-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; background-color: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); transition: transform 0.3s; }
        .wb-ios-switch.active { background-color: #34c759; }
        .wb-ios-switch.active::after { transform: translateX(20px); }
        .wb-bottom-float-bar { position: absolute; bottom: 20px; left: 20px; right: 20px; display: flex; gap: 12px; z-index: 50; }
        .wb-search-pill { flex: 1; height: 50px; background-color: #ffffff; border-radius: 25px; display: flex; align-items: center; padding: 0 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); cursor: text; }
        .wb-search-pill svg.search-icon { width: 20px; height: 20px; stroke: #000; stroke-width: 2.5; fill: none; margin-right: 8px; }
        .wb-search-pill .placeholder { font-size: 17px; color: #8e8e93; font-weight: 500; flex: 1; }
        .wb-search-pill svg.mic-icon { width: 18px; height: 22px; stroke: #000; stroke-width: 2; fill: none; }
        .wb-compose-btn { width: 50px; height: 50px; background-color: #ffffff; border-radius: 18px; display: flex; justify-content: center; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,0.06); cursor: pointer; transition: transform 0.2s; flex-shrink: 0; }
        .wb-compose-btn:active { transform: scale(0.92); }
        .wb-compose-btn svg { width: 22px; height: 22px; stroke: #000; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
        .wb-bottom-sheet-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 3000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
        .wb-bottom-sheet-overlay.show { opacity: 1; pointer-events: auto; }
        .wb-bottom-sheet { position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; background: #ffffff; border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1); display: flex; flex-direction: column; }
        .wb-bottom-sheet-overlay.show .wb-bottom-sheet { transform: translateY(0); }
        .wb-sheet-header { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 0.5px solid #c6c6c8; }
        .wb-sheet-title { font-size: 17px; font-weight: 600; color: #000; }
        .wb-sheet-close { width: 30px; height: 30px; background: #e5e5ea; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; }
        .wb-sheet-close svg { width: 16px; height: 16px; stroke: #8e8e93; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
        .wb-sheet-content { flex: 1; overflow-y: auto; padding: 10px 16px; }
        .wb-sheet-list-card { background: #fff; border-radius: 12px; overflow: hidden; }
        .wb-sheet-list-item { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 0.5px solid #c6c6c8; font-size: 17px; color: #000; cursor: pointer; }
        .wb-sheet-list-item:last-child { border-bottom: none; }
        .wb-sheet-list-item:active { background: #e5e5ea; }
        .wb-sheet-list-item svg { width: 20px; height: 20px; stroke: #e4af0a; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; display: none; }
        .wb-sheet-list-item.selected svg { display: block; }
        .wb-empty-state { text-align: center; color: #8e8e93; padding: 40px 20px; font-size: 15px; font-weight: 500; display: none; }
        /* --- 世界书 搜索覆盖层修复 --- */
        .wb-search-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; background: #f2f2f7; z-index: 200; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; }
        .wb-search-overlay.show { transform: translateY(0); }
        .wb-search-header { padding: 54px 16px 10px; display: flex; gap: 10px; align-items: center; background: #f2f2f7; box-sizing: border-box; width: 100%; flex-shrink: 0; }
        .wb-search-input-box { flex: 1; height: 36px; background: #e3e3e8; border-radius: 10px; display: flex; align-items: center; padding: 0 8px; box-sizing: border-box; min-width: 0; }
        .wb-search-input-box svg { width: 16px; height: 16px; stroke: #8e8e93; stroke-width: 2.5; fill: none; margin-right: 6px; flex-shrink: 0; }
        .wb-search-input-box input { flex: 1; width: 100%; border: none; background: transparent; outline: none; font-size: 17px; color: #000; min-width: 0; box-sizing: border-box; }
        .wb-search-cancel { color: #e4af0a; font-size: 17px; cursor: pointer; flex-shrink: 0; white-space: nowrap; }
        .wb-search-results { flex: 1; padding: 20px; color: #8e8e93; text-align: center; font-size: 15px; box-sizing: border-box; width: 100%; overflow-y: auto; }
              /* --- 世界书 弹窗与覆盖层修复 --- */
        .wb-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
        .wb-modal-overlay.show { opacity: 1; pointer-events: auto; }
        .wb-ios-modal { width: 270px; background: rgba(242, 242, 247, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 14px; display: flex; flex-direction: column; align-items: center; transform: scale(1.1); transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        .wb-modal-overlay.show .wb-ios-modal { transform: scale(1); }
        .wb-modal-title { font-size: 17px; font-weight: 600; margin: 20px 0 6px; color: #000; }
        .wb-modal-desc { font-size: 13px; color: #000; margin-bottom: 16px; }
        .wb-modal-input-wrapper { width: 100%; padding: 0 16px 20px; }
        .wb-modal-input { width: 100%; background: #fff; border: 0.5px solid rgba(0,0,0,0.2); border-radius: 6px; padding: 6px 8px; font-size: 14px; outline: none; color: #000; }
        .wb-modal-btns { width: 100%; display: flex; border-top: 0.5px solid rgba(0,0,0,0.2); }
        .wb-modal-btn { flex: 1; padding: 12px 0; font-size: 17px; color: #007aff; text-align: center; cursor: pointer; }
        .wb-modal-btn:active { background: rgba(0,0,0,0.05); }
        .wb-modal-btn.cancel { border-right: 0.5px solid rgba(0,0,0,0.2); font-weight: 400; }
        .wb-modal-btn.confirm { font-weight: 600; }
        .wb-context-menu-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; display: none; }
        .wb-context-menu { position: absolute; width: 220px; background: rgba(250, 250, 250, 0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); display: flex; flex-direction: column; overflow: hidden; transform-origin: top left; transform: scale(0.9); opacity: 0; transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s; }
        .wb-context-menu.show { transform: scale(1); opacity: 1; }
        .wb-context-menu-item { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: #000; border-bottom: 0.5px solid rgba(0,0,0,0.1); cursor: pointer; }
        .wb-context-menu-item:last-child { border-bottom: none; }
        .wb-context-menu-item:active { background: rgba(0,0,0,0.1); }
        .wb-context-menu-item.danger { color: #ff3b30; }
        .wb-context-menu-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

        /* ==========================================
           微信 APP UI 样式 (已进行命名空间隔离)
           ========================================== */
        #wechatAppUI {
            --tg-blue: #3390EC; --bg-color: #ffffff; --surface-color: #F1F1F4; 
            --badge-green: #74B584; --bubble-left: #F2F2F7; --bubble-right: #E3F6CB; 
            --meta-left: #8E8E93; --meta-right: #5DB050; --text-main: #000000;
            --text-sub: #8E8E93; --search-bg: #F1F1F4; --check-green: #44C065; --orange: #F28C48;
            position: absolute; top: 0; left: 0; width: 100%; height: var(--wc-viewport-height, 100%); min-height: 0;
            background-color: var(--bg-color); color: var(--text-main); font-weight: 600;
            z-index: 160; display: none; flex-direction: column; overflow: hidden;
            transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
