/* =====================================================================
   channel-ui.css —— 主站 style.css 的频道页（top/tool）子集
   由 lib/build_channel_ui.php 生成，请勿手工编辑；
   模板/类变更后重新执行：php lib/build_channel_ui.php
   ===================================================================== */

: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 {
            --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;   
        }

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;
        }

: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;
        }

.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;
        }

.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;   
            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;   
        }

.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-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;
        }

.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;
            
            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;
        }

.group-tabs {
            display: flex;
            gap: 4px;
            flex-wrap: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            perspective: 900px;     
            scrollbar-width: none;          
            -webkit-overflow-scrolling: touch;
            position: relative;
        }

.group-tabs::-webkit-scrollbar { display: none; }

.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;
        }

.group-tabs:hover,
.group-tabs:focus-within {
            overflow: visible;
            z-index: 60;
            
            background: var(--topbar-bg, var(--bg-secondary));
            border-radius: 0;
            filter: none;
        }

.group-tabs:hover .group-tabs-more,
.group-tabs:focus-within .group-tabs-more {
            
            position: absolute;
            left: calc(100% - 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; }

.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-picker-btn i {
            font-size: 13px;
            line-height: 1;
            vertical-align: -0.125em;
            display: inline-block;
            transform-origin: 50% 60%;
        }

.group-tab:hover i,
.group-picker-btn:hover i {
            animation: navIconShake .55s ease-in-out;
        }

.group-tab:hover {
            
            background: transparent;
            border-color: transparent;
        }

.group-tab.active {
            color: rgb(var(--sb-accent-rgb));
            font-weight: 600;
            
            z-index: 3;
        }

.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: 2;
            transition: transform .34s cubic-bezier(.22, 1.16, .36, 1), width .34s cubic-bezier(.22, 1.16, .36, 1);
        }

.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;
            }
}

.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;
        }

.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;
        }

.pref-wrap { position: relative; display: inline-flex; }

.pref-dropdown {
            
            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;
        }

.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 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; }

.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;
        }

.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;
            }
}

.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;
        }

@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;
        }

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%);
        }

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);
        }

.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;
        }

.search-section h1 {
    
    font-family: 'KaiTi', 'STKaiti', 'BiauKai', serif;
    font-size: clamp(36px, 4vw, 50px);
    font-weight: 700;
    
    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;
}

@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); }
}

.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);
            
            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);
            }
.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: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); }
}

@media (hover: hover){
.search-box-wrapper::before {
                content: '';
                position: absolute;
                inset: -3px;
                border-radius: inherit;
                padding: 2px;
                
                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;
            }
}

@property --ring-angle{
            syntax: '<angle>';
            initial-value: 0deg;
            inherits: false;
        }

@keyframes ringSpin{
            to{ --ring-angle: 360deg; }
        }

.search-box-wrapper:focus-within {
            box-shadow:
                0 4px 6px rgba(0,0,0,0.03),
                0 12px 36px rgba(65,127,249,0.18);
        }

.search-engine-select {
            position: relative;
            flex-shrink: 0;
            z-index: 101;
        }

.search-engine-btn {
            height: 52px;
            padding: 0 14px 0 18px;
            border: none;
            border-radius: 8px 0 0 8px;
            background: transparent;
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 7px;
            transition: background 0.2s;
            white-space: nowrap;
            position: relative;
        }

.search-engine-btn::after {
            content: '';
            position: absolute;
            right: 0;
            top: 25%;
            height: 50%;
            width: 1px;
            background: var(--border-color);
        }

.search-engine-btn:hover {
            background: rgba(0,0,0,0.03);
        }

.search-engine-dropdown {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            box-shadow: var(--card-hover-shadow);
            min-width: 150px;
            padding: 4px;
            display: none;
            z-index: 9999;
        
        }

.search-engine-dropdown.show {
            display: block;
        }

.search-engine-dropdown.show {
            
            animation: dropdownDropIn .55s cubic-bezier(.22, 1, .36, 1);
        }

@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); }
        }

@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); }
        }

.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;
        }

.engine-icon-svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            display: inline-block;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
        }

.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");
        }

.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");
        }

.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");
        }

.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);
        }

.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); }

.click-history {
            display: flex;
            gap: 10px;
            justify-content: center;
            
            flex-wrap: nowrap;
            margin-top: 30px;
            position: relative;
            z-index: 1;
            
            min-height: 24px;
            
            animation: chFloatIn .7s cubic-bezier(.22, 1, .36, 1) .55s both;
        }

@keyframes chFloatIn{
            from{ opacity: 0; transform: translateY(10px); }
            to  { opacity: 1; transform: translateY(0); }
        }

.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-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;
            
            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 {
            transition: transform .3s cubic-bezier(.2,.9,.25,1.15);
        }

.click-history .click-item:hover .ci-icon {
            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-name {
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            transition: max-width .3s cubic-bezier(.2,.9,.25,1.15);
        }

.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;
        }

.hero-hotlist-empty {
            grid-column: 1 / -1;
            text-align: center;
            padding: 40px 16px;
            color: var(--text-secondary);
            font-size: 13px;
        }

@keyframes spin{ 100% { transform: rotate(360deg); } }

.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: 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;
            }
}

@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;
            }
}

.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 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 .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 .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;
            }
}

.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-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-body {
            flex: 1; overflow: hidden; display: flex; gap: 0;
        }

.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-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;
        }

.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; }

@keyframes spin{ to { transform: rotate(360deg); } }

@keyframes pageSlideIn{ from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.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);
        }

@keyframes toastSlideIn{
            from { transform: translateY(-14px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

@keyframes fadeIn{ from { opacity: 0; } to { opacity: 1; } }

@keyframes modalPopIn{ from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.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-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; }

@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-content h3 { font-size: 17px; }
}

@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;
            }
}

.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);
}

.group-picker-btn {
    display: none;          
}

.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;
}

@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;
    }
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;
    }
.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;
    }
.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;            
    }
.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;
    }
.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;
    }
}

@media (max-width: 480px){
.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-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;
    }
}

.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;
}

