   /* ===== 全局 ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
            min-height: 100vh;
            color: #1e293b;
            background: #f0f2f5;
            overflow-x: hidden;
            transition: background-image 1s ease-in-out;
        }

        /* ===== 背景 ===== */
        .bg-layer {
            position: fixed;
            inset: 0;
            z-index: 0;
            background: url('/1.png') no-repeat center center / cover;
            transition: background-image 1.2s ease-in-out;
            will-change: background-image;
        }
        .bg-layer::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(10, 20, 35, 0.30);
            backdrop-filter: brightness(0.96) saturate(1.2);
        }

        /* ===== 主容器 ===== */
        .app {
            position: relative;
            z-index: 1;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 16px 28px 30px;
            max-width: 1360px;
            margin: 0 auto;
        }

        /* ===== 顶部栏 ===== */
        .topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 6px 0 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.15);
            flex-wrap: wrap;
            gap: 10px 16px;
        }
        .topbar .brand {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            user-select: none;
            flex-wrap: wrap;
        }
        .topbar .brand img {
            height: 36px;
            width: auto;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        }
        .topbar .brand .site-name {
            font-size: 18px;
            font-weight: 600;
            color: #fff;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .topbar .brand .browser-suffix {
            font-size: 13px;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.55);
            text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
            letter-spacing: 0.2px;
            margin-left: 2px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: rgba(255, 255, 255, 0.07);
            padding: 0 12px 0 10px;
            border-radius: 20px;
            line-height: 1.8;
            border: 1px solid rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(4px);
        }
        .topbar .brand .browser-suffix i {
            font-size: 12px;
            opacity: 0.5;
        }
        .topbar .brand .browser-suffix .browser-name {
            font-weight: 500;
            color: rgba(255, 255, 255, 0.75);
        }
        .topbar .brand .browser-suffix .browser-version {
            color: rgba(255, 255, 255, 0.4);
            font-weight: 300;
        }

        .topbar .info-area {
            display: flex;
            align-items: center;
            gap: 18px;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.85);
            text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
            flex-wrap: wrap;
            font-weight: 400;
            letter-spacing: 0.3px;
        }
        .topbar .info-area .info-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .topbar .info-area .info-item i {
            opacity: 0.6;
            font-size: 13px;
        }
        .topbar .info-area .info-item .label {
            opacity: 0.5;
            font-weight: 300;
            margin-right: 2px;
        }
        .topbar .info-area .info-item .value {
            font-weight: 500;
        }
        .topbar .right-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .topbar .right-actions .btn {
            padding: 5px 16px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 30px;
            background: rgba(255, 255, 255, 0.08);
            color: #f0f4ff;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: 0.2s;
            font-family: inherit;
            backdrop-filter: blur(4px);
            line-height: 1.6;
            white-space: nowrap;
        }
        .topbar .right-actions .btn:hover {
            background: rgba(255, 255, 255, 0.18);
            border-color: rgba(255, 255, 255, 0.35);
            transform: translateY(-1px);
        }
        .topbar .right-actions .btn-primary {
            background: #4a6cf7;
            border-color: #4a6cf7;
            color: #fff;
        }
        .topbar .right-actions .btn-primary:hover {
            background: #3b5de7;
            border-color: #3b5de7;
        }
        .topbar .right-actions .btn-danger {
            background: rgba(239, 68, 68, 0.7);
            border-color: rgba(239, 68, 68, 0.5);
            color: #fff;
        }
        .topbar .right-actions .btn-danger:hover {
            background: #dc2626;
            border-color: #dc2626;
        }
        .topbar .right-actions .btn-add {
            display: none;
        }
        .topbar .right-actions #loginStatus {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
            display: none;
        }

        /* ===== 搜索区 ===== */
        .hero {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 24px 0 16px;
        }
        .hero .search-wrapper {
            width: 100%;
            max-width: 720px;
            margin: 0 auto;
        }
        .hero .search-box-main {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(8px);
            border-radius: 40px;
            padding: 4px 4px 4px 22px;
            box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
            transition: box-shadow 0.25s, transform 0.2s;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        .hero .search-box-main:hover,
        .hero .search-box-main:focus-within {
            box-shadow: 0 16px 56px rgba(0, 0, 0, 0.20), 0 2px 12px rgba(74, 108, 247, 0.12);
            transform: scale(1.005);
        }
        .hero .search-box-main select {
            padding: 8px 4px 8px 0;
            border: none;
            background: transparent;
            font-size: 14px;
            font-weight: 500;
            color: #1e293b;
            outline: none;
            font-family: inherit;
            cursor: pointer;
            min-width: 70px;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0 center;
            padding-right: 18px;
        }
        .hero .search-box-main select option {
            background: #fff;
            color: #1e293b;
        }
        .hero .search-box-main input {
            flex: 1;
            border: none;
            background: transparent;
            padding: 12px 14px;
            font-size: 16px;
            outline: none;
            color: #0f172a;
            font-family: inherit;
            min-width: 120px;
        }
        .hero .search-box-main input::placeholder {
            color: #94a3b8;
            font-weight: 300;
        }
        .hero .search-box-main .search-go {
            padding: 10px 28px;
            border: none;
            border-radius: 32px;
            background: linear-gradient(135deg, #4a6cf7, #6d8cff);
            color: #fff;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s;
            font-family: inherit;
            white-space: nowrap;
            letter-spacing: 0.3px;
        }
        .hero .search-box-main .search-go:hover {
            background: linear-gradient(135deg, #3b5de7, #5a7af7);
            transform: scale(1.02);
            box-shadow: 0 4px 20px rgba(74, 108, 247, 0.35);
        }
        .hero .search-hint {
            margin-top: 12px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
            text-align: center;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        /* ===== 站内搜索 ===== */
        .site-search-area {
            width: 100%;
            max-width: 720px;
            margin: 8px auto 12px;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 8px;
        }
        .site-search-area .site-search-box {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.12);
            backdrop-filter: blur(6px);
            border-radius: 30px;
            padding: 2px 4px 2px 16px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: 0.2s;
            max-width: 260px;
        }
        .site-search-area .site-search-box:focus-within {
            background: rgba(255, 255, 255, 0.20);
            border-color: rgba(255, 255, 255, 0.2);
        }
        .site-search-area .site-search-box i {
            color: rgba(255, 255, 255, 0.4);
            font-size: 13px;
        }
        .site-search-area .site-search-box input {
            border: none;
            background: transparent;
            padding: 6px 8px;
            font-size: 13px;
            outline: none;
            color: #fff;
            font-family: inherit;
            width: 140px;
        }
        .site-search-area .site-search-box input::placeholder {
            color: rgba(255, 255, 255, 0.3);
            font-weight: 300;
        }

        /* ===== 常用网址 ===== */
        .favorites-section {
            margin: 6px auto 14px;
            width: 100%;
            max-width: 1000px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 4px 14px;
            padding: 6px 16px;
            background: rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(6px);
            border-radius: 32px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            min-height: 40px;
        }
        .favorites-section .fav-label {
            font-size: 12px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.4);
            letter-spacing: 1px;
            margin-right: 4px;
            flex-shrink: 0;
        }
        .fav-item {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 14px 3px 12px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            font-size: 13px;
            cursor: grab;
            transition: 0.2s;
            border: 1px solid transparent;
            user-select: none;
        }
        .fav-item:hover {
            background: rgba(255, 255, 255, 0.16);
            border-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-1px);
        }
        .fav-item.dragging {
            opacity: 0.3;
        }
        .fav-empty {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.35);
        }
        .favorites-section.drag-over {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(74, 108, 247, 0.4);
        }

        /* ===== 导航网格 ===== */
        .nav-section {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding-top: 6px;
        }
        .nav-section .section-title {
            font-size: 13px;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.3);
            letter-spacing: 2px;
            margin-bottom: 12px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            padding-bottom: 8px;
        }
        .nav-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 14px;
        }
        .card {
            border-radius: 16px;
            padding: 16px 8px 14px;
            text-align: center;
            transition: 0.25s;
            position: relative;
            text-decoration: none;
            color: #f0f4ff;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }
        .card:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.15);
            transform: translateY(-4px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
        }
        .card .icon-wrap {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.06);
            overflow: hidden;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.04);
        }
        .card .icon-wrap img {
            width: 28px;
            height: 28px;
            object-fit: contain;
        }
        .card .name {
            font-size: 13px;
            font-weight: 500;
            line-height: 1.3;
            word-break: break-all;
            color: rgba(255, 255, 255, 0.9);
        }
        .card-actions {
            position: absolute;
            top: 6px;
            right: 6px;
            display: none;
            gap: 2px;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(8px);
            padding: 2px 4px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }
        .card:hover .card-actions {
            display: flex;
        }
        body:not(.logged-in) .card-actions {
            display: none !important;
        }
        .card-actions button {
            width: 24px;
            height: 24px;
            border: none;
            border-radius: 10px;
            background: transparent;
            cursor: pointer;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
            transition: 0.15s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .card-actions .fav-btn.active {
            color: #fbbf24;
        }
        .card-actions .fav-btn:hover {
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
        }
        .card-actions .edit-btn:hover {
            background: rgba(74, 108, 247, 0.25);
            color: #7aa9ff;
        }
        .card-actions .del-btn:hover {
            background: rgba(239, 68, 68, 0.25);
            color: #f87171;
        }

        .no-result {
            grid-column: 1 / -1;
            text-align: center;
            padding: 40px 20px;
            color: rgba(255, 255, 255, 0.3);
            font-size: 14px;
        }

        /* ===== 侧边按钮 ===== */
        .side-btn-group {
            position: fixed;
            right: 20px;
            bottom: 30px;
            z-index: 100;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .side-btn {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 40px;
            padding: 8px 18px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.7);
            transition: 0.25s;
            font-family: inherit;
            text-align: center;
            user-select: none;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        }
        .side-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
            border-color: rgba(255, 255, 255, 0.15);
            transform: scale(1.04);
        }

        /* ============================================================
                   弹窗 & 按钮样式
                   ============================================================ */

        /* ----- 模态框遮罩 ----- */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(6px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 999;
            padding: 20px;
            animation: overlayFade 0.25s ease;
        }
        .modal-overlay.active {
            display: flex;
        }
        @keyframes overlayFade {
            0% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }

        /* ----- 弹窗卡片 ----- */
        .modal {
            background: #ffffff;
            border-radius: 28px;
            padding: 32px 36px;
            max-width: 620px;
            width: 100%;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25), 0 8px 32px rgba(0, 0, 0, 0.06);
            animation: modalSlide 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        @keyframes modalSlide {
            0% {
                opacity: 0;
                transform: translateY(18px) scale(0.97);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        .modal h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 20px;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 12px;
            letter-spacing: -0.3px;
        }
        .modal h3 i {
            color: #4a6cf7;
            font-size: 22px;
            width: 32px;
            text-align: center;
        }
        .modal input[type="text"],
        .modal input[type="url"],
        .modal input[type="password"],
        .modal textarea {
            width: 100%;
            padding: 12px 18px;
            border: 1.5px solid #e2e8f0;
            border-radius: 14px;
            font-size: 14px;
            outline: none;
            transition: 0.2s;
            margin-bottom: 14px;
            font-family: inherit;
            background: #f8fafc;
            color: #0f172a;
        }
        .modal input:focus,
        .modal textarea:focus {
            border-color: #4a6cf7;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.08);
        }
        .modal textarea {
            min-height: 110px;
            resize: vertical;
            line-height: 1.6;
        }

        /* ----- 弹窗按钮行 ----- */
        .modal .btn-row {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 6px;
            flex-wrap: wrap;
        }

        /* ----- 通用按钮 ----- */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 8px 22px;
            border-radius: 30px;
            border: 1.5px solid #e2e8f0;
            background: #fff;
            color: #334155;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: 0.2s;
            font-family: inherit;
            line-height: 1.5;
            text-decoration: none;
            user-select: none;
            white-space: nowrap;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
        }
        .btn:hover {
            background: #f1f5f9;
            border-color: #cbd5e1;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        }
        .btn:active {
            transform: translateY(0);
            box-shadow: none;
        }

        /* 主要按钮 */
        .btn-primary {
            background: #4a6cf7;
            border-color: #4a6cf7;
            color: #fff;
            box-shadow: 0 4px 14px rgba(74, 108, 247, 0.25);
        }
        .btn-primary:hover {
            background: #3b5de7;
            border-color: #3b5de7;
            color: #fff;
            box-shadow: 0 6px 24px rgba(74, 108, 247, 0.32);
            transform: translateY(-2px);
        }

        /* 危险按钮 */
        .btn-danger {
            background: #ef4444;
            border-color: #ef4444;
            color: #fff;
            box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
        }
        .btn-danger:hover {
            background: #dc2626;
            border-color: #dc2626;
            color: #fff;
            box-shadow: 0 6px 24px rgba(239, 68, 68, 0.25);
            transform: translateY(-2px);
        }

        /* 次要按钮（取消/关闭） */
        .btn-secondary {
            background: transparent;
            border-color: transparent;
            color: #64748b;
        }
        .btn-secondary:hover {
            background: #f1f5f9;
            border-color: #e2e8f0;
            color: #334155;
            transform: translateY(-1px);
        }

        /* 小号按钮 */
        .btn-sm {
            padding: 4px 14px;
            font-size: 12px;
            border-radius: 20px;
        }

        /* 带图标的按钮 */
        .btn i {
            font-size: 14px;
        }

        /* ----- 便签分类标签（动态） ----- */
        .category-tabs-wrapper {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 16px;
            border-bottom: 1px solid #eef2f6;
            padding-bottom: 6px;
            flex-wrap: wrap;
        }
        .category-tabs {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            flex: 1;
        }
        .tab-btn {
            position: relative;
            padding: 6px 28px 6px 16px;
            border: none;
            background: transparent;
            font-size: 14px;
            font-weight: 500;
            color: #94a3b8;
            cursor: pointer;
            border-radius: 30px;
            transition: 0.2s;
            font-family: inherit;
            border: 1px solid transparent;
            white-space: nowrap;
        }
        .tab-btn:hover {
            background: #f1f5f9;
            color: #475569;
        }
        .tab-btn.active {
            background: #4a6cf7;
            color: #fff;
            border-color: #4a6cf7;
            box-shadow: 0 2px 8px rgba(74, 108, 247, 0.2);
        }
        .tab-btn .tab-del {
            position: absolute;
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 12px;
            cursor: pointer;
            padding: 0 4px;
            border-radius: 10px;
            transition: 0.15s;
            line-height: 1;
        }
        .tab-btn .tab-del:hover {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
        }
        .tab-btn.active .tab-del {
            color: rgba(255, 255, 255, 0.7);
        }
        .tab-btn.active .tab-del:hover {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
        }
        .tab-btn .tab-del.disabled {
            opacity: 0.3;
            pointer-events: none;
            cursor: default;
        }
        .add-category-btn {
            flex-shrink: 0;
        }

        /* ----- 便签列表 ----- */
        .note-grid {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 12px;
            max-height: 55vh;
            overflow-y: auto;
            padding-right: 6px;
        }
        .note-grid::-webkit-scrollbar {
            width: 4px;
        }
        .note-grid::-webkit-scrollbar-thumb {
            background: #d1d5db;
            border-radius: 10px;
        }

        .note-item {
            background: #f8fafc;
            border: 1px solid #eef2f6;
            border-radius: 18px;
            padding: 16px 20px 12px;
            position: relative;
            display: flex;
            flex-direction: column;
            transition: 0.2s;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
        }
        .note-item:hover {
            border-color: #d1d9e6;
            background: #f1f5f9;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
            transform: translateY(-1px);
        }
        .note-item .note-content {
            font-size: 14px;
            line-height: 1.7;
            color: #1e293b;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            text-overflow: ellipsis;
            word-break: break-word;
            flex: 1;
            padding-right: 48px;
        }
        .note-item .note-actions {
            position: absolute;
            top: 12px;
            right: 12px;
            display: flex;
            gap: 2px;
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(4px);
            padding: 2px 4px;
            border-radius: 14px;
            border: 1px solid rgba(0, 0, 0, 0.03);
        }
        .note-item .note-actions button {
            width: 30px;
            height: 30px;
            border: none;
            border-radius: 12px;
            background: transparent;
            cursor: pointer;
            font-size: 14px;
            color: #94a3b8;
            transition: 0.15s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .note-item .note-actions .view-btn:hover {
            background: #eef2ff;
            color: #4a6cf7;
        }
        .note-item .note-actions .copy-btn:hover {
            background: #ecfdf5;
            color: #10b981;
        }
        .note-item .note-actions .del-btn:hover {
            background: #fef2f2;
            color: #ef4444;
        }
        .note-item .note-time {
            font-size: 11px;
            color: #94a3b8;
            margin-top: 10px;
            text-align: right;
            border-top: 1px solid #f1f5f9;
            padding-top: 8px;
            letter-spacing: 0.3px;
        }
        .note-empty {
            text-align: center;
            color: #94a3b8;
            padding: 48px 0;
            font-size: 14px;
        }
        .note-empty i {
            display: block;
            font-size: 36px;
            color: #d1d5db;
            margin-bottom: 12px;
        }

        /* 便签登录区 */
        #draftLoginArea .draft-hint {
            font-size: 13px;
            color: #64748b;
            margin-bottom: 18px;
            line-height: 1.6;
            padding: 12px 16px;
            background: #f8fafc;
            border-radius: 12px;
            border-left: 4px solid #4a6cf7;
        }

        /* ----- 历史记录 ----- */
        .history-list-wrap {
            flex: 1;
            overflow-y: auto;
            margin-bottom: 14px;
            padding-right: 4px;
        }
        .history-list-wrap::-webkit-scrollbar {
            width: 4px;
        }
        .history-list-wrap::-webkit-scrollbar-thumb {
            background: #d1d5db;
            border-radius: 10px;
        }

        .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 12px;
            border-bottom: 1px solid #f1f5f9;
            transition: 0.15s;
            border-radius: 10px;
            margin-bottom: 2px;
        }
        .history-item:hover {
            background: #f8fafc;
        }
        .history-item:last-child {
            border-bottom: none;
        }
        .history-item .h-left {
            flex: 1;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .history-item .h-keyword {
            font-weight: 500;
            color: #0f172a;
            font-size: 14px;
        }
        .history-item .h-engine {
            color: #64748b;
            font-size: 12px;
            background: #f1f5f9;
            padding: 0 10px;
            border-radius: 12px;
            line-height: 1.8;
        }
        .history-item .h-time {
            color: #94a3b8;
            font-size: 12px;
            margin-left: auto;
            flex-shrink: 0;
        }
        .history-item .h-del {
            border: none;
            background: none;
            cursor: pointer;
            font-size: 16px;
            color: #cbd5e1;
            padding: 0 6px;
            transition: 0.15s;
            flex-shrink: 0;
            margin-left: 6px;
            width: 30px;
            height: 30px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .history-item .h-del:hover {
            background: #fef2f2;
            color: #ef4444;
        }
        .history-empty {
            color: #94a3b8;
            text-align: center;
            padding: 40px 0;
            font-size: 14px;
        }
        .history-empty i {
            display: block;
            font-size: 32px;
            color: #d1d5db;
            margin-bottom: 10px;
        }
        .history-footer {
            border-top: 1px solid #eef2f6;
            padding-top: 14px;
            display: flex;
            gap: 12px;
            flex-shrink: 0;
            justify-content: space-between;
            align-items: center;
        }
        .history-footer .h-count {
            font-size: 12px;
            color: #94a3b8;
        }

        /* ----- Toast ----- */
        .toast {
            position: fixed;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(15, 23, 42, 0.88);
            backdrop-filter: blur(12px);
            color: #fff;
            padding: 12px 34px;
            border-radius: 40px;
            font-size: 14px;
            font-family: inherit;
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.35s;
            pointer-events: none;
            border: 1px solid rgba(255, 255, 255, 0.06);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        }
        .toast.show {
            opacity: 1;
        }

        /* ===== 滚动条 ===== */
        ::-webkit-scrollbar {
            width: 4px;
            height: 4px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        /* ===== 响应式 ===== */
        @media (max-width: 768px) {
            .app {
                padding: 12px 14px 20px;
            }
            .topbar {
                flex-direction: column;
                align-items: stretch;
                gap: 6px;
            }
            .topbar .brand {
                justify-content: center;
                flex-wrap: wrap;
            }
            .topbar .brand img {
                height: 30px;
            }
            .topbar .brand .site-name {
                font-size: 16px;
                flex-wrap: wrap;
                justify-content: center;
            }
            .topbar .brand .browser-suffix {
                font-size: 12px;
                padding: 0 10px 0 8px;
                line-height: 1.8;
            }
            .topbar .info-area {
                justify-content: center;
                font-size: 12px;
                gap: 10px;
                flex-wrap: wrap;
            }
            .topbar .right-actions {
                justify-content: center;
            }
            .hero {
                padding: 16px 0 10px;
            }
            .hero .search-box-main {
                border-radius: 30px;
                padding: 3px 3px 3px 16px;
                flex-wrap: nowrap;
            }
            .hero .search-box-main input {
                font-size: 14px;
                padding: 10px 10px;
                min-width: 80px;
            }
            .hero .search-box-main .search-go {
                padding: 8px 18px;
                font-size: 13px;
            }
            .hero .search-box-main select {
                font-size: 12px;
                min-width: 60px;
                padding-right: 14px;
            }
            .site-search-area {
                justify-content: center;
            }
            .site-search-area .site-search-box input {
                width: 120px;
            }
            .favorites-section {
                padding: 6px 12px;
                gap: 4px 10px;
                border-radius: 24px;
            }
            .nav-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 10px;
            }
            .card {
                padding: 12px 6px 10px;
                border-radius: 14px;
            }
            .card .icon-wrap {
                width: 40px;
                height: 40px;
            }
            .card .icon-wrap img {
                width: 22px;
                height: 22px;
            }
            .card .name {
                font-size: 12px;
            }
            .side-btn-group {
                right: 12px;
                bottom: 18px;
                gap: 6px;
            }
            .side-btn {
                padding: 6px 14px;
                font-size: 12px;
                border-radius: 30px;
            }
            .modal {
                padding: 24px 20px;
                max-width: 100%;
                border-radius: 22px;
            }
            .modal h3 {
                font-size: 17px;
            }
            .note-item {
                padding: 14px 16px 10px;
            }
            .note-item .note-actions {
                top: 10px;
                right: 10px;
            }
            .history-item {
                padding: 8px 6px;
                flex-wrap: wrap;
            }
            .history-item .h-left {
                flex-wrap: wrap;
                gap: 4px 8px;
            }
            .history-item .h-time {
                margin-left: 0;
                width: 100%;
                padding-left: 0;
            }
            .hero .search-hint {
                font-size: 11px;
                margin-top: 10px;
            }
            .category-tabs-wrapper {
                flex-wrap: wrap;
                justify-content: center;
            }
            .tab-btn {
                padding: 4px 24px 4px 12px;
                font-size: 13px;
            }
            .add-category-btn {
                margin-left: auto;
            }
        }
        @media (max-width: 420px) {
            .hero .search-box-main {
                flex-wrap: wrap;
                background: rgba(255, 255, 255, 0.94);
                border-radius: 20px;
                padding: 6px 10px;
            }
            .hero .search-box-main select {
                width: 100%;
                padding: 6px 0;
                background-position: right 4px center;
            }
            .hero .search-box-main input {
                width: 100%;
                padding: 8px 4px;
            }
            .hero .search-box-main .search-go {
                width: 100%;
                text-align: center;
                padding: 8px;
                border-radius: 16px;
            }
            .nav-grid {
                grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
                gap: 8px;
            }
            .card .icon-wrap {
                width: 34px;
                height: 34px;
            }
            .card .icon-wrap img {
                width: 18px;
                height: 18px;
            }
            .card .name {
                font-size: 11px;
            }
            .modal {
                padding: 18px 14px;
                border-radius: 18px;
            }
            .modal .btn-row .btn {
                padding: 6px 16px;
                font-size: 13px;
            }
            .topbar .brand .browser-suffix {
                font-size: 11px;
                padding: 0 8px;
            }
            .tab-btn {
                font-size: 12px;
                padding: 3px 20px 3px 10px;
            }
        }