        :root {
            --primary-color: #ff6b6b;
            --secondary-color: #4d80ff;
            --dark-color: #333;
            --light-color: #f8f9fa;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
            --border-radius: 12px;
            --sidebar-width: 88px;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        .svg-sprite {
            position: absolute;
            width: 0;
            height: 0;
            overflow: hidden;
        }

        .svg-icon {
            display: inline-block;
            width: 1em;
            height: 1em;
            flex: 0 0 auto;
            color: inherit;
            fill: none;
            stroke: currentColor;
            stroke-width: 2.1;
            stroke-linecap: round;
            stroke-linejoin: round;
            vertical-align: -0.125em;
            pointer-events: none;
            overflow: visible;
        }

        .icon-spin {
            animation: icon-spin 0.9s linear infinite;
        }

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

        @media (prefers-reduced-motion: reduce) {
            .icon-spin {
                animation: none;
            }
        }
        
        body {
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            color: var(--dark-color);
            margin: 0;
            padding-left: var(--sidebar-width);
            padding-top: 52px;
            display: flex;
            justify-content: center;
            min-height: 100vh;
            background-color: #f5f7fa;
            background-image: url('wallpapers/peak.webp?v=2'); /*设置背景图片：首屏默认山峰，避免脚本执行前闪现「学习」图*/
            background-size:cover;  /*背景图片覆盖整个页面*/
            background-repeat: no-repeat;  /*防止背景图片重复*/
            background-attachment: fixed; /* 固定背景 */
            background-position: center center; /* 背景图片居中 */
            transition: padding-left 0.3s ease-in-out;
            position: relative;
            line-height: 1.6;
        }
        
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.1);
            z-index: -1;
        }

        body.shifted {
            padding-left: 0;
        }

        /* 顶栏 — 左侧时钟 + 中间打字机 */
        #scrolling-text {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 44px;
            color: var(--text-color);
            background: var(--glass-bg);
            border-bottom: var(--glass-border);
            backdrop-filter: blur(var(--glass-blur));
            z-index: 999;
            font-size: 13px;
            font-weight: 500;
            border-radius: 0;
        }

        #scrolling-text .top-bar-inner {
            height: 100%;
            display: flex;
            align-items: center;
            padding: 0 16px;
            position: relative;
        }

        #scrolling-text .top-bar-left {
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
            font-variant-numeric: tabular-nums;
            opacity: 0.92;
        }

        #scrolling-text .time-hm {
            font-size: 20px;
            font-weight: 650;
            letter-spacing: 0.5px;
            color: var(--primary-color);
            opacity: 0.95;
        }

        #scrolling-text .time-sep {
            font-size: 18px;
            font-weight: 200;
            color: var(--primary-color);
            opacity: 0.3;
            animation: time-sep-pulse 1s step-end infinite;
        }

        @keyframes time-sep-pulse {
            0%, 100% { opacity: 0.25; }
            50% { opacity: 0.75; }
        }

        #scrolling-text .time-sec {
            font-size: 12px;
            font-weight: 500;
            opacity: 0.55;
            margin-right: 0;
        }

        #scrolling-text .time-meta {
            position: relative;
            padding-left: 10px;
            margin-left: 4px;
        }

        #scrolling-text .time-meta::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 2px;
            height: 2px;
            border-radius: 50%;
            background: var(--text-color);
            opacity: 0.25;
        }

        #scrolling-text .time-meta .tm-row1 {
            font-size: 12px;
            font-weight: 500;
            opacity: 0.75;
            letter-spacing: 0.2px;
        }

        #scrolling-text .top-bar-center {
            flex: 1;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            min-width: 0;
            font-size: 13px;
            font-weight: 500;
            letter-spacing: 0.5px;
            opacity: 0.95;
            color: var(--text-color);
        }

        .tw-cursor {
            font-weight: 700;
            color: var(--primary-color);
            animation: tw-blink 0.6s step-end infinite;
            margin-left: 2px;
            font-size: 15px;
            opacity: 0.9;
        }

        @keyframes tw-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

        .top-bar-actions {
            display: none;
            align-items: center;
            gap: 4px;
            margin-left: auto;
            flex-shrink: 0;
        }

        .top-bar-actions .icon-button {
            width: 30px;
            height: 30px;
            border: none;
            background: color-mix(in srgb, var(--text-color) 6%, transparent);
            border-radius: 8px;
            color: var(--text-color);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .top-bar-actions .icon-button:hover {
            background: color-mix(in srgb, var(--text-color) 14%, transparent);
        }

        .top-bar-actions .icon-button .svg-icon {
            width: 16px;
            height: 16px;
        }
        .top-bar-actions .lang-toggle {
            font-size: 0.65rem;
            width: auto;
            min-width: 30px;
            padding: 0 6px;
        }

        #scrolling-text .top-bar-divider {
            width: 1px;
            height: 24px;
            background: var(--text-color);
            opacity: 0.1;
            flex-shrink: 0;
        }

        /* 侧边�?*/
        #sidebar {
            width: var(--sidebar-width);
            background-color: rgba(255, 255, 255, 0.8);
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            border-radius: 0 var(--border-radius) var(--border-radius) 0;
            padding: 20px 10px;
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            overflow-y: auto;
            z-index: 100;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            align-items: center;
            transition: transform 0.3s ease-in-out;
        }

        #sidebar.hidden {
            transform: translateX(calc(-1 * var(--sidebar-width)));
        }

        #sidebar ul {
            list-style: none;
            padding: 0;
            margin: 0;
            width: 100%;
        }

        #sidebar li {
            margin: 8px 0;
            position: relative;
        }

        #sidebar li a {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 8px 5px;
            text-decoration: none;
            color: var(--dark-color);
            border-radius: var(--border-radius);
            background-color: transparent;
            transition: var(--transition);
            font-size: 14px;
            text-align: center;
        }

        header.nav-main nav a .svg-icon,
        #sidebar li a .svg-icon {
            width: 18px;
            height: 18px;
            stroke-width: 2.2;
        }

        #sidebar li a .svg-icon {
            font-size: 18px;
            margin-bottom: 5px;
        }

        #sidebar li a:hover {
            background-color: rgba(255, 107, 107, 0.1);
            color: var(--primary-color);
        }

        #sidebar li a.active,
        .nav-link.active {
            background-color: rgba(255, 107, 107, 0.2);
            color: var(--primary-color);
            font-weight: 500;
        }

        #sidebar li a::after {
            content: "";
            display: block;
            width: 60%;
            height: 1px;
            background-color: rgba(0, 0, 0, 0.05);
            margin: 8px auto 0;
        }

        #sidebar li:last-child a::after {
            display: none;
        }

        #content {
            padding: 20px;
            transition: margin-left 0.3s ease-in-out;
            width: 100%;
            max-width: 1200px;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-sizing: border-box;
            margin-top: 20px;
        }

        #content.shifted {
            margin-left: 0;
        }

        /* 搜索区域 */
        .search-main {
            display: flex;
            /* flex-wrap: wrap; */
            align-items: center;
            justify-content: space-between;
            width: 90%;
            margin-bottom: 30px;
            gap: 15px;
        }

        /* 倒计时样�?*/
        .countdown-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: var(--dark-color);
            padding: 12px 20px;
            border-radius: var(--border-radius);
            background-color: rgba(255, 255, 255, 0.8);
            box-shadow: var(--shadow);
            min-width: 100px;
            transition: var(--transition);
        }

        .countdown-container:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        }

        .countdown-container .countdown-days {
            font-size: 14px;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 5px;
        }

        .countdown {
            font-size: 16px;
            font-weight: 700;
        }

        #kaoyan, #kaogong {
            color: var(--primary-color);
            font-size: 18px;
        }

        /* 搜索框整�?*/
        .search-area {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 60%;
            min-width: 300px;
            max-width: 600px;
            flex-grow: 1;
        }

        /* 搜索�?Tab 样式 */
        #search-tabs {
            display: flex;
            gap: 6px;
            width: 100%;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 12px;
        }

        #search-tabs button {
            font-size: 16px;
            padding: 6px 12px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 20px;
            background-color: rgba(255, 255, 255, 0.8);
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
        }

        #search-tabs button.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        #search-tabs button:hover {
            transform: scale(1.05);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        /* 搜索框样�?*/
        #search-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            position: relative;
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: var(--border-radius);
            padding: 5px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        #search-bar:hover {
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        }

        #search-input {
            flex: 1;
            padding: 12px 20px;
            border: none;
            border-radius: var(--border-radius);
            font-size: 14px;
            outline: none;
            background: transparent;
            transition: var(--transition);
        }

        #search-input:focus {
            box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.3);
        }

        #search-button {
            position: absolute;
            right: 15px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 16px;
            color: var(--primary-color);
            transition: var(--transition);
        }

        #search-button:hover {
            transform: scale(1.1);
        }

        /* 栏目样式 */
        .column {
            display: block;
            padding: 15px;
            width: 90%;
            margin: 20px auto;
            background-color: rgba(255, 255, 255, 0.7);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            scroll-margin-top: 96px;
        }

        .column.active {
            opacity: 1;
        }

        .sub-column {
            margin-bottom: 20px;
        }

        .column:not([data-no-tabs]) .sub-column h3 {
            display: none;
        }

        .sub-column h3 {
            margin: 15px 0;
            font-size: 18px;
            text-align: center;
            color: var(--dark-color);
            position: relative;
            padding-bottom: 8px;
        }

        .sub-column h3::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 2px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        }

        .card-container {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin: 15px 0;
            position: relative;
            justify-content: space-evenly;
            overflow: visible;
        }

        .card {
            position: relative;
            padding: 5px;
            color: var(--dark-color);
            background-color: rgba(255, 255, 255, 0.8);
            font-size: 16px;
            width: calc(20% - 12px);
            min-width: 120px;
            height: 80px;
            box-shadow: var(--shadow);
            border-radius: var(--border-radius);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            transition: var(--transition);
            cursor: pointer;
            overflow: hidden;
        }

        .card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .card img {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin-right: 8px;
            object-fit: contain;
        }

        .card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        .card:hover::before {
            transform: scaleX(1);
        }

        /* 响应式卡片布局 */
        @media (max-width: 600px) {
            .card {
                width: calc(50% - 12px);
            }
        }

        @media (min-width: 601px) and (max-width: 900px) {
            .card {
                width: calc(33.33% - 12px);
            }
        }

        @media (min-width: 901px) and (max-width: 1200px) {
            .card {
                width: calc(25% - 12px);
            }
        }

        @media (min-width: 1201px) {
            .card {
                width: calc(20% - 12px);
            }
        }

        /* 侧边栏切换按�?*/
        /* 弹窗样式优化 */
        .modal {
            display: none;
            position: fixed;
            z-index: 1002;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            overflow: auto;
            animation: modalFadeIn 0.3s ease-out;
        }

        .modal-content-wrapper {
            position: relative;
            background-color: white;
            margin: 10% auto;
            padding: 25px;
            border-radius: var(--border-radius);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
            max-width: 400px;
            width: 90%;
            max-height: 60vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

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

        .modal .title {
            font-size: 20px;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 15px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: linear-gradient(135deg, #ff8e8e 0%, #ff5252 100%); 
            color: white; 
            padding: 15px 20px; 
            margin: -25px -25px 20px -25px; 
            border-radius: var(--border-radius) 
            var(--border-radius) 0 0;
        }

        /* 弹窗文字区域优化 */
        .modal .content, .modal .modal-content {
            margin-bottom: 20px;
            height: 30vh;
            min-height: 200px;
            max-height: 350px;
            overflow-y: auto;
            padding: 10px;
            /* 隐藏滚动条但保留滚动功能 */
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE/Edge */
            /* scrollbar-width: thin;
            scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.1); */
            background: 
                linear-gradient(white 30%, rgba(255,255,255,0)),
                linear-gradient(rgba(255,255,255,0), white 70%) 0 100%,
                radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.1), rgba(0,0,0,0)),
                radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.1), rgba(0,0,0,0)) 0 100%;
            background-repeat: no-repeat;
            background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
            background-attachment: local, local, scroll, scroll;
            flex-grow: 1;
        }

        /* WebKit浏览器隐藏滚动条 */
        .modal .modal-content::-webkit-scrollbar {
            display: none;
        }

        /* .modal .content::-webkit-scrollbar, 
        .modal .modal-content::-webkit-scrollbar {
            width: 6px;
        } */

        .modal .content::-webkit-scrollbar-track, 
        .modal .modal-content::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 3px;
        }

        .modal .content::-webkit-scrollbar-thumb, 
        .modal .modal-content::-webkit-scrollbar-thumb {
            background-color: var(--primary-color);
            border-radius: 3px;
        }

        .modal p {
            margin: 10px 0;
            font-size: 14px;
            line-height: 1.6;
        }

        .modal img {
            display: block;
            margin: 15px auto;
            max-width: 100%;
            max-height: 200px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 24px;
            color: #aaa;
            cursor: pointer;
            transition: var(--transition);
            z-index: 1;
            background: rgba(255, 255, 255, 0.8);
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .modal-close:hover {
            color: var(--primary-color);
            transform: rotate(90deg);
            background: rgba(255, 255, 255, 0.9);
        }

        .modal-footer {
            display: flex;
            flex-shrink: 0; /* 防止缩小 */
            justify-content: center;
            padding-top: 15px;
            margin-top: auto;
            position: relative;
        }

        .modal .modal-footer button {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, var(--primary-color), #ff8e8e);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
        }

        .modal .modal-footer button:hover {
            background: linear-gradient(135deg, #ff5252, var(--primary-color));
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
        }

        /* 移动端适配 */
        @media (max-width: 768px) {
            .modal-content-wrapper {
                margin: 20px auto;
                max-height: 85vh;
                padding: 15px;
            }
            
            .modal .content, .modal .modal-content {
                max-height: 65vh;
            }
            
            .modal-close {
                top: 10px;
                right: 10px;
                font-size: 20px;
                width: 25px;
                height: 25px;
            }
        }

        /* 悬浮按钮样式 */
        .floating-button {
            position: fixed;
            background: linear-gradient(135deg, var(--primary-color), #ff8e8e);
            color: white;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 100;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: var(--transition);
            opacity: 0.9;
        }

        .floating-button:hover {
            opacity: 1;
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        #create-desktop-shortcut {
            bottom: 170px;
            right: 20px;
        }

        #open-contact-modal {
            bottom: 100px;
            right: 20px;
        }

        #scroll-to-top {
            bottom: 30px;
            right: 20px;
            display: none;
        }

        /* 移动端适配 */
        @media (max-width: 910px) {
            #search-tabs button {
                font-size: 13px;
                gap: 5px;
                padding: 5px 10px;
            }
            #kaoyan, #kaogong {
                color: var(--primary-color);
font-size: 18px;
            }
        }
        @media (max-width: 850px) {
            #search-tabs button {
                font-size: 14px;
                gap: 5px;
                padding: 5px 10px;
            }
            .countdown-container {
                display: none !important;
            }
            .card {
                width: calc(33% - 10px) !important;
                font-size: 14px;
                height:70px;
            }
        }
        @media (max-width: 768px) {
            body {
                padding: 60px 0 0 0;
                width: 100%;
            }
            
            #sidebar,
            #toggle-sidebar,
            .countdown-container {
                display: none !important;
            }


            #content {
                width: 100%;
                padding: 15px;
            }

            .search-main {
                flex-direction: column;
                gap: 15px;
            }

            #search-tabs {
                gap: 1px;
                width: 100%;
            }

            #search-tabs button {
                font-size: 12px;
                padding: 5px 8px;
            }

            .search-area {
                width: 80%;
                /* min-width: auto; */
            }
            .column {
            padding: 5px;
            width: 100%;
        }

            /* .countdown-container {
                width: 100%;
                flex-direction: row;
                justify-content: space-around;
            }

            .countdown-container .countdown-days {
                margin-bottom: 0;
                margin-right: 10px;
            } */

            header.nav-main {
                display: flex;
                justify-content: center;
                align-items: center;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                background-color: rgba(255, 255, 255, 0.6);
                z-index: 1000;
                padding: 10px;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            }

            header.nav-main nav {
                display: flex;
                justify-content: space-between;
                width: 100%;
                overflow-x: auto;
                padding: 5px 0;
                -webkit-overflow-scrolling: touch;
            }

            header.nav-main nav a {
                padding: 8px 12px;
                font-size: 12px;
                text-decoration: none;
                color: var(--dark-color);
                border-radius: 20px;
                background-color: rgba(0, 0, 0, 0.05);
                transition: var(--transition);
                white-space: nowrap;
                margin: 0 3px;
            }

            header.nav-main nav a:hover {
                background-color: rgba(255, 107, 107, 0.2);
                color: var(--primary-color);
            }

            .card {
                width: calc(33% - 10px) !important;
                font-size: 12px;
                height:60px;
            }
            .card img{
                width: 20px;
                height: 20px;
            }

            /* 移动端弹窗优�?*/
            .modal-content-wrapper {
                margin: 20px auto;
                max-height: 85vh;
            }

            .modal .content, .modal .modal-content {
                max-height: 65vh;
            }
        }

        @media (min-width: 769px) {
            header.nav-main {
                display: none;
            }
        }

        /* 2026 refresh: cleaner workbench-style navigation */
        :root {
            --primary-color: #d9485f;
            --secondary-color: #315ed8;
            --accent-color: #0f9488;
            --dark-color: #1f2937;
            --light-color: #f7f8fb;
            --text-color: #172033;
            --text-light: #667085;
            --surface: rgba(255, 255, 255, 0.92);
            --surface-strong: #ffffff;
            --surface-muted: rgba(247, 249, 252, 0.9);
            --card-bg: rgba(255, 255, 255, 0.78);
            --card-hover-bg: #ffffff;
            --nav-active-bg: #d9485f;
            --modal-heading-bg: #c43f58;
            --page-bg: #f4f7fb;
            --page-wash: rgba(245, 248, 252, 0.9);
            --page-wash-2: rgba(232, 241, 249, 0.86);
            --primary-soft: rgba(217, 72, 95, 0.12);
            --secondary-soft: rgba(49, 94, 216, 0.1);
            --accent-soft: rgba(15, 148, 136, 0.11);
            --line: rgba(32, 41, 57, 0.1);
            --ring: rgba(37, 99, 235, 0.24);
            --shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
            --transition: 180ms ease;
            --sidebar-transition: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
            --border-radius: 10px;
            --sidebar-width: 148px;
            --sidebar-collapsed-width: 48px;
            --glass-bg: color-mix(in srgb, var(--surface-strong) 68%, transparent);
            --control-glass-bg: color-mix(in srgb, var(--surface-strong) 78%, transparent);
            --control-glass-hover-bg: color-mix(in srgb, var(--surface-strong) 86%, var(--secondary-soft));
            --glass-blur: 12px;
            --glass-border: 1px solid var(--line);
            --background-image: url('wallpapers/peak.webp?v=2');
            --custom-background-image: none;
        }

        html[data-theme="dark"] {
            --primary-color: #ff7b8f;
            --secondary-color: #7aa7ff;
            --accent-color: #53d6c4;
            --dark-color: #f8fafc;
            --light-color: #101827;
            --text-color: #eef4ff;
            --text-light: #a7b4c8;
            --surface: rgba(20, 30, 48, 0.9);
            --surface-strong: #172033;
            --surface-muted: rgba(31, 44, 66, 0.88);
            --card-bg: rgba(25, 38, 58, 0.82);
            --card-hover-bg: rgba(35, 52, 78, 0.96);
            --nav-active-bg: #ff7b8f;
            --modal-heading-bg: #20304b;
            --page-bg: #0d1422;
            --page-wash: rgba(13, 20, 34, 0.92);
            --page-wash-2: rgba(24, 34, 54, 0.9);
            --primary-soft: rgba(255, 123, 143, 0.14);
            --secondary-soft: rgba(122, 167, 255, 0.16);
            --accent-soft: rgba(83, 214, 196, 0.14);
            --line: rgba(209, 224, 255, 0.15);
            --ring: rgba(122, 167, 255, 0.34);
            --shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
            color-scheme: dark;
            --glass-bg: color-mix(in srgb, var(--surface-strong) 55%, transparent);
            --control-glass-bg: color-mix(in srgb, var(--surface-strong) 78%, transparent);
            --control-glass-hover-bg: color-mix(in srgb, var(--surface-strong) 86%, rgba(255, 255, 255, 0.08));
        }


        html[data-palette="rose"] {
            --primary-color: #c45a7a;
            --secondary-color: #5b6dc9;
            --accent-color: #1f9a8a;
            --nav-active-bg: #c45a7a;
            --modal-heading-bg: #b34e6c;
            --page-bg: #f9f6f8;
            --page-wash: rgba(250, 248, 250, 0.92);
            --page-wash-2: rgba(240, 241, 249, 0.86);
            --primary-soft: rgba(196, 90, 122, 0.12);
            --secondary-soft: rgba(91, 109, 201, 0.1);
            --accent-soft: rgba(31, 154, 138, 0.1);
            --ring: rgba(91, 109, 201, 0.24);
        }

        html[data-theme="dark"][data-palette="rose"] {
            --primary-color: #ff8da0;
            --secondary-color: #92b0ff;
            --accent-color: #6bdfc8;
            --nav-active-bg: #ff8da0;
            --modal-heading-bg: #2a1836;
            --primary-soft: rgba(255, 141, 160, 0.14);
            --secondary-soft: rgba(146, 176, 255, 0.14);
            --accent-soft: rgba(107, 223, 200, 0.12);
            --ring: rgba(146, 176, 255, 0.32);
        }

        html[data-palette="ocean"] {
            --primary-color: #0d8f9c;
            --secondary-color: #3d78cb;
            --accent-color: #1aa77e;
            --nav-active-bg: #0d8f9c;
            --modal-heading-bg: #0b7d89;
            --page-bg: #f0f8fa;
            --page-wash: rgba(241, 249, 251, 0.92);
            --page-wash-2: rgba(226, 242, 248, 0.86);
            --primary-soft: rgba(13, 143, 156, 0.12);
            --secondary-soft: rgba(61, 120, 203, 0.1);
            --accent-soft: rgba(26, 167, 126, 0.1);
            --ring: rgba(13, 143, 156, 0.25);
        }

        html[data-theme="dark"][data-palette="ocean"] {
            --primary-color: #6cddec;
            --secondary-color: #8db1ff;
            --accent-color: #72eabc;
            --nav-active-bg: #6cddec;
            --modal-heading-bg: #0e2a3a;
            --primary-soft: rgba(108, 221, 236, 0.14);
            --secondary-soft: rgba(141, 177, 255, 0.14);
            --accent-soft: rgba(114, 234, 188, 0.12);
            --ring: rgba(108, 221, 236, 0.32);
        }

        html[data-palette="forest"] {
            --primary-color: #33845d;
            --secondary-color: #35788b;
            --accent-color: #9a8032;
            --nav-active-bg: #33845d;
            --modal-heading-bg: #2b7552;
            --page-bg: #f3f8f5;
            --page-wash: rgba(245, 250, 247, 0.92);
            --page-wash-2: rgba(230, 242, 236, 0.86);
            --primary-soft: rgba(51, 132, 93, 0.12);
            --secondary-soft: rgba(53, 120, 139, 0.1);
            --accent-soft: rgba(154, 128, 50, 0.1);
            --ring: rgba(51, 132, 93, 0.25);
        }

        html[data-theme="dark"][data-palette="forest"] {
            --primary-color: #8cdfaa;
            --secondary-color: #6ae6d0;
            --accent-color: #ccd685;
            --nav-active-bg: #8cdfaa;
            --modal-heading-bg: #142e1e;
            --primary-soft: rgba(140, 223, 170, 0.14);
            --secondary-soft: rgba(106, 230, 208, 0.12);
            --accent-soft: rgba(204, 214, 133, 0.11);
            --ring: rgba(140, 223, 170, 0.3);
        }

        html[data-palette="violet"] {
            --primary-color: #7a60c4;
            --secondary-color: #5470c8;
            --accent-color: #1e8fa8;
            --nav-active-bg: #7a60c4;
            --modal-heading-bg: #6a52b0;
            --page-bg: #f7f5fb;
            --page-wash: rgba(248, 247, 252, 0.92);
            --page-wash-2: rgba(238, 236, 249, 0.86);
            --primary-soft: rgba(122, 96, 196, 0.12);
            --secondary-soft: rgba(84, 112, 200, 0.1);
            --accent-soft: rgba(30, 143, 168, 0.1);
            --ring: rgba(122, 96, 196, 0.26);
        }

        html[data-theme="dark"][data-palette="violet"] {
            --primary-color: #beabff;
            --secondary-color: #92b0ff;
            --accent-color: #6cddec;
            --nav-active-bg: #beabff;
            --modal-heading-bg: #2a1f4a;
            --primary-soft: rgba(190, 171, 255, 0.15);
            --secondary-soft: rgba(146, 176, 255, 0.13);
            --accent-soft: rgba(108, 221, 236, 0.12);
            --ring: rgba(190, 171, 255, 0.32);
        }

        html[data-palette="sunset"] {
            --primary-color: #b87340;
            --secondary-color: #5576b4;
            --accent-color: #338570;
            --nav-active-bg: #b87340;
            --modal-heading-bg: #a66639;
            --page-bg: #f8f6f3;
            --page-wash: rgba(250, 248, 245, 0.92);
            --page-wash-2: rgba(238, 243, 240, 0.86);
            --primary-soft: rgba(184, 115, 64, 0.12);
            --secondary-soft: rgba(85, 118, 180, 0.09);
            --accent-soft: rgba(51, 133, 112, 0.1);
            --ring: rgba(184, 115, 64, 0.25);
        }

        html[data-theme="dark"][data-palette="sunset"] {
            --primary-color: #f0b87a;
            --secondary-color: #92b0ff;
            --accent-color: #76dbc0;
            --nav-active-bg: #f0b87a;
            --modal-heading-bg: #402214;
            --primary-soft: rgba(240, 184, 122, 0.14);
            --secondary-soft: rgba(146, 176, 255, 0.13);
            --accent-soft: rgba(118, 219, 192, 0.11);
            --ring: rgba(240, 184, 122, 0.3);
        }

        html[data-palette="graphite"] {
            --primary-color: #586878;
            --secondary-color: #3d76b4;
            --accent-color: #1f8d82;
            --nav-active-bg: #586878;
            --modal-heading-bg: #4d5b6a;
            --page-bg: #f6f8fa;
            --page-wash: rgba(247, 249, 251, 0.92);
            --page-wash-2: rgba(234, 240, 246, 0.86);
            --primary-soft: rgba(88, 104, 120, 0.1);
            --secondary-soft: rgba(61, 118, 180, 0.1);
            --accent-soft: rgba(31, 141, 130, 0.1);
            --ring: rgba(88, 104, 120, 0.24);
        }

        html[data-theme="dark"][data-palette="graphite"] {
            --primary-color: #c9d5e3;
            --secondary-color: #8db1ff;
            --accent-color: #6cddec;
            --nav-active-bg: #c9d5e3;
            --modal-heading-bg: #1e2836;
            --primary-soft: rgba(201, 213, 227, 0.12);
            --secondary-soft: rgba(141, 177, 255, 0.13);
            --accent-soft: rgba(108, 221, 236, 0.11);
            --ring: rgba(201, 213, 227, 0.28);
        }

        html[data-palette="aurora"] {
            --primary-color: #1d9590;
            --secondary-color: #7269c4;
            --accent-color: #3784bc;
            --nav-active-bg: #1d9590;
            --modal-heading-bg: #198580;
            --page-bg: #f2f8f8;
            --page-wash: rgba(244, 250, 250, 0.92);
            --page-wash-2: rgba(233, 242, 248, 0.86);
            --primary-soft: rgba(29, 149, 144, 0.12);
            --secondary-soft: rgba(114, 105, 196, 0.1);
            --accent-soft: rgba(55, 132, 188, 0.1);
            --ring: rgba(29, 149, 144, 0.25);
        }

        html[data-palette="peach"] {
            --primary-color: #cc6868;
            --secondary-color: #557bbb;
            --accent-color: #bf8d3a;
            --nav-active-bg: #cc6868;
            --modal-heading-bg: #bc5c5c;
            --page-bg: #f9f5f4;
            --page-wash: rgba(251, 248, 247, 0.92);
            --page-wash-2: rgba(240, 244, 249, 0.86);
            --primary-soft: rgba(204, 104, 104, 0.12);
            --secondary-soft: rgba(85, 123, 187, 0.1);
            --accent-soft: rgba(191, 141, 58, 0.1);
            --ring: rgba(204, 104, 104, 0.25);
        }

        html[data-theme="dark"][data-palette="peach"] {
            --primary-color: #f2aaaa;
            --secondary-color: #9dbff0;
            --accent-color: #e2c07a;
            --nav-active-bg: #f2aaaa;
            --modal-heading-bg: #42222a;
            --primary-soft: rgba(242, 170, 170, 0.14);
            --secondary-soft: rgba(157, 191, 240, 0.13);
            --accent-soft: rgba(226, 192, 122, 0.11);
            --ring: rgba(242, 170, 170, 0.3);
        }

        html[data-palette="mint"] {
            --primary-color: #2d887d;
            --secondary-color: #467cc0;
            --accent-color: #84963e;
            --nav-active-bg: #2d887d;
            --modal-heading-bg: #287a70;
            --page-bg: #f4f9f7;
            --page-wash: rgba(245, 250, 249, 0.92);
            --page-wash-2: rgba(233, 243, 240, 0.86);
            --primary-soft: rgba(45, 136, 125, 0.12);
            --secondary-soft: rgba(70, 124, 192, 0.1);
            --accent-soft: rgba(132, 150, 62, 0.1);
            --ring: rgba(45, 136, 125, 0.25);
        }

        html[data-palette="sage"] {
            --primary-color: #658658;
            --secondary-color: #447892;
            --accent-color: #aa7448;
            --nav-active-bg: #658658;
            --modal-heading-bg: #58774e;
            --page-bg: #f6f8f4;
            --page-wash: rgba(248, 250, 247, 0.92);
            --page-wash-2: rgba(236, 244, 241, 0.86);
            --primary-soft: rgba(101, 134, 88, 0.12);
            --secondary-soft: rgba(68, 120, 146, 0.1);
            --accent-soft: rgba(170, 116, 72, 0.1);
            --ring: rgba(101, 134, 88, 0.25);
        }

        html[data-theme="dark"][data-palette="sage"] {
            --primary-color: #b8d5a2;
            --secondary-color: #96cee4;
            --accent-color: #e2b68e;
            --nav-active-bg: #b8d5a2;
            --modal-heading-bg: #263525;
            --primary-soft: rgba(184, 213, 162, 0.14);
            --secondary-soft: rgba(150, 206, 228, 0.13);
            --accent-soft: rgba(226, 182, 142, 0.11);
            --ring: rgba(184, 213, 162, 0.3);
        }

        html[data-palette="plum"] {
            --primary-color: #915a80;
            --secondary-color: #5d73b8;
            --accent-color: #338a82;
            --nav-active-bg: #915a80;
            --modal-heading-bg: #7f4e70;
            --page-bg: #f8f5f8;
            --page-wash: rgba(250, 248, 250, 0.92);
            --page-wash-2: rgba(240, 242, 249, 0.86);
            --primary-soft: rgba(145, 90, 128, 0.12);
            --secondary-soft: rgba(93, 115, 184, 0.1);
            --accent-soft: rgba(51, 138, 130, 0.1);
            --ring: rgba(145, 90, 128, 0.25);
        }

        html[data-theme="dark"][data-palette="plum"] {
            --primary-color: #dbaacc;
            --secondary-color: #abbdf5;
            --accent-color: #88dacf;
            --nav-active-bg: #dbaacc;
            --modal-heading-bg: #3a1e36;
            --primary-soft: rgba(219, 170, 204, 0.14);
            --secondary-soft: rgba(171, 189, 245, 0.13);
            --accent-soft: rgba(136, 218, 207, 0.11);
            --ring: rgba(219, 170, 204, 0.3);
        }

        html[data-palette="copper"] {
            --primary-color: #b0684c;
            --secondary-color: #4878aa;
            --accent-color: #658456;
            --nav-active-bg: #b0684c;
            --modal-heading-bg: #9e5d43;
            --page-bg: #f8f5f2;
            --page-wash: rgba(250, 248, 245, 0.92);
            --page-wash-2: rgba(237, 243, 240, 0.86);
            --primary-soft: rgba(176, 104, 76, 0.12);
            --secondary-soft: rgba(72, 120, 170, 0.1);
            --accent-soft: rgba(101, 132, 86, 0.1);
            --ring: rgba(176, 104, 76, 0.25);
        }

        html[data-theme="dark"][data-palette="copper"] {
            --primary-color: #e6a890;
            --secondary-color: #9cc3ef;
            --accent-color: #bcd6a2;
            --nav-active-bg: #e6a890;
            --modal-heading-bg: #3a201a;
            --primary-soft: rgba(230, 168, 144, 0.14);
            --secondary-soft: rgba(156, 195, 239, 0.13);
            --accent-soft: rgba(188, 214, 162, 0.11);
            --ring: rgba(230, 168, 144, 0.3);
        }

        html[data-theme="dark"][data-palette="mint"] {
            --primary-color: #78dccf;
            --secondary-color: #9dbff0;
            --accent-color: #cddb8e;
            --nav-active-bg: #78dccf;
            --modal-heading-bg: #12302e;
            --primary-soft: rgba(120, 220, 207, 0.14);
            --secondary-soft: rgba(157, 191, 240, 0.13);
            --accent-soft: rgba(205, 219, 142, 0.11);
            --ring: rgba(120, 220, 207, 0.3);
        }

        html[data-theme="dark"][data-palette="aurora"] {
            --primary-color: #6ee2d8;
            --secondary-color: #b8adff;
            --accent-color: #92ccff;
            --nav-active-bg: #6ee2d8;
            --modal-heading-bg: #0e2e36;
            --primary-soft: rgba(110, 226, 216, 0.14);
            --secondary-soft: rgba(184, 173, 255, 0.14);
            --accent-soft: rgba(146, 204, 255, 0.12);
            --ring: rgba(110, 226, 216, 0.32);
        }

        html[data-bg="none"] {
            --background-image: none;
        }

        html[data-bg="desk"] {
            --background-image: url('wallpapers/desk.webp');
        }

        html[data-bg="sky"] {
            --background-image: url('wallpapers/sky.webp');
        }

        html[data-bg="green"] {
            --background-image: url('wallpapers/green.webp');
        }

        html[data-bg="campus"] {
            --background-image: url('wallpapers/campus.webp');
        }

        html[data-bg="peak"] {
            --background-image: url('wallpapers/peak.webp?v=2');
        }

        html[data-bg="library"] {
            --background-image: url('wallpapers/library.webp');
        }

        html[data-bg="coast"] {
            --background-image: url('wallpapers/coast.webp');
        }

        html[data-bg="study"] {
            --background-image: url('123.webp');
        }

        html[data-bg="mountain"] {
            --background-image: url('wallpapers/mountain.webp');
        }

        html[data-bg="forest"] {
            --background-image: url('wallpapers/forest.webp');
        }

        html[data-bg="night"] {
            --background-image: url('wallpapers/night.webp');
        }

        html[data-bg="autumn"] {
            --background-image: url('wallpapers/autumn.webp');
        }

        html[data-bg="sunset"] {
            --background-image: url('wallpapers/sunset.webp');
        }

        html[data-bg="ocean"] {
            --background-image: url('wallpapers/coast.webp');
        }

        html[data-bg="lantern"] {
            --background-image: url('wallpapers/lantern.webp');
        }

        html[data-bg="mist"] {
            --background-image: url('wallpapers/mist.webp');
        }

        html[data-bg="ridge"] {
            --background-image: url('wallpapers/ridge.webp');
        }

        html[data-bg="starry"] {
            --background-image: url('wallpapers/starry.webp');
        }

        html[data-bg="space"] {
            --background-image: url('wallpapers/space.webp');
        }

        html[data-bg="sunrise"] {
            --background-image: url('wallpapers/sunrise.webp');
        }

        html[data-bg="meadow"] {
            --background-image: url('wallpapers/meadow.webp');
        }

        html[data-bg="window"] {
            --background-image: url('wallpaper-window.webp');
        }

        html[data-bg="notebook"] {
            --background-image: url('wallpapers/notebook.webp');
        }

        html[data-bg="nightdesk"] {
            --background-image: url('wallpapers/nightdesk.webp');
        }

        html[data-bg="custom"] {
            --background-image: var(--custom-background-image);
        }

        html {
            max-width: 100%;
            overflow-x: clip;
            scroll-behavior: smooth;
        }

        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--line);
            border-radius: 6px;
            border: 1px solid transparent;
            background-clip: content-box;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--text-light);
            background-clip: content-box;
        }

        body {
            display: block;
            width: 100%;
            max-width: 100%;
            overflow-x: clip;
            color: var(--text-color);
            padding-top: 46px;
            background-color: var(--page-bg);
            background-image: var(--background-image, url('wallpaper-window.webp'));
            background-size: cover;
            background-repeat: no-repeat;
            background-attachment: fixed;
            background-position: center;
            transition: padding-left var(--sidebar-transition), background-color var(--transition);
        }

        body::before {
            background:
                radial-gradient(circle at top left, var(--primary-soft), transparent 34rem),
                radial-gradient(circle at 90% 12%, var(--accent-soft), transparent 30rem);
            z-index: -1;
        }

        html[data-theme="dark"] body::before {
            background:
                radial-gradient(circle at top left, var(--primary-soft), transparent 34rem),
                radial-gradient(circle at 90% 12%, var(--accent-soft), transparent 30rem),
                linear-gradient(180deg, rgba(13, 20, 34, 0.55), rgba(13, 20, 34, 0.45));
        }

        body.sidebar-collapsed {
            padding-left: var(--sidebar-collapsed-width);
        }

        body.modal-open {
            overflow: hidden;
            overscroll-behavior: contain;
        }

        button,
        input,
        textarea {
            font: inherit;
        }

        button:focus-visible,
        a:focus-visible,
        input:focus-visible,
        textarea:focus-visible,
        .card:focus-visible {
            outline: 3px solid var(--ring);
            outline-offset: 3px;
        }

        #sidebar {
            position: fixed;
            left: 0;
            background: var(--glass-bg);
            border-right: var(--glass-border);
            box-shadow: none;
            border-radius: 0 14px 14px 0;
            justify-content: flex-start;
            align-items: stretch;
            gap: 0;
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            overflow: hidden auto;
            padding: 8px 8px 14px;
            will-change: width;
            contain: layout paint;
            z-index: 1001;
            top: 44px;
            height: calc(100vh - 44px);
            min-height: 0;
            transition:
                width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow var(--transition),
                background-color var(--transition),
                padding 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                backdrop-filter var(--transition);
        }

        html[data-theme="dark"] #sidebar {
            background: var(--glass-bg);
            border-right-color: rgba(255, 255, 255, 0.05);
        }

        #sidebar::-webkit-scrollbar {
            display: none;
        }

        #sidebar {
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        #sidebar.hidden {
            width: var(--sidebar-collapsed-width);
            transform: none;
            padding-inline: 6px;
        }

        .sidebar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            width: 100%;
            min-height: auto;
            padding: 0;
            margin-bottom: 6px;
            border-bottom: 1px solid var(--line);
            padding-bottom: 6px;
        }

        .sidebar-brand {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            flex: 1 1 auto;
            color: var(--text-color);
            font-weight: 800;
            letter-spacing: 0;
        }

        .brand-mark {
            width: 32px;
            height: 32px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 32px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
        }

        .brand-icon {
            width: 100%;
            height: 100%;
            display: block;
        }

        .sidebar-brand-text {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        #sidebar.hidden .sidebar-brand {
            display: none;
        }

        .sidebar-label {
            overflow: hidden;
            white-space: nowrap;
            max-width: 88px;
            opacity: 1;
            transform: translateX(0);
            transition: max-width var(--sidebar-transition), opacity 180ms ease, transform var(--sidebar-transition);
        }

        #sidebar.hidden .sidebar-header {
            justify-content: center;
            border-bottom: none;
            padding-bottom: 0;
            margin-bottom: 2px;
        }

        #sidebar li {
            margin: 5px 0;
        }

        #sidebar ul {
            flex: 1 1 auto;
            overflow-y: auto;
            overscroll-behavior: contain;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        #sidebar ul::-webkit-scrollbar {
            display: none;
        }

        #sidebar li a,
        header.nav-main nav a {
            color: var(--text-light);
            border: 1px solid transparent;
        }

        #sidebar li a {
            flex-direction: row;
            justify-content: flex-start;
            gap: 10px;
            min-height: 42px;
            padding: 0 12px;
            border-radius: 11px;
            position: relative;
            overflow: hidden;
            background: var(--glass-bg);
            border: var(--glass-border);
            transition:
                color var(--transition),
                background var(--transition),
                border-color var(--transition),
                padding var(--sidebar-transition),
                justify-content var(--sidebar-transition),
                border-radius var(--sidebar-transition);
        }

        header.nav-main nav a .svg-icon {
            width: 17px;
            height: 17px;
            stroke-width: 2.2;
        }

        #sidebar li a .svg-icon {
            flex: 0 0 18px;
            width: 18px;
            height: 18px;
            margin: 0;
            text-align: center;
            transition: margin var(--sidebar-transition), transform var(--transition), color var(--transition);
            font-size: 16px;
            stroke-width: 2.2;
        }

        #sidebar li a:hover .svg-icon {
            transform: scale(1.1);
            stroke-width: 2.35;
        }

        #sidebar li a.active .svg-icon {
            color: #ffffff;
        }

        #sidebar li a::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%) scaleY(0);
            width: 3px;
            height: 20px;
            border-radius: 0 3px 3px 0;
            background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
            transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        #sidebar li a:hover::before {
            transform: translateY(-50%) scaleY(0.6);
        }

        #sidebar li a.active::before {
            transform: translateY(-50%) scaleY(1);
        }

        #sidebar li a:hover,
        header.nav-main nav a:hover {
            background: color-mix(in srgb, var(--glass-bg) 92%, rgba(255, 255, 255, 0.12));
            color: var(--secondary-color);
            border-color: color-mix(in srgb, var(--secondary-color) 34%, transparent);
        }

        #sidebar li a.active,
        .nav-link.active {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: #ffffff;
            border-color: transparent;
            font-weight: 700;
            box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 25%, transparent);
        }

        #sidebar.hidden li a {
            justify-content: center;
            gap: 0;
            min-height: 40px;
            padding: 0;
            border-radius: 10px;
        }

        #sidebar.hidden li a::before {
            display: none;
        }

        #sidebar.hidden li a.active {
            box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
        }

        #sidebar.hidden li a .svg-icon {
            flex: 0 0 auto;
            margin: 0;
            font-size: 16px;
        }

        #sidebar.hidden .sidebar-label {
            max-width: 0;
            opacity: 0;
            transform: translateX(-6px);
        }

        .sidebar-tools {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
            width: 100%;
            margin-top: auto;
            padding-top: 12px;
            border-top: 1px solid var(--line);
            transition: border-color var(--transition), padding var(--sidebar-transition);
        }

        /* 两列网格按钮：图标在上、文字在下 */
        .sidebar-tool-grid {
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 3px;
            padding: 8px 4px 6px;
            min-height: 50px;
        }
        .sidebar-tool-grid .svg-icon {
            width: 18px;
            height: 18px;
        }
        .sidebar-tool-grid .sidebar-label {
            font-size: 11px;
            line-height: 1;
        }

        #sidebar.hidden .sidebar-tools {
            grid-template-columns: 1fr;
            justify-items: center;
            padding-top: 8px;
        }
        #sidebar.hidden .sidebar-tools .lang-toggle {
            display: none;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .icon-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border: 1px solid var(--line);
            border-radius: 10px;
            color: var(--text-color);
            background: var(--control-glass-bg);
            cursor: pointer;
            box-shadow: none;
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
        }

        .icon-button:hover {
            transform: translateY(-1px);
            color: var(--secondary-color);
            border-color: color-mix(in srgb, var(--secondary-color) 36%, var(--line));
            background: var(--control-glass-hover-bg);
        }

        /* 语言切换按钮 */
        .lang-toggle {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            min-width: 38px;
            width: auto;
            padding: 0 8px;
        }
        .lang-toggle:hover {
            background: var(--secondary-color);
            color: #fff;
            border-color: var(--secondary-color);
        }

        .theme-chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 30px;
            padding: 5px 9px;
            border: 1px solid var(--line);
            border-radius: 999px;
            color: var(--text-light);
            background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }

        .theme-chip:hover,
        .theme-chip.active {
            color: #ffffff;
            background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
            border-color: var(--secondary-color);
        }

        #sidebar.hidden .theme-chip {
            width: 38px;
            padding: 0;
            font-size: 0;
        }

        #sidebar.hidden .theme-chip .svg-icon {
            font-size: 13px;
        }

        .sidebar-tool-button {
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            width: 100%;
            min-height: 42px;
            padding: 0 12px;
            border: var(--glass-border);
            border-radius: 11px;
            color: var(--text-light);
            background: var(--control-glass-bg);
            cursor: pointer;
            font-size: 14px;
            font-weight: 700;
            line-height: 1;
            overflow: hidden;
            transition: color var(--transition), background var(--transition), border-color var(--transition), width var(--sidebar-transition), padding var(--sidebar-transition), justify-content var(--sidebar-transition), border-radius var(--sidebar-transition);
        }

        html[data-theme="dark"] .sidebar-tool-button {
            background: var(--control-glass-bg);
        }

        .sidebar-tool-button .svg-icon {
            flex: 0 0 18px;
            width: 18px;
            height: 18px;
            margin: 0;
            text-align: center;
            font-size: 16px;
            stroke-width: 2.2;
        }

        .sidebar-tool-button:hover {
            color: var(--secondary-color);
            border-color: color-mix(in srgb, var(--secondary-color) 34%, transparent);
            background: var(--control-glass-hover-bg);
        }

        #sidebar.hidden .sidebar-tool-button {
            justify-content: center;
            gap: 0;
            width: 100%;
            min-height: 40px;
            padding: 0;
            border-radius: 10px;
            justify-self: center;
        }

        #sidebar.hidden .sidebar-tool-button .svg-icon {
            flex: 0 0 auto;
            font-size: 16px;
        }

        /* 侧边栏语言切换按钮 */
        .sidebar-tool-button.lang-toggle {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.5px;
            justify-content: center;
        }
        .sidebar-tool-button.lang-toggle:hover {
            background: var(--secondary-color);
            color: #fff;
            border-color: var(--secondary-color);
        }
        #sidebar.hidden .sidebar-tool-button.lang-toggle .sidebar-label {
            display: none;
        }
        #sidebar.hidden .sidebar-tool-button.lang-toggle::after {
            content: attr(data-lang-label);
            font-size: 11px;
            font-weight: 700;
        }

        #sidebar li a::after {
            display: none;
        }

        #content {
            width: min(100%, 1320px);
            max-width: 1320px;
            padding: 24px 28px 48px;
            margin: 10px auto 0;
            min-width: 0;
        }

        .search-main {
            width: min(100%, 1160px);
            min-width: 0;
            align-items: stretch;
            gap: 16px;
            margin-bottom: 22px;
        }

        .countdown-container {
            min-width: 132px;
            padding: 14px 16px;
            background: var(--glass-bg);
            border: var(--glass-border);
            box-shadow: none;
            color: var(--text-color);
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            transition: box-shadow var(--transition), transform var(--transition), backdrop-filter var(--transition);
        }

        html[data-theme="dark"] .countdown-container {
            background: var(--glass-bg);
            border-color: rgba(255, 255, 255, 0.06);
        }

        .countdown-container:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .countdown-container .countdown-days {
            color: var(--text-light);
        }

        #kaoyan,
        #kaogong,
        .countdown {
            color: var(--primary-color);
        }

        .search-area {
            width: auto;
            max-width: 720px;
            min-width: 360px;
        }

        #search-tabs {
            justify-content: center;
            gap: 8px;
            margin-bottom: 10px;
        }

        #search-tabs button {
            min-height: 32px;
            padding: 5px 14px;
            border-radius: 999px;
            background: var(--glass-bg);
            border: var(--glass-border);
            color: var(--text-light);
            font-size: 13px;
            box-shadow: none;
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.2s ease, box-shadow var(--transition);
        }

        html[data-theme="dark"] #search-tabs button {
            background: var(--glass-bg);
            border-color: rgba(255, 255, 255, 0.08);
        }

        #search-tabs button:hover {
            transform: translateY(-1px);
            border-color: rgba(49, 94, 216, 0.3);
            color: var(--secondary-color);
            box-shadow: 0 4px 12px rgba(49, 94, 216, 0.1);
        }

        #search-tabs button:active {
            transform: translateY(0) scale(0.96);
        }

        #search-tabs button.active {
            background: var(--secondary-color);
            border-color: var(--secondary-color);
            color: #ffffff;
            box-shadow: 0 4px 12px color-mix(in srgb, var(--secondary-color) 30%, transparent);
        }

        #search-bar {
            min-height: 52px;
            padding: 0 8px 0 14px;
            background: var(--glass-bg);
            border: var(--glass-border);
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
        }

        html[data-theme="dark"] #search-bar {
            background: var(--glass-bg);
            border-color: rgba(255, 255, 255, 0.06);
        }

        #search-bar:hover,
        #search-bar:focus-within {
            border-color: rgba(49, 94, 216, 0.3);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
        }

        #search-input {
            min-width: 0;
            padding: 14px 46px 14px 4px;
            color: var(--text-color);
        }

        #search-input::placeholder {
            color: #667085;
        }

        #search-input:focus {
            box-shadow: none;
        }

        #search-button {
            right: 8px;
            width: 36px;
            height: 36px;
            border-radius: 9px;
            color: #ffffff;
            background: var(--secondary-color);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        #search-button:hover {
            transform: none;
            background: #1d4ed8;
        }

        .search-history {
            display: flex;
            width: 100%;
            max-width: 100%;
            align-self: stretch;
            flex-direction: row;
            flex-wrap: nowrap;
            justify-content: flex-start;
            align-content: flex-start;
            gap: 8px;
            max-height: none;
            margin: 10px 0 0;
            padding: 7px 8px 7px 2px;
            overflow-x: auto;
            overflow-y: hidden;
            scrollbar-width: thin;
            scrollbar-color: color-mix(in srgb, var(--primary-color) 34%, var(--secondary-color)) color-mix(in srgb, var(--surface-muted) 72%, transparent);
            scroll-snap-type: x;
            -webkit-overflow-scrolling: touch;
        }

        .search-history[hidden] {
            display: none;
        }

        #search-history {
            display: none !important;
        }

        .search-history::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        .search-history::-webkit-scrollbar-track {
            background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
            border-radius: 8px;
        }

        .search-history::-webkit-scrollbar-thumb {
            background: color-mix(in srgb, var(--primary-color) 34%, var(--secondary-color));
            border-radius: 8px;
            border: 2px solid transparent;
            background-clip: content-box;
        }

        .search-history::-webkit-scrollbar-thumb:hover {
            background: var(--secondary-color);
            border: 2px solid transparent;
            background-clip: content-box;
        }

        .search-feedback {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            width: 100%;
            margin: 8px 0 0;
            padding: 8px 10px;
            border: 1px solid color-mix(in srgb, var(--secondary-color) 24%, var(--line));
            border-radius: 9px;
            color: var(--text-light);
            background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
            font-size: 13px;
            font-weight: 700;
            line-height: 1.35;
        }

        .search-feedback[hidden] {
            display: none;
        }

        .search-feedback.is-empty {
            justify-content: center;
            padding: 12px;
            color: var(--text-color);
            background: color-mix(in srgb, var(--surface-muted) 82%, transparent);
            border-style: dashed;
        }

        #search-feedback-text {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        #clear-search-filter {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            min-height: 26px;
            padding: 4px 9px;
            border: 1px solid color-mix(in srgb, var(--secondary-color) 24%, var(--line));
            border-radius: 8px;
            color: var(--secondary-color);
            background: var(--surface-strong);
            font: inherit;
            font-size: 12px;
            cursor: pointer;
            transition: color var(--transition), background var(--transition), border-color var(--transition);
        }

        #clear-search-filter:hover {
            color: #ffffff;
            background: var(--secondary-color);
            border-color: var(--secondary-color);
        }

        #clear-search-filter .svg-icon {
            width: 13px;
            height: 13px;
            stroke-width: 2.5;
        }

        .search-token {
            position: relative;
            flex: 0 0 126px;
            width: 126px;
            height: 30px;
            min-width: 0;
            border: 1px solid color-mix(in srgb, var(--secondary-color) 22%, var(--line));
            border-radius: 9px;
            background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
            box-shadow: 0 2px 7px rgba(15, 23, 42, 0.05);
            scroll-snap-align: start;
        }

        .search-token-text {
            display: block;
            width: 100%;
            height: 100%;
            padding: 0 22px 0 9px;
            border: 0;
            background: transparent;
            color: var(--text-color);
            font: inherit;
            font-size: 12px;
            font-weight: 700;
            line-height: 30px;
            text-align: left;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
        }

        .search-token-text:hover {
            color: var(--secondary-color);
        }

        .search-token-remove,
        .search-token-search {
            position: absolute;
            right: 4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 15px;
            height: 15px;
            padding: 0;
            border: 1px solid color-mix(in srgb, var(--secondary-color) 26%, var(--line));
            border-radius: 999px;
            color: var(--text-light);
            background: var(--surface-strong);
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
            cursor: pointer;
            transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
        }

        .search-token-remove {
            top: -5px;
            right: -5px;
        }

        .search-token-search {
            right: -5px;
            bottom: -5px;
        }

        .search-token-remove:hover,
        .search-token-search:hover {
            color: #ffffff;
            background: var(--secondary-color);
            border-color: var(--secondary-color);
            transform: scale(1.06);
        }

        .search-token-remove .svg-icon,
        .search-token-search .svg-icon {
            width: 9px;
            height: 9px;
            stroke-width: 2.6;
        }

        .column {
            display: block;
            width: min(100%, 1160px);
            max-width: 100%;
            padding: 18px;
            margin: 0 auto 28px;
            background: var(--glass-bg);
            border: var(--glass-border);
            border-radius: 14px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
            scroll-margin-top: 96px;
            transition: box-shadow var(--transition), border-color var(--transition);
        }

        html[data-theme="dark"] .column {
            background: var(--glass-bg);
            border-color: rgba(255, 255, 255, 0.06);
        }

        .column.active {
            border-color: color-mix(in srgb, var(--secondary-color) 30%, transparent);
            box-shadow:
                0 10px 28px rgba(49, 94, 216, 0.07),
                0 0 0 1px color-mix(in srgb, var(--secondary-color) 10%, transparent);
        }

        .module-tabs {
            display: flex;
            flex-wrap: nowrap;
            gap: 8px;
            margin: 0 0 16px;
            padding: 4px;
            overflow-x: auto;
            scrollbar-width: thin;
            background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
            border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
            border-radius: 10px;
        }

        .module-tab {
            flex: 0 0 auto;
            width: 116px;
            min-height: 34px;
            padding: 7px 12px;
            color: var(--text-light);
            background: transparent;
            border: 1px solid transparent;
            border-radius: 8px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.25;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
        }

        .module-label {
            flex: 0 0 auto;
            width: 90px;
            padding: 7px 8px 7px 14px;
            font-weight: 700;
            font-size: 18px;
            color: var(--text-color);
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .module-label .svg-icon {
            color: var(--primary-color);
        }

        .module-sep {
            flex: 0 0 auto;
            padding: 7px 0;
            font-size: 14px;
            color: var(--line);
            user-select: none;
        }

        .module-tab:hover {
            color: var(--text-color);
            background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
        }

        .module-tab.active {
            color: var(--primary-color);
            background: var(--surface-strong);
            border-color: color-mix(in srgb, var(--secondary-color) 28%, transparent);
            box-shadow: 0 2px 8px rgba(49, 94, 216, 0.08);
        }

        .module-tab:focus-visible {
            outline: 3px solid var(--ring);
            outline-offset: 2px;
        }

        .sub-column {
            margin: 0;
            padding: 18px 0 22px;
            border-top: 1px solid var(--line);
        }



        .sub-column.is-tab-hidden {
            display: none;
        }

        body.searching .sub-column.is-tab-hidden {
            display: block;
        }

        .column:not([data-no-tabs]) .sub-column h3 {
            display: none;
        }

        .sub-column h3 {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 0 0 14px;
            padding: 0;
            color: var(--text-color);
            font-size: 16px;
            font-weight: 800;
            text-align: center;
            text-wrap: balance;
        }

        .sub-column h3 .svg-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            padding: 6px;
            box-sizing: border-box;
            border-radius: 8px;
            color: var(--secondary-color);
            background: linear-gradient(135deg, var(--secondary-soft), var(--accent-soft));
        }

        .sub-column h3::after {
            display: none;
        }

        .card-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
            gap: 10px;
            margin: 0;
            min-width: 0;
            justify-content: stretch;
        }



        .card {
            position: relative;
            width: auto !important;
            min-width: 0;
            max-width: 100%;
            min-height: 58px;
            height: auto;
            padding: 10px 12px;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 10px;
            color: var(--text-color);
            background: var(--control-glass-bg);
            border: var(--glass-border);
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            font-size: 14px;
            font-weight: 650;
            line-height: 1.25;
            text-align: center;
            overflow: hidden;
            word-break: keep-all;
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            transition:
                transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.2s ease,
                background 0.2s ease,
                box-shadow 0.25s ease,
                color 0.2s ease;
        }

        html[data-theme="dark"] .card,
        html[data-theme="dark"] #sidebar li a {
            background: var(--control-glass-bg);
            border-color: rgba(255, 255, 255, 0.08);
        }

        html[data-theme="dark"] #sidebar li a:hover {
            background: color-mix(in srgb, var(--glass-bg) 92%, rgba(255, 255, 255, 0.12));
        }

        .card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            border-radius: 10px 10px 0 0;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .card:hover::before {
            transform: scaleX(1);
        }

        .card:hover {
            transform: translateY(-2px);
            border-color: color-mix(in srgb, var(--secondary-color) 34%, transparent);
            background: var(--control-glass-hover-bg);
            box-shadow:
                0 6px 20px rgba(49, 94, 216, 0.1),
                0 2px 6px rgba(0, 0, 0, 0.04);
            color: var(--text-color);
        }

        .badge-new {
            position: absolute;
            top: 4px;
            left: 4px;
            font-size: 9px;
            font-weight: 800;
            line-height: 1;
            padding: 2px 5px;
            border-radius: 6px;
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            color: #fff;
            letter-spacing: 0.3px;
            box-shadow: 0 2px 6px rgba(238, 90, 36, 0.35);
            pointer-events: none;
            z-index: 1;
            animation: badge-pulse 2s ease-in-out infinite;
        }

        @keyframes badge-pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.75; transform: scale(1.05); }
        }

        html[data-theme="dark"] .card:hover {
            background: var(--control-glass-hover-bg);
            border-color: rgba(122, 167, 255, 0.2);
            box-shadow:
                0 6px 20px rgba(122, 167, 255, 0.08),
                0 2px 6px rgba(0, 0, 0, 0.1);
        }

        .card:active {
            transform: translateY(-1px) scale(0.98);
        }

        .card img {
            flex: 0 0 auto;
            width: 28px;
            height: 28px;
            max-width: 28px;
            margin: 0;
            border-radius: 8px;
            padding: 3px;
            background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
            border: 1px solid color-mix(in srgb, var(--surface-strong) 58%, var(--line));
            object-fit: contain;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background var(--transition), border-color var(--transition);
        }

        .card:hover img {
            transform: scale(1.15) rotate(-3deg);
            border-color: color-mix(in srgb, var(--secondary-color) 40%, transparent);
            background: linear-gradient(135deg, var(--secondary-soft), var(--primary-soft));
        }

        .card img.fallback-icon {
            padding: 0;
            border: 0;
            background: transparent;
        }

        .card:hover img.fallback-icon {
            transform: scale(1.15);
            border: 0;
            background: transparent;
        }

        html[data-theme="dark"] #search-input::placeholder,
        html[data-theme="dark"] #feedback-form ::placeholder {
            color: #a7b4c8;
        }

        .card-label {
            display: -webkit-box;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow-wrap: anywhere;
            text-align: center;
        }

        .frequent-recommendation-card {
            padding-top: 18px;
        }

        .frequent-count {
            position: absolute;
            top: 7px;
            right: 7px;
            z-index: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 20px;
            height: 18px;
            padding: 0 6px;
            border-radius: 999px;
            color: #ffffff;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border: 1px solid color-mix(in srgb, #ffffff 64%, transparent);
            box-shadow: 0 4px 10px rgba(49, 94, 216, 0.18);
            font-size: 11px;
            font-weight: 800;
            line-height: 1;
            white-space: nowrap;
            pointer-events: none;
        }

        .card::after {
            display: none;
            bottom: calc(100% + 10px);
            width: max-content;
            max-width: min(300px, 76vw);
            padding: 8px 12px;
            border-radius: 8px;
            background: #111827;
            color: #ffffff;
            font-size: 12px;
            font-weight: 500;
            line-height: 1.45;
            box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
            z-index: 20;
            pointer-events: none;
            transition: opacity 0.2s ease, transform 0.2s ease;
            transform: translateX(-50%) translateY(4px);
            opacity: 0;
        }

        .card:hover::after,
        .card:focus-visible::after {
            display: block;
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .card.is-hidden,
        .sub-column.is-empty {
            display: none !important;
        }

        .column.is-filtered-out,
        #sidebar a.search-filtered-out,
        .nav-link.search-filtered-out {
            display: none !important;
        }

        .column.search-empty::after {
            content: "没有找到匹配的网站，换个关键词试试";
            display: block;
            padding: 22px;
            color: var(--text-light);
            text-align: center;
            background: var(--surface-muted);
            border: 1px dashed rgba(102, 112, 133, 0.28);
            border-radius: 10px;
        }

        #toggle-sidebar {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 34px;
            gap: 0;
            width: 34px;
            height: 34px;
            padding: 0;
            color: var(--text-light);
            background: var(--glass-bg);
            border: var(--glass-border);
            border-radius: 10px;
            cursor: pointer;
            font-size: 12px;
            transition:
                background 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.25s ease,
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-radius 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                gap 0.2s ease;
        }

        #toggle-sidebar:hover {
            color: var(--secondary-color);
            border-color: color-mix(in srgb, var(--secondary-color) 34%, transparent);
            background: linear-gradient(135deg, var(--secondary-soft), rgba(255, 255, 255, 0.6));
        }

        #toggle-sidebar:active {
            background: rgba(100, 116, 139, 0.12);
        }

        html[data-theme="dark"] #toggle-sidebar {
            background: rgba(255, 255, 255, 0.06);
            color: #64748b;
        }

        html[data-theme="dark"] #toggle-sidebar:hover {
            background: linear-gradient(135deg, var(--secondary-soft), rgba(255, 255, 255, 0.08));
            color: #cbd5e1;
            border-color: rgba(255, 255, 255, 0.12);
        }

        #toggle-sidebar .svg-icon {
            color: inherit;
            font-size: 12px;
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            pointer-events: none;
        }

        #sidebar.hidden #toggle-sidebar {
            flex-basis: 32px;
            width: 32px;
            height: 32px;
            gap: 0;
            border-radius: 10px;
            color: #ffffff;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border: none;
            box-shadow: 0 3px 12px color-mix(in srgb, var(--secondary-color) 28%, transparent);
        }

        #sidebar.hidden #toggle-sidebar:hover {
            box-shadow: 0 5px 18px color-mix(in srgb, var(--secondary-color) 35%, transparent);
            transform: scale(1.06);
        }

        #sidebar.hidden #toggle-sidebar:active {
            transform: scale(0.92);
            box-shadow: 0 2px 6px color-mix(in srgb, var(--secondary-color) 18%, transparent);
        }

        html[data-theme="dark"] #sidebar.hidden #toggle-sidebar {
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
        }

        .modal {
            background: rgba(15, 23, 42, 0.54);
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            animation: none;
        }

        .modal.show {
            display: block;
        }

        .modal-content-wrapper {
            margin: 8vh auto;
            max-width: 460px;
            max-height: 78vh;
            border: 1px solid rgba(255, 255, 255, 0.72);
            border-radius: 14px;
            box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
        }

        #settings-modal .modal-content-wrapper {
            max-width: min(640px, calc(100vw - 28px));
        }

        #about-modal .modal-content-wrapper {
            max-width: min(540px, calc(100vw - 28px));
        }

        .modal .title {
            background: var(--modal-heading-bg);
            color: #ffffff;
            border-radius: 14px 14px 0 0;
        }

        .modal .content,
        .modal .modal-content {
            height: auto;
            max-height: 52vh;
            background: transparent;
        }

        .modal-close {
            border: 0;
            color: #475467;
        }

        .modal-close:hover {
            transform: none;
            color: #111827;
        }

        .modal .modal-footer button {
            background: var(--secondary-color);
            box-shadow: none;
            border-radius: 10px;
            min-height: 40px;
        }

        .modal .modal-footer button:hover {
            background: #1d4ed8;
            transform: none;
            box-shadow: none;
        }

        .modal button:disabled {
            cursor: not-allowed;
            opacity: 0.68;
        }

        .modal button.modal-close {
            width: 34px;
            height: 34px;
            min-height: 0;
            padding: 0;
            background: transparent;
            border-radius: 8px;
            box-shadow: none;
            position: absolute;
            top: 15px;
            right: 15px;
        }

        .modal .modal-close:hover {
            background: rgba(23, 32, 51, 0.08);
        }

        .modal .title {
            display: flex;
            align-items: center;
            gap: 10px;
            padding-right: 48px;
        }

        .announcement-panel {
            margin-bottom: 16px;
            padding: 13px 14px;
            background: var(--surface-muted);
            border: 1px solid var(--line);
            border-radius: 10px;
        }

        .announcement-panel p {
            margin: 0;
            color: var(--text-color);
            font-size: 15px;
            font-weight: 650;
        }

        .about-panel {
            margin-bottom: 16px;
            padding: 14px;
            color: var(--text-color);
            background: var(--surface-muted);
            border: 1px solid var(--line);
            border-radius: 10px;
        }

        .about-panel p {
            margin: 0;
            font-size: 14px;
            line-height: 1.7;
            text-align: left;
            text-wrap: pretty;
        }

        .about-panel .disclaimer {
            margin-top: 10px;
            padding-top: 10px;
            font-size: 12px;
            color: var(--text-light);
            border-top: 1px solid var(--line);
        }

        .about-update-list {
            margin-bottom: 16px;
        }

        .announcement-heading {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0 0 10px;
            color: var(--text-color);
            font-size: 15px;
            font-weight: 800;
        }

        .announcement-heading .svg-icon {
            color: var(--secondary-color);
        }

        .announcement-list {
            display: grid;
            gap: 8px;
            padding: 0;
            margin: 0 0 16px;
            list-style: none;
        }

        .announcement-list li {
            display: flex;
            gap: 8px;
            align-items: flex-start;
            color: var(--text-color);
            font-size: 14px;
            line-height: 1.5;
        }

        .announcement-list li span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 22px;
            height: 22px;
            margin-top: 0;
            color: #ffffff;
            background: var(--secondary-color);
            border-radius: 999px;
            font-size: 12px;
            font-weight: 800;
        }

        .announcement-note {
            display: flex;
            gap: 10px;
            padding: 12px;
            color: var(--text-color);
            background: var(--surface-muted);
            border: 1px solid var(--line);
            border-radius: 10px;
        }

        .announcement-note .svg-icon {
            margin-top: 2px;
            color: var(--secondary-color);
        }

        .announcement-note p,
        .feedback-hint {
            margin: 0;
            color: var(--text-light);
            font-size: 13px;
            line-height: 1.55;
        }

        .announcement-note b {
            color: var(--secondary-color);
        }

        #feedback-form {
            display: grid;
            gap: 14px;
        }

        .feedback-field {
            display: grid;
            gap: 7px;
        }

        .feedback-row {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        #feedback-form label {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--text-color);
            font-size: 13px;
            font-weight: 700;
        }

        #feedback-form textarea,
        #feedback-form input {
            width: 100%;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: var(--surface-strong);
            color: var(--text-color);
            outline: none;
            transition: border-color var(--transition), box-shadow var(--transition);
        }

        #feedback-form textarea {
            min-height: 120px;
            resize: vertical;
            padding: 11px 12px;
        }

        #feedback-form input {
            padding: 9px 10px;
        }

        #feedback-form textarea:focus,
        #feedback-form input:focus {
            border-color: rgba(37, 99, 235, 0.48);
            box-shadow: 0 0 0 3px var(--ring);
        }

        #feedback-form ::placeholder {
            color: #667085;
        }

        .feedback-hint {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .feedback-button-icon {
            margin-right: 5px;
        }

        #feedback-status {
            min-height: 18px;
            margin-top: -2px;
            color: var(--text-light);
            font-size: 12px;
        }

        .wechat-panel {
            display: grid;
            justify-items: center;
            gap: 12px;
            padding: 0;
            text-align: center;
        }

        .wechat-qr-frame {
            display: grid;
            place-items: center;
            width: min(268px, 78vw);
            padding: 10px;
            border: 1px solid var(--line);
            border-radius: 14px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92)),
                var(--surface-strong);
            box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12);
        }

        .wechat-qr-image {
            width: min(232px, calc(78vw - 20px));
            max-width: 100%;
            aspect-ratio: 1;
            object-fit: contain;
            border: 0;
            border-radius: 10px;
            background: #ffffff;
            box-shadow: none;
        }

        .wechat-qr-image:focus {
            outline: 3px solid var(--ring);
            outline-offset: 3px;
        }

        .wechat-hint {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            max-width: 310px;
            margin: 0;
            color: var(--text-light);
            font-size: 13px;
            line-height: 1.55;
        }

        .wechat-hint .svg-icon {
            color: var(--secondary-color);
        }

        .floating-button {
            width: 46px;
            height: 46px;
            background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 70%, var(--secondary-color)));
            box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
            opacity: 1;
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background var(--transition), box-shadow var(--transition);
        }

        .floating-button:hover {
            transform: translateY(-3px) scale(1.08);
            background: linear-gradient(135deg, var(--secondary-color), color-mix(in srgb, var(--secondary-color) 70%, var(--accent-color)));
            box-shadow: 0 16px 36px color-mix(in srgb, var(--secondary-color) 25%, rgba(17, 24, 39, 0.2));
        }

        #contact-author-modal .modal-content-wrapper {
            max-width: min(390px, calc(100vw - 28px));
        }

        #contact-author-modal .title {
            background: linear-gradient(135deg, #16a34a, #2563eb);
            padding-block: 12px;
        }

        #contact-author-modal .modal-content {
            padding: 8px 8px 0;
            overflow: visible;
        }

        #contact-author-modal .modal-footer {
            padding-top: 12px;
        }

        #contact-author-modal .modal-footer button {
            min-height: 38px;
            padding: 10px 12px;
            background: #16a34a;
        }

        #contact-author-modal .modal-footer button:hover {
            background: #15803d;
        }

        .floating-button:active {
            transform: translateY(-1px) scale(0.96);
        }

        header.nav-main {
            background: var(--glass-bg);
            border-bottom: var(--glass-border);
            backdrop-filter: blur(var(--glass-blur));
            gap: 8px;
        }

        .settings-panel {
            display: grid;
            gap: 20px;
            padding: 4px 0;
        }

        .settings-group {
            display: grid;
            gap: 10px;
        }

        .settings-group h4 {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0;
            color: var(--text-color);
            font-size: 14px;
            font-weight: 700;
        }

        .settings-group h4 .svg-icon {
            color: var(--secondary-color);
            font-size: 15px;
        }

        .settings-section-divider {
            height: 1px;
            background: var(--line);
            margin: 2px 0;
        }

        .countdown-settings {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .countdown-setting-item {
            --countdown-accent: var(--secondary-color);
            display: flex;
            flex-direction: column;
            gap: 10px;
            position: relative;
            padding: 14px;
            border-radius: 12px;
            background:
                linear-gradient(180deg, color-mix(in srgb, var(--countdown-accent) 8%, transparent), transparent 56%),
                var(--surface-strong);
            border: 1px solid color-mix(in srgb, var(--countdown-accent) 18%, var(--line));
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
        }

        .countdown-setting-item:nth-child(1) {
            --countdown-accent: var(--secondary-color);
        }

        .countdown-setting-item:nth-child(2) {
            --countdown-accent: var(--accent-color);
        }

        .countdown-setting-item label {
            align-self: flex-start;
            display: inline-flex;
            align-items: center;
            min-height: 22px;
            padding: 2px 8px;
            border-radius: 999px;
            background: color-mix(in srgb, var(--countdown-accent) 12%, transparent);
            border: 1px solid color-mix(in srgb, var(--countdown-accent) 18%, transparent);
            font-size: 11px;
            font-weight: 700;
            color: var(--countdown-accent);
            letter-spacing: 0;
        }

        .countdown-setting-item input[type="text"] {
            min-height: 34px;
            padding: 7px 10px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface-strong));
            color: var(--text-color);
            font-size: 13px;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .countdown-setting-item input[type="text"]:focus {
            border-color: var(--countdown-accent);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--countdown-accent) 16%, transparent);
        }

        .cd-date-row {
            display: flex;
            align-items: center;
            gap: 7px;
            overflow: visible;
        }

        .cd-date-row select {
            flex: 1;
            max-width: 100px;
            min-width: 0;
            height: 34px;
            padding: 0 26px 0 9px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--surface-muted);
            color: var(--text-color);
            font-size: 13px;
            outline: none;
            cursor: pointer;
            transition: border-color 0.2s, box-shadow 0.2s;
            box-sizing: border-box;
        }

        .cd-date-row select:focus {
            border-color: var(--countdown-accent);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--countdown-accent) 16%, transparent);
        }

        .cd-date-row span {
            font-size: 12px;
            color: var(--text-secondary);
            flex-shrink: 0;
        }

        .cd-date-row select.native-select-proxy {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
        }

        .select-combobox {
            position: relative;
            flex: 1;
            min-width: 0;
            max-width: 100px;
        }

        .custom-select-trigger {
            width: 100%;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 0 9px 0 10px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: color-mix(in srgb, var(--surface-muted) 84%, var(--surface-strong));
            color: var(--text-color);
            font-size: 13px;
            line-height: 1;
            cursor: pointer;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s, background var(--transition);
        }

        .custom-select-trigger::after {
            content: "";
            width: 7px;
            height: 7px;
            border-right: 1.5px solid currentColor;
            border-bottom: 1.5px solid currentColor;
            transform: translateY(-2px) rotate(45deg);
            opacity: 0.62;
            flex-shrink: 0;
        }

        .custom-select-trigger:hover,
        .custom-select-trigger[aria-expanded="true"] {
            border-color: color-mix(in srgb, var(--countdown-accent, var(--secondary-color)) 38%, var(--line));
            background: var(--surface-strong);
        }

        .custom-select-trigger:focus-visible {
            border-color: var(--countdown-accent, var(--secondary-color));
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--countdown-accent, var(--secondary-color)) 16%, transparent);
        }

        .custom-select-menu {
            position: fixed;
            z-index: 1012;
            margin: 0;
            padding: 5px;
            list-style: none;
            max-height: 184px;
            overflow-y: auto;
            border: 1px solid color-mix(in srgb, var(--secondary-color) 18%, var(--line));
            border-radius: 10px;
            background: var(--surface-strong);
            color: var(--text-color);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
            scrollbar-width: thin;
            scrollbar-color: color-mix(in srgb, var(--secondary-color) 48%, var(--line)) transparent;
        }

        .custom-select-menu[hidden] {
            display: none;
        }

        .custom-select-menu::-webkit-scrollbar {
            width: 8px;
        }

        .custom-select-menu::-webkit-scrollbar-track {
            background: transparent;
        }

        .custom-select-menu::-webkit-scrollbar-thumb {
            background: color-mix(in srgb, var(--secondary-color) 42%, var(--line));
            border: 2px solid var(--surface-strong);
            border-radius: 999px;
        }

        .custom-select-option {
            min-height: 30px;
            display: flex;
            align-items: center;
            padding: 0 9px;
            border-radius: 7px;
            font-size: 13px;
            cursor: pointer;
        }

        .custom-select-option:hover,
        .custom-select-option.active {
            background: color-mix(in srgb, var(--secondary-color) 12%, transparent);
            color: var(--secondary-color);
        }

        .custom-select-option[aria-selected="true"] {
            background: color-mix(in srgb, var(--secondary-color) 18%, transparent);
            color: var(--secondary-color);
            font-weight: 700;
        }

        @media (max-width: 560px) {
            .countdown-settings {
                grid-template-columns: 1fr;
            }

            .countdown-setting-item {
                padding: 13px;
            }

            .cd-date-row select,
            .select-combobox {
                max-width: none;
            }
        }

        /* 主题模式 */
        .theme-options {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
        }

        .theme-option {
            min-height: 40px;
            border: 1px solid var(--line);
            border-radius: 8px;
            color: var(--text-color);
            background: var(--surface-muted);
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
        }

        .theme-option:hover {
            color: var(--secondary-color);
            border-color: color-mix(in srgb, var(--secondary-color) 30%, var(--line));
            background: color-mix(in srgb, var(--secondary-soft), var(--surface-muted));
        }

        .theme-option.active {
            color: #ffffff;
            background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
            border-color: var(--secondary-color);
            box-shadow: 0 2px 8px color-mix(in srgb, var(--secondary-color) 25%, transparent);
        }

        /* 配色网格 — 纯色块 */
        .palette-grid {
            display: grid;
            grid-template-columns: repeat(9, 1fr);
            gap: 6px;
        }

        .palette-btn {
            position: relative;
            width: 100%;
            border: 1px solid var(--line);
            border-radius: 8px;
            cursor: pointer;
            padding: 5px 4px 4px;
            overflow: hidden;
            background: var(--card-bg);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
        }

        .palette-btn.active {
            border: 2px solid var(--secondary-color);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary-color) 30%, transparent);
            background: var(--secondary-color);
        }

        .palette-btn.active .btn-label {
            color: #fff;
        }

        .psw {
            display: block;
            width: 100%;
            aspect-ratio: 1;
            border-radius: 4px;
        }

        .psw-rose   { background: linear-gradient(135deg, #c43f64, #4f67d6 56%, #148f83); }
        .psw-ocean  { background: linear-gradient(135deg, #087d91, #3f6ac8 56%, #18a37f); }
        .psw-forest { background: linear-gradient(135deg, #2d7a55, #2b7282 56%, #8c7a22); }
        .psw-violet { background: linear-gradient(135deg, #7057c7, #3f69c7 56%, #1289a7); }
        .psw-sunset { background: linear-gradient(135deg, #b86a24, #506bb8 56%, #16816f); }
        .psw-graphite { background: linear-gradient(135deg, #4b596a, #3d6fb6 56%, #16877e); }
        .psw-aurora { background: linear-gradient(135deg, #168d8b, #7060c8 56%, #2e7fbc); }
        .psw-peach  { background: linear-gradient(135deg, #c75d5d, #4f75b8 56%, #b6852f); }
        .psw-mint   { background: linear-gradient(135deg, #277f74, #4075b8 56%, #7c8c36); }

        .btn-label {
            font-size: 10px;
            line-height: 1.2;
            color: var(--text-light);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            flex: 0 0 auto;
        }

        /* 背景区域头 — 标题 + 播放设置并排 */
        .bg-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
        }

        .bg-section-header h4 {
            margin: 0;
            min-width: 0;
        }

        .bg-rotate-control {
            display: inline-flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            min-width: 0;
            max-width: 100%;
        }

        .bg-rotate-control span {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--text-color);
            font-size: 13px;
            font-weight: 700;
            white-space: nowrap;
        }

        .bg-rotate-control .svg-icon {
            color: var(--secondary-color);
            font-size: 14px;
        }

        #bg-rotate-mode {
            padding: 5px 10px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--surface-muted);
            color: var(--text-color);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            outline: none;
            max-width: 100%;
            transition: border-color var(--transition), box-shadow var(--transition);
        }

        #bg-rotate-mode:hover {
            border-color: var(--secondary-color);
        }

        #bg-rotate-mode:focus {
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary-color) 25%, transparent);
        }

        .daily-toggle {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border: 1px solid var(--line);
            border-radius: 8px;
            color: var(--text-light);
            background: var(--surface-muted);
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
            transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
        }

        .daily-toggle:hover {
            color: var(--secondary-color);
            border-color: color-mix(in srgb, var(--secondary-color) 30%, var(--line));
            background: color-mix(in srgb, var(--secondary-soft), var(--surface-muted));
        }

        .daily-toggle.active {
            color: #ffffff;
            border-color: var(--accent-color);
            background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
            box-shadow: 0 2px 8px color-mix(in srgb, var(--accent-color) 22%, transparent);
        }

        .daily-toggle .svg-icon {
            font-size: 13px;
        }

        /* 背景网格 — 紧凑预览 */
        .bg-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 6px;
        }

        .bg-btn {
            position: relative;
            width: 100%;
            border: 1px solid var(--line);
            border-radius: 8px;
            cursor: pointer;
            padding: 5px 4px 4px;
            overflow: hidden;
            background: var(--card-bg);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
        }

        .bg-btn.active {
            border: 2px solid var(--secondary-color);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary-color) 30%, transparent);
            background: var(--secondary-color);
        }

        .bg-btn.active .btn-label {
            color: #fff;
        }

        .bg-preview {
            display: block;
            width: 100%;
            aspect-ratio: 4 / 3;
            border-radius: 4px;
        }

        .bgp-none { background: linear-gradient(135deg, #f8fafc, #dbeafe 52%, #ccfbf1); }
        .bgp-study { background-image: linear-gradient(135deg, rgba(217,72,95,0.32), rgba(49,94,216,0.2)), url(123.webp); background-size: cover; background-position: center; }
        .bgp-desk { background-image: linear-gradient(135deg, rgba(15,23,42,0.08), rgba(49,94,216,0.18)), url('wallpapers/desk.webp'); background-size: cover; background-position: center; }
        .bgp-sky { background-image: linear-gradient(135deg, rgba(30,58,138,0.14), rgba(113,86,217,0.22)), url('wallpapers/sky.webp'); background-size: cover; background-position: center; }
        .bgp-green { background-image: linear-gradient(135deg, rgba(22,101,52,0.16), rgba(139,154,61,0.2)), url('wallpapers/green.webp'); background-size: cover; background-position: center; }
        .bgp-campus { background-image: linear-gradient(135deg, rgba(49,94,216,0.18), rgba(15,148,136,0.18)), url('wallpapers/campus.webp'); background-size: cover; background-position: center; }
        .bgp-peak { background-image: linear-gradient(135deg, rgba(71,85,105,0.2), rgba(20,134,109,0.16)), url('wallpapers/peak.webp?v=2'); background-size: cover; background-position: center; }
        .bgp-library { background-image: linear-gradient(135deg, rgba(75,89,106,0.18), rgba(184,106,36,0.12)), url('wallpapers/library.webp'); background-size: cover; background-position: center; }
        .bgp-coast { background-image: linear-gradient(135deg, rgba(8,125,145,0.18), rgba(63,106,200,0.16)), url('wallpapers/coast.webp'); background-size: cover; background-position: center; }
        .bgp-window { background-image: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.12)), url(wallpaper-window.webp); background-size: cover; background-position: center; }
        .bgp-notebook { background-image: linear-gradient(135deg, rgba(180,83,9,0.18), rgba(217,70,120,0.12)), url('wallpapers/notebook.webp'); background-size: cover; background-position: center; }
        .bgp-nightdesk { background-image: linear-gradient(135deg, rgba(30,41,82,0.3), rgba(109,40,117,0.18)), url('wallpapers/nightdesk.webp'); background-size: cover; background-position: center; }
        .bgp-mountain { background-image: linear-gradient(135deg, rgba(45,55,72,0.3), rgba(99,102,241,0.18)), url('wallpapers/mountain.webp'); background-size: cover; background-position: center; }
        .bgp-forest { background-image: linear-gradient(135deg, rgba(22,101,52,0.25), rgba(20,134,109,0.18)), url('wallpapers/forest.webp'); background-size: cover; background-position: center; }
        .bgp-night { background-image: linear-gradient(135deg, rgba(30,41,82,0.35), rgba(109,40,117,0.2)), url('wallpapers/night.webp'); background-size: cover; background-position: center; }
        .bgp-autumn { background-image: linear-gradient(135deg, rgba(180,83,9,0.25), rgba(234,88,12,0.15)), url('wallpapers/autumn.webp'); background-size: cover; background-position: center; }
        .bgp-sunset { background-image: linear-gradient(135deg, rgba(200,80,30,0.25), rgba(200,50,100,0.15)), url('wallpapers/sunset.webp'); background-size: cover; background-position: center; }
        .bgp-ocean { background-image: linear-gradient(135deg, rgba(8,125,145,0.25), rgba(63,106,200,0.2)), url('wallpapers/coast.webp'); background-size: cover; background-position: center; }
        .bgp-lantern { background-image: linear-gradient(135deg, rgba(180,80,30,0.2), rgba(200,150,50,0.15)), url('wallpapers/lantern.webp'); background-size: cover; background-position: center; }
        .bgp-mist { background-image: linear-gradient(135deg, rgba(100,120,160,0.2), rgba(160,180,200,0.15)), url('wallpapers/mist.webp'); background-size: cover; background-position: center; }
        .bgp-ridge { background-image: linear-gradient(135deg, rgba(40,80,60,0.2), rgba(100,140,120,0.15)), url('wallpapers/ridge.webp'); background-size: cover; background-position: center; }
        .bgp-starry { background-image: linear-gradient(135deg, rgba(20,100,140,0.2), rgba(60,160,200,0.15)), url('wallpapers/starry.webp'); background-size: cover; background-position: center; }
        .bgp-space { background-image: linear-gradient(135deg, rgba(10,10,50,0.3), rgba(30,30,80,0.2)), url('wallpapers/space.webp'); background-size: cover; background-position: center; }
        .bgp-sunrise { background-image: linear-gradient(135deg, rgba(200,80,30,0.2), rgba(200,150,80,0.15)), url('wallpapers/sunrise.webp'); background-size: cover; background-position: center; }
        .bgp-meadow { background-image: linear-gradient(135deg, rgba(40,120,60,0.2), rgba(100,180,120,0.15)), url('wallpapers/meadow.webp'); background-size: cover; background-position: center; }

        .bg-btn-custom .bg-preview {
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px dashed color-mix(in srgb, var(--secondary-color) 52%, var(--line));
            background:
                radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 36%),
                linear-gradient(135deg, var(--secondary-soft), var(--accent-soft));
        }

        html[data-has-custom-bg="true"] .bg-btn-custom .bg-preview {
            border-style: solid;
            background-image:
                linear-gradient(135deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.05)),
                var(--custom-background-image);
            background-size: cover;
            background-position: center;
        }

        .bg-btn-custom .bg-preview .svg-icon {
            color: var(--secondary-color);
            font-size: 20px;
            opacity: 0.7;
            transition: color var(--transition), opacity var(--transition);
        }

        html[data-has-custom-bg="true"] .bg-btn-custom .bg-preview .svg-icon {
            color: #fff;
            opacity: 1;
            filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.65));
            background: rgba(0, 0, 0, 0.25);
            border-radius: 50%;
            width: 28px;
            height: 28px;
            padding: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .bg-btn-custom.active .bg-preview .svg-icon {
            color: #ffffff;
            opacity: 1;
        }

        @media (max-width: 980px) {
            body {
                padding-left: 0;
                padding-top: 46px;
            }

            #sidebar,
            #toggle-sidebar {
                display: none !important;
            }

            header.nav-main {
                display: none !important;
            }

            #content {
                padding-inline: 18px;
            }

            .top-bar-actions {
                display: flex;
            }
        }

        @media (max-width: 768px) {
            body {
                padding-top: 42px;
                background-attachment: scroll;
            }

            #scrolling-text {
                display: flex;
                height: 38px;
                font-size: 12px;
            }

            #scrolling-text .time-hm {
                font-size: 16px;
            }

            #scrolling-text .time-sep {
                font-size: 14px;
            }

            #scrolling-text .time-sec {
                font-size: 11px;
            }

            #scrolling-text .time-meta .tm-row1 {
                font-size: 10px;
            }

            #scrolling-text .top-bar-center {
                font-size: 11px;
                display: none;
            }

            #scrolling-text .top-bar-inner {
                flex: 1;
                padding: 0 10px;
            }

            .top-bar-actions {
                display: flex;
            }

            #content {
                padding: 12px 12px 34px;
            }

            .search-main {
                width: 100%;
                margin-bottom: 14px;
            }

            .search-area {
                width: 100%;
                min-width: 0;
            }

            #search-tabs {
                flex-wrap: nowrap;
                justify-content: center;
                overflow-x: auto;
                padding-bottom: 4px;
            }

            #search-tabs button {
                flex: 0 0 auto;
                font-size: 11px;
                padding: 5px 10px;
            }

            #search-bar {
                min-height: 48px;
            }

            .column {
                width: 100%;
                padding: 14px 12px;
                border-radius: 12px;
            }

            .sub-column {
                padding: 16px 0 18px;
            }

            .sub-column h3 {
                font-size: 13px;
            }

            .modal .title {
                font-size: 17px;
            }

            .announcement-heading {
                font-size: 13px;
            }

            .settings-group h4 {
                font-size: 12px;
            }

            .module-tab {
                font-size: 13px;
            }

            .module-label {
                font-size: 15px;
            }

            .countdown-container .countdown-days {
                font-size: 12px;
            }

            .card-container {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 7px;
            }

            .card {
                min-height: 54px;
                padding: 8px 6px;
                font-size: clamp(11px, 2.4vw, 14px);
                gap: 6px;
                word-break: break-word;
            }

            .card img {
                width: clamp(22px, 4.2vw, 28px);
                height: clamp(22px, 4.2vw, 28px);
                max-width: clamp(22px, 4.2vw, 28px);
                border-radius: 6px;
                padding: 2px;
            }

            .floating-button {
                width: 42px;
                height: 42px;
                right: 14px;
            }

            #create-desktop-shortcut {
                bottom: 132px;
            }

            #open-contact-modal {
                bottom: 78px;
            }

            #scroll-to-top {
                bottom: 24px;
            }

            .modal-content-wrapper {
                width: calc(100% - 24px);
                margin: 14px auto;
                max-height: calc(100vh - 28px);
            }

            .feedback-row {
                grid-template-columns: 1fr;
            }
        }

        /* ===== 益智游戏 ===== */
        .top-bar-actions {
            gap: 6px;
        }

        .games-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            height: 32px;
            padding: 0 12px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
            color: #ffffff;
            font-size: 13px;
            font-weight: 600;
            line-height: 1;
            cursor: pointer;
            white-space: nowrap;
            box-shadow: 0 2px 8px color-mix(in srgb, var(--secondary-color) 22%, transparent);
            transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
        }

        .games-toggle:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 16px color-mix(in srgb, var(--secondary-color) 36%, transparent);
            filter: brightness(1.06);
        }

        .games-toggle .svg-icon {
            width: 16px;
            height: 16px;
            flex: 0 0 auto;
        }

        /* 桌面端顶部右侧仅显示益智游戏入口，其余快捷操作仍在侧边栏 */
        @media (min-width: 981px) {
            .top-bar-actions {
                display: flex;
            }

            .top-bar-actions .icon-button {
                display: none;
            }
            /* 桌面端：隐藏顶栏语言按钮，侧边栏已有 */
            .top-bar-actions .lang-toggle {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .games-toggle {
                width: 30px;
                height: 30px;
                padding: 0;
                border-radius: 8px;
                background: color-mix(in srgb, var(--text-color) 6%, transparent);
                color: var(--text-color);
                box-shadow: none;
            }

            .games-toggle:hover {
                background: color-mix(in srgb, var(--text-color) 14%, transparent);
            }

            .games-toggle .games-toggle-label {
                display: none;
            }
            /* 移动端：顶栏显示语言按钮，侧边栏隐藏 */
            .top-bar-actions .lang-toggle {
                display: inline-flex;
                width: 30px;
                height: 30px;
                padding: 0;
                font-size: 0.65rem;
            }
            .sidebar-tools .lang-toggle {
                display: none;
            }
        }

        /* 益智游戏弹窗 */
        #games-modal .modal-content-wrapper {
            max-width: min(680px, calc(100vw - 28px));
        }

        #games-modal .modal-content {
            max-height: 62vh;
            padding: 16px;
        }

        .games-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
            gap: 12px;
        }

        .game-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 16px 10px 14px;
            text-align: center;
            text-decoration: none;
            background: var(--surface-muted);
            border: 1px solid var(--line);
            border-radius: 12px;
            color: var(--text-color);
            transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
        }

        .game-card:hover {
            transform: translateY(-2px);
            border-color: color-mix(in srgb, var(--secondary-color) 42%, var(--line));
            box-shadow: 0 6px 16px color-mix(in srgb, var(--secondary-color) 16%, transparent);
            background: var(--surface-strong);
        }

        .game-card .game-emoji {
            font-size: 30px;
            line-height: 1;
        }

        .game-card .game-name {
            font-size: 14px;
            font-weight: 700;
        }

        .game-card .game-desc {
            font-size: 12px;
            color: var(--text-light);
            line-height: 1.4;
        }



        /* ===== 侧边栏底部工具按钮美化 ===== */
        #sidebar:not(.hidden) .sidebar-tools {
            position: relative;
            gap: 8px;
            padding: 10px;
            margin-top: auto;
            border-top: none;
            border-radius: 16px;
            background:
                linear-gradient(165deg, var(--surface-strong), color-mix(in srgb, var(--surface-strong) 78%, var(--secondary-soft))) padding-box;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.55),
                0 8px 20px color-mix(in srgb, var(--line) 45%, transparent);
        }

        html[data-theme="dark"] #sidebar:not(.hidden) .sidebar-tools {
            background:
                linear-gradient(165deg, var(--surface-strong), color-mix(in srgb, var(--surface-strong) 84%, rgba(255, 255, 255, 0.05))) padding-box;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.06),
                0 10px 24px rgba(0, 0, 0, 0.3);
        }

        #sidebar:not(.hidden) .sidebar-tool-button {
            position: relative;
            min-height: 52px;
            padding: 6px 4px 5px;
            gap: 4px;
            border: none;
            border-radius: 12px;
            justify-content: center;
            align-items: center;
            background: transparent;
            color: var(--text-light);
            transition: color var(--transition), transform var(--transition), box-shadow var(--transition);
        }

        #sidebar:not(.hidden) .sidebar-tool-button::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 12px;
            background: var(--tool-hover-bg, rgba(0, 0, 0, 0.045));
            opacity: 0;
            transition: opacity var(--transition);
            z-index: 0;
            pointer-events: none;
        }

        #sidebar:not(.hidden) .sidebar-tool-button > * {
            position: relative;
            z-index: 1;
        }

        #sidebar:not(.hidden) .sidebar-tool-button .svg-icon {
            width: 20px;
            height: 20px;
            font-size: 18px;
            color: var(--tool-accent, var(--text-light));
            transition: transform var(--transition), color var(--transition);
        }

        #sidebar:not(.hidden) .sidebar-tool-button .sidebar-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.2px;
        }

        #sidebar:not(.hidden) .sidebar-tool-button:hover {
            transform: translateY(-2px);
            color: var(--tool-accent, var(--text-color));
            box-shadow: 0 6px 16px color-mix(in srgb, var(--tool-accent, var(--secondary-color)) 24%, transparent);
        }

        #sidebar:not(.hidden) .sidebar-tool-button:hover::after {
            opacity: 1;
        }

        #sidebar:not(.hidden) .sidebar-tool-button:hover .svg-icon {
            transform: scale(1.16);
        }

        #sidebar:not(.hidden) .sidebar-tool-button:active {
            transform: translateY(0) scale(0.96);
        }

        /* 各按钮专属强调色 */
        #sidebar:not(.hidden) .lang-toggle {
            --tool-accent: var(--secondary-color);
            --tool-hover-bg: var(--secondary-soft);
        }

        #sidebar:not(.hidden) .theme-cycle {
            --tool-accent: var(--primary-color);
            --tool-hover-bg: var(--primary-soft);
        }

        #sidebar:not(.hidden) .settings-open {
            --tool-accent: var(--accent-color);
            --tool-hover-bg: var(--accent-soft);
        }

        #sidebar:not(.hidden) .about-open {
            --tool-accent: #8b7cf6;
            --tool-hover-bg: rgba(139, 124, 246, 0.13);
        }

        html[data-theme="dark"] #sidebar:not(.hidden) .about-open {
            --tool-accent: #b3a6ff;
        }

        /* 底部按钮组：系统设置 / 关于 与语言 / 主题 保持同规格 */
        #sidebar:not(.hidden) .sidebar-tools .lang-toggle {
            justify-content: center;
        }

        #sidebar:not(.hidden) .sidebar-tools .lang-toggle:hover {
            background: var(--tool-hover-bg, var(--secondary-soft));
            color: var(--tool-accent);
        }


