/* 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: 64px;
            --topbar-bg: #edf2f9;       /* 顶栏专用底色：淡蓝灰（不用白） */
        }.dark{
            --bg-primary: #131820;
            --bg-secondary: #1a1f2a;
            --topbar-bg: #1a202c;       /* 深色主题顶栏：比页面略浅一档的深板岩 */
            --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;
        }/* ===== 清新蔚蓝主题（body.theme-blue）：浅色基调 + 蔚蓝点缀，侧边栏白色 ===== */
        body.theme-blue{
            --bg-primary: #eef6fc;
            --bg-secondary: #ffffff;
            --bg-sidebar: #ffffff;
            --text-primary: #243b53;
            --text-secondary: #64809b;
            --text-sidebar: #64809b;
            --text-sidebar-active: #075985;
            --border-color: #dcebf5;
            --accent: #0ea5e9;
            --accent-hover: #0284c7;
            --accent-light: #e0f2fe;
            --card-shadow: 0 1px 4px rgba(14, 95, 150, 0.08);
            --card-hover-shadow: 0 8px 28px rgba(14, 95, 150, 0.16);
            --tag-bg: #eaf6fd;
            --tag-color: #7c93a8;
            --search-bg: linear-gradient(135deg, #38bdf8 0%, #7dd3fc 100%);
            --sb-accent-rgb: 14, 165, 233;
            --topbar-bg: #f2f8fd;       /* 蔚蓝主题顶栏：微蓝近白 */
        }
        /* 白色侧边栏的适配：微光强调色换成蔚蓝，白色底上加右缘投影与可见分割线 */
        body.theme-blue .sidebar{
            --sb-accent-rgb: 14, 165, 233;
            box-shadow: 2px 0 14px rgba(14, 95, 150, 0.08);
        }
        body.theme-blue .sidebar-logo,
        body.theme-blue .sidebar-footer,
        body.theme-blue .sidebar-toggle .toggle-inner{
            border-color: #e3eef7;   /* 深色主题用的 rgba(255,255,255,0.06) 在白底不可见 */
        }
        body.theme-blue .submit-link-btn{ color: #0284c7; }
        body.theme-blue .submit-link-btn:hover{ color: #0369a1; }
        body.theme-blue .sidebar-logo .logo-text{
            /* 白色扫光渐变是深底专属，白底下直接用实色深海蓝 */
            background: none;
            -webkit-text-fill-color: var(--text-sidebar-active);
            animation: none;
        }*{
            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{
            /* 侧边栏整体固定为默认视角配色，不随视角切换变化 */
            --sb-accent-rgb: 74, 125, 243;
            width: var(--sidebar-width);
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            background-color: var(--bg-sidebar);
            /* 顶部微光，向下淡出（固定用默认强调色） */
            background-image: linear-gradient(180deg,
                rgba(var(--sb-accent-rgb), var(--sb-tint)) 0%,
                rgba(var(--sb-accent-rgb), 0.03) 28%,
                rgba(var(--sb-accent-rgb), 0) 50%);
            display: flex;
            flex-direction: column;
            z-index: 100;
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
            overflow: visible;
        }
        /* ===== 侧边栏与视角 Tab 配色固定用默认强调色，不随视角切换（全部走 :root 默认蓝） ===== */
        :root{
            --sb-accent-rgb: 74, 125, 243;
            --sb-tint: 0.1;
        }
        .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{
            text-decoration: none;   /* 首页不加载 site.css，去下划线必须写在这里 */
            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;
            border-radius: 10px;
            object-fit: contain;
            flex-shrink: 0;
            will-change: transform;   /* 旋转由 partials/sidebar.html 里的小脚本逐帧驱动 */
        }.sidebar-logo .logo-text{
            color: var(--text-sidebar-active);
            font-size: 17px;
            font-weight: 800;
            letter-spacing: 0.6px;
            /* 文字扫光：渐变裁剪进文字，一道白光周期性从左往右扫过 */
            background: linear-gradient(100deg,
                rgba(255, 255, 255, 0.72) 42%,
                #ffffff 50%,
                rgba(255, 255, 255, 0.72) 58%);
            background-size: 240% 100%;
            background-position: 100% 0;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: logoTextShine 4.4s cubic-bezier(.4, 0, .2, 1) infinite;
        }
        @keyframes logoTextShine{
            0%, 58%   { background-position: 100% 0; }
            86%, 100% { background-position: 0% 0; }
        }.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(var(--sb-accent-rgb), 0.12);
        }.nav-item.active{
            color: #ffffff;
            background: rgba(var(--sb-accent-rgb), 0.2);
            font-weight: 500;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 2px 8px rgba(0, 0, 0, 0.16);
        }.nav-item .nav-icon{
            display: inline-block;
            font-size: 16px;
            line-height: 1;
            width: 22px;
            text-align: center;
            flex-shrink: 0;
            transform-origin: 50% 60%;
        }/* 悬停时菜单图标左右抖动一下 */
        @keyframes navIconShake{
            0%, 100% { transform: rotate(0); }
            20%      { transform: rotate(-14deg) scale(1.15); }
            40%      { transform: rotate(12deg) scale(1.15); }
            60%      { transform: rotate(-9deg) scale(1.15); }
            80%      { transform: rotate(7deg) scale(1.1); }
        }
        .nav-item:hover .nav-icon,
        .nav-item:focus-visible .nav-icon{
            animation: navIconShake .55s ease-in-out;
        }
        @media (prefers-reduced-motion: reduce){
            .nav-item:hover .nav-icon,
            .nav-item:focus-visible .nav-icon,
            .group-tab:hover i,
            .group-sheet-item:hover i,
            .group-picker-btn:hover i{ animation: none; }
        }.nav-item .nav-badge{
            margin-left: auto;
            background: rgba(var(--sb-accent-rgb), 0.22);
            color: rgba(255, 255, 255, 0.9);
            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(--topbar-bg, var(--bg-secondary));
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            padding: 0 28px;
            /* 左侧不再跟随内容区居中：视角排贴左顶（大屏大留白去掉） */
            padding-left: 16px;
            padding-right: max(28px, calc((100% - 1400px) / 2 + 40px));
            gap: 16px;
            /* 吊顶常驻：滚动时固定在顶部。
               祖先（body / .main-content）都没有 overflow 裁切，sticky 可以生效；
               z-index:50 保证顶栏自身的下拉浮层压在内容区之上，
               同时仍然低于抽屉侧栏(100)，抽屉打开时照旧盖住顶栏。
               锚点跳转的遮挡由 .category-section 的 scroll-margin-top 补偿。 */
            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切换 =====
   始终保持一行：默认只露前 4 个视角，鼠标移入整个 Tab 区域时，
   收起的部分「向右伸出来」补满这一行（宽度 + 位移双动画，逐个跟上）；
   窄屏 / 触屏没有 hover，改为平铺横滑（见下方 @media (max-width: 900px)） */
        .group-tabs{
            display: flex;
            gap: 4px;
            flex-wrap: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            perspective: 900px;     /* 换位时 tab 绕 Y 轴转面，看起来像在转轮上转到背面 */
            scrollbar-width: none;          /* Firefox 隐藏滚动条 */
            -webkit-overflow-scrolling: touch;
            position: relative;
        }.group-tabs::-webkit-scrollbar{ display: none; }
        /* 收起态：宽度 0 + 裁剪，所以看不到但仍在同一行里 */
        .group-tabs-more{
            display: flex;
            align-items: center;
            gap: 4px;
            max-width: 0;
            opacity: 0;
            overflow: hidden;
            pointer-events: none;
            transition: max-width .42s cubic-bezier(.4, 0, .2, 1), opacity .24s ease;
        }
        .group-tabs-more .group-tab{
            /* 伸出来的这几个比常显的略紧凑，保证一行放得下 */
            padding: 6px 12px;
            font-size: 12.5px;
            transform: translateX(-14px);
            opacity: 0;
            transition: transform .34s cubic-bezier(.4, 0, .2, 1), opacity .26s ease;
        }
        /* 悬停/聚焦时放开容器裁剪：伸出来的视角要盖过右侧的 AI资讯/偏好/用户入口，
           否则会被 .group-tabs 自己的 overflow-x:auto 裁在容器边缘（z-index:60 压过右侧按钮） */
        .group-tabs:hover,
        .group-tabs:focus-within{
            overflow: visible;
            z-index: 60;
            /* 展开时铺与顶栏同色的底（var(--topbar-bg)），视觉上无缝、不再是白色块 */
            background: var(--topbar-bg, var(--bg-secondary));
            border-radius: 0;
            filter: none;
        }
        /* 轮转过程中放开收纳容器的裁剪：绕过端点的 tab 要跨过整排才转到另一头，
           不放开的话它一住进收纳容器就看不见了。
           收起态整个容器 opacity 就是 0，放开裁剪也不会露出内容 */
        .group-tabs.is-flipping .group-tabs-more{
            overflow: visible;
        }
        /* 旧版展开提示「⌄」：现在改为整行向右伸出，不再需要这个符号；
           已生成的静态详情页源码里还带着它，这里统一隐藏 */
        .group-tabs-hint{ display: none !important; }
        /* 展开态：容器放宽容纳，子项依次归位 */
        .group-tabs:hover .group-tabs-more,
        .group-tabs:focus-within .group-tabs-more{
            /* 绝对定位脱出文档流：展开不再撑宽 .group-tabs，
               右侧的 AI资讯 等按钮不会随之平移（彻底消除抖动） */
            position: absolute;
            left: calc(100% - 1px);       /* 紧贴本体，重叠 1px 防止接缝出现细缝 */
            top: 0;
            bottom: 0;
            max-width: 760px;
            opacity: 1;
            pointer-events: auto;
            overflow: visible;
            /* 伸出段与本体同底色，拼成完整背景层（颜色=顶栏色，无缝） */
            background: var(--topbar-bg, var(--bg-secondary));
            border-radius: 0;
            box-shadow: none;
            padding: 0 4px;
        }.group-tabs:hover .group-tabs-more .group-tab,
        .group-tabs:focus-within .group-tabs-more .group-tab{
            transform: none;
            opacity: 1;
        }
        /* 伸出来的顺序：一格一格跟上（延迟只写在展开态，收起时同时收回） */
        .group-tabs:hover .group-tabs-more .group-tab:nth-child(2),
        .group-tabs:focus-within .group-tabs-more .group-tab:nth-child(2){ transition-delay: .06s; }
        .group-tabs:hover .group-tabs-more .group-tab:nth-child(3),
        .group-tabs:focus-within .group-tabs-more .group-tab:nth-child(3){ transition-delay: .12s; }
        .group-tabs:hover .group-tabs-more .group-tab:nth-child(4),
        .group-tabs:focus-within .group-tabs-more .group-tab:nth-child(4){ transition-delay: .18s; }
        .group-tabs:hover .group-tabs-more .group-tab:nth-child(n+5),
        .group-tabs:focus-within .group-tabs-more .group-tab:nth-child(n+5){ transition-delay: .24s; }
        @media (prefers-reduced-motion: reduce){
            .group-tabs-more,
            .group-tabs-more .group-tab{ transition: none; }
        }.group-tab{
            position: relative;
            flex: 0 0 auto;             /* 单排横滑时不被压缩、不换行 */
            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;
            z-index: 1;
        }.group-tab i,
        .group-sheet-item i,
        .group-picker-btn i{
            font-size: 13px;
            line-height: 1;
            vertical-align: -0.125em;
            display: inline-block;
            transform-origin: 50% 60%;
        }/* 视角 Tab 悬停时图标同样抖动一下 */
        .group-tab:hover i,
        .group-sheet-item:hover i,
        .group-picker-btn:hover i{
            animation: navIconShake .55s ease-in-out;
        }.group-tab:hover{
            /* 悬停不再有胶囊背景：统一走下划线语言（非选中项的淡下划线见 :not(.active):hover::after） */
            background: transparent;
            border-color: transparent;
        }.group-tab.active{
            color: rgb(var(--sb-accent-rgb));
            font-weight: 600;
            /* 指示器 z-index:2（盖住绕到背面的 tab），选中项文字必须浮在下划线上 */
            z-index: 3;
        }
        /* 高亮胶囊 = 独立的滑动指示器（不再画在 .group-tab.active 上）：
           切换视角时它从旧 tab 平滑滑到新 tab，落位带回弹，形成「往前移动」的动画；
           位置由 main.js / site.js 的 moveGroupIndicator / placeGroupIndicator 维护 */
        .group-tab-indicator{
            position: absolute;
            top: auto;
            bottom: 0;
            left: 0;
            height: 2.5px;
            width: 0;
            border-radius: 2px;
            background: rgb(var(--sb-accent-rgb));
            pointer-events: none;
            /* z-index 高于 tab：轮转时绕到背面的 tab 从下划线背后穿过去 */
            z-index: 2;
            transition: transform .34s cubic-bezier(.22, 1.16, .36, 1), width .34s cubic-bezier(.22, 1.16, .36, 1);
        }

        /* ===== 视角切换条：展开动效（PC 端；移动端该条已被 display:none 接管） ===== */
        /* 容器给一点透视，抽出来的 tab 才有 3D 纵深 */
        .group-tabs-more{
            perspective: 800px;
        }
        /* 展开：从右侧斜着「抽」出来 —— 位移 + 缩放 + 翻转 + 模糊消散，落位带回弹 */
        .group-tabs-more .group-tab{
            transform-origin: left center;
            transform: translateX(-22px) scale(.78) rotateY(-28deg);
            opacity: 0;
            filter: blur(6px);
            transition:
                transform .48s cubic-bezier(.22, 1.16, .36, 1),
                opacity .3s ease,
                filter .38s ease,
                background .2s ease,
                color .2s ease,
                box-shadow .26s ease;
        }
        .group-tabs:hover .group-tabs-more .group-tab,
        .group-tabs:focus-within .group-tabs-more .group-tab{
            transform: none;
            opacity: 1;
            filter: blur(0);
        }
        /* 悬停：不再用胶囊背景，改为文字变色 + 淡下划线（与选中态同一套下划线语言） */
        .group-tabs .group-tab:not(.active):hover{
            color: rgb(var(--sb-accent-rgb));
            background: transparent;
            border-color: transparent;
            transform: none;
            box-shadow: none;
        }
        .group-tabs .group-tab:not(.active)::after{
            content: '';
            position: absolute;
            left: 10px;
            right: 10px;
            bottom: 0;
            height: 2.5px;
            border-radius: 2px;
            background: rgb(var(--sb-accent-rgb));
            opacity: 0;
            transition: opacity .2s ease;
        }
        .group-tabs .group-tab:not(.active):hover::after{
            opacity: .35;
        }
        @media (prefers-reduced-motion: reduce){
            .group-tabs-more .group-tab{
                filter: none;
                transform: none;
            }
            .group-tab-indicator{
                transition: none;
            }
            .sidebar-logo .logo-text{
                background: none;
                -webkit-text-fill-color: var(--text-sidebar-active);
                animation: none;
            }
        }.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);
        }/* 顶栏按钮为链接时去掉下划线 */
        a.action-btn{
            text-decoration: none;
        }/* hidden 属性被 .action-btn 的 display:flex 覆盖，这里强制生效（如仅管理员可见的 AI资讯入口） */
        .action-btn[hidden]{
            display: none !important;
        }/* 顶栏按钮图标（线性样式，随文字颜色变化） */
        .action-btn .action-ico{
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            flex: 0 0 auto;
            color: var(--text-secondary);
            transition: color var(--transition-base), transform var(--transition-base);
        }.action-btn .action-ico svg{
            width: 18px;
            height: 18px;
            display: block;
            overflow: visible;
        }.action-btn:hover .action-ico{
            color: var(--accent);
            transform: translateY(-1px);
        }.action-btn:active .action-ico{
            transform: translateY(0) scale(0.96);
        }/* 登录 / 管理员图标的切换 */
        .action-btn .action-ico .ico-admin{
            display: none;
        }.action-btn.is-admin .action-ico .ico-user{
            display: none;
        }.action-btn.is-admin .action-ico .ico-admin{
            display: block;
        }.action-btn .btn-label{
            font-size: 12.5px;
            margin-left: 6px;
            display: none;
            font-weight: 500;
            letter-spacing: .2px;
            white-space: nowrap;
            line-height: 1;
        }@media (min-width: 1024px){.action-btn .btn-label{
                display: inline;
            }
        }/* 语言下拉 */
        /* 偏好下拉（主题 + 语言） */
        .pref-wrap{ position: relative; display: inline-flex; }.pref-dropdown{
            /* 挂载在 body 上并 fixed 定位：不受顶栏层叠上下文限制，始终压在最上层 */
            position: fixed;
            top: 0;
            left: 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);
            width: 186px;
            padding: 8px;
            display: none;
            z-index: 9998;
        }.pref-dropdown.show{
            display: block;
            animation: dropdownDropIn .38s cubic-bezier(.22, 1, .36, 1);
        }.pref-group + .pref-group{
            margin-top: 6px;
            padding-top: 6px;
            border-top: 1px solid var(--border-color);
        }.pref-title{
            padding: 3px 9px 6px;
            font-size: 11.5px;
            font-weight: 600;
            color: var(--text-secondary);
            letter-spacing: .4px;
        }.pref-option{
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 8px 9px;
            border: 0;
            border-radius: 8px;
            background: transparent;
            font-size: 13px;
            font-family: inherit;
            color: var(--text-primary);
            text-align: left;
            cursor: pointer;
            transition: background 0.15s, color 0.15s;
        }.pref-option:hover{ background: var(--accent-light); color: var(--accent); }.pref-option.active{ background: var(--accent-light); color: var(--accent); font-weight: 600; }.pref-switch{
            margin-left: auto;
            flex: none;
            width: 30px; height: 17px;
            border-radius: 999px;
            background: var(--border-color);
            position: relative;
            transition: background 0.18s;
        }.pref-switch::after{
            content: '';
            position: absolute; left: 2px; top: 2px;
            width: 13px; height: 13px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 1px 3px rgba(16, 24, 40, .28);
            transition: transform 0.18s;
        }.pref-option.on .pref-switch{ background: var(--accent, #4a7df3); }.pref-option.on .pref-switch::after{ transform: translateX(13px); }.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;
            animation: dropdownDropIn .38s cubic-bezier(.22, 1, .36, 1);
        }.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; display: inline-block; text-align: center; }
        /* 用户菜单项悬停：图标抖动一下（keyframes 每次进入都触发） */
        @keyframes menuIconWiggle{
            0%   { transform: rotate(0deg); }
            20%  { transform: rotate(-12deg); }
            40%  { transform: rotate(10deg); }
            60%  { transform: rotate(-8deg); }
            80%  { transform: rotate(6deg); }
            100% { transform: rotate(0deg); }
        }
        .user-menu-item:hover .menu-icon{ animation: menuIconWiggle 0.5s ease-in-out; }
        .user-dropdown .user-avatar i{ font-size: 15px; }
        /* 语言选项徽标（CN/EN）：旗帜 emoji 在 Windows 降级成字母，改用统一文本徽标 */
        .pref-option .lang-tag{
            display: inline-flex; align-items: center; justify-content: center;
            min-width: 22px; height: 18px; padding: 0 4px;
            border-radius: 4px;
            background: var(--accent-light);
            color: var(--accent);
            font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
        }
        /* ===== 侧边栏底部 ===== */
        .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;
        }/* ===== 提交网址弹窗 ===== */
        /* ===== 弹窗基础 ===== */
        /* ===== 弹出框样式 - 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;
            padding: 28px 28px 24px;
        }.modal-dialog h3{
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
            letter-spacing: -0.021em;
            margin-bottom: 6px;
        }.modal-dialog .modal-subtitle{
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 20px;
        }.dark .modal-dialog .modal-subtitle{
            color: var(--text-secondary);
        }.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: 560px !important;
        }.submit-dialog textarea{
            min-height: 96px !important;
        }.submit-header{
            padding: 24px 30px 18px;
            display: grid;
            grid-template-columns: 44px 1fr;
            grid-template-areas: "icon title" "icon sub";
            column-gap: 14px;
            align-items: center;
            border-bottom: 1px solid var(--border-color);
            background: linear-gradient(135deg, rgba(74,125,243,0.06), transparent 62%);
        }.submit-header-icon{
            grid-area: icon;
            width: 44px;
            height: 44px;
            border-radius: 13px;
            background: linear-gradient(135deg, var(--accent), var(--accent-hover));
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            flex-shrink: 0;
            box-shadow: 0 6px 16px rgba(74,125,243,0.28);
        }.dark .submit-header-icon{
            background: linear-gradient(135deg, #0a84ff, #0060df);
        }.submit-header h2{
            grid-area: title;
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0 0 3px;
            letter-spacing: -0.021em;
        }.submit-header p{
            grid-area: sub;
            font-size: 12.5px;
            color: var(--text-secondary);
            line-height: 1.5;
            max-width: none;
            margin: 0;
        }/* ===== 表单内容区 ===== */
        .submit-dialog .form-body{
            padding: 20px 30px 28px;
        }/* ===== 通用表单样式 - 简洁风格 ===== */
        .modal-dialog .form-group{
            margin-bottom: 16px;
        }        .modal-dialog label{
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 7px;
            text-transform: none;
            letter-spacing: 0;
        }.label-optional{
            font-weight: 500;
            color: var(--accent);
            font-size: 10.5px;
            background: var(--accent-light);
            padding: 1px 7px;
            border-radius: 999px;
            margin-left: 5px;
            display: inline-block;
            vertical-align: middle;
            text-transform: none;
            letter-spacing: 0;
        }.modal-dialog input, .modal-dialog select, .modal-dialog textarea{
            width: 100%;
            padding: 10px 14px;
            border: 1.5px solid var(--border-color);
            border-radius: 11px;
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-size: 14.5px;
            font-family: inherit;
            outline: none;
            transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
            line-height: 1.5;
            -webkit-appearance: none;
        }.modal-dialog input::placeholder, .modal-dialog textarea::placeholder{
            color: #a8b3c4;
            opacity: 1;
        }.dark .modal-dialog input::placeholder, .dark .modal-dialog textarea::placeholder{
            color: #6b7686;
        }.modal-dialog input:hover, .modal-dialog select:hover, .modal-dialog textarea:hover{
            border-color: #b9c6d8;
        }.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: var(--accent);
            background: var(--bg-secondary);
            box-shadow: 0 0 0 3.5px var(--accent-light);
        }.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);
                padding: 22px 20px 20px;
            }.form-row{
                flex-direction: column;
                gap: 0;
            }.submit-header{
                padding: 20px 22px 15px;
                grid-template-columns: 40px 1fr;
            }.submit-header-icon{
                width: 40px;
                height: 40px;
                border-radius: 12px;
            }.submit-header h2{
                font-size: 16.5px;
            }.submit-dialog .form-body{
                padding: 16px 22px 22px;
            }.logo-preview{
                height: 64px;
            }.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;
        }.logo-preview{
            width: 100%;
            height: 72px;
            border: 1.5px dashed var(--border-color);
            border-radius: 12px;
            cursor: pointer;
            overflow: hidden;
            transition: border-color 0.18s ease, background 0.18s ease;
            background: var(--bg-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }.logo-preview:hover{
            border-color: var(--accent);
            background: var(--accent-light);
        }.dark .logo-preview:hover{
            border-color: #0a84ff;
        }.logo-preview img{
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: var(--bg-secondary);
            padding: 5px;
            box-sizing: border-box;
        }.logo-placeholder{
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 10px;
            color: var(--text-secondary);
            padding: 10px 16px;
        }.logo-placeholder svg{
            color: #a8b3c4;
            flex-shrink: 0;
            transition: color 0.18s ease;
        }.logo-preview:hover .logo-placeholder svg{
            color: var(--accent);
        }.logo-placeholder span{
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            white-space: nowrap;
        }.logo-preview:hover .logo-placeholder span{
            color: var(--accent);
        }.logo-placeholder small{
            font-size: 11.5px;
            color: #a8b3c4;
            font-weight: 400;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }/* ===== 按钮区域 - 简洁风格 ===== */
        .modal-actions{
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 20px;
            padding-top: 16px;
            border-top: 1px solid var(--border-color);
        }.modal-actions button{
            padding: 10px 26px;
            border-radius: 11px;
            font-size: 14.5px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.18s ease;
            border: none;
            -webkit-appearance: none;
        }.modal-cancel{
            background: var(--bg-primary);
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
        }.modal-cancel:hover{
            background: var(--accent-light);
            color: var(--accent);
            border-color: var(--accent-light);
        }.modal-submit{
            background: var(--accent);
            color: #fff;
            box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 32%, transparent);
        }.modal-submit:hover{
            background: var(--accent-hover);
            transform: translateY(-1px);
            box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent);
        }.modal-submit:active{
            transform: scale(0.98);
            box-shadow: none;
        }.modal-submit-wide{
            width: 100%;
            justify-content: center;
            margin-top: 20px;
            padding: 12px 24px;
        }/* ===== 成功状态 - 简洁风格 ===== */
        .modal-success{
            text-align: center;
            padding: 40px 30px 34px;
        }.success-icon-circle{
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: linear-gradient(135deg, #34c759, #248a3d);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            font-size: 24px;
            box-shadow: 0 6px 16px rgba(52, 199, 89, 0.3);
        }.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;
            margin: 0 auto;
        }/* ===== 搜索区域（蓝色渐变横幅 + 背景图片）===== */
        /* 自研视差星空：三层不同粒径/速度横向漂移，少量亮星点缀 */
        .sky-stage{
            position: absolute; inset: 0;
            overflow: hidden;
            pointer-events: none;
            z-index: 1;
        }
        .sky-layer{
            position: absolute; top: 0; left: 0;
            width: 200%; height: 100%;
            animation: skyDrift 120s linear infinite;
            will-change: transform;
        }
        .sky-dot{
            position: absolute;
            border-radius: 50%;
            background: #dceaff;
        }
        .sky-dot--flare{
            background: #fff;
            box-shadow: 0 0 6px rgba(190,225,255,.9);
        }
        @keyframes skyDrift{
            from{ transform: translate3d(0,0,0); }
            to  { transform: translate3d(-50%,0,0); }
        }

        .search-section{
            text-align: center;
            padding: 0;
            /* 自研蓝色夜空：纵向四段渐变 + 顶部冷光斑（与竞品单径向结构不同） */
            background:
                radial-gradient(60% 42% at 50% 0%, rgba(120,180,255,.20), transparent 70%),
                linear-gradient(175deg, #0e1f3d 0%, #17335f 45%, #27548c 78%, #3a6fae 100%);
            border-radius: 0;
            margin-bottom: 0;
            position: relative;
            min-height: 400px;
        }
        /* 清新蔚蓝主题：hero 换「晴空海岸」配色（顶部暖光斑 + 晴空蓝→海蓝渐变），星星层保留作浮光 */
        body.theme-blue .search-section{
            background:
                radial-gradient(60% 42% at 50% 0%, rgba(255,241,194,.42), transparent 70%),
                linear-gradient(175deg, #4fa8e8 0%, #3f93dc 45%, #2e78c2 78%, #1f5da1 100%);
        }
        /* 经典深色主题：hero 换「暮色万家灯火」——深靛夜空压暗、天际线升起暖橙光晕，
           底部撒离散灯火光点（::after），上方星星层照旧 */
        body.dark .search-section{
            background:
                radial-gradient(60% 42% at 50% 0%, rgba(148,120,255,.16), transparent 70%),
                radial-gradient(95% 60% at 50% 112%, rgba(255,166,66,.30), transparent 64%),
                linear-gradient(175deg, #0a0e1f 0%, #131531 45%, #222748 74%, #43364f 100%);
        }
        body.dark .search-section::after{
            content: '';
            position: absolute;
            left: 0; right: 0; bottom: 0;
            height: 46%;
            pointer-events: none;
            z-index: 1;
            background:
                radial-gradient(7px 5px at 6%  86%, rgba(255,205,120,.85), transparent 70%),
                radial-gradient(5px 4px at 13% 74%, rgba(255,190,100,.65), transparent 70%),
                radial-gradient(8px 5px at 21% 90%, rgba(255,175,85,.75), transparent 70%),
                radial-gradient(5px 4px at 29% 80%, rgba(255,200,120,.55), transparent 70%),
                radial-gradient(9px 6px at 37% 92%, rgba(255,165,75,.70), transparent 70%),
                radial-gradient(5px 4px at 45% 84%, rgba(255,195,110,.45), transparent 70%),
                radial-gradient(6px 4px at 55% 88%, rgba(255,185,95,.55), transparent 70%),
                radial-gradient(5px 4px at 63% 78%, rgba(255,200,120,.45), transparent 70%),
                radial-gradient(9px 6px at 71% 92%, rgba(255,170,80,.70), transparent 70%),
                radial-gradient(5px 4px at 79% 82%, rgba(255,195,110,.55), transparent 70%),
                radial-gradient(8px 5px at 87% 90%, rgba(255,180,90,.70), transparent 70%),
                radial-gradient(6px 4px at 94% 76%, rgba(255,200,115,.60), transparent 70%),
                linear-gradient(0deg, rgba(255,150,60,.08), transparent 55%);
        }
        /* 月亮：暖白月面 + 三处月海暗斑 + 双层月晕，悬在右上夜空（避开居中标题） */
        body.dark .search-section::before{
            content: '';
            position: absolute;
            top: 11%;
            left: 77%;
            width: 62px;
            height: 62px;
            border-radius: 50%;
            pointer-events: none;
            z-index: 1;
            background:
                radial-gradient(circle at 30% 32%, rgba(186,164,116,.35) 0 9%, transparent 10%),
                radial-gradient(circle at 63% 56%, rgba(186,164,116,.28) 0 7%, transparent 8%),
                radial-gradient(circle at 45% 72%, rgba(186,164,116,.22) 0 6%, transparent 7%),
                radial-gradient(circle at 38% 36%, #fffbe9 0%, #fdf3cd 55%, #efdda4 100%);
            box-shadow:
                0 0 16px 5px rgba(255,244,200,.38),
                0 0 55px 22px rgba(255,236,180,.16);
        }
        @media (max-width: 768px){
            body.dark .search-section::before{
                width: 44px; height: 44px;
                top: 8%; left: auto; right: 8%;
            }
        }

        .search-section-inner{
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 40px;
            min-height: 400px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
        }
        /* 小屏隐藏星空 */
        @media (max-width: 768px){
            .search-section .sky-stage { display: none; }
        }
.search-section h1{
        font-family: 'KaiTi', 'STKaiti', 'BiauKai', serif;
    font-size: clamp(36px, 4vw, 50px);
    font-weight: 700;
    /* 行高锁定：webfont 分包加载完成切换字形时高度不变，防止 hero 整块上下抖动 */
    line-height: 1.4;
    margin-bottom: 4px;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0,0,0,.25);
    position: relative;
    letter-spacing: 5px;
    z-index: 1;
}
.search-section h1:lang(en){
    font-family: Georgia, serif;
}
/* 主标题逐字抖动波浪：每字延迟递增，波从第一字扫到最后一字 */
.search-section h1 .j-ch{
    display: inline-block;
    animation: jJitter 12s infinite;
    will-change: transform;
}
/* 前 3.8%（约 0.45s）为抖动窗，其余时间静止，实现扫完一轮歇约 10 秒 */
@keyframes jJitter{
    0%, 3.8%, 100%{ transform: none; }
    0.9% { transform: translateY(-2px) rotate(-2.5deg); }
    1.9% { transform: translateY(1px)  rotate(2deg); }
    2.8% { transform: translateY(-1px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce){
    .search-section h1 .j-ch{ animation: none; }
}
.hero-subtitle{
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    color: rgba(255,255,255,.78);
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 400;
    letter-spacing: 3px;
    text-shadow: 0 1px 8px rgba(0,0,0,.22);
}
.search-box-wrapper{
            display: flex;
            width: 100%;
            max-width: 600px;
            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);
            /* 100 → 20：顶栏浮层（用户/偏好下拉，50）必须压在搜索框之上；
               同时要高于内容区的「点击记录」等浮层（.click-history 是 z-index:1
               且 DOM 更靠后，同级时会把引擎下拉顶部盖掉）。
               20 只用于排序，远低于顶栏(50) 与抽屉侧栏(100)；
               非 auto 会建立层叠上下文，内部引擎下拉(9999) 被限制在此层之内。 */
            z-index: 20;
        }
        /* 桌面：默认融入夜空的透明态，悬停/聚焦后变白色卡片（触摸设备自动保持白底） */
        @media (hover: hover){
            .search-box-wrapper{
                background: rgba(255,255,255,.06);
                border: 1px solid rgba(255,255,255,.22);
                box-shadow: 0 4px 18px rgba(0,0,0,.12);
            }
            .search-box-wrapper:hover,
            .search-box-wrapper:focus-within{
                background: #ffffff;
                border-color: rgba(255,255,255,0);
                box-shadow:
                    0 2px 4px rgba(0,0,0,0.04),
                    0 8px 24px rgba(0,0,0,0.08);
            }
            /* 透明态内部配色：白字，悬停后切回深色（加 wrapper 前缀压过基础规则） */
            .search-box-wrapper .search-engine-btn{ color: rgba(255,255,255,.92); }
            .search-box-wrapper .search-engine-btn::after{ background: rgba(255,255,255,.28); }
            .search-box-wrapper .search-input-wrap input{ color: #fff; caret-color: #fff; }
            .search-box-wrapper .search-input-wrap input::placeholder{ color: rgba(255,255,255,.55); }
            .search-box-wrapper:not(:hover):not(:focus-within) .search-engine-btn:hover{ background: rgba(255,255,255,.12); }
            /* 透明态下搜索按钮也半透明，悬停/聚焦后恢复 */
            .search-box-wrapper:not(:hover):not(:focus-within) .search-input-wrap button{ opacity: .5; }
            /* 透明态下引擎图标、引擎名同样半透明 */
            .search-box-wrapper:not(:hover):not(:focus-within) .engine-icon-svg{ opacity: .5; }
            .search-box-wrapper:not(:hover):not(:focus-within) #engineName{ opacity: .5; }
            .search-box-wrapper:hover .search-engine-btn,
            .search-box-wrapper:focus-within .search-engine-btn{ color: var(--text-primary); }
            .search-box-wrapper:hover .search-engine-btn::after,
            .search-box-wrapper:focus-within .search-engine-btn::after{ background: var(--border-color); }
            .search-box-wrapper:hover .search-input-wrap input,
            .search-box-wrapper:focus-within .search-input-wrap input{ color: var(--text-primary); caret-color: var(--text-primary); }
            .search-box-wrapper:hover .search-input-wrap input::placeholder,
            .search-box-wrapper:focus-within .search-input-wrap input::placeholder{ color: #bcc2c9; }
        }
        /* 悬停/聚焦跑马灯：一圈蓝白光带绕搜索框流动（仅桌面 hover 设备生效） */
        @media (hover: hover){
            .search-box-wrapper::before{
                content: '';
                position: absolute;
                inset: -3px;
                border-radius: inherit;
                padding: 2px;
                /* 4 段金色光斑，整圈连续流动 */
                background: conic-gradient(from var(--ring-angle, 0deg),
                    #ffd75e 0deg,
                    rgba(255,200,80,.12) 40deg,
                    rgba(255,200,80,.12) 50deg,
                    #ffd75e 90deg,
                    rgba(255,200,80,.12) 130deg,
                    rgba(255,200,80,.12) 140deg,
                    #ffd75e 180deg,
                    rgba(255,200,80,.12) 220deg,
                    rgba(255,200,80,.12) 230deg,
                    #ffd75e 270deg,
                    rgba(255,200,80,.12) 310deg,
                    rgba(255,200,80,.12) 320deg,
                    #ffd75e 360deg);
                -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
                -webkit-mask-composite: xor;
                mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
                mask-composite: exclude;
                opacity: 0;
                transition: opacity .3s ease;
                animation: ringSpin 5s linear infinite;
                pointer-events: none;
            }
            .search-box-wrapper:hover::before,
            .search-box-wrapper:focus-within::before{ opacity: 1; }
        }
        @property --ring-angle{
            syntax: '<angle>';
            initial-value: 0deg;
            inherits: false;
        }
        @keyframes ringSpin{
            to{ --ring-angle: 360deg; }
        }
        @media (prefers-reduced-motion: reduce){
            .search-box-wrapper::before{ animation: none; }
        }.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;
        /* .closing：收起时先挂上它保持可见，反向播完收起动画再摘掉（见 main.js closeEngineDropdown） */
        }.search-engine-dropdown.show,
        .search-engine-dropdown.closing{
            display: block;
        }
        .search-engine-dropdown.show{
            /* 缓缓从上向下滑入：面板整体从上方落下，同时从上往下逐段展开 */
            animation: dropdownDropIn .55s cubic-bezier(.22, 1, .36, 1);
        }
        .search-engine-dropdown.closing{
            /* 收起：从下往上收回 —— 下沿往上合拢 + 整体上移淡出，比展开略快一点，不拖沓 */
            animation: dropdownDropOut .42s cubic-bezier(.4, 0, .2, 1) forwards;
        }
        @keyframes dropdownDropOut{
            from { opacity: 1; transform: translateY(0);     clip-path: inset(0 0 0 0); }
            to   { opacity: 0; transform: translateY(-22px); clip-path: inset(0 0 100% 0); }
        }
        /* 下拉面板通用：clip-path 从「只剩顶部一条」放开到完整，配合下落位移 */
        @keyframes dropdownDropIn{
            from { opacity: 0; transform: translateY(-26px); clip-path: inset(0 0 100% 0); }
            to   { opacity: 1; transform: translateY(0);     clip-path: inset(0 0 0 0); }
        }
        /* 选项再自上而下逐条浮现，强化「从上往下」的方向感 */
        .search-engine-dropdown.show .search-engine-option{
            animation: dropdownItemIn .4s cubic-bezier(.22, 1, .36, 1) backwards;
        }
        .search-engine-dropdown.show .search-engine-option:nth-child(1){ animation-delay: .05s; }
        .search-engine-dropdown.show .search-engine-option:nth-child(2){ animation-delay: .10s; }
        .search-engine-dropdown.show .search-engine-option:nth-child(3){ animation-delay: .15s; }
        .search-engine-dropdown.show .search-engine-option:nth-child(4){ animation-delay: .20s; }
        .search-engine-dropdown.show .search-engine-option:nth-child(5){ animation-delay: .25s; }
        .search-engine-dropdown.show .search-engine-option:nth-child(6){ animation-delay: .30s; }
        .search-engine-dropdown.show .search-engine-option:nth-child(n+7){ animation-delay: .34s; }
        @keyframes dropdownItemIn{
            from { opacity: 0; transform: translateY(-8px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @media (prefers-reduced-motion: reduce){
            .search-engine-dropdown.show,
            .search-engine-dropdown.show .search-engine-option{ animation: none; }
        }
        .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.active{
            background: var(--accent-light);
            color: var(--accent);
            font-weight: 600;
        }
        .search-engine-option.active::after{
            content: '✓';
            margin-left: auto;
            font-weight: 700;
        }.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: var(--eng, #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;
            overflow: hidden;                   /* 裁掉画出边框的四条线超出圆角的部分 */
        }.search-input-wrap button:hover{
            /* 底色保持引擎色，靠白色描边 + 投影反馈，避免反白后按钮「消失」在白色输入框里 */
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
        }.search-input-wrap button:active{
            transform: scale(0.97);
        }
        /* 悬停/聚焦时四条线合围成描边（交互参考 baidu 采集台的 .btn .line）
           线必须是白色：#4285f4 这类引擎色画在同色底上完全看不见 */
        .search-input-wrap button .line{
            position: absolute;
            z-index: 3;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 1px;
            pointer-events: none;
            transition: 0.3s ease;
        }
        .search-input-wrap button .line-top{ height: 2px; width: 0; left: 3px; top: 3px; }
        .search-input-wrap button .line-right{ width: 2px; height: 0; top: 3px; right: 3px; }
        .search-input-wrap button .line-bottom{ height: 2px; width: 0; right: 3px; bottom: 3px; }
        .search-input-wrap button .line-left{ width: 2px; height: 0; bottom: 3px; left: 3px; }
        .search-input-wrap button:hover .line-top,
        .search-input-wrap button:focus-visible .line-top{ width: calc(100% - 6px); }
        .search-input-wrap button:hover .line-right,
        .search-input-wrap button:focus-visible .line-right{ height: calc(100% - 6px); }
        .search-input-wrap button:hover .line-bottom,
        .search-input-wrap button:focus-visible .line-bottom{ width: calc(100% - 6px); }
        .search-input-wrap button:hover .line-left,
        .search-input-wrap button:focus-visible .line-left{ height: calc(100% - 6px); }
        @media (prefers-reduced-motion: reduce){
            .search-input-wrap button .line{ transition: none; }
        }/* 搜索引擎按钮颜色：只声明主题色变量，底色/描边/悬停反白统一由 --eng 驱动 */
        .search-input-wrap button.engine-baidu{ --eng: #4285f4; }.search-input-wrap button.engine-google{ --eng: #ea4335; }.search-input-wrap button.engine-bing{ --eng: #008373; }.search-input-wrap button.engine-sogou{ --eng: #ff6a00; }.search-input-wrap button.engine-360{ --eng: #10b981; }.search-input-wrap button.engine-toutiao{ --eng: #e74c3c; }.search-input-wrap button.engine-site-search{ --eng: #5436da;         }.click-history{
            display: flex;
            gap: 10px;
            justify-content: center;
            /* 不换行：记录条高度恒定，渲染前后 hero（垂直居中）不会被推得上下跳 */
            flex-wrap: nowrap;
            margin-top: 30px;
            position: relative;
            z-index: 1;
            /* 占位高度 = 渲染后单行高度：刷新时点击记录后加载不会改变 hero 内容总高 */
            min-height: 24px;
            /* 加载完毕后再缓慢浮现：延迟 0.55s，只动 opacity/位移（不影响布局，不会引起 hero 抖动） */
            animation: chFloatIn .7s cubic-bezier(.22, 1, .36, 1) .55s both;
        }
        /* 用户手动开启记录条时立即显示（不要等延迟） */
        .click-history.ch-now{
            animation: none;
        }
        @keyframes chFloatIn{
            from{ opacity: 0; transform: translateY(10px); }
            to  { opacity: 1; transform: translateY(0); }
        }
        @media (prefers-reduced-motion: reduce){
            .click-history{ animation: none; }
        }
        .click-history .click-label{
            color: rgba(255,255,255,0.72);
            font-size: 13px;
            text-shadow: 0 1px 6px rgba(0,0,0,.35);
            display: flex;
            align-items: center;
            white-space: nowrap;
        }.click-history .click-label .cl-icon{
            flex-shrink: 0;
            margin-right: 5px;
            opacity: .9;
        }.click-history .click-item{
            position: relative;
            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: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            cursor: pointer;
            /* 底部为原点，浮动时像 dock 一样向上抬起（缩放由 JS 按鼠标距离实时计算） */
            transform-origin: center bottom;
            transition: transform .18s cubic-bezier(.2,.8,.3,1), background .22s ease, color .22s ease, box-shadow .28s ease;
            will-change: transform;
        }.click-history .click-item:hover{
            color: #fff;
            background: rgba(255,255,255,0.22);
            border-color: rgba(255,255,255,0.3);
            box-shadow: 0 12px 26px rgba(0,0,0,0.28);
            z-index: 3;
        }/* 悬停时图标再放大一点 */
        .click-history .click-item .ci-icon,
        .click-history .click-item .ci-icon-img{
            transition: transform .3s cubic-bezier(.2,.9,.25,1.15);
        }.click-history .click-item:hover .ci-icon,
        .click-history .click-item:hover .ci-icon-img{
            transform: scale(1.18);
        }/* 悬停时被截断的名字自动展开显示全称 */
        .click-history .click-item:hover .ci-name{
            max-width: 260px;
        }.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;
            transition: max-width .3s cubic-bezier(.2,.9,.25,1.15);
        }.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);
        }        /* ===== 热榜区域（搜索框下方，多平台并列展示）===== */
        /* 数据就绪前整块隐藏；就绪后由 JS 做从上往下的展开动画（max-height + 淡入） */
        .hero-hotlist-section.hotlist-pending{
            display: none;
        }
        .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{
            border-color: var(--accent);
            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-tabs-header{
            display: flex;
            align-items: center;
            margin: 6px 10px 0;
            padding: 0 4px;
            gap: 18px;
            background: transparent;
            border: none;
            border-bottom: 1px solid var(--border-color);
            border-radius: 0;
            overflow: hidden;
        }
        .hero-hot-card-tab{
            position: relative;
            flex: none;
            padding: 7px 2px;
            margin-bottom: -1px;                 /* 指示条压在整行底线上 */
            font-size: 12.5px;
            font-weight: 500;
            color: var(--text-secondary);
            background: transparent;
            border: none;
            border-radius: 0;
            cursor: pointer;
            white-space: nowrap;
            text-align: center;
            transition: color 0.2s;
        }/* 选中段指示条：压住灰线，加粗显蓝 */
        .hero-hot-card-tab::after{
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 3px;
            border-radius: 3px 3px 0 0;
            background: var(--accent);
            transform: scaleX(0);
            transform-origin: center;
            transition: transform 0.22s ease;
        }.hero-hot-card-tab:hover{
            color: var(--text-primary);
        }.hero-hot-card-tab.active{
            color: var(--accent);
            font-weight: 600;
        }.hero-hot-card-tab.active::after{
            transform: scaleX(1);
        }/* 热榜卡片列表 */
        .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 .section-title .s-icon i{
            color: inherit;   /* 与标题文字同色 */
            line-height: 1;
        }/* 工具卡片网格 */
        .tools-grid{
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 18px;
        }.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);
        }@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; }
        }/* ===== 热榜下方快捷导航（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-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: 0;                      /* padding 放到 .card-main，保证整张卡片都能点 */
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
            border: 1px solid var(--border-color);
        }/* 卡片主体：点击直达对方官网，铺满整张卡片 */
        .tool-card .card-main{
            padding: 22px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            color: inherit;
            text-decoration: none;
        }.tool-card:hover{
            transform: translateY(-4px);
            border-color: var(--accent);
            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: 40px;
            height: 40px;
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
            background: rgba(15,23,42,0.04);     /* 极淡托底：不画框，避免「卡片里再套一张小卡片」 */
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }/* 有真实 logo：品牌色 8% 的淡淡晕染，logo 不再压在饱和色块上发脏 */
        .tool-card .tool-avatar.has-img{
            background-image: linear-gradient(155deg, color-mix(in srgb, var(--brand, #4a7df3) 8%, #fff), #fbfcfe 78%);
        }/* 没有 logo：品牌色 + 首字，像一个正经的字母标 */
        .tool-card .tool-avatar.fallback{
            background: linear-gradient(150deg, color-mix(in srgb, var(--brand, #4a7df3) 78%, #fff), var(--brand, #4a7df3));
            box-shadow: 0 2px 7px color-mix(in srgb, var(--brand, #4a7df3) 30%, transparent);
        }.tool-card:hover .tool-avatar{
            transform: translateY(-1px);
        }.tool-card .tool-avatar-img{
            width: 100%;
            height: 100%;
            padding: 4px;
            box-sizing: border-box;
            object-fit: contain;                 /* contain 而不是 cover：logo 不被裁边、不放大到发虚 */
            display: block;
        }.tool-card .tool-avatar-txt{
            color: #fff;
            font-size: 16px;
            font-weight: 700;
            line-height: 1;
            letter-spacing: 0.5px;
            text-shadow: 0 1px 2px rgba(15,23,42,0.18);
        }.tool-card .tool-avatar-emoji{
            font-size: 20px;
            line-height: 1;
        }.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;
        }/* 卡片右下角的「详情」入口：常显，点击进入本站详情页 /k/{kid}
           （卡片本体点击仍然是直达对方官网） */
        .tool-card .card-quick{
            position: absolute;
            bottom: 10px;                   /* 右下角：与底部标签同一行，不再压住标题 */
            right: 10px;
            z-index: 2;
            height: 22px;
            padding: 0 7px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
            font-size: 11px;
            line-height: 1;
            white-space: nowrap;
            color: var(--text-secondary);
            text-decoration: none;
            background: var(--tag-bg);
            opacity: 1;
            transition: all var(--transition-base);
        }/* 详情按钮在右下角，标签行右侧统一留白，避免压住标签文字；
           没有标签的卡片改由描述末行留白（:has 不支持的旧浏览器最多轻微重叠） */
        .tool-card .card-tags{ padding-right: 62px; }
        .tool-card:has(> .card-quick):not(:has(.card-tags)) .tool-desc{ padding-right: 62px; }.tool-card:hover .card-quick{ background: var(--accent); color: #fff; }.tool-card .card-quick:hover{ background: var(--orange); color: #fff; }/* 搜索结果里的「直达官网」 */
        .result-visit{
            flex-shrink: 0;
            font-size: 12px;
            padding: 2px 9px;
            border-radius: var(--radius-sm);
            background: var(--tag-bg);
            color: var(--tag-color);
            text-decoration: none;
            transition: all var(--transition-base);
        }.result-visit:hover{ background: var(--orange); color: #fff; }/* 页脚 */
        .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);
        }.footer-beian{
            margin-top: 6px;
            font-size: 13px;
        }.footer-beian a{
            color: var(--text-secondary);
            text-decoration: none;
            transition: color var(--transition-base);
        }.footer-beian 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: 900px){
            .group-tabs-more,
            .group-tabs:hover .group-tabs-more,
            .group-tabs:focus-within .group-tabs-more {
                max-width: none;
                opacity: 1;
                overflow: visible;
                pointer-events: auto;
                transition: none;
            }
            .group-tabs-more .group-tab,
            .group-tabs:hover .group-tabs-more .group-tab,
            .group-tabs:focus-within .group-tabs-more .group-tab {
                transform: none;
                opacity: 1;
                transition: none;
                transition-delay: 0s;
            }
            .group-tabs:hover { overflow-x: auto; }
        }@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 .auth-note{
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin: 2px 0 16px;
            padding: 12px 14px;
            border-radius: 10px;
            background: #fff4e5;
            border: 1px solid #ffd8a8;
            border-left: 4px solid var(--orange);
            color: #9a4a06;
            font-size: 13.5px;
            font-weight: 500;
            line-height: 1.6;
            box-shadow: 0 2px 8px rgba(255, 96, 0, 0.10);
        }.auth-modal .auth-note::before{
            content: '💡';
            flex: 0 0 auto;
            font-size: 15px;
            line-height: 1.5;
        }.dark .auth-modal .auth-note,
        [data-theme="dark"] .auth-modal .auth-note{
            background: rgba(255, 96, 0, 0.12);
            border-color: rgba(255, 96, 0, 0.35);
            border-left-color: var(--orange);
            color: #ffc08a;
        }/* 验证码组样式 */
        .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;
        }/* 密码显示/隐藏切换 */
        .auth-modal .pwd-wrap{ position: relative; }
        .auth-modal .pwd-wrap input{ padding-right: 46px; }
        .auth-modal .pwd-toggle{
            position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
            width: 34px; height: 34px; border: none; background: none; cursor: pointer;
            color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
            border-radius: 8px; padding: 0; font-size: 15px; transition: all .15s;
        }
        .auth-modal .pwd-toggle:hover{ color: var(--text-primary); background: var(--bg-secondary); }
        .auth-modal .pwd-toggle.pwd-show .fa-eye{ display: none; }
        .auth-modal .pwd-toggle.pwd-show .fa-eye-slash{ display: inline-block !important; }
        /* 按钮区域 - 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 内容区 ---- */
        .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;
        }/* ---- 审核列表 ---- */
        .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; }/* ---- 空状态 ---- */
        .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: 24px; left: 50%; transform: translateX(-50%);
            z-index: 2147483600; display: flex; flex-direction: column; align-items: center; gap: 8px;
            pointer-events: none; max-width: calc(100vw - 32px);
        }.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: translateY(-14px); opacity: 0; }
            to { transform: translateY(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;
            }
        }
/* ===== 回到顶部（全站通用，右侧半透明悬浮） ===== */
.to-top{
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 900;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    background: rgba(24,26,38,.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,.92);
    font-size: 16px;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    transition: opacity .2s, transform .2s, visibility .2s, background .2s;
}
.to-top.show{
    opacity: .72;
    visibility: visible;
    transform: translateY(0);
}
.to-top.show:hover{
    opacity: 1;
    background: var(--orange);
    transform: translateY(-2px);
}
@media (max-width: 640px){
    .to-top{
        right: 12px;
        bottom: 16px;
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

/* =========================================================
   移动端专项优化（首页）
   只在 ≤768px 生效，桌面样式完全不受影响；
   集中放在文件末尾，方便按端调整（等效"第二套 CSS"）
   ========================================================= */
/* 层级顺序（全局统一）：
   内容区浮层(.search-box-wrapper, 1) < 顶栏(.top-bar, 50，其下拉浮层随之)
   < 抽屉侧栏(.sidebar, 100) < 移动端视角面板(1200/1201) < 弹窗(10000)
   搜索框曾是 100，导致抽屉和顶栏下拉都被它压住，现已在基础规则里降到 1。 */

/* ===== 移动端视角选择面板（仅移动端按钮可唤起，桌面不显示） ===== */
.group-picker-btn{
    display: none;          /* 桌面隐藏，≤768px 由媒体查询改为 inline-flex */
}
.group-sheet-mask{
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}
.group-sheet-mask.show{
    opacity: 1;
    visibility: visible;
}
.group-sheet{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1201;
    background: var(--bg-secondary);
    border-radius: 20px 20px 0 0;
    padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    max-height: 74vh;
    overflow-y: auto;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .28s cubic-bezier(.32, .72, 0, 1), visibility .28s;
    box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.18);
}
.group-sheet.show{
    transform: translateY(0);
    visibility: visible;
}
.group-sheet-handle{
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    margin: 4px auto 14px;
}
.group-sheet-title{
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.group-sheet-list{
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.group-sheet-item{
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14.5px;
    text-align: left;
    transition: border-color .18s, color .18s, background .18s;
}
.group-sheet-item.active{
    border-color: var(--orange);
    color: var(--orange);
    font-weight: 600;
    background: rgba(255, 138, 0, 0.06);
}
body.sheet-lock{
    overflow: hidden;
}

@media (max-width: 768px){

    /* --- 抽屉侧栏：限宽 + 投影，不再占半个屏幕 --- */
    .sidebar{
        width: min(76vw, 290px);
        box-shadow: 10px 0 44px rgba(0, 0, 0, 0.32);
        transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    }
    .sidebar .sidebar-toggle{
        display: none;   /* 抽屉模式下不需要桌面那个收起按钮 */
    }

    /* --- 遮罩：由硬切改为平滑淡入淡出，并轻微模糊背景 --- */
    .sidebar-overlay{
        display: block;
        opacity: 0;
        visibility: hidden;
        background: rgba(15, 23, 42, 0.55);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        transition: opacity .28s ease, visibility .28s ease;
    }
    .sidebar-overlay.show{
        display: block;
        opacity: 1;
        visibility: visible;
    }
    /* 抽屉打开时锁定页面滚动（JS 配合加/移除该类） */
    body.sidebar-lock{
        overflow: hidden;
    }

    /* --- 首屏搜索区：收紧留白、隐藏两侧装饰 --- */
    .search-section{
        padding: 0;
        min-height: 0;
        margin-bottom: 0;
        border-radius: 0;
    }
    .search-section-inner{
        padding: 30px 16px 26px;
    }
    .search-section .sky-stage{
        display: none;
    }
    /* --- 搜索框：保持横排但自适应宽度，高度压缩；输入字号 16px 防 iOS 聚焦自动放大 --- */
    .search-box-wrapper{
        max-width: 100%;
        margin-top: 16px;
        border-radius: 12px;
    }
    .search-section h1{
        font-size: 20px;
        line-height: 1.35;
    }
    .search-engine-btn{
        height: 46px;
        padding: 0 10px 0 12px;
        font-size: 13px;
    }
    .search-input-wrap input{
        height: 46px;
        font-size: 16px;
        padding: 0 12px;
        border-radius: 0;
    }
    .search-input-wrap button{
        position: static;
        height: 46px;
        min-width: 64px;
        margin-left: 8px;
        border-radius: 0 8px 8px 0;
        padding: 0 14px;
        flex-shrink: 0;
    }
    .search-input-wrap button .line{
        display: none;   /* 描边动画在触屏上无意义 */
    }

    /* --- 点击记录：横向滑动，不再换行占高度 --- */
    .click-history{
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin-top: 24px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .click-history::-webkit-scrollbar{
        display: none;
    }
    .click-history .click-item{
        flex-shrink: 0;
    }

    /* --- 热榜区头部 --- */
    .hero-hotlist-section{
        margin-bottom: 26px;
    }
    .hero-hotlist-section-header{
        margin-bottom: 14px;
    }
    .hero-hotlist-section-title{
        font-size: 17px;
    }

    /* --- 内容区留白 --- */
    .content-area{
        padding: 14px;
    }
    .top-bar{
        padding: 0 14px !important;
        gap: 10px;
    }

    /* --- 顶栏：视角 Tab 行占满剩余空间横向滑动，右侧按钮组不被挤压裁切 --- */
    .top-bar .group-tabs{
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 4px 0;               /* 留出高亮背景的呼吸空间，避免圆角被裁 */
    }
    .top-bar .group-tabs::-webkit-scrollbar{
        display: none;
    }
    /* 移动端不再平铺一排视角，收成一个按钮 + 底部选择面板 */
    .top-bar .group-tabs{
        display: none;
    }
    .group-picker-btn{
        display: inline-flex;
        align-items: center;
        gap: 4px;
        flex: 0 1 auto;
        min-width: 0;
        height: 32px;
        padding: 0 11px;
        border-radius: 16px;
        border: 1px solid var(--border-color);
        background: var(--bg-secondary);
        color: var(--text-primary);
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }
    .group-picker-btn #groupPickerLabel{
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .group-picker-caret{
        font-size: 10px;
        opacity: .55;
        flex-shrink: 0;
    }
    .top-bar .group-tabs .group-tabs-more{
        display: contents;            /* 收纳容器在触屏上直接平铺（触屏没有 hover） */
    }
    .top-bar .group-tab{
        padding: 6px 12px;
        font-size: 12.5px;
        white-space: nowrap;
        transform: none;
        opacity: 1;
    }
    .top-bar .right-actions{
        flex-shrink: 0;
        gap: 8px;
    }
    .top-bar .action-btn{
        padding: 7px 9px;
    }

    /* --- 工具卡片：两列网格 + 收紧内边距，一屏能看到更多工具 --- */
    .tools-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .tool-card{
        border-radius: 14px;
    }
    .tool-card:active{
        transform: scale(.985);   /* 触屏没有 hover，给个按下反馈 */
    }
    .tool-card .card-main{
        padding: 12px 12px 13px;
        gap: 8px;
        height: 100%;
    }
    .tool-card .card-top{
        gap: 9px;
    }
    .tool-card .tool-avatar{
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }
    .tool-card .tool-avatar-txt{
        font-size: 14px;
    }
    .tool-card .tool-name{
        font-size: 13.5px;
        line-height: 1.35;
    }
    .tool-card .tool-desc{
        font-size: 11.5px;
        line-height: 1.5;
    }
    .tool-card .card-quick{
        bottom: 8px;
        right: 8px;
        height: 20px;
        padding: 0 6px;
        font-size: 10px;
    }
    /* 触屏上 :hover 会粘住，点完卡片一直保持抬起位移 —— 移动端取消 hover 效果 */
    .tool-card:hover{
        transform: none;
        border-color: var(--border-color);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }
    .hero-hot-card:hover{
        border-color: var(--border-color);
        box-shadow: none;
    }
    /* 标签只留一行，避免多标签把卡片撑高、行高不齐 */
    .tool-card .card-tags{
        flex-wrap: nowrap;
        overflow: hidden;
        gap: 5px;
    }
    .tool-card .card-tag{
        font-size: 10.5px;
        padding: 0 6px;
        flex-shrink: 0;
    }

    /* --- 移动端每类先只给 4 个精品，其余折叠，由「全部 N」展开 --- */
    .tool-card.mobile-extra{
        display: none;
    }
    .tools-grid.expanded .tool-card.mobile-extra{
        display: block;
    }
    .section-more{
        flex-shrink: 0;
        height: 28px;
        padding: 0 12px;
        border-radius: 14px;
        border: 1px solid var(--border-color);
        background: var(--bg-secondary);
        color: var(--text-secondary);
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }
    .section-more.expanded{
        color: var(--orange);
        border-color: var(--orange);
    }

    /* --- 分类区块：桌面是 48/24 的间距，移动端太散，整体收紧 --- */
    .section-header{
        margin: 26px 0 14px;
        padding-bottom: 10px;
    }
    .section-title{
        font-size: 16px;
        gap: 8px;
    }
    .section-header .section-title .s-icon{
        font-size: 18px;
    }

    /* --- 首屏：压缩留白，让工具列表更早出现 --- */
    .search-section{
        padding: 0;
        margin-bottom: 0;
    }
    .search-section-inner{
        padding: 22px 14px 20px;
    }
    .search-section h1{
        font-size: 18px;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }
    .content-area{
        padding: 12px;
    }

    /* --- 页脚：避开 iPhone 底部横条 --- */
    .footer{
        padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
        margin-top: 24px;
    }
}

@media (max-width: 480px){
    /* 一行式：引擎图标 | 输入框 | 搜索按钮
       （原来三段竖排要占 140px 高，横排只占 46px，首屏能多露出两行工具） */
    .search-box-wrapper{
        flex-direction: row;
        border-radius: 12px;
    }
    .search-engine-btn{
        height: 46px;
        padding: 0 8px 0 10px;
        border-radius: 12px 0 0 12px;
        gap: 4px;
    }
    .search-engine-btn #engineName{
        display: none;      /* 窄屏只留引擎图标，宽度让给输入框 */
    }
    .search-input-wrap{
        flex-direction: row;
        min-width: 0;
    }
    .search-input-wrap input{
        width: auto;
        height: 46px;
        padding: 0 10px;
        border-radius: 0;
        text-align: left;
    }
    .search-input-wrap button{
        width: auto;
        min-width: 54px;
        margin-left: 0;
        border-radius: 0;
        padding: 0 12px;
    }
    /* --- 引擎下拉：宽度对齐整个搜索框（原先相对引擎按钮定位，按钮只剩图标，
           面板被内容撑成一块窄条，比搜索框短一截、看着错位） --- */
    .search-engine-select{
        position: static;
    }
    .search-engine-dropdown{
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        min-width: 0;
        max-height: 58vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 14px;
        padding: 6px;
        box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
    }
    .search-engine-option{
        padding: 11px 12px;
        border-radius: 10px;
        font-size: 14.5px;
        gap: 11px;
    }
    .search-engine-option .engine-icon,
    .search-engine-option .engine-icon-svg{
        width: 21px;
        height: 21px;
    }
}

/* ============================================================
   热门 AI 图标坞（页面内版本）
   一排图标排在 top站点 / hot工具 上方，带一层与卡片同色系的背景条
   ============================================================ */
.ai-dock{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;             /* 整排居中 */
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    transition: border-color .2s, box-shadow .2s;
}.ai-dock:hover{
    /* 鼠标进入图标墙：边框变色，与 top站点/hot工具 卡片（quick-card:hover）同款 */
    border-color: var(--accent);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04), 0 2px 12px rgba(74, 125, 243, 0.15);
}

.ai-dock-item{
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    transform-origin: center;            /* 页面内版本向四周放大 */
    transition: transform .16s ease-out;
}
.ai-dock-item img,
.ai-dock-fallback{
    width: 30px;
    height: 30px;
    border-radius: 9px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14), inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}
.ai-dock-fallback{
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.ai-dock-item.is-custom img{ outline: 2px dashed rgba(99, 102, 241, .55); outline-offset: -2px; }

/* 悬浮名称提示 */
.ai-dock-tip{
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 4px 9px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}
.ai-dock-tip::after{
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.92);
}
.ai-dock-item:hover .ai-dock-tip{
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 深色模式 */
body.dark .ai-dock{
    background: rgba(23, 30, 46, 0.55);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
body.dark .ai-dock:hover{
    border-color: var(--accent);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35), 0 2px 12px rgba(74, 125, 243, 0.18);
}
body.dark .ai-dock-item img{ background: #fff; }

/* 窄屏：图标缩小，随卡片换行 */
@media (max-width: 768px){
    .ai-dock{ gap: 8px; padding: 10px 12px; border-radius: 14px; }
    .ai-dock-item{ width: 36px; height: 36px; }
    .ai-dock-item img, .ai-dock-fallback{ width: 27px; height: 27px; border-radius: 8px; }
    .ai-dock-tip{ display: none; }        /* 触屏没有 hover，提示无意义 */
}

@media (prefers-reduced-motion: reduce){
    .ai-dock-item{ transition: none; }
}

.noscript-tip {
    padding: 12px 16px; margin-bottom: 14px;
    border-radius: var(--radius-md); border: 1px solid var(--border-color);
    background: var(--accent-light); color: var(--text-primary); font-size: 13px;
}
