/* AI导航 - 样式文件 */
:root {
            --bg-primary: #f3f6fb;
            --bg-secondary: #ffffff;
            --bg-sidebar: #1a1f2e;
            --text-primary: #2d3436;
            --text-secondary: #7b8794;
            --text-sidebar: #6e7d94;
            --text-sidebar-active: #e8ecf1;
            --border-color: #e8edf2;
            --accent: #4a7df3;
            --accent-hover: #3468d9;
            --accent-light: #eef3fd;
            --orange: #ff6000;
            --orange-light: #fff4ed;
            --card-shadow: 0 1px 4px rgba(0,0,0,0.06);
            --card-hover-shadow: 0 8px 28px rgba(0,0,0,0.1);
            --tag-bg: #f1f7fc;
            --tag-color: #9ca7ae;
            --search-bg: linear-gradient(135deg, #4a89f0 0%, #7bb3f4 100%);
            --hot-bg: #fff0f0;
            --hot-color: #e55050;
            --new-bg: #e8f8f0;
            --new-color: #3dbd7d;
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 14px;
            --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            --sidebar-width: 250px;
            --header-height: 56px;
        }

        .dark {
            --bg-primary: #131820;
            --bg-secondary: #1a1f2a;
            --bg-sidebar: #0f131b;
            --text-primary: #e2e6ed;
            --text-secondary: #8894a8;
            --text-sidebar: #57637d;
            --text-sidebar-active: #e2e6ed;
            --border-color: #262d39;
            --accent: #5b8fff;
            --accent-hover: #4a7de5;
            --accent-light: #1a2140;
            --orange: #ff6000;
            --orange-light: #2a1a10;
            --card-shadow: 0 1px 4px rgba(0,0,0,0.25);
            --card-hover-shadow: 0 8px 28px rgba(0,0,0,0.35);
            --tag-bg: #1e2a38;
            --tag-color: #7e89a0;
            --search-bg: linear-gradient(135deg, #2a5ad0 0%, #4a80e0 100%);
            --hot-bg: #351818;
            --hot-color: #e88383;
            --new-bg: #142a1f;
            --new-color: #5cd49a;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: "PingFang SC", "Lantinghei SC", "Microsoft YaHei", "HanHei SC", "Helvetica Neue", "Open Sans", "Hiragino Sans GB", "微软雅黑", STHeiti, "WenQuanYi Micro Hei", Arial, SimSun, sans-serif;
            font-size: 14px;
            line-height: 1.6;
            background: var(--bg-primary);
            color: var(--text-primary);
            display: flex;
            min-height: 100vh;
            transition: background 0.3s ease, color 0.3s ease;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ===== 侧边栏 ===== */
        .sidebar {
            width: var(--sidebar-width);
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            background: var(--bg-sidebar);
            display: flex;
            flex-direction: column;
            z-index: 100;
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: visible;
        }

        .sidebar.collapsed {
            width: 4px;
            overflow: visible;
        }

        /* 收缩时隐藏所有内容 */
        .sidebar.collapsed .sidebar-logo,
        .sidebar.collapsed .sidebar-nav,
        .sidebar.collapsed .sidebar-footer {
            opacity: 0;
            pointer-events: none;
            visibility: hidden;
            transition: opacity 0.2s ease;
        }

        /* 侧边栏收缩按钮 */
        .sidebar-toggle {
            position: absolute;
            display: flex;
            align-items: center;
            cursor: pointer;
            color: var(--text-sidebar);
            font-size: 12px;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 101;
            border: none;
            outline: none;
            background: transparent;
            padding: 0;
            white-space: nowrap;
        }

        .sidebar-toggle .toggle-inner {
            display: flex;
            align-items: center;
            gap: 0;
            height: 32px;
            width: 18px;
            background: var(--bg-sidebar);
            border: 1px solid rgba(255,255,255,0.06);
            border-left: none;
            border-radius: 0 10px 10px 0;
            justify-content: center;
            overflow: hidden;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .sidebar-toggle .toggle-icon {
            font-size: 10px;
            line-height: 1;
            flex-shrink: 0;
            width: 18px;
            text-align: center;
            transition: color 0.25s;
            color: var(--text-sidebar);
        }

        .sidebar-toggle .toggle-text {
            font-size: 11px;
            letter-spacing: 0.3px;
            width: 0;
            opacity: 0;
            overflow: hidden;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
            pointer-events: none;
            color: var(--text-sidebar);
        }

        /* 展开状态下按钮：在侧边栏右侧，垂直居中 */
        .sidebar:not(.collapsed) .sidebar-toggle {
            right: 0;
            top: 50%;
            bottom: auto;
            transform: translateY(-50%);
        }
        .sidebar:not(.collapsed) .sidebar-toggle .toggle-inner {
            width: 18px;
        }
        .sidebar:not(.collapsed) .sidebar-toggle .toggle-text {
            width: 0;
            opacity: 0;
        }
        /* 展开状态 hover：按钮在侧边栏内部，不移动位置 */
        .sidebar:not(.collapsed) .sidebar-toggle:hover .toggle-inner {
            width: 95px;
            background: rgba(65, 127, 249, 0.15);
            border-color: rgba(65, 127, 249, 0.3);
        }
        .sidebar:not(.collapsed) .sidebar-toggle:hover .toggle-icon {
            color: var(--accent);
        }
        .sidebar:not(.collapsed) .sidebar-toggle:hover .toggle-text {
            width: 72px;
            opacity: 1;
            color: var(--text-sidebar-active);
            padding-right: 6px;
        }

        /* 收缩状态下按钮：贴在窄条右侧，垂直居中 */
        .sidebar.collapsed .sidebar-toggle {
            right: -18px;
            top: 50%;
            bottom: auto;
            transform: translateY(-50%);
        }
        .sidebar.collapsed .sidebar-toggle .toggle-inner {
            width: 18px;
        }
        .sidebar.collapsed .sidebar-toggle .toggle-text {
            width: 0;
            opacity: 0;
        }
        /* 收缩状态 hover：按钮向右展开 */
        .sidebar.collapsed .sidebar-toggle:hover {
            right: -85px;
        }
        .sidebar.collapsed .sidebar-toggle:hover .toggle-inner {
            width: 95px;
            background: var(--bg-secondary);
            border-color: var(--border-color);
            box-shadow: 2px 4px 16px rgba(0,0,0,0.1);
        }
        .sidebar.collapsed .sidebar-toggle:hover .toggle-icon {
            color: var(--accent);
            font-size: 12px;
        }
        .sidebar.collapsed .sidebar-toggle:hover .toggle-text {
            width: 72px;
            opacity: 1;
            color: var(--text-primary);
            padding-right: 8px;
            font-weight: 500;
        }

        .sidebar-logo {
            padding: 22px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            flex-shrink: 0;
        }

        .sidebar-logo .logo-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, #7bb3f4 0%, #417ff9 100%);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 700;
            color: white;
            flex-shrink: 0;
            box-shadow: 0 3px 10px rgba(65,127,249,0.35);
        }

        .sidebar-logo .logo-text {
            color: var(--text-sidebar-active);
            opacity: 0.9;
            font-size: 16px;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        .sidebar-nav {
            flex: 1;
            padding: 10px 10px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
        }

        /* 侧边栏滚动条样式 */
        .sidebar-nav::-webkit-scrollbar {
            width: 5px;
        }

        .sidebar-nav::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 3px;
        }

        .sidebar-nav::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 3px;
            transition: background 0.2s;
        }

        .sidebar-nav::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        .nav-section {
            margin-bottom: 2px;
        }

        .nav-category {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 14px 14px 6px;
            color: var(--text-sidebar);
            opacity: 0.55;
            font-size: 11px;
            letter-spacing: 0.6px;
            font-weight: 600;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 14px;
            margin: 1px 0;
            border-radius: var(--radius-md);
            color: var(--text-sidebar);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            position: relative;
            border: none;
            background: transparent;
        }

        .nav-item:hover {
            color: var(--text-sidebar-active);
            background: rgba(65, 127, 249, 0.1);
        }

        .nav-item.active {
            color: #ffffff;
            background: rgba(65, 127, 249, 0.22);
            font-weight: 500;
            box-shadow: 0 2px 6px rgba(65, 127, 249, 0.15);
        }

        .nav-item .nav-icon {
            font-size: 16px;
            width: 22px;
            text-align: center;
            flex-shrink: 0;
        }

        .nav-item .nav-badge {
            margin-left: auto;
            background: rgba(99, 102, 241, 0.3);
            color: #c7d2fe;
            font-size: 10px;
            padding: 2px 8px;
            border-radius: 10px;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        .nav-item .nav-badge.hot {
            background: rgba(239, 68, 68, 0.25);
            color: #fca5a5;
        }

        /* ===== 设计师侧边栏（复用 .nav-item 统一样式） ===== */


        /* ===== 主内容区域 ===== */
        .main-content {
            margin-left: var(--sidebar-width);
            flex: 1;
            min-width: 0;
            padding: 0;
            transition: margin-left 0.3s;
        }

        /* 顶部栏 */
        .top-bar {
            height: var(--header-height);
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            padding: 0 28px;
            gap: 16px;
            position: sticky;
            top: 0;
            z-index: 50;
            transition: background 0.3s, border-color 0.3s;
            backdrop-filter: blur(8px);
        }

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 22px;
            cursor: pointer;
            padding: 4px;
        }

        .top-bar .quick-links {
            display: flex;
            gap: 2px;
            flex-wrap: wrap;
        }

        .top-bar .quick-link {
            padding: 5px 14px;
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .top-bar .quick-link:hover {
            background: var(--accent-light);
            color: var(--accent);
        }

        /* ===== 群体Tab切换 ===== */
        .group-tabs {
            display: flex;
            gap: 0;
            flex-wrap: nowrap;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .group-tabs::-webkit-scrollbar { display: none; }

        .group-tab {
            padding: 6px 16px;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            border: 1px solid transparent;
            border-radius: 8px;
            white-space: nowrap;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            background: transparent;
            font-family: inherit;
            position: relative;
        }

        .group-tab:hover {
            color: var(--accent);
            background: var(--accent-light);
        }

        .group-tab.active {
            color: #ffffff;
            background: var(--accent);
            font-weight: 600;
            box-shadow: 0 2px 10px rgba(74,125,243,0.3);
        }

        .group-tab .tab-count {
            font-size: 10px;
            background: var(--accent-light);
            color: var(--accent);
            padding: 2px 6px;
            border-radius: 8px;
            margin-left: 5px;
            font-weight: 600;
        }

        .group-tab.active .tab-count {
            background: rgba(255,255,255,0.2);
            color: #fff;
        }

        .top-bar .right-actions {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* 通用操作按钮 */
        .action-btn {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 7px 12px;
            cursor: pointer;
            font-size: 16px;
            color: var(--text-primary);
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            min-width: 36px;
            height: 36px;
        }

        .action-btn:hover {
            border-color: var(--accent);
            background: var(--accent-light);
            color: var(--accent);
            box-shadow: 0 2px 8px rgba(74,125,243,0.1);
        }

        .action-btn .btn-label {
            font-size: 12px;
            margin-left: 4px;
            display: none;
            font-weight: 500;
        }

        @media (min-width: 1024px) {
            .action-btn .btn-label {
                display: inline;
            }
        }

        /* 语言下拉 */
        .lang-dropdown {
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            box-shadow: 0 12px 36px rgba(0,0,0,0.15);
            min-width: 120px;
            overflow: hidden;
            display: none;
            z-index: 60;
        }

        .lang-dropdown.show { display: block; }

        .lang-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            cursor: pointer;
            font-size: 13px;
            color: var(--text-primary);
            transition: background 0.15s;
        }

        .lang-option:hover { background: var(--accent-light); color: var(--accent); }
        .lang-option.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }

        /* 用户中心下拉 */
        .user-dropdown {
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            min-width: 160px;
            overflow: hidden;
            display: none;
            z-index: 60;
        }

        .user-dropdown.show { display: block; }

        .user-dropdown .user-header {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .user-dropdown .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--accent);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .user-dropdown .user-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }
        .user-dropdown .user-role {
            font-size: 11px;
            color: var(--text-secondary);
        }

        .user-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            cursor: pointer;
            font-size: 13px;
            color: var(--text-primary);
            transition: all 0.15s;
            text-decoration: none;
        }

        .user-menu-item:hover { background: var(--accent-light); color: var(--accent); }
        .user-menu-item .menu-icon { font-size: 16px; width: 20px; text-align: center; }

        /* ===== 侧边栏底部 ===== */
        .sidebar-footer {
            flex-shrink: 0;
            padding: 14px 16px;
            border-top: 1px solid rgba(255,255,255,0.06);
        }

        .submit-link-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 11px 16px;
            background: linear-gradient(135deg, rgba(74,125,243,0.12), rgba(74,125,243,0.04));
            border: 1px solid rgba(74,125,243,0.16);
            border-radius: var(--radius-md);
            color: #97b8f0;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            font-family: inherit;
        }

        .submit-link-btn:hover {
            background: linear-gradient(135deg, rgba(74,125,243,0.22), rgba(74,125,243,0.1));
            border-color: rgba(74,125,243,0.3);
            color: #b0c8ff;
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(65,127,249,0.15);
        }

        .submit-link-btn .link-icon {
            font-size: 18px;
        }

        .feedback-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            margin-top: 8px;
            padding: 10px 16px;
            border: 1px dashed rgba(255,255,255,0.12);
            border-radius: 8px;
            background: transparent;
            color: #5c6880;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .feedback-btn:hover {
            border-color: rgba(245,158,11,0.35);
            color: #e8a838;
            background: rgba(245,158,11,0.06);
        }

        /* ===== 提交网址弹窗 ===== */
        /* ===== 弹窗基础 ===== */
        /* ===== 弹出框样式 - Apple/Google 简洁风格 ===== */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 200;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            padding: 20px;
        }

        .modal-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-dialog {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 20px;
            width: 100%;
            max-width: 440px;
            max-height: calc(100vh - 40px);
            overflow-y: auto;
            overflow-x: hidden;
            box-shadow: 0 22px 70px 4px rgba(0, 0, 0, 0.15);
            transform: scale(0.9);
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        .modal-overlay.show .modal-dialog {
            transform: scale(1);
            opacity: 1;
        }

        .dark .modal-dialog {
            background: rgba(30, 30, 30, 0.98);
            box-shadow: 0 22px 70px 4px rgba(0, 0, 0, 0.4);
        }

        /* ===== 关闭按钮 - 简洁风格 ===== */
        .modal-close-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: none;
            background: rgba(0, 0, 0, 0.05);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            z-index: 10;
            padding: 0;
            font-size: 14px;
        }

        .dark .modal-close-btn {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
        }

        .modal-close-btn:hover {
            background: rgba(0, 0, 0, 0.1);
            color: var(--text-primary);
        }

        /* ===== 提交弹窗头部 - 简洁风格 ===== */
        .submit-dialog {
            padding: 0;
            position: relative;
            overflow: hidden;
            max-width: 600px !important;
        }

        .submit-dialog textarea {
            min-height: 140px !important;
        }

        .submit-header {
            padding: 48px 36px 24px;
            text-align: center;
        }

        .submit-header-icon {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            background: #007aff;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 24px;
        }

        .dark .submit-header-icon {
            background: #0a84ff;
        }

        .submit-header h2 {
            font-size: 22px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 6px;
            letter-spacing: -0.021em;
        }

        .submit-header p {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.5;
            max-width: 320px;
            margin: 0 auto;
        }

        /* ===== 表单内容区 ===== */
        .submit-dialog .form-body {
            padding: 0 36px 36px;
        }

        /* ===== 通用表单样式 - 简洁风格 ===== */
        .modal-dialog .form-group {
            margin-bottom: 16px;
        }

        .modal-dialog label {
            display: block;
            font-size: 12px;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .label-optional {
            font-weight: 400;
            color: var(--text-secondary);
            font-size: 10px;
            background: var(--bg-primary);
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: 4px;
            display: inline-block;
            vertical-align: middle;
            text-transform: none;
            letter-spacing: 0;
        }

        .modal-dialog input,
        .modal-dialog select,
        .modal-dialog textarea {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: var(--bg-primary);
            color: var(--text-primary);
            font-size: 16px;
            font-family: inherit;
            outline: none;
            transition: all 0.2s ease;
            line-height: 1.5;
            -webkit-appearance: none;
        }

        .modal-dialog input::placeholder,
        .modal-dialog textarea::placeholder {
            color: #c7c7cc;
            opacity: 1;
        }

        .dark .modal-dialog input::placeholder,
        .dark .modal-dialog textarea::placeholder {
            color: #8e8e93;
        }

        .modal-dialog input:hover,
        .modal-dialog select:hover,
        .modal-dialog textarea:hover {
            border-color: #c7c7cc;
        }

        .dark .modal-dialog input:hover,
        .dark .modal-dialog select:hover,
        .dark .modal-dialog textarea:hover {
            border-color: #48484a;
        }

        .modal-dialog input:focus,
        .modal-dialog select:focus,
        .modal-dialog textarea:focus {
            border-color: #007aff;
            box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
        }

        .modal-dialog textarea {
            resize: vertical;
            min-height: 80px;
        }

        /* ===== 下拉选择框 - 简洁风格 ===== */
        .form-select-wrap {
            position: relative;
        }

        .form-select-wrap select {
            appearance: none;
            -webkit-appearance: none;
            padding-right: 40px;
            cursor: pointer;
        }

        .form-select-wrap::after {
            content: '';
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 5px solid var(--text-secondary);
            pointer-events: none;
            transition: border-color 0.2s ease;
        }

        .form-select-wrap:hover::after {
            border-top-color: var(--text-primary);
        }

        /* ===== 双列表单行 ===== */
        .form-row {
            display: flex;
            gap: 14px;
        }

        .form-row .form-row-item {
            flex: 1;
            min-width: 0;
        }

        .form-row .form-row-item select {
            width: 100%;
        }

        @media (max-width: 480px) {
            .modal-overlay {
                padding: 16px;
            }
            .modal-dialog {
                border-radius: 16px;
                max-height: calc(100vh - 32px);
            }
            .form-row {
                flex-direction: column;
                gap: 0;
            }
            .submit-header {
                padding: 40px 28px 20px;
            }
            .submit-header h2 {
                font-size: 20px;
            }
            .submit-dialog .form-body {
                padding: 0 28px 28px;
            }
            .modal-close-btn {
                top: 12px;
                right: 12px;
            }
            .modal-actions {
                flex-direction: column-reverse;
                gap: 8px;
            }
            .modal-actions button {
                width: 100%;
                padding: 12px 20px;
            }
        }

        /* ===== Logo 上传 - 简洁风格 ===== */
        .logo-upload-area {
            display: flex;
            justify-content: flex-start;
        }

        .logo-preview {
            width: 120px;
            height: 120px;
            border: 2px dashed var(--border-color);
            border-radius: 16px;
            cursor: pointer;
            overflow: hidden;
            transition: all 0.2s ease;
            background: var(--bg-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .logo-preview:hover {
            border-color: #007aff;
            background: rgba(0, 122, 255, 0.02);
        }

        .dark .logo-preview:hover {
            border-color: #0a84ff;
        }

        .logo-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .logo-placeholder {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            color: var(--text-secondary);
            padding: 12px;
        }

        .logo-placeholder svg {
            color: #c7c7cc;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }

        .logo-preview:hover .logo-placeholder svg {
            color: #007aff;
        }

        .logo-placeholder span {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-secondary);
        }

        .logo-preview:hover .logo-placeholder span {
            color: #007aff;
        }

        .logo-placeholder small {
            font-size: 11px;
            color: #a78bfa;
            font-weight: 500;
        }

        /* ===== 按钮区域 - 简洁风格 ===== */
        .modal-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            margin-top: 24px;
            padding-top: 0;
            border-top: none;
        }

        .modal-actions button {
            padding: 10px 24px;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s ease;
            border: none;
            -webkit-appearance: none;
        }

        .modal-cancel {
            background: transparent;
            color: #007aff;
        }

        .modal-cancel:hover {
            background: rgba(0, 122, 255, 0.05);
        }

        .modal-submit {
            background: #007aff;
            color: #fff;
        }

        .modal-submit:hover {
            background: #0051d5;
        }

        .modal-submit:active {
            transform: scale(0.98);
        }

        .modal-submit-wide {
            width: 100%;
            justify-content: center;
            margin-top: 20px;
            padding: 12px 24px;
        }

        /* ===== 成功状态 - 简洁风格 ===== */
        .modal-success {
            text-align: center;
            padding: 48px 36px 40px;
        }

        .success-icon-circle {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: #34c759;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 28px;
        }

        .dark .success-icon-circle {
            background: #30d158;
        }

        .modal-success h2 {
            font-size: 22px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
            letter-spacing: -0.021em;
        }

        .modal-success p {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.5;
            max-width: 280px;
            margin: 0 auto;
        }

        /* 内容区 */
        .content-area {
            padding: 28px 40px;
            width: 100%;
            max-width: 1400px;
        }

        /* ===== 搜索区域（蓝色渐变横幅 + 背景图片）===== */
        .search-section {
            text-align: center;
            padding: 50px 32px 36px;
            background: var(--search-bg);
            background-image: url('../search-banner-bg.png');
            background-size: auto;
            background-position: center;
            background-repeat: no-repeat;
            border-radius: var(--radius-lg);
            margin-bottom: 36px;
            position: relative;
            min-height: 200px;
        }
        /* ===== 左右动画装饰 ===== */
        .search-section .bg-left {
            position: absolute;
            left: 20px;
            top: 0;
            bottom: 0;
            width: 260px;
            pointer-events: none;
            z-index: 0;
        }
        .search-section .bg-right {
            position: absolute;
            right: 20px;
            top: 0;
            bottom: 0;
            width: 260px;
            pointer-events: none;
            z-index: 0;
        }
        /* 左侧装饰 - AI芯片/网络节点 */
        .deco-chip {
            position: absolute;
            left: 30px;
            top: 18%;
            width: 56px;
            height: 56px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 12px;
            animation: float-chip 4s ease-in-out infinite, glow-pulse 3s ease-in-out infinite;
        }
        .deco-chip::before {
            content: '';
            position: absolute;
            inset: 6px;
            border: 1.5px solid rgba(255,255,255,0.2);
            border-radius: 8px;
        }
        .deco-chip::after {
            content: '';
            position: absolute;
            top: 50%; left: 50%;
            width: 10px; height: 10px;
            background: rgba(255,255,255,0.5);
            border-radius: 3px;
            transform: translate(-50%, -50%);
        }
        .deco-dot-group {
            position: absolute;
            left: 100px;
            top: 25%;
        }
        .deco-dot-group span {
            display: block;
            width: 6px; height: 6px;
            background: rgba(255,255,255,0.4);
            border-radius: 50%;
            margin: 10px 0;
            animation: float-particle 3s ease-in-out infinite;
        }
        .deco-dot-group span:nth-child(1) { animation-delay: 0s; margin-left: 8px; }
        .deco-dot-group span:nth-child(2) { animation-delay: 0.6s; margin-left: 0px; }
        .deco-dot-group span:nth-child(3) { animation-delay: 1.2s; margin-left: 12px; }
        .deco-connect-line {
            position: absolute;
            left: 65px;
            top: calc(18% + 28px);
            width: 40px;
            height: 1px;
            background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
            transform: rotate(-15deg);
            animation: line-blink 2.5s ease-in-out infinite;
        }
        .deco-orbit {
            position: absolute;
            left: 50px;
            top: 55%;
            width: 50px; height: 50px;
            border: 1.5px dashed rgba(255,255,255,0.18);
            border-radius: 50%;
            animation: spin-slow 20s linear infinite;
        }
        .deco-orbit::after {
            content: '';
            position: absolute;
            top: -4px; left: 50%;
            width: 8px; height: 8px;
            background: rgba(255,255,255,0.5);
            border-radius: 50%;
            transform: translateX(-50%);
        }
        .deco-circle-lg {
            position: absolute;
            left: 10px;
            top: 40%;
            width: 80px; height: 80px;
            border: 1.5px solid rgba(255,255,255,0.12);
            border-radius: 50%;
            animation: float-slow 5s ease-in-out infinite;
        }
        /* 右侧装饰 - 数据流/搜索相关 */
        .deco-ring {
            position: absolute;
            right: 30px;
            top: 20%;
            width: 60px; height: 60px;
            border: 2px solid rgba(255,255,255,0.25);
            border-radius: 50%;
            animation: float-chip 4.5s ease-in-out infinite 0.5s, glow-pulse 3s ease-in-out infinite 0.5s;
        }
        .deco-ring::after {
            content: '';
            position: absolute;
            inset: -6px;
            border: 1px dashed rgba(255,255,255,0.12);
            border-radius: 50%;
            animation: spin-slow 12s linear infinite;
        }
        .deco-bar-group {
            position: absolute;
            right: 105px;
            top: 22%;
        }
        .deco-bar-group span {
            display: block;
            height: 4px;
            background: rgba(255,255,255,0.3);
            border-radius: 2px;
            margin: 8px 0;
            animation: bar-breathe 2.5s ease-in-out infinite;
        }
        .deco-bar-group span:nth-child(1) { width: 32px; animation-delay: 0s; }
        .deco-bar-group span:nth-child(2) { width: 22px; animation-delay: 0.4s; }
        .deco-bar-group span:nth-child(3) { width: 28px; animation-delay: 0.8s; }
        .deco-particles {
            position: absolute;
            right: 50px;
            top: 5%;
        }
        .deco-particles span {
            position: absolute;
            width: 4px; height: 4px;
            background: rgba(255,255,255,0.5);
            border-radius: 50%;
            animation: particle-rise 4s linear infinite;
        }
        .deco-particles span:nth-child(1) { left: 20px; top: 0; animation-delay: 0s; }
        .deco-particles span:nth-child(2) { left: 40px; top: 20px; animation-delay: 1s; }
        .deco-particles span:nth-child(3) { left: 10px; top: 40px; animation-delay: 2s; }
        .deco-particles span:nth-child(4) { left: 35px; top: 60px; animation-delay: 3s; }
        .deco-hex {
            position: absolute;
            right: 20px;
            bottom: 35%;
            width: 40px; height: 40px;
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
            background: rgba(255,255,255,0.12);
            animation: float-slow 6s ease-in-out infinite 1s;
        }
        .deco-circle-sm {
            position: absolute;
            right: 80px;
            bottom: 30%;
            width: 16px; height: 16px;
            border: 1.5px solid rgba(255,255,255,0.2);
            border-radius: 50%;
            animation: float-slow 4s ease-in-out infinite 2s;
        }
        /* 动画关键帧 */
        @keyframes float-chip {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        @keyframes float-slow {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-6px); }
        }
        @keyframes float-particle {
            0%, 100% { transform: translateY(0); opacity: 0.4; }
            50% { transform: translateY(-8px); opacity: 0.8; }
        }
        @keyframes glow-pulse {
            0%, 100% { box-shadow: 0 0 8px rgba(255,255,255,0.1); }
            50% { box-shadow: 0 0 20px rgba(255,255,255,0.25); }
        }
        @keyframes spin-slow {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        @keyframes line-blink {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.8; }
        }
        @keyframes bar-breathe {
            0%, 100% { opacity: 0.3; transform: scaleX(1); }
            50% { opacity: 0.7; transform: scaleX(1.3); }
        }
        @keyframes particle-rise {
            0% { transform: translateY(0); opacity: 0; }
            30% { opacity: 0.6; }
            70% { opacity: 0.6; }
            100% { transform: translateY(-40px); opacity: 0; }
        }
        /* 小屏隐藏装饰 */
        @media (max-width: 768px) {
            .search-section .bg-left,
            .search-section .bg-right { display: none; }
        }
        .search-section h1 {
            font-family: 'KaiTi', 'STKaiti', '楷体', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 4px;
            color: #ffffff;
            position: relative;
            letter-spacing: 3px;
            z-index: 1;
            text-shadow: 0 2px 12px rgba(0,0,0,0.15);
        }
        .search-section h1 .subtitle-sep {
            font-size: 14px;
            font-weight: 400;
            opacity: 0.75;
            margin-left: 10px;
        }

        .search-box-wrapper {
            display: flex;
            max-width: 680px;
            margin: 20px auto 0;
            position: relative;
            background: #ffffff;
            border-radius: 8px;
            box-shadow:
                0 2px 4px rgba(0,0,0,0.04),
                0 8px 24px rgba(0,0,0,0.08);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 100;
        }
        .search-box-wrapper:focus-within {
            box-shadow:
                0 4px 6px rgba(0,0,0,0.03),
                0 12px 36px rgba(65,127,249,0.18);
        }

        .search-engine-select {
            position: relative;
            flex-shrink: 0;
            z-index: 101;
        }
        .search-engine-btn {
            height: 52px;
            padding: 0 14px 0 18px;
            border: none;
            border-radius: 8px 0 0 8px;
            background: transparent;
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 7px;
            transition: background 0.2s;
            white-space: nowrap;
            position: relative;
        }
        .search-engine-btn::after {
            content: '';
            position: absolute;
            right: 0;
            top: 25%;
            height: 50%;
            width: 1px;
            background: var(--border-color);
        }
        .search-engine-btn:hover {
            background: rgba(0,0,0,0.03);
        }

        .search-engine-dropdown {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            box-shadow: var(--card-hover-shadow);
            min-width: 150px;
            padding: 4px;
            display: none;
            z-index: 9999;
        }
        .search-engine-dropdown.show { display: block; }
        .search-engine-option {
            display: flex; align-items: center; gap: 10px;
            padding: 10px 14px; cursor: pointer; font-size: 13px;
            color: var(--text-primary); border-radius: var(--radius-sm);
            transition: background 0.2s;
        }
        .search-engine-option:hover { background: var(--accent-light); }
        .search-engine-option .engine-icon {
            width: 24px; height: 24px; border-radius: var(--radius-sm);
            display: flex; align-items: center; justify-content: center;
            font-size: 12px; color: #fff; flex-shrink: 0;
            font-weight: 600;
        }

        /* 搜索引擎 SVG 图标 */
        .engine-icon-svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            display: inline-block;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
        }

        /* 按钮中的引擎图标 */
        #engineIcon.engine-icon-svg {
            width: 22px;
            height: 22px;
        }

        /* 百度 */
        .engine-icon-svg[data-engine="baidu"] {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%234285f4' d='M16 2C8.27 2 2 8.27 2 16s6.27 14 14 14 14-6.27 14-14S23.73 2 16 2zm6.5 8c1.38 0 2.5 1.12 2.5 2.5S23.88 15 22.5 15 20 13.88 20 12.5s1.12-2.5 2.5-2.5zm-9 1c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm4.5 9c0 2.48-2.02 4.5-4.5 4.5S9 22.48 9 20s2.02-4.5 4.5-4.5 4.5 2.02 4.5 4.5zm7 2c0 1.38-1.12 2.5-2.5 2.5S20 23.38 20 22s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5z'/%3E%3C/svg%3E");
        }

        /* Google */
        .engine-icon-svg[data-engine="google"] {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E");
        }

        /* Bing */
        .engine-icon-svg[data-engine="bing"] {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23008373' d='M3 3v18h18V3H3zm16 16H5V5h14v14z'/%3E%3Cpath fill='%23008373' d='M7 7h4v4H7zm6 0h4v4h-4zm-6 6h4v4H7zm6 0h4v4h-4z'/%3E%3C/svg%3E");
        }

        /* 搜狗 */
        .engine-icon-svg[data-engine="sogou"] {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23ff6a00'/%3E%3Ctext x='16' y='21' text-anchor='middle' fill='white' font-size='14' font-weight='bold'%3E搜%3C/text%3E%3C/svg%3E");
        }

        /* 360 */
        .engine-icon-svg[data-engine="360"] {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%2310b981'/%3E%3Ctext x='16' y='21' text-anchor='middle' fill='white' font-size='12' font-weight='bold'%3E360%3C/text%3E%3C/svg%3E");
        }

        /* 头条 */
        .engine-icon-svg[data-engine="toutiao"] {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='4' y='4' width='24' height='24' rx='4' fill='%23e74c3c'/%3E%3Ctext x='16' y='22' text-anchor='middle' fill='white' font-size='16' font-weight='bold'%3E头%3C/text%3E%3C/svg%3E");
        }

        /* 站内搜索 */
        .engine-icon-svg[data-engine="site-search"] {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235436da' d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
        }

        .search-input-wrap {
            flex: 1; display: flex; position: relative;
        }
        .search-input-wrap input {
            flex: 1; height: 52px;
            padding: 0 56px 0 18px;
            border: none;
            border-radius: 0 8px 8px 0;
            background: transparent;
            color: var(--text-primary);
            font-size: 15px; outline: none;
        }
        .search-input-wrap input::placeholder {
            color: #bcc2c9;
            font-size: 14px;
        }
        .search-input-wrap button {
            position: absolute; right: 8px; top: 8px;
            height: 36px; min-width: 80px;
            border: none;
            background: #4285f4;
            color: #fff;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s ease;
            display: flex; align-items: center; justify-content: center;
            padding: 0 18px;
            letter-spacing: 0.5px;
        }
        .search-input-wrap button:hover {
            opacity: 0.9;
            box-shadow: 0 3px 12px rgba(0,0,0,0.2);
        }
        .search-input-wrap button:active {
            transform: scale(0.97);
        }

        /* 搜索引擎按钮颜色 */
        .search-input-wrap button.engine-baidu { background: #4285f4; }
        .search-input-wrap button.engine-baidu:hover { box-shadow: 0 3px 12px rgba(66,133,244,0.3); }

        .search-input-wrap button.engine-google { background: #ea4335; }
        .search-input-wrap button.engine-google:hover { box-shadow: 0 3px 12px rgba(234,67,53,0.3); }

        .search-input-wrap button.engine-bing { background: #008373; }
        .search-input-wrap button.engine-bing:hover { box-shadow: 0 3px 12px rgba(0,131,115,0.3); }

        .search-input-wrap button.engine-sogou { background: #ff6a00; }
        .search-input-wrap button.engine-sogou:hover { box-shadow: 0 3px 12px rgba(255,106,0,0.3); }

        .search-input-wrap button.engine-360 { background: #10b981; }
        .search-input-wrap button.engine-360:hover { box-shadow: 0 3px 12px rgba(16,185,129,0.3); }

        .search-input-wrap button.engine-toutiao { background: #e74c3c; }
        .search-input-wrap button.engine-toutiao:hover { box-shadow: 0 3px 12px rgba(231,76,60,0.3); }

        .search-input-wrap button.engine-site-search { background: #5436da; }
        .search-input-wrap button.engine-site-search:hover { box-shadow: 0 3px 12px rgba(84,54,218,0.3); }

        .click-history {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 18px;
            position: relative;
            z-index: 1;
            min-height: 18px;
        }
        .click-history .click-label {
            color: rgba(255,255,255,0.55);
            font-size: 13px;
            display: flex;
            align-items: center;
            white-space: nowrap;
        }
        .click-history .click-item {
            display: flex;
            align-items: center;
            gap: 5px;
            color: rgba(255,255,255,0.85);
            font-size: 13px;
            text-decoration: none;
            padding: 4px 12px;
            background: rgba(255,255,255,0.1);
            border-radius: 10px;
            transition: all 0.2s;
            cursor: pointer;
        }
        .click-history .click-item:hover {
            color: #fff;
            background: rgba(255,255,255,0.2);
            transform: translateY(-1px);
        }
        .click-history .click-item .ci-icon {
            font-size: 14px;
        }
        .click-history .click-item .ci-icon-img {
            width: 14px;
            height: 14px;
            border-radius: 3px;
            object-fit: cover;
            flex-shrink: 0;
        }
        .click-history .click-item .ci-name {
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .click-history .click-empty {
            color: rgba(255,255,255,0.35);
            font-size: 13px;
        }

        /* 站内搜索结果样式 */
        .search-results-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .search-results-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 0;
            border-bottom: 2px solid var(--border-color);
            margin-bottom: 30px;
        }

        .search-results-header h2 {
            margin: 0;
            font-size: 24px;
            color: var(--text-primary);
            font-weight: 600;
        }

        .results-count {
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 500;
        }

        .back-to-home {
            padding: 8px 20px;
            background: var(--accent);
            color: #fff;
            border: none;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: background 0.2s;
        }

        .back-to-home:hover {
            background: var(--accent-dark);
        }

        .search-results-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .search-result-item {
            display: flex;
            gap: 15px;
            padding: 20px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            transition: all 0.3s;
        }

        .search-result-item:hover {
            border-color: var(--accent);
            box-shadow: var(--card-hover-shadow);
            transform: translateY(-2px);
        }

        .result-number {
            flex-shrink: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--accent-light);
            color: var(--accent);
            border-radius: 50%;
            font-weight: 600;
            font-size: 14px;
        }

        .result-content {
            flex: 1;
            min-width: 0;
        }

        .result-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }

        .result-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--accent);
            text-decoration: none;
            transition: color 0.2s;
        }

        .result-title:hover {
            color: var(--accent-dark);
            text-decoration: underline;
        }

        .result-category {
            padding: 4px 12px;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            font-size: 12px;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .result-description {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 12px;
        }

        .result-meta {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .result-score {
            font-size: 12px;
            color: var(--text-secondary);
            background: var(--bg-primary);
            padding: 4px 8px;
            border-radius: var(--radius-sm);
        }

        .search-highlight {
            background: rgba(84, 54, 218, 0.2);
            color: var(--accent);
            padding: 2px 4px;
            border-radius: 3px;
            font-weight: 500;
        }

        .no-results {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-secondary);
        }

        .no-results-icon {
            font-size: 64px;
            margin-bottom: 20px;
            opacity: 0.5;
        }

        .no-results h3 {
            font-size: 20px;
            margin: 0 0 10px 0;
            color: var(--text-primary);
        }

        .no-results p {
            margin: 0 0 20px 0;
            font-size: 14px;
        }

        .search-suggestions {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .search-suggestions span {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .search-suggestions a {
            padding: 6px 14px;
            background: var(--accent-light);
            color: var(--accent);
            border-radius: var(--radius-sm);
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s;
        }

        .search-suggestions a:hover {
            background: var(--accent);
            color: #fff;
        }

        .categories-grid-section {
            margin-top: 40px;
            padding-top: 30px;
            border-top: 1px solid var(--border-color);
        }

        .categories-grid-section h3 {
            text-align: center;
            margin-bottom: 20px;
            color: var(--text-primary);
            font-size: 18px;
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }

        .category-result-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 15px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            text-decoration: none;
            transition: all 0.3s;
        }

        .category-result-card:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
            box-shadow: var(--card-hover-shadow);
        }

        .category-result-icon {
            font-size: 28px;
            flex-shrink: 0;
        }

        .category-result-info {
            flex: 1;
        }

        .category-result-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .category-result-count {
            font-size: 12px;
            color: var(--text-secondary);
        }

        /* 搜索建议样式 */
        .search-suggestions-box {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            box-shadow: var(--card-hover-shadow);
            max-height: 300px;
            overflow-y: auto;
            z-index: 100;
            margin-top: 4px;
        }

        .search-suggestion-item {
            padding: 12px 16px;
            cursor: pointer;
            transition: background 0.2s;
            font-size: 14px;
            color: var(--text-primary);
            border-bottom: 1px solid var(--border-color);
        }

        .search-suggestion-item:last-child {
            border-bottom: none;
        }

        .search-suggestion-item:hover {
            background: var(--accent-light);
        }

        .search-suggestion-item mark {
            background: rgba(84, 54, 218, 0.2);
            color: var(--accent);
            padding: 2px 4px;
            border-radius: 3px;
            font-weight: 500;
        }

        /* 快捷入口 */
        .quick-entry {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 18px;
        }

        .quick-entry a {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 5px 14px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            font-size: 12px;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.2s;
            font-weight: 500;
        }

        .quick-entry a:hover {
            border-color: var(--orange);
            color: var(--orange);
            background: var(--orange-light);
        }

        /* ===== 热榜区域（搜索框下方，多平台并列展示）===== */
        .hero-hotlist-section {
            margin-bottom: 40px;
        }
        .hero-hotlist-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 22px;
        }
        .hero-hotlist-section-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
        }
        .hero-hotlist-refresh {
            font-size: 13px;
            padding: 6px 14px;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            background: var(--bg-secondary);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
        }
        .hero-hotlist-refresh:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-light);
        }
        .hero-hotlist-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .hero-hotlist-custom {
            font-size: 13px;
            padding: 6px 14px;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            background: var(--bg-secondary);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
        }
        .hero-hotlist-custom:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-light);
        }

        /* 热榜网格：响应式多列布局 */
        .hero-hotlist-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
        }
        @media (max-width: 1200px) {
            .hero-hotlist-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 768px) {
            .hero-hotlist-grid {
                grid-template-columns: 1fr;
            }
        }

        /* 单个热榜卡片 */
        .hero-hot-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            overflow: hidden;
            transition: all 0.25s;
        }
        .hero-hot-card:hover {
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
        }
        .hero-hot-card-header {
            display: flex;
            align-items: center;
            gap: 2px;
            padding: 8px 12px;
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .hero-hot-card-header::-webkit-scrollbar { display: none; }
        /* 卡片内 Tab 按钮 */
        .hero-hot-card-tab {
            flex: 1;
            padding: 7px 12px;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            background: transparent;
            border: none;
            border-radius: var(--radius-sm);
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s;
            text-align: center;
        }
        .hero-hot-card-tab:hover {
            color: var(--text-primary);
            background: var(--bg-primary);
        }
        .hero-hot-card-tab.active {
            color: var(--orange);
            font-weight: 600;
        }
        .hero-hot-card-icon {
            width: 24px;
            height: 24px;
            border-radius: var(--radius-sm);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            vertical-align: middle;
            margin-right: 2px;
        }
        .hero-hot-card-name {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
            flex: 1;
        }
        .hero-hot-card-count {
            font-size: 12px;
            color: var(--text-secondary);
        }

        /* 热榜卡片列表 */
        .hero-hot-card-list {
            padding: 2px 0;
        }
        .hero-hot-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            text-decoration: none;
            color: var(--text-primary);
            transition: all 0.2s;
            cursor: pointer;
            border-radius: var(--radius-sm);
        }
        .hero-hot-item:hover {
            background: var(--accent-light);
        }
        .hero-hot-rank {
            width: 24px;
            height: 24px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 700;
            flex-shrink: 0;
            color: #fff;
        }
        .hero-hot-rank.r1 { background: #ef4444; }
        .hero-hot-rank.r2 { background: #f97316; }
        .hero-hot-rank.r3 { background: #eab308; }
        .hero-hot-rank.rn { background: #94a3b8; }
        .hero-hot-item-title {
            flex: 1;
            font-size: 14px;
            font-weight: 500;
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .hero-hot-item-num {
            font-size: 12px;
            color: var(--text-secondary);
            flex-shrink: 0;
        }
        .hero-hot-item-num.high { color: #ef4444; }
        .hero-hot-more {
            display: block;
            text-align: center;
            padding: 8px 14px;
            font-size: 13px;
            color: var(--accent);
            text-decoration: none;
            border-top: 1px solid var(--border-color);
            transition: all 0.2s;
        }
        .hero-hot-more:hover { color: #e05d20; background: var(--bg-primary); }
        .hero-hotlist-empty {
            grid-column: 1 / -1;
            text-align: center;
            padding: 40px 16px;
            color: var(--text-secondary);
            font-size: 13px;
        }

        /* 分类区块——滚动定位时避开吸顶 header */
        .category-section {
            scroll-margin-top: calc(var(--header-height) + 16px);
        }

        /* 分类标题 */
        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 48px 0 24px;
            padding-bottom: 14px;
            border-bottom: 1px solid var(--border-color);
        }

        .section-header .section-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 22px;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: 0.3px;
        }
        .section-header .section-title .s-icon {
            font-size: 22px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        }

        .section-header .more-link {
            color: var(--text-secondary);
            font-size: 13px;
            text-decoration: none;
            padding: 7px 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 26px;
            transition: all 0.2s;
            font-weight: 500;
        }
        .section-header .more-link:hover {
            color: var(--orange);
            border-color: var(--orange);
            background: var(--orange-light);
        }

        /* 工具卡片网格 */
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 18px;
        }

        /* 最近点击横向滚动 */
        .recent-scroll {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding: 4px 0 8px;
            scrollbar-width: thin;
            scrollbar-color: var(--border-color) transparent;
        }
        .recent-scroll::-webkit-scrollbar { height: 4px; }
        .recent-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
        .recent-item {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 8px 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            cursor: pointer;
            text-decoration: none;
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 400;
            transition: all 0.2s;
            white-space: nowrap;
            box-shadow: 0 1px 2px rgba(0,0,0,0.02);
        }
        .recent-item:hover {
            border-color: var(--accent);
            background: var(--accent-light);
            transform: translateY(-1px);
            box-shadow: 0 2px 10px rgba(65,127,249,0.08);
        }
        .recent-icon {
            font-size: 18px;
            flex-shrink: 0;
        }
        .recent-icon-img {
            width: 18px;
            height: 18px;
            border-radius: 4px;
            object-fit: cover;
            flex-shrink: 0;
        }
        .recent-name {
            font-weight: 500;
        }

        /* ===== 今日热榜 ===== */
        .hotlist-container {
            max-width: 1400px;
            margin: 0 auto;
        }
        .hotlist-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 12px;
        }
        .hotlist-title {
            font-size: 22px;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .hotlist-time {
            font-size: 12px;
            color: var(--text-secondary);
            font-weight: 400;
        }
        .hotlist-refresh-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 14px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .hotlist-refresh-btn:hover {
            border-color: var(--accent);
            background: var(--accent-light);
        }
        .hotlist-refresh-btn.spinning { animation: spin 0.8s linear infinite; }
        .hotlist-header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .hotlist-custom-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 14px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .hotlist-custom-btn:hover {
            border-color: var(--accent);
            background: var(--accent-light);
        }
        @keyframes spin { 100% { transform: rotate(360deg); } }
        .hotlist-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 14px;
        }
        @media (max-width: 768px) {
            .hotlist-grid { grid-template-columns: 1fr; }
        }
        .hotlist-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            overflow: hidden;
            transition: all 0.2s;
        }
        .hotlist-card:hover {
            border-color: var(--accent);
            box-shadow: 0 2px 12px rgba(0,0,0,0.05);
        }
        .hotlist-card-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 14px;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-primary);
        }
        .hotlist-platform-icon {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }
        .hotlist-platform-name {
            font-weight: 500;
            font-size: 14px;
            color: var(--text-primary);
        }
        .hotlist-platform-badge {
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            background: var(--accent-light);
            color: var(--accent);
            font-weight: 500;
        }
        .hotlist-items {
            padding: 4px 0;
        }
        .hotlist-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            text-decoration: none;
            color: var(--text-primary);
            transition: background 0.12s;
            cursor: pointer;
        }
        .hotlist-item:hover {
            background: var(--accent-light);
        }
        .hotlist-rank {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
            flex-shrink: 0;
            color: #fff;
        }
        .hotlist-rank.r1 { background: #ef4444; }
        .hotlist-rank.r2 { background: #f97316; }
        .hotlist-rank.r3 { background: #eab308; }
        .hotlist-rank.rn { background: #94a3b8; }
        .hotlist-item-title {
            flex: 1;
            font-size: 13px;
            line-height: 1.35;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .hotlist-item-hot {
            font-size: 11px;
            color: var(--text-secondary);
            flex-shrink: 0;
            white-space: nowrap;
        }
        .hotlist-item-hot.high { color: #ef4444; }
        .hotlist-loading {
            text-align: center;
            padding: 60px;
            color: var(--text-secondary);
            font-size: 16px;
        }

        /* ===== 热榜下方快捷导航（top站点 + hot工具） ===== */
        .quick-links-grid {
            display: grid;
            grid-template-columns: 1.6fr 1fr;
            gap: 18px;
            margin-top: 28px;
            margin-bottom: 40px;
        }
        .quick-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 16px;
            transition: all 0.2s;
        }
        .quick-card:hover {
            border-color: var(--accent);
            box-shadow: 0 2px 12px rgba(0,0,0,0.05);
        }
        .quick-card-wide {
            min-height: auto;
        }
        .quick-card-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 14px;
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
        }
        .quick-card-icon {
            font-size: 17px;
        }
        .quick-card-count {
            font-size: 12px;
            color: var(--text-secondary);
            margin-left: auto;
            font-weight: 400;
        }
        .quick-links {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
            gap: 8px;
        }
        .quick-links-tools {
            grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
        }
        .quick-link {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 9px 10px;
            border-radius: 8px;
            text-decoration: none;
            color: var(--text-primary);
            background: var(--bg-primary);
            transition: all 0.2s;
            font-size: 13px;
            border: 1px solid transparent;
            white-space: nowrap;
            overflow: hidden;
        }
        .quick-link:hover {
            background: var(--accent-light);
            color: var(--accent);
            border-color: var(--accent);
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(74,125,243,0.1);
        }
        .quick-link-icon {
            font-size: 16px;
            flex-shrink: 0;
            width: 20px;
            height: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 3px;
            object-fit: contain;
        }
        .quick-link-name {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .quick-link-top {
            justify-content: center;
            font-size: 13px;
            font-weight: 500;
        }
        .quick-more {
            display: block;
            text-align: center;
            margin-top: 12px;
            padding: 8px 0 2px;
            font-size: 13px;
            color: var(--accent);
            text-decoration: none;
            border-top: 1px dashed var(--border-color);
            transition: all 0.2s;
            font-weight: 500;
        }
        .quick-more:hover { color: #e05d20; opacity: 1; }

        /* 定制按钮 */
        .quick-card-custom {
            margin-left: auto;
            padding: 3px 10px;
            border: 1px solid var(--border-color);
            border-radius: 14px;
            background: var(--bg-primary);
            color: var(--text-secondary);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .quick-card-custom:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-light);
        }

        /* 定制弹窗 */
        .ql-customize-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.45);
            z-index: 10000;
            align-items: center;
            justify-content: center;
        }
        .ql-customize-overlay.show {
            display: flex;
        }
        .ql-customize-dialog {
            background: var(--bg-secondary);
            border-radius: 14px;
            width: 440px;
            max-width: 92vw;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 60px rgba(0,0,0,0.2);
        }
        .ql-customize-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 18px 20px 14px;
            border-bottom: 1px solid var(--border-color);
        }
        .ql-customize-header h3 {
            margin: 0;
            font-size: 17px;
            font-weight: 700;
            color: var(--text-primary);
        }
        .ql-customize-close {
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 8px;
            background: transparent;
            font-size: 22px;
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
            line-height: 1;
        }
        .ql-customize-close:hover {
            background: #fee2e2;
            color: #ef4444;
        }
        .ql-customize-body {
            padding: 16px 20px;
            overflow-y: auto;
            flex: 1;
            max-height: 52vh;
        }
        .ql-customize-hint {
            margin: 0 0 14px;
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
        }
        .ql-customize-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .ql-customize-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 12px;
            border-radius: 8px;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            transition: all 0.15s;
        }
        .ql-customize-item:hover {
            border-color: var(--accent);
        }
        .ql-customize-item.is-hidden {
            opacity: 0.45;
        }
        .ql-customize-item.is-hidden:hover {
            opacity: 0.7;
        }
        .ql-customize-item-check {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            flex: 1;
            user-select: none;
        }
        .ql-customize-item-check input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: var(--accent);
            cursor: pointer;
        }
        .ql-customize-item-icon {
            font-size: 18px;
            flex-shrink: 0;
            width: 22px;
            text-align: center;
        }
        .ql-customize-item-name {
            font-size: 14px;
            color: var(--text-primary);
        }
        .ql-customize-item-arrows {
            display: flex;
            gap: 4px;
        }
        .ql-arrow-btn {
            width: 30px;
            height: 30px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: var(--bg-primary);
            color: var(--text-secondary);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.15s;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }
        .ql-arrow-btn:hover:not(:disabled) {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-light);
        }
        .ql-arrow-btn:disabled {
            opacity: 0.2;
            cursor: not-allowed;
        }
        .ql-customize-footer {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            padding: 14px 20px 18px;
            border-top: 1px solid var(--border-color);
        }
        .ql-customize-reset {
            padding: 8px 16px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: var(--bg-primary);
            color: var(--text-secondary);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .ql-customize-reset:hover {
            border-color: var(--accent);
            color: var(--accent);
        }
        .ql-customize-save {
            padding: 8px 20px;
            border: none;
            border-radius: 8px;
            background: var(--accent);
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .ql-customize-save:hover {
            background: #3b6fd4;
            box-shadow: 0 4px 14px rgba(74,125,243,0.3);
        }

        /* 定制弹窗 Tabs */
        .ql-customize-tabs {
            display: flex;
            gap: 0;
            border-bottom: 1px solid var(--border-color);
            padding: 0 20px;
        }
        .ql-customize-tab {
            padding: 10px 20px;
            border: none;
            background: none;
            font-size: 14px;
            color: var(--text-secondary);
            cursor: pointer;
            border-bottom: 2px solid transparent;
            margin-bottom: -1px;
            transition: all 0.2s;
            font-weight: 500;
        }
        .ql-customize-tab.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
        }
        .ql-customize-tab:hover:not(.active) {
            color: var(--text-primary);
        }
        .ql-customize-tab-panel {
            display: none;
        }
        .ql-customize-tab-panel.active {
            display: block;
        }

        /* 浏览添加 - 搜索 */
        .ql-browse-search {
            margin-bottom: 12px;
        }
        .ql-browse-search-input {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 14px;
            background: var(--bg-primary);
            color: var(--text-primary);
            outline: none;
            transition: border-color 0.2s;
            box-sizing: border-box;
        }
        .ql-browse-search-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(74,125,243,0.1);
        }
        .ql-browse-search-input::placeholder {
            color: var(--text-secondary);
        }

        /* 浏览添加 - 分类筛选 */
        .ql-browse-cats {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 12px;
        }
        .ql-browse-cat {
            padding: 4px 12px;
            border: 1px solid var(--border-color);
            border-radius: 14px;
            background: var(--bg-primary);
            color: var(--text-secondary);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .ql-browse-cat.active {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }
        .ql-browse-cat:hover:not(.active) {
            border-color: var(--accent);
            color: var(--accent);
        }

        /* 浏览添加 - 站点网格 */
        .ql-browse-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
            max-height: 260px;
            overflow-y: auto;
        }
        .ql-browse-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border-radius: 8px;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            transition: all 0.15s;
        }
        .ql-browse-item:hover {
            border-color: var(--accent);
        }
        .ql-browse-item.is-added {
            background: var(--accent-light);
        }
        .ql-browse-icon {
            font-size: 16px;
            width: 20px;
            text-align: center;
            flex-shrink: 0;
        }
        .ql-browse-icon-img {
            width: 20px;
            height: 20px;
            border-radius: 3px;
            object-fit: contain;
            flex-shrink: 0;
        }
        .ql-browse-name {
            flex: 1;
            font-size: 13px;
            color: var(--text-primary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .ql-browse-add {
            padding: 3px 10px;
            border: 1px solid var(--accent);
            border-radius: 12px;
            background: transparent;
            color: var(--accent);
            font-size: 12px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s;
        }
        .ql-browse-add:hover {
            background: var(--accent);
            color: #fff;
        }
        .ql-browse-add.is-added {
            background: #e0e7ff;
            border-color: #c7d2fe;
            color: #6366f1;
            cursor: pointer;
        }
        .ql-browse-add.is-added:hover {
            background: #fecaca;
            border-color: #fca5a5;
            color: #ef4444;
        }
        .ql-browse-empty {
            text-align: center;
            padding: 30px 0;
            color: var(--text-secondary);
            font-size: 13px;
        }

        /* 浏览添加 - 分割线 */
        .ql-browse-divider {
            display: flex;
            align-items: center;
            margin: 16px 0 12px;
            color: var(--text-secondary);
            font-size: 12px;
        }
        .ql-browse-divider::before,
        .ql-browse-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border-color);
        }
        .ql-browse-divider span {
            padding: 0 12px;
            white-space: nowrap;
        }

        /* 手动录入表单 */
        .ql-manual-form {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .ql-manual-row {
            display: flex;
            gap: 8px;
        }
        .ql-manual-input {
            flex: 1;
            padding: 9px 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 13px;
            background: var(--bg-primary);
            color: var(--text-primary);
            outline: none;
            transition: border-color 0.2s;
            box-sizing: border-box;
        }
        .ql-manual-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(74,125,243,0.1);
        }
        .ql-manual-input::placeholder {
            color: var(--text-secondary);
        }
        .ql-manual-icon {
            max-width: 70px;
            text-align: center;
        }
        .ql-manual-submit {
            padding: 9px 16px;
            border: none;
            border-radius: 8px;
            background: var(--accent);
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .ql-manual-submit:hover {
            background: #3b6fd4;
            box-shadow: 0 4px 14px rgba(74,125,243,0.3);
        }
        .ql-manual-hint {
            margin: 4px 0 0;
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.4;
        }

        @media (max-width: 768px) {
            .quick-links-grid { grid-template-columns: 1fr; }
            .quick-links { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
            .quick-links-tools { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
            .ql-customize-dialog { width: 96vw; max-height: 88vh; }
            .ql-customize-tab { padding: 10px 14px; font-size: 13px; }
            .ql-browse-grid { grid-template-columns: 1fr; }
        }

        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 18px;
        }

        .tool-card {
            background: var(--bg-secondary);
            border-radius: 12px;
            padding: 22px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            display: flex;
            flex-direction: column;
            gap: 12px;
            position: relative;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
            border: 1px solid var(--border-color);
        }
        .tool-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
        }
        .tool-card:hover .tool-name {
            color: var(--orange);
            text-decoration: underline;
        }

        .tool-card .card-top {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }
        .tool-card .tool-avatar {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
            font-weight: 700;
            color: #fff;
            overflow: hidden;
        }
        .tool-card .tool-avatar-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .tool-card .tool-avatar-emoji {
            font-size: 18px;
            line-height: 36px;
        }
        .tool-card .tool-info {
            flex: 1;
            min-width: 0;
        }
        .tool-card .tool-name {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 6px;
            transition: color 0.2s;
            margin-bottom: 4px;
        }
        .tool-card .tool-badges {
            display: flex;
            gap: 4px;
        }

        .badge {
            font-size: 10px;
            padding: 2px 7px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            letter-spacing: 0.3px;
        }
        .badge-hot { background: var(--hot-bg); color: var(--hot-color); }
        .badge-new { background: var(--new-bg); color: var(--new-color); }
        .badge-cn { background: var(--tag-bg); color: var(--tag-color); }

        .tool-card .tool-desc {
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.55;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .tool-card .card-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }
        .tool-card .card-tag {
            font-size: 12px;
            padding: 0 8px;
            background: var(--tag-bg);
            color: var(--tag-color);
            border-radius: 3px;
        }

        /* 页脚 */
        .footer {
            text-align: center;
            padding: 32px 24px;
            color: var(--text-secondary);
            font-size: 13px;
            border-top: 1px solid var(--border-color);
            margin-top: 32px;
        }

        .footer-links {
            display: flex;
            gap: 16px;
            justify-content: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
        }

        .footer-links a:hover {
            color: var(--accent);
        }

        /* 移动端遮罩 */
        .sidebar-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 99;
        }

        .sidebar-overlay.show {
            display: block;
        }

        /* ===== 响应式 ===== */
        @media (max-width: 1024px) {
            .tools-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .sidebar-overlay.show {
                display: block;
            }

            .main-content {
                margin-left: 0;
            }

            .menu-toggle {
                display: block;
            }

            .content-area {
                padding: 20px;
            }

            .search-section h1 {
                font-size: 22px;
            }

            .tools-grid {
                grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
                gap: 12px;
            }

            .top-bar .quick-links {
                display: none;
            }

            .top-bar {
                padding: 0 16px;
            }
        }

        /* ===== 登录/注册弹窗 - Apple/Google 简洁风格 ===== */
        .auth-modal .modal-dialog { 
            max-width: 380px;
            padding: 0;
            overflow: hidden;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 
                0 22px 70px 4px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.05);
        }

        .dark .auth-modal .modal-dialog {
            background: rgba(30, 30, 30, 0.95);
            box-shadow: 
                0 22px 70px 4px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.05);
        }

        /* 登录/注册头部样式 - 极简 */
        .auth-modal #loginForm,
        .auth-modal #registerForm {
            padding: 48px 40px 40px;
        }

        .auth-modal h3 {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--text-primary);
            letter-spacing: -0.021em;
            text-align: center;
            display: block;
        }

        .auth-modal h3 span[data-i18n] {
            display: inline;
        }

        .auth-modal .modal-subtitle {
            font-size: 15px;
            color: var(--text-secondary);
            margin-bottom: 32px;
            line-height: 1.4;
            text-align: center;
            font-weight: 400;
        }

        /* 表单组样式 - 简洁 */
        .auth-modal .form-group { 
            margin-bottom: 16px;
            position: relative;
        }

        .auth-modal .form-group label {
            display: block;
            font-size: 12px;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .auth-modal .form-group input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: var(--bg-primary);
            color: var(--text-primary);
            font-size: 16px;
            font-family: inherit;
            outline: none;
            transition: all 0.2s ease;
            -webkit-appearance: none;
        }

        .auth-modal .form-group input:hover {
            border-color: #c7c7cc;
        }

        .dark .auth-modal .form-group input:hover {
            border-color: #48484a;
        }

        .auth-modal .form-group input:focus {
            border-color: #007aff;
            box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
        }

        /* 验证码组样式 */
        .auth-modal .captcha-group { 
            display: flex; 
            gap: 10px; 
            align-items: flex-end; 
        }
        .auth-modal .captcha-group input { 
            flex: 1; 
        }
        .auth-modal .captcha-img { 
            height: 46px; 
            cursor: pointer; 
            border: 1px solid var(--border-color); 
            border-radius: 10px; 
            min-width: 100px; 
            background: var(--bg-primary);
            display: flex; 
            align-items: center; 
            justify-content: center;
            transition: all 0.2s ease;
            overflow: hidden;
        }

        .auth-modal .captcha-img:hover {
            border-color: #007aff;
        }

        .auth-modal .captcha-img svg { 
            width: 100%; 
            height: 100%;
        }

        /* 密码提示 - 极简 */
        .auth-modal .password-hint { 
            font-size: 11px; 
            color: var(--text-secondary); 
            margin-top: 4px;
            padding-left: 2px;
            font-weight: 400;
        }

        /* 按钮区域 - Apple风格 */
        .auth-modal .modal-actions {
            margin-top: 24px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .auth-modal .modal-actions button {
            width: 100%;
            padding: 12px 20px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s ease;
            border: none;
            -webkit-appearance: none;
        }

        .auth-modal .modal-cancel {
            background: transparent;
            color: #007aff;
            border: none;
            order: 2;
        }

        .auth-modal .modal-cancel:hover {
            background: rgba(0, 122, 255, 0.05);
        }

        .auth-modal .modal-submit {
            background: #007aff;
            color: #fff;
            order: 1;
        }

        .auth-modal .modal-submit:hover {
            background: #0051d5;
        }

        .auth-modal .modal-submit:active {
            transform: scale(0.98);
        }

        /* 切换链接 - 简洁 */
        .auth-modal .auth-switch { 
            text-align: center; 
            font-size: 14px; 
            color: var(--text-secondary); 
            margin-top: 20px;
            padding-top: 0;
            border-top: none;
            font-weight: 400;
        }

        .auth-modal .auth-switch a { 
            color: #007aff;
            cursor: pointer; 
            text-decoration: none;
            font-weight: 500;
            margin-left: 4px;
            transition: opacity 0.2s ease;
        }

        .auth-modal .auth-switch a:hover {
            opacity: 0.7;
        }

        /* 输入框状态 - 简洁 */
        .auth-modal input.input-error { 
            border-color: #ff3b30 !important; 
            box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15) !important;
        }

        .auth-modal input.input-valid { 
            border-color: #34c759 !important; 
            box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.15) !important;
        }

        /* 关闭按钮 - 简洁 */
        .auth-modal .modal-close-btn {
            top: 16px;
            right: 16px;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.05);
            border: none;
            color: var(--text-secondary);
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .dark .auth-modal .modal-close-btn {
            background: rgba(255, 255, 255, 0.1);
        }

        .auth-modal .modal-close-btn:hover {
            background: rgba(0, 0, 0, 0.1);
            color: var(--text-primary);
            transform: none;
        }

        /* 响应式 */
        @media (max-width: 480px) {
            .auth-modal .modal-dialog {
                max-width: 100%;
                margin: 16px;
                border-radius: 16px;
            }
            .auth-modal #loginForm,
            .auth-modal #registerForm {
                padding: 40px 28px 32px;
            }
            .auth-modal h3 {
                font-size: 22px;
            }
        }

        /* ================================================================
           管理员后台 - 全新现代化设计
           ================================================================ */
        .admin-panel {
            position: fixed; inset: 0; background: var(--bg-primary);
            z-index: 300; display: none; flex-direction: column;
            animation: adminFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .admin-panel.show { display: flex; }
        @keyframes adminFadeIn { from { opacity: 0; transform: scale(0.99); } to { opacity: 1; transform: scale(1); } }

        /* ---- Admin 顶部栏 ---- */
        .admin-header {
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border-color);
            padding: 0 28px; display: flex; align-items: center;
            justify-content: space-between; flex-shrink: 0; height: 56px;
            position: relative; z-index: 2;
        }
        .admin-header::after {
            content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
            height: 1px; background: linear-gradient(90deg, var(--accent), #8b5cf6, var(--accent));
            opacity: 0; transition: opacity 0.3s;
        }
        .admin-panel.show .admin-header::after { opacity: 1; }
        .admin-header h2 {
            font-size: 17px; display: flex; align-items: center; gap: 10px;
            font-weight: 700; color: var(--text-primary); margin: 0;
            letter-spacing: -0.2px;
        }
        .admin-header h2 .admin-logo-dot {
            display: inline-block; width: 32px; height: 32px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
            display: flex; align-items: center; justify-content: center;
            font-size: 16px; color: #fff; flex-shrink: 0;
            box-shadow: 0 3px 12px rgba(99,102,241,0.3);
        }
        .admin-header .admin-actions { display: flex; align-items: center; gap: 10px; }
        .admin-header .admin-close {
            background: none; border: none; font-size: 18px; cursor: pointer;
            color: var(--text-secondary); width: 36px; height: 36px;
            border-radius: 10px; transition: all 0.2s;
            display: flex; align-items: center; justify-content: center;
            font-weight: 600;
        }
        .admin-header .admin-close:hover { background: #fee2e2; color: #ef4444; }

        /* ---- Admin 主体布局 ---- */
        .admin-body {
            flex: 1; overflow: hidden; display: flex; gap: 0;
        }

        /* ---- Admin 侧边栏 ---- */
        .admin-sidebar {
            width: 220px; flex-shrink: 0; background: var(--bg-secondary);
            border-right: 1px solid var(--border-color); padding: 16px 0;
            overflow-y: auto; display: flex; flex-direction: column;
            scrollbar-width: thin; scrollbar-color: var(--border-color) transparent;
        }
        .admin-sidebar::-webkit-scrollbar { width: 5px; }
        .admin-sidebar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
        .admin-sidebar .sidebar-group-label {
            font-size: 10px; font-weight: 700; color: var(--text-secondary);
            text-transform: uppercase; letter-spacing: 1.8px;
            padding: 16px 20px 8px; opacity: 0.5;
        }
        .admin-sidebar .admin-nav-item {
            display: flex; align-items: center; gap: 10px;
            padding: 9px 20px; margin: 1px 12px; border-radius: 10px;
            cursor: pointer; font-size: 13px; color: var(--text-secondary);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            border: none; background: none; text-align: left;
            width: calc(100% - 24px); font-family: inherit; font-weight: 500;
            position: relative;
        }
        .admin-sidebar .admin-nav-item .nav-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
        .admin-sidebar .admin-nav-item:hover { background: var(--accent-light); color: var(--accent); }
        .admin-sidebar .admin-nav-item.active {
            background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
            color: #fff; font-weight: 600; box-shadow: 0 3px 12px rgba(99,102,241,0.3);
        }
        .admin-sidebar .admin-nav-item.active .nav-icon { filter: brightness(1.2); }
        .admin-sidebar .admin-nav-item .nav-badge {
            margin-left: auto; background: #ef4444; color: #fff;
            font-size: 10px; padding: 2px 7px; border-radius: 10px;
            font-weight: 700; min-width: 20px; text-align: center;
            box-shadow: 0 2px 6px rgba(239,68,68,0.3);
        }
        .admin-sidebar .admin-nav-item .nav-badge-dot {
            margin-left: auto; width: 8px; height: 8px; border-radius: 50%;
            background: var(--accent); flex-shrink: 0;
        }

        /* ---- Admin 内容区 ---- */
        .admin-content {
            flex: 1; min-width: 0; overflow-y: auto;
            padding: 28px 32px 48px; background: var(--bg-primary);
            scrollbar-width: thin; scrollbar-color: var(--border-color) transparent;
        }
        .admin-content::-webkit-scrollbar { width: 6px; }
        .admin-content::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

        /* ---- 页面标题 ---- */
        .admin-content h3 {
            font-size: 22px; margin-bottom: 24px; color: var(--text-primary);
            font-weight: 700; display: flex; align-items: center; gap: 10px;
            letter-spacing: -0.3px;
        }
        .admin-content h3 .page-stats {
            font-size: 12px; font-weight: 500; color: var(--text-secondary);
            background: var(--bg-secondary); padding: 3px 12px;
            border-radius: 20px; border: 1px solid var(--border-color);
        }

        /* ---- 工具栏 ---- */
        .admin-toolbar {
            display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
            align-items: center;
        }
        .admin-toolbar > * { flex-shrink: 0; }

        /* ---- 搜索输入 ---- */
        .admin-search {
            padding: 10px 16px; border: 1.5px solid var(--border-color);
            border-radius: 10px; background: var(--bg-secondary);
            color: var(--text-primary); font-size: 13px; font-family: inherit;
            transition: all 0.2s; outline: none; min-width: 220px;
        }
        .admin-search:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
        }
        .admin-search::placeholder { color: var(--text-secondary); opacity: 0.6; }

        /* ---- 下拉选择框 ---- */
        .admin-select {
            padding: 10px 32px 10px 14px; border: 1.5px solid var(--border-color);
            border-radius: 10px; background: var(--bg-secondary);
            color: var(--text-primary); font-size: 13px; font-family: inherit;
            cursor: pointer; transition: all 0.2s; outline: none;
            appearance: none; -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat; background-position: right 10px center;
        }
        .admin-select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
        }

        /* ---- 统计卡片增强 ---- */
        .admin-stat-cards {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 16px; margin-bottom: 28px;
        }
        .admin-stat-card {
            background: var(--bg-secondary); border: 1px solid var(--border-color);
            border-radius: 16px; padding: 22px 24px; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer; position: relative; overflow: hidden;
        }
        .admin-stat-card::before {
            content: ''; position: absolute; top: -20px; right: -20px;
            width: 80px; height: 80px; border-radius: 50%;
            background: var(--accent); opacity: 0; transition: opacity 0.3s;
            transform: scale(0.5);
        }
        .admin-stat-card:hover {
            border-color: var(--accent);
            box-shadow: 0 8px 30px rgba(99,102,241,0.1);
            transform: translateY(-2px);
        }
        .admin-stat-card:hover::before { opacity: 0.04; transform: scale(1); }
        .admin-stat-card .stat-icon {
            width: 42px; height: 42px; border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            font-size: 20px; margin-bottom: 14px;
        }
        .admin-stat-card .stat-value {
            font-size: 32px; font-weight: 800; letter-spacing: -1px;
            line-height: 1; margin-bottom: 6px;
        }
        .admin-stat-card .stat-label {
            font-size: 12px; color: var(--text-secondary); font-weight: 600;
        }
        .admin-stat-card .stat-sub {
            font-size: 11px; color: var(--text-secondary); margin-top: 4px; opacity: 0.7;
        }

        /* ---- 审核列表 ---- */
        .submission-list { display: flex; flex-direction: column; gap: 12px; }
        .submission-item {
            background: var(--bg-secondary); border: 1px solid var(--border-color);
            border-radius: 14px; padding: 20px 24px; display: flex;
            align-items: center; gap: 20px;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .submission-item:hover {
            border-color: var(--accent);
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
            transform: translateX(2px);
        }
        .submission-item .sub-info { flex: 1; min-width: 0; }
        .submission-item .sub-name {
            font-weight: 600; font-size: 15px; color: var(--text-primary);
            margin-bottom: 4px; display: flex; align-items: center; gap: 8px;
        }
        .submission-item .sub-meta {
            font-size: 12px; color: var(--text-secondary); margin-top: 2px;
            display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
        }
        .submission-item .sub-actions { display: flex; gap: 8px; flex-shrink: 0; }

        /* ---- 按钮系统增强 ---- */
        .btn-sm {
            padding: 8px 18px; border-radius: 10px; font-size: 13px;
            cursor: pointer; border: none; font-family: inherit;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 600; display: inline-flex; align-items: center;
            gap: 6px; white-space: nowrap; user-select: none;
        }
        .btn-sm:active { transform: scale(0.95); }
        .btn-approve {
            background: #10b981; color: #fff;
            box-shadow: 0 2px 8px rgba(16,185,129,0.2);
        }
        .btn-approve:hover {
            background: #059669; box-shadow: 0 4px 16px rgba(16,185,129,0.3);
            transform: translateY(-1px);
        }
        .btn-reject {
            background: #ef4444; color: #fff;
            box-shadow: 0 2px 8px rgba(239,68,68,0.2);
        }
        .btn-reject:hover {
            background: #dc2626; box-shadow: 0 4px 16px rgba(239,68,68,0.3);
            transform: translateY(-1px);
        }
        .btn-edit {
            background: var(--accent); color: #fff;
            box-shadow: 0 2px 8px rgba(99,102,241,0.2);
        }
        .btn-edit:hover {
            background: var(--accent-hover);
            box-shadow: 0 4px 16px rgba(99,102,241,0.35);
            transform: translateY(-1px);
        }
        .btn-del {
            background: #ef4444; color: #fff;
            box-shadow: 0 2px 8px rgba(239,68,68,0.2);
        }
        .btn-del:hover {
            background: #dc2626; box-shadow: 0 4px 16px rgba(239,68,68,0.3);
            transform: translateY(-1px);
        }
        .btn-outline {
            background: var(--bg-secondary); color: var(--text-primary);
            border: 1.5px solid var(--border-color);
        }
        .btn-outline:hover {
            border-color: var(--accent); color: var(--accent);
            background: var(--accent-light);
        }
        .btn-ghost {
            background: transparent; color: var(--text-secondary);
            border: 1.5px solid transparent;
        }
        .btn-ghost:hover {
            background: var(--bg-primary);
            border-color: var(--border-color);
            color: var(--text-primary);
        }
        .btn-icon {
            padding: 8px; border-radius: 8px; min-width: 34px; min-height: 34px;
            justify-content: center; background: var(--bg-secondary);
            color: var(--text-secondary); border: 1.5px solid var(--border-color);
            cursor: pointer; font-size: 15px; transition: all 0.2s;
            display: inline-flex; align-items: center; font-family: inherit;
        }
        .btn-icon:hover {
            border-color: var(--accent); color: var(--accent);
            background: var(--accent-light);
        }

        /* ---- 审核 Tabs ---- */
        .review-tabs {
            display: flex; gap: 4px; margin-bottom: 24px;
            background: var(--bg-secondary); padding: 5px;
            border-radius: 14px; border: 1px solid var(--border-color);
            box-shadow: 0 1px 4px rgba(0,0,0,0.03);
        }
        .review-tab {
            padding: 10px 24px; cursor: pointer; font-size: 13px; font-weight: 600;
            color: var(--text-secondary); border: none; background: none;
            font-family: inherit; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 11px; position: relative;
        }
        .review-tab:hover { color: var(--accent); background: var(--accent-light); }
        .review-tab.active {
            color: #fff; background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
            box-shadow: 0 3px 12px rgba(99,102,241,0.3);
        }
        .review-tab .badge {
            display: inline-block; background: rgba(255,255,255,0.2); color: inherit;
            font-size: 10px; padding: 2px 8px; border-radius: 10px;
            margin-left: 6px; font-weight: 700; min-width: 22px; text-align: center;
        }
        .review-tab:not(.active) .badge { background: var(--accent-light); color: var(--accent); }
        .review-tab:not(.active) .badge.danger { background: #fee2e2; color: #ef4444; }

        /* ---- 反馈卡片 ---- */
        .feedback-card {
            background: var(--bg-secondary); border: 1px solid var(--border-color);
            border-radius: 16px; padding: 22px 24px;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .feedback-card:hover {
            border-color: var(--accent);
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
        }
        .feedback-card.unread {
            border-left: 4px solid #ef4444;
            background: linear-gradient(135deg, rgba(239,68,68,0.03) 0%, var(--bg-secondary) 30%);
        }
        .feedback-card .fb-header {
            display: flex; align-items: center; gap: 10px;
            margin-bottom: 12px; flex-wrap: wrap;
        }
        .feedback-card .fb-content {
            font-size: 14px; color: var(--text-primary); line-height: 1.8;
            margin-bottom: 12px; white-space: pre-wrap;
        }
        .feedback-card .fb-footer { display: flex; gap: 8px; flex-wrap: wrap; }
        .tag {
            display: inline-flex; align-items: center;
            padding: 4px 12px; border-radius: 8px;
            font-size: 11px; font-weight: 700; letter-spacing: 0.2px;
        }
        .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }

        /* ---- 访问明细 ---- */
        .visit-day-card {
            background: var(--bg-secondary); border: 1px solid var(--border-color);
            border-radius: 14px; overflow: hidden; transition: all 0.2s;
        }
        .visit-day-card:hover { border-color: var(--accent); }
        .visit-day-card .visit-day-header {
            padding: 16px 20px; display: flex; align-items: center; gap: 12px;
            cursor: pointer; transition: background 0.15s; font-weight: 600;
        }
        .visit-day-card .visit-day-header:hover { background: var(--bg-primary); }
        .visit-day-card .visit-day-body {
            display: none; background: var(--bg-primary);
            border-top: 1px solid var(--border-color); padding: 14px 20px;
        }
        .visit-day-card.open .visit-day-body { display: block; }
        .visit-click-row {
            font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border-color);
            display: flex; gap: 12px; align-items: center;
        }
        .visit-click-row:last-child { border-bottom: none; }

        /* ---- 表格增强 ---- */
        .admin-table-wrap {
            background: var(--bg-secondary); border: 1px solid var(--border-color);
            border-radius: 14px; overflow: hidden;
        }
        .admin-table {
            width: 100%; border-collapse: collapse; font-size: 13px;
        }
        .admin-table thead { background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%); }
        .admin-table thead th {
            position: sticky; top: 0; z-index: 1;
            padding: 12px 16px; text-align: left;
            font-weight: 700; color: var(--text-secondary);
            font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase;
            border-bottom: 2px solid var(--border-color);
            white-space: nowrap;
        }
        .admin-table tbody td {
            padding: 11px 16px; text-align: left;
            border-bottom: 1px solid var(--border-color);
            vertical-align: middle;
        }
        .admin-table tbody tr { transition: background 0.12s; }
        .admin-table tbody tr:hover { background: var(--accent-light); }
        .admin-table tbody tr:last-child td { border-bottom: none; }
        .admin-table input, .admin-table select {
            width: 100%; padding: 7px 10px;
            border: 1.5px solid var(--border-color);
            border-radius: 8px; background: var(--bg-primary);
            color: var(--text-primary); font-size: 13px; font-family: inherit;
            transition: all 0.15s; box-sizing: border-box;
        }
        .admin-table input:focus, .admin-table select:focus {
            border-color: var(--accent); outline: none;
            box-shadow: 0 0 0 3px rgba(99,102,241,0.06);
        }
        .admin-table input::placeholder { color: var(--text-secondary); opacity: 0.5; font-size: 12px; }
        .admin-table td .td-actions { display: flex; gap: 4px; flex-wrap: wrap; }
        .admin-table .text-muted { color: var(--text-secondary); font-size: 12px; }

        /* ---- 拖拽排序 ---- */
        .admin-table .drag-handle {
            cursor: grab; color: var(--text-secondary); font-size: 18px;
            user-select: none; width: 24px; text-align: center; line-height: 1;
        }
        .admin-table .drag-handle:active { cursor: grabbing; }
        .admin-table tr.dragging { opacity: 0.3; background: var(--accent-light) !important; }
        .admin-table tr.drag-over { border-top: 3px solid var(--accent) !important; }
        .btn-reorder {
            margin-top: 16px; padding: 10px 24px;
            background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
            color: #fff; border: none; border-radius: 10px;
            cursor: pointer; font-size: 13px; font-weight: 600;
            transition: all 0.2s; box-shadow: 0 3px 12px rgba(99,102,241,0.25);
            font-family: inherit;
        }
        .btn-reorder:hover {
            opacity: 0.92; transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(99,102,241,0.35);
        }


        /* ---- 群体与分类合并页面 ---- */
        .group-select-row {
            cursor: pointer;
            transition: all 0.2s;
        }
        .group-select-row:hover {
            background: var(--accent-light) !important;
        }
        .group-select-row.group-row-active {
            background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(139,92,246,0.12) 100%) !important;
            border-left: 3px solid var(--accent);
        }
        .group-select-row.group-row-active td:first-child {
            padding-left: 9px;
        }
        .group-select-row .cat-display-cell {
            font-size: 12px;
            color: var(--text-secondary);
            max-width: 220px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .admin-cats-section {
            margin-top: 32px;
            padding: 24px;
            background: var(--bg-card, var(--bg-secondary));
            border: 1px solid var(--border-color);
            border-radius: 16px;
        }
        .admin-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 12px;
        }
        .admin-section-header h3 {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
        }
        .admin-section-header h4 {
            margin: 0;
        }
        .cat-row td input {
            transition: all 0.2s;
        }
        .cat-row:hover td input {
            border-color: var(--accent);
        }

        /* ---- 快捷链接管理 logo 预览 ---- */
        .ql-preview-cell {
            text-align: center;
            vertical-align: middle;
        }
        .ql-logo-preview {
            display: inline-block;
            vertical-align: middle;
        }
        .ql-name-input { min-width: 120px; }
        .ql-url-input { min-width: 220px; }
        .ql-icon-input { width: 70px; }
        .ql-logo-file { font-size: 11px; max-width: 90px; }

        /* ---- 空状态 ---- */
        .empty-state {
            text-align: center; padding: 72px 20px; color: var(--text-secondary);
        }
        .empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.4; }
        .empty-state p { font-size: 14px; font-weight: 500; }

        /* ---- 加载动画 ---- */
        .loading-spinner {
            display: inline-block; width: 36px; height: 36px;
            border: 3px solid var(--border-color);
            border-top-color: var(--accent); border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ---- 页面过渡 ---- */
        .admin-page-enter { animation: pageSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        @keyframes pageSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

        /* ---- Toast ---- */
        .toast-container {
            position: fixed; top: 20px; right: 20px;
            z-index: 10000; display: flex; flex-direction: column; gap: 8px;
            pointer-events: none;
        }
        .toast {
            padding: 14px 24px; border-radius: 12px; color: #fff; font-size: 13px;
            font-weight: 600; box-shadow: 0 8px 32px rgba(0,0,0,0.18);
            animation: toastSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            pointer-events: auto; display: flex; align-items: center; gap: 8px;
        }
        .toast.success { background: rgba(16,185,129,0.92); }
        .toast.error { background: rgba(239,68,68,0.92); }
        .toast.info { background: rgba(99,102,241,0.92); }
        .toast.warning { background: rgba(245,158,11,0.92); }
        @keyframes toastSlideIn {
            from { transform: translateX(120px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        /* ---- 回复弹窗 ---- */
        .reply-modal-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,0.45);
            backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
            z-index: 400; display: flex; align-items: center; justify-content: center;
            animation: fadeIn 0.2s ease;
        }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        .reply-modal {
            background: var(--bg-secondary); border-radius: 18px; padding: 28px;
            width: 90%; max-width: 480px;
            box-shadow: 0 25px 60px rgba(0,0,0,0.2);
            animation: modalPopIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        @keyframes modalPopIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
        .reply-modal h4 { font-size: 17px; margin-bottom: 16px; font-weight: 700; }
        .reply-modal textarea {
            width: 100%; min-height: 110px; padding: 14px; resize: vertical;
            border: 1.5px solid var(--border-color); border-radius: 12px;
            background: var(--bg-primary); color: var(--text-primary);
            font-family: inherit; font-size: 14px; transition: all 0.2s;
        }
        .reply-modal textarea:focus { border-color: var(--accent); outline: none; }
        .reply-modal .modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

        /* ---- 视角标签页 ---- */
        .admin-perspective-tabs {
            display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap;
            align-items: center; padding: 6px; background: var(--bg-secondary);
            border-radius: 14px; border: 1px solid var(--border-color);
        }
        .persp-tab {
            padding: 7px 16px; border: none; border-radius: 10px;
            background: transparent; color: var(--text-secondary);
            cursor: pointer; font-size: 13px; font-weight: 500;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap; font-family: inherit;
        }
        .persp-tab:hover { background: var(--accent-light); color: var(--accent); }
        .persp-tab.active {
            background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
            color: #fff; font-weight: 600;
            box-shadow: 0 3px 10px rgba(99,102,241,0.25);
        }

        /* ---- 视角分类弹窗 ---- */
        .modal-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 10000; display: flex; align-items: center; justify-content: center;
        }
        .modal-content {
            background: var(--bg-secondary); border-radius: 18px;
            box-shadow: 0 25px 70px rgba(0,0,0,0.25);
            width: 95%; max-width: 680px; max-height: 85vh;
            overflow-y: auto; animation: modalPopIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .modal-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 20px 24px; border-bottom: 1px solid var(--border-color);
            position: sticky; top: 0; background: var(--bg-secondary);
            border-radius: 18px 18px 0 0; z-index: 1;
        }
        .modal-header h3 { margin: 0; font-size: 17px; color: var(--text-primary); font-weight: 700; }
        .modal-close {
            background: none; border: none; font-size: 18px;
            cursor: pointer; color: var(--text-secondary);
            width: 32px; height: 32px; border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.15s; font-weight: 600;
        }
        .modal-close:hover { background: #fee2e2; color: #ef4444; }
        .modal-body { padding: 24px; }
        .modal-footer {
            padding: 16px 24px; border-top: 1px solid var(--border-color);
            display: flex; gap: 10px; justify-content: flex-end;
            position: sticky; bottom: 0; background: var(--bg-secondary);
            border-radius: 0 0 18px 18px;
        }

        /* ---- 响应式 ---- */
        @media (max-width: 768px) {
            .admin-body { flex-direction: column; }
            .admin-sidebar {
                width: 100%; flex-direction: row; flex-wrap: wrap;
                padding: 8px 12px; gap: 4px; overflow-y: visible;
                border-right: none; border-bottom: 1px solid var(--border-color);
            }
            .admin-sidebar .sidebar-group-label { display: none; }
            .admin-sidebar .admin-nav-item {
                padding: 7px 12px; font-size: 12px; border-radius: 8px;
                flex-shrink: 0; width: auto; margin: 0;
            }
            .admin-content { padding: 20px 16px; }
            .admin-stat-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
            .admin-table { font-size: 11px; }
            .admin-table th, .admin-table td { padding: 8px 10px; }
            .admin-content h3 { font-size: 17px; }
            .admin-search { min-width: 140px; }
        }
        @media (max-width: 480px) {
            .admin-stat-cards { grid-template-columns: 1fr; }
            .admin-toolbar { flex-direction: column; align-items: stretch; }
        }

        @media (max-width: 480px) {
            .search-box-wrapper {
                flex-direction: column;
            }

            .search-engine-btn {
                border-radius: 14px 14px 0 0;
            }
            .search-input-wrap input {
                border-radius: 0 0 14px 14px;
            }

            .click-history {
                gap: 6px;
            }
            .click-history .click-item {
                font-size: 12px;
                padding: 2px 8px;
            }
            .click-history .click-item .ci-name {
                max-width: 80px;
            }
            .click-history .click-label {
                font-size: 11px;
            }
        }