
        /* ========== 响应式根字体缩放 ========== */
        :root {
            --base-font-size: 16px;
            --base-width: 1440;
            --scale-factor: 1.3;
            --min-font-size: 12px;
            --max-font-size: 20px;
        }

        html {
            font-size: var(--base-font-size);
            scrollbar-gutter: stable;
        }

        /* 根据屏幕宽度动态调整根字体 */
        @media (max-width: 1440px) {
            html {
                font-size: calc(var(--base-font-size) * (100vw / var(--base-width)) * var(--scale-factor));
            }
        }

        /* 限制最小和最大字体 */
        @media (max-width: 480px) {
            html {
                font-size: var(--min-font-size);
            }
        }

        @media (min-width: 1920px) {
            html {
                font-size: var(--max-font-size);
            }
        }

        /* ========== 重置和基础样式 ========== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

        /* 确保所有按钮元素可点击 */
        button, .btn, [role="button"] {
            cursor: pointer;
            -webkit-tap-highlight-color: rgba(56, 152, 255, 0.3);
            touch-action: manipulation;
        }

        /* 折叠按钮基础样式 - 1:1比例、纯蓝色背景 */
        .toggle-code-btn {
            width: 2rem !important; /* 32px */
            height: 2rem !important;
            min-width: 2rem !important;
            max-width: 2rem !important;
            min-height: 2rem !important;
            max-height: 2rem !important;
            padding: 0 !important;
            flex: none !important;
            background: #3898ff !important;
            color: #fff !important;
            border: none;
            border-radius: 0.375rem; /* 6px */
            font-size: 0.875rem; /* 14px */
            font-weight: 500;
            cursor: pointer;
            transition: background .2s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0.125rem 0.375rem rgba(56, 152, 255, 0.3);
        }

        .toggle-code-btn:hover {
            background: #2d87e6 !important;
            transform: none !important;
        }

        /* 模式切换按钮样式 */
        .mode-toggle-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 1.25rem 0; /* 20px 0 */
        }

        .mode-toggle-btn {
            padding: 0.75rem 1.5rem; /* 12px 24px */
            background: linear-gradient(135deg, #3898ff, #2effa4);
            color: #fff;
            border: none;
            border-radius: 0.5rem; /* 8px */
            font-size: 1rem; /* 16px */
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 0.25rem 0.9375rem rgba(56, 152, 255, 0.3);
        }

        .mode-toggle-btn:hover {
            background: linear-gradient(135deg, #2d87e6, #2effa4);
            transform: translateY(-0.125rem); /* -2px */
            box-shadow: 0 0.375rem 1.25rem rgba(56, 152, 255, 0.4);
        }

        .mode-toggle-btn:active {
            transform: translateY(0);
        }
        
        /* 数字模式下的按钮样式 */
        .mode-toggle-btn.digital-mode {
            background: linear-gradient(135deg, #3898ff, #2effa4);
            box-shadow: 0 0.25rem 0.9375rem rgba(56, 152, 255, 0.3);
        }
        
        .mode-toggle-btn.digital-mode:hover {
            background: linear-gradient(135deg, #2d87e6, #2effa4);
            box-shadow: 0 0.375rem 1.25rem rgba(56, 152, 255, 0.4);
        }
        
        /* 滑杆模式下的按钮样式 */
        .mode-toggle-btn.slider-mode {
            background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
            box-shadow: 0 0.25rem 0.9375rem rgba(255, 107, 107, 0.3);
        }
        
        .mode-toggle-btn.slider-mode:hover {
            background: linear-gradient(135deg, #ee5a5a, #4ecdc4);
            box-shadow: 0 0.375rem 1.25rem rgba(255, 107, 107, 0.4);
        }

        /* 代码区收起时的隐藏 */
        .code-block.hidden,
        .example-code.hidden {
            display: none;
        }

        /* 示例代码展开/收起按钮样式 - 1:1比例、纯蓝色背景 */
        .toggle-example-code-btn {
            width: 2rem !important; /* 32px */
            height: 2rem !important;
            min-width: 2rem !important;
            max-width: 2rem !important;
            min-height: 2rem !important;
            max-height: 2rem !important;
            padding: 0 !important;
            flex: none !important;
            background: #3898ff !important;
            color: #fff !important;
            border: none;
            border-radius: 0.375rem; /* 6px */
            font-size: 0.875rem; /* 14px */
            font-weight: 500;
            cursor: pointer;
            transition: background .2s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0.125rem 0.375rem rgba(56, 152, 255, 0.3);
        }

        .toggle-example-code-btn:hover {
            background: #2d87e6 !important;
            transform: none !important;
        }

        /* 覆盖等级按钮样式 */
        .priority-btn {
            width: 1.875rem; /* 30px */
            height: 1.875rem;
            background: #3898ff;
            color: #fff;
            border: none;
            border-radius: 0.25rem; /* 4px */
            font-size: 0.75rem; /* 12px */
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0.125rem 0.25rem rgba(56, 152, 255, 0.3);
            flex: none;
            min-width: 1.875rem;
            max-width: 1.875rem;
            min-height: 1.875rem;
            max-height: 1.875rem;
        }

        .priority-btn:hover {
            background: #2d87e6;
            transform: scale(1.05);
        }

        .priority-btn:disabled,
        .priority-btn[style*="cursor: wait"] {
            background: #1a3a5c;
            cursor: wait !important;
            transform: none;
        }

        .priority-btn[style*="opacity: 0.5"] {
            pointer-events: none;
        }

        /* 颜色行样式 */
        .custom-color-row {
            position: relative;
            margin-bottom: 15px;
            padding: 10px;
            background: rgba(30, 40, 50, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
        }

        /* 优先级容器样式 */
        .priority-container {
            position: absolute;
            bottom: 10px;
            right: 10px;
            display: inline-block;
            z-index: 1;
        }

        /* 优先级选择面板样式 */
        .priority-panel {
            position: absolute;
            bottom: 100%;
            right: 0;
            background: rgba(30, 40, 50, 0.95);
            border: 1px solid #3898ff;
            border-radius: 6px;
            padding: 8px;
            display: none;
            grid-template-columns: repeat(5, 1fr);
            gap: 4px;
            z-index: 2;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .priority-panel.show {
            display: grid;
        }

        /* 优先级选择按钮样式 */
        .priority-option {
            width: 24px;
            height: 24px;
            background: #1e2a35;
            color: #e0e0e0;
            border: 1px solid #3898ff;
            border-radius: 4px;
            font-size: 10px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: none;
            min-width: 24px;
            max-width: 24px;
            min-height: 24px;
            max-height: 24px;
        }

        .priority-option:hover {
            background: rgba(56, 152, 255, 0.2);
            transform: scale(1.1);
        }

        .priority-option.active {
            background: #3898ff;
            color: #fff;
        }

        .priority-option[style*="cursor: wait"] {
            background: #1a3a5c;
            cursor: wait !important;
            transform: none;
        }

        .priority-option[style*="opacity: 0.5"] {
            pointer-events: none;
        }

        /* 加载动画 */
        @keyframes pulse {
            0% {
                opacity: 0.5;
            }
            50% {
                opacity: 0.8;
            }
            100% {
                opacity: 0.5;
            }
        }

        .priority-btn[style*="opacity: 0.5"],
        .priority-option[style*="opacity: 0.5"] {
            animation: pulse 0.5s ease-in-out infinite;
        }

        /* 颜色设置和渐变功能容器的相对定位 */
        .custom-gradient-section {
            position: relative;
        }

        /* 优先级按钮的定位 */
        .priority-container {
            position: absolute;
            bottom: 10px;
            right: 10px;
        }

        /* 手机端按钮略小 */
        @media (max-width: 768px) {
            .toggle-example-code-btn {
                width: 30px !important;
                height: 30px !important;
                min-width: 30px !important;
                max-width: 30px !important;
                min-height: 30px !important;
                max-height: 30px !important;
                font-size: 12px;
            }
            
            /* 模式切换按钮在小屏幕下缩小 */
            .mode-toggle-btn {
                padding: 6px 12px;
                font-size: 12px;
            }
            
            /* 滑杆 handle 在小屏幕下缩小 */
            .slider-range-handle {
                width: 16px;
                height: 16px;
                border-width: 1.5px;
            }
            
            /* 滑杆模式下改为每排1列，宽度铺满容器 */
            #mode2 .custom-color-row {
                flex: 0 0 100% !important; /* 100%宽度，铺满容器 */
                max-width: 100% !important;
            }
            
            /* 数字模式保持3列布局（不受小屏幕影响） */
            #mode1 .style-content .style-input-group {
                flex: 0 0 calc(33.333% - 6px);
            }
            
            /* 滑杆模式下样式输入组在小屏幕时改为1列布局 */
            #mode2 .style-content .style-input-group {
                flex: 0 0 100% !important;
            }
            
            /* 滑杆模式下渐变条容器改为每排1列，宽度铺满容器 */
            #mode2 .custom-gradient-section .gradient-bars .custom-color-row {
                flex: 0 0 100% !important; /* 100%宽度，铺满容器 */
                max-width: 100% !important;
            }
            
            /* 预览区域在小屏幕下缩小高度 */
            .preview-content {
                min-height: 50px !important;
                height: 40px !important;
                padding: 10px !important;
            }
        }

        /* 中屏幕设备（768px - 1024px）系统性布局对齐优化 */
        @media (min-width: 768px) and (max-width: 1024px) {
            /* 容器优化 - 确保内容居中且间距合理 */
            .container {
                max-width: 850px;
                padding: 22px;
                margin-left: auto;
                margin-right: auto;
            }

            /* 颜色输入区域优化 - 确保4列布局对齐 */
            .color-input {
                flex: 0 0 calc(25% - 11.25px) !important;
                max-width: calc(25% - 11.25px) !important;
                min-width: 140px;
            }

            .color-inputs {
                gap: 15px;
                justify-content: flex-start;
            }

            /* 颜色标签字体大小优化 */
            .color-label {
                font-size: 12px;
            }

            /* 色块容器优化 - 确保与标签对齐 */
            .color-swatch-container {
                gap: 10px;
                justify-content: flex-start;
            }

            .color-swatch {
                width: 24px;
                height: 24px;
            }

            /* 颜色代码输入框优化 */
            .color-code-input {
                width: 90px !important;
                height: 24px !important;
                font-size: 13px !important;
            }

            .color-code-prefix {
                font-size: 13px !important;
                min-width: 14px !important;
                height: 24px !important;
                line-height: 24px !important;
            }

            /* 设置行布局优化 - 确保间距一致 */
            .settings-row {
                gap: 12px;
                margin-bottom: 18px;
            }

            .font-settings-row {
                gap: 12px;
                margin-bottom: 18px;
            }

            /* 输入组优化 */
            .input-group {
                margin-bottom: 18px;
            }

            /* 按钮优化 - 确保尺寸统一 */
            .mode-toggle-btn {
                padding: 10px 20px;
                font-size: 14px;
            }

            /* 预览区域优化 */
            .preview-section {
                margin-bottom: 1.5625rem; /* 25px */
            }

            .preview-content {
                padding: 1.125rem; /* 18px */
                min-height: 4.6875rem; /* 75px */
            }

            /* 字体大小输入框优化 */
            #fontSize {
                width: 4.6875rem; /* 75px */
                height: 2.625rem; /* 42px */
                font-size: 0.875rem; /* 14px */
            }

            /* 复选框组优化 */
            .style-checkboxes {
                gap: 0.75rem; /* 12px */
            }

            /* 侧边栏优化 - 统一比例使用百分比 */
            .sidebar {
                left: -18.75rem; /* 300px */
                width: 18.75rem;
                padding: 0; /* 与大屏幕一致，不设置额外padding */
            }
            
            /* 中屏幕侧边栏内容区域 - 统一比例 */
            .sidebar-content {
                padding: 1rem 8.4% 2rem 8.4%; /* 比例与大屏幕一致: 32/380=8.4% */
            }
            
            /* 中屏幕历史记录和收藏记录项目 - 统一比例 */
            .history-item, .favorite-item {
                margin-left: 2.1%; /* 比例与大屏幕一致: 8/380=2.1% */
                margin-right: 2.1%;
                width: calc(100% - 4.2%);
            }
            
            /* 中屏幕分类夹项目 */
            .category-item {
                margin-left: 2.1%;
                margin-right: 2.1%;
                width: calc(100% - 4.2%);
            }

            /* 历史记录按钮优化 */
            .history-action-btn {
                width: 2.125rem; /* 34px */
                height: 2.125rem;
                font-size: 0.6875rem; /* 11px */
            }

            .star-btn {
                width: 2.125rem; /* 34px */
                height: 2.125rem;
                font-size: 1.0625rem; /* 17px */
            }

            /* 滑杆模式下渐变条容器优化 */
            #mode2 .custom-gradient-section .gradient-bars .custom-color-row {
                flex: 0 0 calc(50% - 0.375rem); /* 50% - 6px */
                max-width: calc(50% - 0.375rem);
            }

            /* 确保所有文本元素对齐 */
            h1 {
                font-size: 2rem;
                margin-bottom: 0.5rem; /* 8px */
            }

            .subtitle {
                font-size: 0.8125rem; /* 13px */
                margin-bottom: 1.375rem; /* 22px */
            }

            /* 交换颜色按钮优化 */
            .swap-colors-btn {
                width: 2.375rem; /* 38px */
                height: 2.375rem;
                font-size: 1.0625rem; /* 17px */
            }

            /* 滑杆模式下样式输入组优化 */
            #mode2 .style-content .style-input-group {
                flex: 0 0 calc(50% - 0.375rem); /* 50% - 6px */
            }

            /* 折叠按钮优化 */
            .toggle-code-btn {
                width: 2rem !important; /* 32px */
                height: 2rem !important;
                min-width: 2rem !important;
                max-width: 2rem !important;
                min-height: 2rem !important;
                max-height: 2rem !important;
                font-size: 0.9375rem; /* 15px */
            }

            /* 示例代码折叠按钮优化 */
            .toggle-example-code-btn {
                width: 2rem !important; /* 32px */
                height: 2rem !important;
                min-width: 2rem !important;
                max-width: 2rem !important;
                min-height: 2rem !important;
                max-height: 2rem !important;
                font-size: 0.8125rem; /* 13px */
            }

            /* 预览文本优化 */
            .preview-text {
                font-size: 1rem; /* 16px */
            }

            /* 自定义颜色行线优化 */
            .custom-color-row-line {
                gap: 0.25rem; /* 4px */
            }

            .custom-color-input-group {
                flex-direction: row;
                align-items: center;
                gap: 0.25rem; /* 4px */
            }

            .custom-color-input-group.range-group {
                flex-direction: column;
                align-items: flex-start;
            }

            .custom-color-input-group label {
                font-size: 0.75rem; /* 12px */
            }

            /* 自定义色块优化 */
            .custom-color-swatch {
                width: 2.375rem; /* 38px */
                height: 2.375rem;
            }

            /* 渐变条容器优化 */
            .gradient-bars {
                gap: 0.75rem; /* 12px */
            }

            /* 更多颜色面板优化 */
            .more-colors-panel {
                top: 7.8125rem; /* 125px */
                gap: 0.4375rem; /* 7px */
            }

            /* 通知优化 */
            /* 通知气泡 - 在对应按钮上方弹出 */
        .notification-bubble {
            position: fixed;
            padding: 6px 12px;
            border-radius: 3px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
            font-weight: normal;
            font-size: 12px;
            opacity: 0;
            transform: translateY(4px);
            transition: opacity 0.25s ease, transform 0.25s ease;
            z-index: 10000;
            pointer-events: none;
            white-space: nowrap;
        }
        
        .notification-bubble.show {
            opacity: 1;
            transform: translateY(0);
        }
        
        .notification-bubble.hide {
            opacity: 0;
            transform: translateY(-4px);
        }

            /* 通知气泡不需要响应式覆盖 */

            /* 侧边栏内容优化 - 统一比例使用百分比 */
            .sidebar {
                padding: 0; /* 与大屏幕一致，不设置额外padding */
            }

            /* 历史记录项目优化 */
            .history-item {
                padding: 0.75rem; /* 12px */
                font-size: 0.8125rem; /* 13px */
            }

            /* 滑杆handle优化 */
            .slider-range-handle {
                width: 1.125rem; /* 18px */
                height: 1.125rem;
                border-width: 0.125rem; /* 2px */
            }

            /* 输入框优化 */
            textarea, input[type="text"], input[type="number"], input[type="password"], select {
                padding: 0.6875rem; /* 11px */
                font-size: 0.9375rem; /* 15px */
                border-radius: 0.4375rem; /* 7px */
            }

            /* 复选框优化 */
            .checkbox-group input[type="checkbox"] {
                width: 1.0625rem; /* 17px */
                height: 1.0625rem;
            }
        }

        /* 滚动条优化 - 统一UI风格（全局生效） */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(25, 35, 45, 0.6);
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(56, 152, 255, 0.4);
            border-radius: 3px;
            border: 1px solid rgba(56, 152, 255, 0.2);
            transition: all 0.2s ease;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(56, 152, 255, 0.6);
            border-color: rgba(56, 152, 255, 0.4);
            box-shadow: 0 0 8px rgba(56, 152, 255, 0.3);
        }

        ::-webkit-scrollbar-corner {
            background: rgba(25, 35, 45, 0.6);
        }

        /* 大屏幕设备（992px及以上） */
        @media (min-width: 992px) {
            /* 滑杆模式下样式输入组保持3列布局 */
            #mode2 .style-content .style-input-group {
                flex: 0 0 calc(33.333% - 6px);
            }
            
            /* 大屏幕侧边栏内容区域增加左右内边距，避免拥挤 - 统一比例 */
            .sidebar-content {
                padding: 1.25rem 8.4% 2.5rem 8.4%; /* 32/380=8.4% */
            }
            
            /* 历史记录和收藏记录项目在大屏幕上增加左右外边距，与侧边栏边缘保持距离 - 统一比例 */
            .history-item, .favorite-item {
                margin-left: 2.1%; /* 8/380=2.1% */
                margin-right: 2.1%;
                width: calc(100% - 4.2%);
            }
            
            /* 分类夹项目在大屏幕上也增加左右外边距 */
            .category-item {
                margin-left: 2.1%;
                margin-right: 2.1%;
                width: calc(100% - 4.2%);
            }
        }

        /* 超小屏再压一点 */
        @media (max-width: 360px) {
            .toggle-code-btn {
                width: 28px !important;
                height: 28px !important;
                min-width: 28px !important;
                max-width: 28px !important;
                min-height: 28px !important;
                max-height: 28px !important;
                font-size: 13px;
            }
            
            /* 模式切换按钮在超小屏幕下进一步缩小 */
            .mode-toggle-btn {
                padding: 5px 10px;
                font-size: 10px;
            }
            
            /* 滑杆 handle 在超小屏幕下进一步缩小 */
            .slider-range-handle {
                width: 14px;
                height: 14px;
                border-width: 1px;
            }
        }
        
        /* 页面主体样式 */
        body {
            background: linear-gradient(135deg, #0f1a2a, #1a2a3a);
            color: #e0e0e0;
            min-height: 100vh;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }
        
        .container {
            max-width: 900px;
            width: 100%;
            background: rgba(25, 35, 45, 0.85);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            margin-top: 20px;
            border: 1px solid rgba(56, 152, 255, 0.2);
            position: relative;
        }
        


        /* 标题样式 */
        h1 {
            text-align: center;
            margin-bottom: 10px;
            color: #2effa4;
            text-shadow: 0 0 10px rgba(46, 255, 164, 0.5);
            font-size: 2.2rem;
            position: relative;
            padding-bottom: 10px;
        }
        
        .subtitle {
            text-align: center;
            margin-bottom: 25px;
            color: #7a8a9a;
            font-size: 14px;
        }
        
        h1::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 25%;
            width: 50%;
            height: 3px;
            background: linear-gradient(to right, transparent, #2effa4, transparent);
        }
        
        /* 预览区域样式 */
        .preview-section {
            margin-bottom: 40px;
            background: linear-gradient(to right, #3E4862, #3A4860);
            padding: 10px;
            border-radius: 8px;
        }
        
        .preview-title {
            margin-bottom: 10px;
            font-weight: bold;
            color: #ffffff;
            text-align: left;
            padding: 4px 8px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.2);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            height: 28px;
            min-height: 28px;
            max-height: 28px;
            box-sizing: border-box;
        }
        
        .preview-content {
            position: relative;
            text-align: center;
            padding: 0 15px;
            background: rgba(0, 0, 0, 0.25);
            border-radius: 8px;
            border: none;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: none;
            overflow: hidden;
            /* 防止浏览器夜间模式覆盖颜色 */
            forced-color-adjust: none;
            -webkit-forced-color-adjust: none;
        }
        
        .preview-text,
        .preview-content > div,
        .preview-content > div > span {
            display: inline-block;
            opacity: 1;
            white-space: pre-wrap;
            /* 防止浏览器夜间模式覆盖颜色 */
            forced-color-adjust: none;
            -webkit-forced-color-adjust: none;
        }
        
        /* 悬浮预览窗口样式 */
        .floating-preview {
            position: fixed;
            top: 1.25rem; /* 20px */
            left: 50%;
            transform: translateX(-50%);
            width: 18.75rem; /* 300px */
            background: linear-gradient(to right, #3E4862, #3A4860);
            border: none;
            border-radius: 0.5rem; /* 8px */
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0.25rem 1.25rem rgba(0, 0, 0, 0.5);
            z-index: 10000;
            display: none;
            overflow: hidden;
            transition: opacity 0.3s ease;
        }
        
        .floating-preview.visible {
            display: block;
        }
        
        .floating-preview.minimized {
            height: auto;
        }
        
        .floating-preview.minimized .floating-preview-content {
            display: none;
        }
        
        .floating-preview-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 15px;
            background: linear-gradient(to right, #3E4862, #3A4860);
            box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
            cursor: move;
            user-select: none;
        }
        
        .floating-preview-title {
            font-size: 14px;
            font-weight: bold;
            color: #ffffff;
        }
        
        .floating-preview-controls {
            display: flex;
            gap: 5px;
        }
        
        .floating-preview-btn {
            width: 24px !important;
            height: 24px !important;
            min-height: 24px !important;
            padding: 0 !important;
            border: none !important;
            background: rgba(255,255,255, 0.2) !important;
            color: #ffffff !important;
            border-radius: 4px !important;
            cursor: pointer;
            font-size: 14px !important;
            line-height: 24px !important;
            text-align: center !important;
            transition: background 0.2s !important;
            flex: none !important;
            box-shadow: none !important;
            transform: none !important;
        }
        
        .floating-preview-btn:hover {
            background: rgba(255,255,255, 0.4) !important;
            transform: none !important;
            box-shadow: none !important;
        }
        
        .floating-preview-btn:active {
            transform: none !important;
        }
        
        .floating-preview-content {
            position: relative;
            padding: 15px;
            min-height: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            /* 防止浏览器夜间模式覆盖颜色 */
            forced-color-adjust: none;
            -webkit-forced-color-adjust: none;
        }
        
        .floating-preview-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.25);
            z-index: 1;
        }
        
        .floating-preview-text,
        .floating-preview-content > div {
            position: relative;
            z-index: 2;
            opacity: 1;
            mix-blend-mode: normal;
            white-space: pre-wrap;
            /* 防止浏览器夜间模式覆盖颜色 */
            forced-color-adjust: none;
            -webkit-forced-color-adjust: none;
        }
        
        .floating-preview-content > div > span {
            /* 防止浏览器夜间模式覆盖颜色 */
            forced-color-adjust: none;
            -webkit-forced-color-adjust: none;
        }
        
        /* 调整大小手柄 */
        .resize-handle {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 20px;
            height: 20px;
            cursor: nwse-resize;
            background: linear-gradient(135deg, transparent 50%, rgba(56, 152, 255, 0.5) 50%);
            border-radius: 0 0 8px 0;
            z-index: 10;
        }
        
        .resize-handle:hover {
            background: linear-gradient(135deg, transparent 50%, rgba(56, 152, 255, 0.8) 50%);
        }
        
        .floating-preview.locked .resize-handle {
            display: none;
        }
        
        /* 输入框组样式 */
        .input-group {
            margin-bottom: 20px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #3898ff;
        }
        
        textarea, input[type="text"], input[type="number"], input[type="password"], select {
            width: 100%;
            padding: 12px;
            border: 2px solid #2a3a4a;
            border-radius: 8px;
            background: #1e2a35;
            color: #e0e0e0;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        textarea:focus, input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, select:focus {
            border-color: #3898ff;
            outline: none;
            box-shadow: 0 0 8px rgba(56, 152, 255, 0.5);
        }
        
        /* 字体大小输入框特殊样式 - 1:1比例 */
        #fontSize {
            width: 80px;
            height: 45px; /* 1:1比例，45px高对应45px宽 */
            text-align: center;
            padding: 12px 8px;
        }

        /* 颜色代码输入框样式 - 重新设计 */
        .color-code-input {
            width: 90px;
            height: 24px;
            padding: 2px 6px;
            text-align: center;
            font-size: 13px;
            font-family: 'Courier New', monospace;
            font-weight: bold;
            border: 2px solid #2a3a4a;
            border-radius: 4px;
            background: #1e2a35;
            color: #e0e0e0;
            transition: border-color 0.3s, box-shadow 0.3s;
            box-sizing: border-box;
        }

        .color-code-input:focus {
            border-color: #3898ff;
            box-shadow: 0 0 8px rgba(56, 152, 255, 0.5);
            outline: none;
        }

        /* 颜色代码组容器 */
        .color-code-group {
            display: flex;
            align-items: center;
            gap: 0;
            flex-shrink: 0;
        }

        /* 颜色代码前缀符号样式 */
        .color-code-prefix {
            font-size: 13px;
            font-weight: bold;
            color: #e0e0e0;
            font-family: 'Courier New', monospace;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 14px;
            height: 24px;
            line-height: 24px;
            user-select: none;
        }

        /* 响应式设计 - 手机布局 */
        @media (max-width: 768px) {
            #fontSize {
                width: 60px;
                height: 40px;
                padding: 10px 6px;
            }
            
            .color-swatch {
                width: 22px !important;
                height: 22px !important;
                min-width: 22px !important;
                max-width: 22px !important;
                min-height: 22px !important;
                max-height: 22px !important;
            }
            
            .custom-color-swatch {
                width: 22px !important;
                height: 22px !important;
                min-width: 22px !important;
                max-width: 22px !important;
                min-height: 22px !important;
                max-height: 22px !important;
            }
            
            .color-code-input {
                width: 80px !important;
                height: 22px !important;
                padding: 1px 5px !important;
                font-size: 12px !important;
            }
            
            .color-code-prefix {
                font-size: 12px !important;
                min-width: 12px !important;
                height: 22px !important;
                line-height: 22px !important;
            }
        }

        @media (max-width: 480px) {
            #fontSize {
                width: 50px;
                height: 35px;
                padding: 8px 4px;
                font-size: 14px;
            }
            
            .color-swatch {
                width: 20px !important;
                height: 20px !important;
                min-width: 20px !important;
                max-width: 20px !important;
                min-height: 20px !important;
                max-height: 20px !important;
            }
            
            .custom-color-swatch {
                width: 20px !important;
                height: 20px !important;
                min-width: 20px !important;
                max-width: 20px !important;
                min-height: 20px !important;
                max-height: 20px !important;
            }
            
            .color-code-input {
                width: 70px !important;
                height: 20px !important;
                padding: 1px 4px !important;
                font-size: 11px !important;
            }
            
            .color-code-prefix {
                font-size: 11px !important;
                min-width: 10px !important;
                height: 20px !important;
                line-height: 20px !important;
            }
            
            /* 确保自定义范围布局保持一致 */
            .custom-color-row-line {
                flex-direction: row;
            }
            
            .custom-color-input-group {
                flex-direction: row;
                align-items: center;
                gap: 4px;
            }

            .custom-color-input-group.range-group {
                flex-direction: column;
                align-items: flex-start;
            }

            /* 滑杆模式下颜色设置水平布局 - 超小屏幕 */
            #mode2 .custom-color-row-line.horizontal-layout {
                flex-direction: column;
                align-items: stretch;
                gap: 5px;
            }
            
            /* 滑杆模式下范围输入框样式 */
            #mode2 .custom-color-row-line .range-input-group {
                width: 100%;
            }
            
            #mode2 .custom-color-row-line .range-input-group .style-range-input {
                width: 100%;
                min-height: 35px;
                max-height: 100px;
                resize: vertical;
            }
            
            #mode2 .custom-color-row-line.horizontal-layout .custom-color-input-group {
                flex-direction: row;
                align-items: center;
            }

            #mode2 .custom-color-row-line.horizontal-layout .custom-color-input-group.range-group {
                flex-direction: column;
                align-items: flex-start;
            }

            #mode2 .custom-color-row-line.horizontal-layout .color-swatch-container {
                flex: 0 0 auto;
                min-width: auto;
            }

        }

        @media (max-width: 360px) {
            #fontSize {
                width: 50px;
                height: 35px;
                padding: 6px 4px;
                font-size: 13px;
            }
            
            .color-swatch {
                width: 18px !important;
                height: 18px !important;
                min-width: 18px !important;
                max-width: 18px !important;
                min-height: 18px !important;
                max-height: 18px !important;
            }
            
            .custom-color-swatch {
                width: 18px !important;
                height: 18px !important;
                min-width: 18px !important;
                max-width: 18px !important;
                min-height: 18px !important;
                max-height: 18px !important;
            }
            
            .color-code-input {
                width: 60px !important;
                height: 18px !important;
                padding: 1px 3px !important;
                font-size: 10px !important;
            }
            
            .color-code-prefix {
                font-size: 10px !important;
                min-width: 8px !important;
                height: 18px !important;
                line-height: 18px !important;
            }
            
            .color-swatch-container {
                gap: 5px !important;
            }
            
            /* 确保自定义范围布局保持一致 */
            .custom-color-row-line {
                flex-direction: row;
            }
            
            .custom-color-input-group {
                flex-direction: row;
                align-items: center;
                min-width: 0;
            }

            .custom-color-input-group.range-group {
                flex-direction: column;
                align-items: flex-start;
            }

            .custom-color-input-group label {
                font-size: 11px;
            }

        }
        
        /* 设置行布局 */
        .settings-row {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }

        /* 字体设置行样式 */
        .font-settings-row {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            align-items: flex-end;
        }

        .font-size-group {
            flex: 1;
        }

        .font-size-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #3898ff;
        }
        
        .settings-group {
            flex: 1;
        }
        
        /* 样式复选框 */
        .style-checkboxes {
            display: flex;
            flex-direction: row;
            gap: 15px;
            margin-bottom: 0;
            align-items: center;
        }
        
        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .checkbox-group input[type="checkbox"] {
            width: 18px;
            height: 18px;
        }
        
        /* 颜色输入区域 */
        .color-inputs {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            align-items: flex-start;
            flex-wrap: wrap;
            justify-content: flex-start;
        }
        
        .color-input-row {
            display: flex;
            gap: 15px;
            width: 100%;
            margin-bottom: 10px;
            align-items: flex-start;
            flex-wrap: wrap;
            justify-content: flex-start;
        }
        
        /* 大屏幕模式下每排4列 */
        .color-input {
            flex: 0 0 calc(25% - 11.25px);
            max-width: calc(25% - 11.25px);
            min-width: 150px;
        }
        
        /* 确保在大屏幕下至少显示4列 */
        @media (min-width: 769px) {
            .color-input {
                flex: 0 0 calc(25% - 11.25px) !important;
                max-width: calc(25% - 11.25px) !important;
            }
        }
        
        /* 二色模式下的布局 - 使label、button、label相加的宽度铺满 */
        .color-inputs:has(.swap-colors-container) {
            display: flex;
            align-items: flex-start;
            gap: 15px;
        }
        
        .color-inputs:has(.swap-colors-container) .color-input {
            flex: 1 !important;
            max-width: none !important;
            min-width: 0 !important;
            display: flex;
            align-items: flex-start;
        }
        
        .color-inputs:has(.swap-colors-container) .color-label {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;
            text-align: left;
        }
        
        .swap-colors-container {
            display: flex;
            align-items: flex-start;
            margin-top: 0;
            padding-top: 0;
        }
        
        .swap-colors-container .swap-colors-btn {
            margin-top: 0;
            margin-bottom: 0;
        }
        
        .swap-colors-btn {
            width: 40px !important;
            height: 40px !important;
            min-width: 40px !important;
            max-width: 40px !important;
            min-height: 40px !important;
            max-height: 40px !important;
            border-radius: 5px;
            background: #3898ff;
            color: white;
            border: none;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
        }
        
        /* 二色模式下的布局 - 使label、button、label相加的宽度铺满 */
        .color-inputs:has(.swap-colors-container) {
            justify-content: space-between;
        }
        
        .color-inputs:has(.swap-colors-container) .color-input {
            flex: 1;
            min-width: 0;
        }
        
        .swap-colors-container {
            display: flex;
            align-items: flex-start;
            margin-top: 5px;
        }
        
        .swap-colors-btn {
            width: 40px;
            height: 40px;
            border-radius: 5px;
            background: #3898ff;
            color: white;
            border: none;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .color-input-group {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-top: 5px;
        }
        
        /* 颜色色块样式 */
        .color-swatch {
            width: 24px;
            height: 24px;
            min-width: 24px;
            max-width: 24px;
            min-height: 24px;
            max-height: 24px;
            border-radius: 4px;
            border: 2px solid #2a3a4a;
            flex-shrink: 0;
            cursor: pointer;
            position: relative;
            box-sizing: border-box;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .color-swatch:hover {
            border-color: #3898ff;
            box-shadow: 0 0 8px rgba(56, 152, 255, 0.5);
        }

        /* 自定义颜色色块样式 */
        .custom-color-swatch {
            width: 24px;
            height: 24px;
            min-width: 24px;
            max-width: 24px;
            min-height: 24px;
            max-height: 24px;
            border-radius: 4px;
            border: 2px solid #2a3a4a;
            cursor: pointer;
            position: relative;
            box-sizing: border-box;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .custom-color-swatch:hover {
            border-color: #3898ff;
            box-shadow: 0 0 8px rgba(56, 152, 255, 0.5);
        }

        /* 颜色代码输入框样式 - 重新设计 */
        .color-code-input {
            width: 90px !important;
            height: 24px !important;
            padding: 2px 6px !important;
            text-align: center !important;
            font-size: 13px !important;
            font-family: 'Courier New', monospace !important;
            font-weight: bold !important;
            border: 2px solid #2a3a4a !important;
            border-radius: 4px !important;
            background: #1e2a35 !important;
            color: #e0e0e0 !important;
            transition: border-color 0.3s, box-shadow 0.3s !important;
            box-sizing: border-box !important;
        }

        .color-code-input:focus {
            border-color: #3898ff !important;
            box-shadow: 0 0 8px rgba(56, 152, 255, 0.5) !important;
            outline: none !important;
        }

        /* 颜色色块容器样式 - 重新设计 */
        .color-swatch-container {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 4px 0;
        }

        /* 颜色代码组容器 - 重新设计 */
        .color-code-group {
            display: flex;
            align-items: center;
            gap: 0;
            flex-shrink: 0;
        }

        /* 颜色代码前缀符号样式 - 重新设计 */
        .color-code-prefix {
            font-size: 13px;
            font-weight: bold;
            color: #e0e0e0;
            font-family: 'Courier New', monospace;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 14px;
            height: 24px;
            line-height: 24px;
            user-select: none;
        }
        
        /* 响应式设计 - 手机布局 */
        @media (max-width: 768px) {
            .color-swatch {
                width: 22px !important;
                height: 22px !important;
                min-width: 22px !important;
                max-width: 22px !important;
                min-height: 22px !important;
                max-height: 22px !important;
            }
            
            .custom-color-swatch {
                width: 22px !important;
                height: 22px !important;
                min-width: 22px !important;
                max-width: 22px !important;
                min-height: 22px !important;
                max-height: 22px !important;
            }
            
            .color-code-input {
                width: 80px !important;
                height: 22px !important;
                padding: 1px 5px !important;
                font-size: 12px !important;
            }
            
            .color-code-prefix {
                font-size: 12px !important;
                min-width: 12px !important;
                height: 22px !important;
                line-height: 22px !important;
            }
            
            .color-swatch-container {
                gap: 8px !important;
            }
        }
        
        @media (max-width: 480px) {
            .color-swatch {
                width: 20px !important;
                height: 20px !important;
                min-width: 20px !important;
                max-width: 20px !important;
                min-height: 20px !important;
                max-height: 20px !important;
            }
            
            .custom-color-swatch {
                width: 20px !important;
                height: 20px !important;
                min-width: 20px !important;
                max-width: 20px !important;
                min-height: 20px !important;
                max-height: 20px !important;
            }
            
            .color-code-input {
                width: 70px !important;
                height: 20px !important;
                padding: 1px 4px !important;
                font-size: 11px !important;
            }
            
            .color-code-prefix {
                font-size: 11px !important;
                min-width: 10px !important;
                height: 20px !important;
                line-height: 20px !important;
            }
            
            .color-swatch-container {
                gap: 6px !important;
            }
        }
        
        /* 颜色标签样式 */
        .color-label {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 100%;
            padding: 0;
            margin: 0;
            position: relative;
            font-weight: bold;
            font-size: 13px;
            line-height: 1.2;
            text-align: left !important;
            align-items: flex-start !important;
            justify-content: flex-start !important;
        }
        
        /* 确保小标题左上角对齐 */
        .color-label {
            white-space: nowrap;
            overflow: visible;
        }
        
        /* 确保在不同屏幕尺寸下保持左上角对齐 */
        @media (max-width: 768px) {
            .color-label {
                align-items: flex-start !important;
                justify-content: flex-start !important;
                text-align: left !important;
                font-size: 12px;
            }
        }
        
        @media (max-width: 480px) {
            .color-label {
                align-items: flex-start !important;
                justify-content: flex-start !important;
                text-align: left !important;
                font-size: 11px;
            }
        }
        
        @media (max-width: 360px) {
            .color-label {
                align-items: flex-start !important;
                justify-content: flex-start !important;
                text-align: left !important;
                font-size: 10px;
            }
        }
        
        /* 确保所有标题文本向左对齐 */
        .color-label {
            text-align: left !important;
        }
        
        /* 确保父元素不会影响对齐 */
        .color-input {
            text-align: left !important;
        }
        
        /* 确保容器不会影响对齐 */
        .color-inputs {
            text-align: left !important;
        }
        
        /* 颜色色块容器样式 */
        .color-swatch-container {
            display: flex;
            align-items: center;
            gap: 10px;
            justify-content: flex-start;
            padding: 0;
            margin: 0;
        }
        
        /* 确保色块左边缘与小标题对齐 */
        .color-swatch {
            width: 24px;
            height: 24px;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            position: relative;
        }
        
        /* 确保label内的文本与色块左边缘对齐 */
        .color-label {
            white-space: nowrap;
        }
        
        /* 确保整个结构左对齐 */
        .color-input {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            padding: 0;
            margin: 0;
        }
        
        /* 确保色块div与小标题对齐 */
        .color-swatch {
            margin: 0;
            padding: 0;
            vertical-align: top;
            width: 24px;
            height: 24px;
            box-sizing: border-box;
            position: relative;
        }
        
        /* 确保input与色块对齐 */
        .color-swatch input[type="color"] {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
            margin: 0;
            padding: 0;
        }
        
        /* 响应式设计 - 确保在不同屏幕尺寸下对齐 */
        @media (max-width: 768px) {
            .color-label {
                text-align: left;
                font-size: 12px;
            }
            
            .color-swatch-container {
                justify-content: flex-start;
            }
        }
        
        @media (max-width: 480px) {
            .color-label {
                text-align: left;
                font-size: 11px;
            }
            
            .color-swatch-container {
                justify-content: flex-start;
            }
        }
        
        /* 颜色代码输入样式 - 重新设计 */
        .color-code-input {
            width: 90px !important;
            height: 24px !important;
            padding: 2px 6px !important;
            text-align: center !important;
            font-size: 13px !important;
            font-family: 'Courier New', monospace !important;
            font-weight: bold !important;
            border: 2px solid #2a3a4a !important;
            border-radius: 4px !important;
            background: #1e2a35 !important;
            color: #e0e0e0 !important;
            transition: border-color 0.3s, box-shadow 0.3s !important;
            box-sizing: border-box !important;
        }

        .color-code-input:focus {
            border-color: #3898ff !important;
            box-shadow: 0 0 8px rgba(56, 152, 255, 0.5) !important;
            outline: none !important;
        }
        
        /* 响应式设计 - 小屏幕适配 */
        @media (max-width: 768px) {
            .color-inputs {
                gap: 10px;
            }
            
            .color-input-row {
                gap: 10px;
            }
            
            .color-input {
                min-width: 120px;
            }
            
            .color-swatch {
                width: 24px;
                height: 24px;
            }
        }
        
        /* 响应式设计 - 平板适配 */
        @media (max-width: 480px) {
            .color-inputs {
                gap: 8px;
            }
            
            .color-input-row {
                gap: 8px;
            }
            
            .color-input {
                flex: 0 0 calc(33.333% - 5.333px);
                min-width: auto;
                max-width: calc(33.333% - 5.333px);
            }
            
            .color-swatch {
                width: 20px;
                height: 20px;
            }
            
            .color-swatch-container {
                gap: 6px;
            }
            
            /* 渐变数量按钮响应式调整 - 小屏幕 */
            .gradient-count-btn {
                padding: 6px 10px;
                font-size: 11px;
                min-width: 50px;
            }
            
            .gradient-count-buttons {
                gap: 6px;
            }
        }
        
        .color-swatch input[type="color"] {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }
        
        .color-label {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        /* 颜色互换按钮样式 */
        .swap-colors-btn {
            width: 40px !important;
            height: 40px !important;
            min-width: 40px !important;
            max-width: 40px !important;
            min-height: 40px !important;
            max-height: 40px !important;
            border-radius: 5px;
            background: #3898ff;
            color: white;
            border: none;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 5px;
            box-sizing: border-box;
        }
        
        .swap-colors-btn:hover {
            background: #2d87e6;
            transform: scale(1.05);
        }
        
        /* 颜色预览区域 */
        .color-preview {
            height: 60px;
            border-radius: 8px;
            margin-bottom: 20px;
            background: linear-gradient(to right, #2effa4, #3898ff);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }
        
        /* 按钮组 */
        .button-group {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        button {
            flex: 1;
            padding: 16px;
            border: none;
            border-radius: 8px;
            background: linear-gradient(to right, #2effa4, #3898ff);
            color: #0d1b2a;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
        }
        
        button:active {
            transform: translateY(1px);
        }
        
        /* 输出区域 */
        .output {
            margin-top: 30px;
            background: #1a2530;
            border-radius: 8px;
            padding: 20px;
            position: relative;
            border: 1px solid rgba(56, 152, 255, 0.3);
        }
        
        .output-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .output-title {
            font-weight: bold;
            color: #2effa4;
            font-size: 14px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        #codeCharCount {
            color: #3898ff;
            font-weight: bold;
            padding: 2px 6px;
            background: rgba(56, 152, 255, 0.1);
            border-radius: 3px;
            font-size: 13px;
        }
        
        .code-status {
            margin-left: 0;
            font-size: 12px;
            padding: 3px 8px;
            border-radius: 4px;
            font-weight: normal;
        }
        
        .code-status.needs-update {
            color: #ff6b6b;
            background: rgba(255, 107, 107, 0.1);
            border: 1px solid #ff6b6b;
        }
        
        .code-status.up-to-date {
            color: #2effa4;
            background: rgba(46, 255, 164, 0.1);
            border: 1px solid #2effa4;
        }
        
        .output-buttons {
            display: flex;
            gap: 12px;
            align-items: center;
        }
        
        .copy-btn, .favorite-btn {
            padding: 12px 20px;
            background: #3898ff;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
            min-height: 42px;
            min-width: 120px;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(56, 152, 255, 0.3);
        }
        
        .copy-btn:hover, .favorite-btn:hover {
            background: #2d87e6;
        }
        
        .copy-btn.copied {
            background: #2effa4;
            color: #0d1b2a;
        }
        
        .favorite-btn.favorited {
            background: #ffd700;
            color: #0d1b2a;
        }
        
        /* 代码块样式 */
        .code-block {
            background: #0f161f;
            padding: 12px;
            border-radius: 4px;
            overflow-x: auto;
            white-space: pre-wrap;
            word-break: break-all;
            font-family: 'Courier New', monospace;
            color: #2effa4;
            border: 1px solid rgba(46, 255, 164, 0.2);
            cursor: text;
            user-select: text;
            font-size: 11px;
            line-height: 1.4;
        }
        
        .code-block.selected {
            background: rgba(46, 255, 164, 0.1);
        }
        
        /* 示例区域样式 */
        .examples {
            margin-top: 30px;
            background: rgba(30, 40, 50, 0.6);
            border-radius: 8px;
            padding: 20px;
            border: 1px solid rgba(56, 152, 255, 0.2);
            position: relative;
        }
        
        .examples-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .examples-title-row {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .examples-title {
            font-weight: bold;
            color: #2effa4;
        }
        
        .examples-style-checkboxes {
            display: flex;
            gap: 15px;
        }
        
        /* 收起/展开所有示例按钮 - 1:1比例、纯蓝色背景 */
        .toggle-all-examples-btn {
            width: 32px !important;
            height: 32px !important;
            min-width: 32px !important;
            max-width: 32px !important;
            min-height: 32px !important;
            max-height: 32px !important;
            padding: 0 !important;
            flex: none !important;
            background: #3898ff !important;
            color: #fff !important;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: background .2s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(56, 152, 255, 0.3);
        }
        
        .toggle-all-examples-btn:hover {
            background: #2d87e6 !important;
            transform: none !important;
        }
        
        .examples-content {
            transition: all 0.3s ease;
        }
        
        .examples-content.hidden {
            display: none !important;
        }
        
        .example-item {
            margin-bottom: 25px;
            padding: 15px;
            background: rgba(20, 30, 40, 0.7);
            border-radius: 8px;
            border-left: 3px solid #3898ff;
        }
        
        .example-preview {
            position: relative;
            text-align: center;
            margin-bottom: 15px;
            padding: 10px;
            border-radius: 5px;
            overflow: hidden;
        }
        
        .example-preview::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.25);
            z-index: 1;
        }
        
        .example-preview-content {
            position: relative;
            z-index: 2;
            opacity: 1;
            mix-blend-mode: normal;
        }
        
        .example-controls {
            display: flex;
            gap: 12px;
            margin-bottom: 10px;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
        }
        
        .example-text-input {
            flex: 1;
            min-width: 200px;
            padding: 10px 12px;
            border: 2px solid #2a3a4a;
            border-radius: 6px;
            background: #1e2a35;
            color: #e0e0e0;
            font-size: 14px;
        }
        
        .example-buttons {
            display: flex;
            gap: 8px;
            align-items: center;
        }
        
        .example-btn {
            padding: 10px 16px;
            background: #3898ff;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            min-height: 38px;
            min-width: 85px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(56, 152, 255, 0.3);
        }
        
        .example-btn:hover {
            background: #2d87e6;
        }
        
        .example-code {
            background: #0f161f;
            padding: 12px;
            border-radius: 4px;
            overflow-x: auto;
            white-space: pre-wrap;
            word-break: break-all;
            font-family: 'Courier New', monospace;
            color: #2effa4;
            border: 1px solid rgba(46, 255, 164, 0.2);
            margin-top: 10px;
            font-size: 11px;
            line-height: 1.4;
            cursor: text;
            user-select: text;
        }
        
        .example-code.selected {
            background: rgba(46, 255, 164, 0.1);
        }
        
        /* 页脚样式 */
        .footer {
            margin-top: 30px;
            text-align: center;
            color: #7a8a9a;
            font-size: 14px;
            line-height: 1.5;
        }
        
        /* 通知气泡 - 在对应按钮上方弹出 */
        .notification-bubble {
            position: fixed;
            padding: 6px 12px;
            border-radius: 3px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
            font-weight: normal;
            font-size: 12px;
            opacity: 0;
            transform: translateY(4px);
            transition: opacity 0.25s ease, transform 0.25s ease;
            z-index: 10000;
            pointer-events: none;
            white-space: nowrap;
        }
        
        .notification-bubble.show {
            opacity: 1;
            transform: translateY(0);
        }
        
        .notification-bubble.hide {
            opacity: 0;
            transform: translateY(-4px);
        }
        
        .size-info {
            font-size: 12px;
            color: #7a8a9a;
            margin-top: 5px;
        }
        
        /* ========== 顶部按钮统一样式 - 参考侧边栏按钮设计 ========== */
        
        /* 菜单按钮 */
        .menu-btn {
            position: fixed;
            top: 20px;
            left: 20px;
            background: rgba(56, 152, 255, 0.15);
            border: 1px solid rgba(56, 152, 255, 0.3);
            border-radius: 12px;
            color: #3898ff;
            padding: 12px 20px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            z-index: 100;
            box-shadow: 0 2px 6px rgba(56, 152, 255, 0.1);
            transition: all 0.2s ease;
            min-height: 44px;
            min-width: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }
        
        .menu-btn:hover {
            background: rgba(56, 152, 255, 0.25);
            border-color: rgba(56, 152, 255, 0.5);
            color: #4da6ff;
            box-shadow: 0 3px 8px rgba(56, 152, 255, 0.2);
        }
        
        /* 分享按钮 */
        .share-btn {
            position: fixed;
            top: 20px;
            left: 145px;
            background: rgba(56, 152, 255, 0.15);
            border: 1px solid rgba(56, 152, 255, 0.3);
            border-radius: 12px;
            color: #3898ff;
            padding: 12px 20px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            z-index: 100;
            box-shadow: 0 2px 6px rgba(56, 152, 255, 0.1);
            transition: all 0.2s ease;
            min-height: 44px;
            min-width: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }
        
        .share-btn:hover {
            background: rgba(56, 152, 255, 0.25);
            border-color: rgba(56, 152, 255, 0.5);
            color: #4da6ff;
            box-shadow: 0 3px 8px rgba(56, 152, 255, 0.2);
        }
        
        /* 更多颜色按钮 */
        .more-colors-btn {
            position: fixed;
            top: 80px;
            right: 20px;
            background: rgba(56, 152, 255, 0.15);
            border: 1px solid rgba(56, 152, 255, 0.3);
            border-radius: 12px;
            color: #3898ff;
            padding: 12px 20px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            z-index: 100;
            box-shadow: 0 2px 6px rgba(56, 152, 255, 0.1);
            transition: all 0.2s ease;
            white-space: nowrap;
            min-height: 44px;
            min-width: 110px;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }
        
        .more-colors-btn:hover {
            background: rgba(56, 152, 255, 0.25);
            border-color: rgba(56, 152, 255, 0.5);
            color: #4da6ff;
            box-shadow: 0 3px 8px rgba(56, 152, 255, 0.2);
        }
        
        /* 公告按钮 */
        .announcement-btn {
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(255, 193, 7, 0.12);
            border: 1px solid rgba(255, 193, 7, 0.25);
            border-radius: 12px;
            color: #ffc107;
            padding: 12px 20px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            z-index: 100;
            box-shadow: 0 2px 6px rgba(255, 193, 7, 0.1);
            transition: all 0.2s ease;
            white-space: nowrap;
            min-height: 44px;
            min-width: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }
        
        .announcement-btn:hover {
            background: rgba(255, 193, 7, 0.2);
            border-color: rgba(255, 193, 7, 0.4);
            color: #ffd54f;
            box-shadow: 0 3px 8px rgba(255, 193, 7, 0.2);
        }
        
        /* 公告浮窗样式 */
        .announcement-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            backdrop-filter: blur(4px);
        }
        
        .announcement-modal-overlay.active {
            display: flex;
        }
        
        .announcement-modal {
            background: rgba(25, 35, 45, 0.98);
            border: 1px solid rgba(56, 152, 255, 0.3);
            border-radius: 16px;
            width: 90%;
            max-width: 450px;
            max-height: 80vh;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease;
        }
        
        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .announcement-modal-header {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 16px 20px;
            background: rgba(56, 152, 255, 0.1);
            border-bottom: 1px solid rgba(56, 152, 255, 0.2);
            position: relative;
        }
        
        .announcement-modal-header h3 {
            margin: 0;
            color: #e0e0e0;
            font-size: 16px;
            font-weight: 600;
        }
        
        .announcement-modal-close {
            position: absolute;
            right: 16px;
            width: 32px;
            height: 32px;
            min-width: 32px;
            min-height: 32px;
            border: none;
            background: rgba(255, 255, 255, 0.1);
            color: #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            padding: 0;
            line-height: 1;
            box-sizing: border-box;
        }
        
        .announcement-modal-close:hover {
            background: rgba(255, 107, 122, 0.3);
            color: #ff6b7a;
        }
        
        .announcement-modal-content {
            padding: 20px;
            max-height: 50vh;
            overflow-y: auto;
            scrollbar-gutter: stable;
            color: #e0e0e0;
            font-size: 14px;
            line-height: 1.6;
        }
        
        .announcement-modal-content::-webkit-scrollbar {
            width: 6px;
        }

        .announcement-modal-content::-webkit-scrollbar-track {
            background: rgba(25, 35, 45, 0.6);
            border-radius: 3px;
        }

        .announcement-modal-content::-webkit-scrollbar-thumb {
            background: rgba(56, 152, 255, 0.4);
            border-radius: 3px;
            border: 1px solid rgba(56, 152, 255, 0.2);
            transition: all 0.2s ease;
        }

        .announcement-modal-content::-webkit-scrollbar-thumb:hover {
            background: rgba(56, 152, 255, 0.6);
            box-shadow: 0 0 8px rgba(56, 152, 255, 0.3);
        }
        
        .announcement-modal-content .announcement-item {
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .announcement-modal-content .announcement-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        
        .announcement-modal-content .announcement-item strong {
            color: #3898ff;
            display: block;
            margin-bottom: 8px;
        }
        
        .announcement-modal-content .announcement-item ul {
            margin: 0;
            padding-left: 20px;
        }
        
        .announcement-modal-content .announcement-item li {
            margin-bottom: 4px;
            color: #c0c0c0;
        }
        
        .announcement-modal-footer {
            padding: 16px 20px;
            background: rgba(56, 152, 255, 0.05);
            border-top: 1px solid rgba(56, 152, 255, 0.2);
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            color: #e0e0e0;
            font-size: 13px;
        }
        
        .announcement-modal-footer .email-text {
            color: #2effa4;
            word-break: break-all;
        }
        
        .announcement-modal-footer .copy-email-btn {
            background: rgba(56, 152, 255, 0.2);
            border: 1px solid rgba(56, 152, 255, 0.3);
            color: #e0e0e0;
            padding: 4px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
        }
        
        .announcement-modal-footer .copy-email-btn:hover {
            background: rgba(56, 152, 255, 0.3);
        }
        
        .more-colors-btn:hover {
            background: rgba(35, 45, 55, 0.95);
            border-color: rgba(56, 152, 255, 0.4);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(56, 152, 255, 0.3);
            transform: translateY(-1px);
        }
        
        .more-colors-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        }
        
        /* 响应式布局优化 - 确保按钮在不同屏幕尺寸下不重叠 */
        
        /* 平板设备 (768px - 1024px) */
        @media (min-width: 769px) and (max-width: 1024px) {
            .menu-btn, .share-btn, .more-colors-btn, .announcement-btn {
                padding: 11px 18px;
                font-size: 13px;
                min-height: 44px;
            }
            
            .menu-btn {
                left: 15px;
                min-width: 95px;
            }
            
            .share-btn {
                left: 120px;
                min-width: 95px;
            }
            
            .more-colors-btn {
                right: 15px;
                min-width: 105px;
                top: 75px;
            }
            
            .announcement-btn {
                right: 15px;
                min-width: 100px;
            }
            
            .more-colors-panel {
                top: 130px;
                right: 15px;
            }
        }
        
        /* 移动设备 (≤768px) */
        @media (max-width: 768px) {
            .menu-btn, .share-btn, .more-colors-btn, .announcement-btn {
                padding: 10px 16px;
                font-size: 13px;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
                min-height: 44px;
            }
            
            .menu-btn {
                left: 12px;
                min-width: 90px;
            }
            
            .share-btn {
                left: 117px;
                min-width: 90px;
            }
            
            .more-colors-btn {
                right: 12px;
                min-width: 100px;
                top: 70px;
            }
            
            .announcement-btn {
                right: 12px;
                min-width: 95px;
            }
            
            .more-colors-panel {
                top: 120px;
                right: 12px;
            }
        }
        
        /* 小屏手机 (≤480px) */
        @media (max-width: 480px) {
            .menu-btn, .share-btn, .more-colors-btn, .announcement-btn {
                padding: 8px 12px;
                font-size: 11px;
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
                min-height: 40px;
            }
            
            .menu-btn {
                left: 8px;
                min-width: 70px;
            }
            
            .share-btn {
                left: 95px;
                min-width: 70px;
            }
            
            .more-colors-btn {
                right: 8px;
                min-width: 85px;
                top: 60px;
            }
            
            .announcement-btn {
                right: 8px;
                min-width: 80px;
            }
            
            .more-colors-panel {
                top: 105px;
                right: 8px;
            }
        }
        
        /* 超小屏手机 (≤360px) */
        @media (max-width: 360px) {
            .menu-btn, .share-btn, .more-colors-btn, .announcement-btn {
                padding: 7px 10px;
                font-size: 10px;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                min-height: 38px;
            }
            
            .menu-btn {
                left: 6px;
                min-width: 60px;
            }
            
            .share-btn {
                left: 83px;
                min-width: 60px;
            }
            
            .more-colors-btn {
                right: 6px;
                min-width: 75px;
                top: 55px;
            }
            
            .announcement-btn {
                right: 6px;
                min-width: 70px;
            }
            
            .more-colors-panel {
                top: 97px;
                right: 6px;
            }
        }
        
        /* 更多颜色模式面板样式 - 只保留按钮 */
        .more-colors-panel {
            position: fixed;
            top: 125px; /* 下移 */
            right: 20px;
            background: transparent; /* 去掉背景 */
            border-radius: 0;
            padding: 0;
            display: none;
            flex-direction: column;
            gap: 8px;
            z-index: 101; /* 提高z-index确保显示在侧边栏上方 */
            box-shadow: none; /* 去掉阴影 */
            border: none; /* 去掉边框 */
            backdrop-filter: none; /* 去掉背景模糊 */
            align-items: flex-end;
        }
        
        .more-colors-panel.show {
            display: flex;
        }
        
        .more-colors-panel-btn {
            padding: 8px 14px;
            background: rgba(25, 35, 45, 0.95);
            border: 1px solid rgba(56, 152, 255, 0.2);
            border-radius: 10px;
            color: #e0e0e0;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            z-index: 100;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.05);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            text-align: center;
            min-width: auto;
            min-height: 36px;
            white-space: nowrap;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
            /* 初始状态：在按钮上方不可见 */
            opacity: 0;
            transform: translateY(-20px);
            animation: btnSlideDown 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        }
        
        /* 响应式样式：确保所有屏幕尺寸保持相同布局，仅相对缩小 */
        
        /* 平板设备 (768px - 1024px) */
        @media (min-width: 769px) and (max-width: 1024px) {
            .more-colors-panel {
                top: 125px;
                gap: 6px;
            }
            
            .more-colors-panel-btn {
                padding: 7px 12px;
                font-size: 11px;
                min-height: 34px;
            }
        }
        
        /* 移动设备 (≤768px) */
        @media (max-width: 768px) {
            .more-colors-panel {
                top: 115px;
                flex-direction: column;
                gap: 5px;
            }
            
            .more-colors-panel-btn {
                padding: 6px 11px;
                font-size: 11px;
                min-height: 32px;
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            }
        }
        
        @media (max-width: 480px) {
            .more-colors-panel {
                top: 108px;
                gap: 4px;
            }
            
            .more-colors-panel-btn {
                padding: 5px 10px;
                font-size: 10px;
                min-height: 30px;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
            }
        }
        
        @media (max-width: 360px) {
            .more-colors-panel {
                top: 100px;
                gap: 3px;
            }
            
            .more-colors-panel-btn {
                padding: 4px 9px;
                font-size: 9px;
                min-height: 28px;
                box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06);
            }
        }
        
        @keyframes btnSlideDown {
            0% {
                opacity: 0;
                transform: translateY(-20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .more-colors-panel-btn:hover {
            background: rgba(35, 45, 55, 0.95);
            border-color: rgba(56, 152, 255, 0.4);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(56, 152, 255, 0.3);
            transform: translateY(-1px);
        }
        
        .more-colors-panel-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .more-colors-panel-btn.active {
            background: rgba(35, 45, 55, 0.95);
            border-color: rgba(46, 255, 164, 0.4);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(46, 255, 164, 0.3);
            color: #2effa4;
        }
        

        
        /* 自定义范围按钮样式 */
        .custom-btn {
            position: fixed;
            top: 20px;
            right: 120px;
            background: rgba(25, 35, 45, 0.9);
            border: none;
            border-radius: 8px;
            color: #e0e0e0;
            padding: 10px 15px;
            cursor: pointer;
            font-size: 16px;
            z-index: 100;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            transition: all 0.3s;
        }
        
        .custom-btn:hover {
            background: rgba(35, 45, 55, 0.9);
        }
        
        /* 切换开关样式 */
        .toggle-switch {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: auto;
            height: auto;
            flex-shrink: 0;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .toggle-slider {
            position: relative;
            cursor: pointer;
            width: 50px;
            height: 24px;
            background-color: #1a2530;
            transition: .4s;
            border-radius: 24px;
            border: 1px solid rgba(56, 152, 255, 0.3);
        }
        
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 3px;
            background-color: #3898ff;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .toggle-slider {
            background-color: rgba(46, 255, 164, 0.3);
            border-color: rgba(46, 255, 164, 0.5);
        }
        
        input:checked + .toggle-slider:before {
            transform: translateX(26px);
            background-color: #2effa4;
        }
        
        /* 滑块悬停效果 */
        .toggle-switch:hover .toggle-slider {
            border-color: rgba(56, 152, 255, 0.5);
        }
        
        /* 滑块激活效果 */
        .toggle-switch:active .toggle-slider:before {
            transform: scale(1.1);
        }
        
        /* 确保开关在菜单项中正确对齐 */
        .menu-item .toggle-switch {
            margin-left: auto;
        }

        /* 侧边栏样式 - 固定容器，内部UI响应式缩放 */
        .sidebar {
            position: fixed;
            top: 0;
            left: -380px;
            width: 380px; /* 固定宽度 */
            height: 100vh; /* 固定高度为视口高度 */
            background: linear-gradient(180deg, rgba(30, 35, 45, 0.98) 0%, rgba(20, 25, 35, 0.98) 100%);
            padding: 0;
            overflow-y: auto;
            scrollbar-gutter: stable;
            transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 101;
            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
            backdrop-filter: blur(10px);
        }
        
        .sidebar.open {
            left: 0;
        }
        
        /* 移动端专属样式（<768px） - 保持容器固定宽度，统一比例使用百分比 */
        @media (max-width: 767px) {
            .sidebar {
                position: fixed;
                top: 0;
                left: 0;
                width: 320px; /* 固定宽度 */
                max-width: 85vw; /* 最大85%视口宽度 */
                height: 100vh;
                background: linear-gradient(180deg, rgba(30, 35, 45, 0.98) 0%, rgba(20, 25, 35, 0.98) 100%);
                box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
                border-radius: 0 16px 16px 0;
                transform: translateX(-100%);
                transition: transform 0.3s ease-out;
                z-index: 1000;
                padding: 0; /* 与大屏幕一致，不设置额外padding */
            }
            
            .sidebar.open {
                transform: translateX(0);
            }
            
            /* 遮罩层 */
            .sidebar-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.5);
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
                z-index: 999;
            }
            
            .sidebar-overlay.show {
                opacity: 1;
                visibility: visible;
            }
            
            /* 移动端侧边栏内容区域 - 统一比例 */
            .sidebar-content {
                padding: 1rem 8.4% 2rem 8.4%; /* 比例与大屏幕一致: 32/380=8.4% */
            }
            
            /* 移动端历史记录和收藏记录项目 - 统一比例 */
            .history-item, .favorite-item {
                margin-left: 2.1%; /* 比例与大屏幕一致: 8/380=2.1% */
                margin-right: 2.1%;
                width: calc(100% - 4.2%);
            }
            
            /* 移动端分类夹项目 */
            .category-item {
                margin-left: 2.1%;
                margin-right: 2.1%;
                width: calc(100% - 4.2%);
            }
        }
        
        /* 侧边栏头部 - 使用rem单位实现响应式缩放 */
        .sidebar-header {
            display: flex;
            align-items: center; /* 垂直居中 */
            justify-content: space-between; /* 水平分布：两端对齐 */
            padding: 0 1.5rem; /* 上下padding由高度控制，左右padding保持 */
            background: rgba(56, 152, 255, 0.12); /* 使用按钮背景样式 */
            border-bottom: 1px solid rgba(56, 152, 255, 0.25); /* 使用按钮边框样式 */
            position: sticky;
            top: 0;
            z-index: 10;
            backdrop-filter: blur(10px);
            height: 4rem; /* 固定高度 - 64px */
            min-height: 4rem; /* 最小高度 - 64px */
            box-sizing: border-box; /* 确保padding包含在高度内 */
            flex-shrink: 0; /* 防止压缩 */
            margin-bottom: 1.25rem; /* 与内容区域的间距 - 与移动端一致 */
        }
        
        .sidebar-header .back-btn,
        .sidebar-header .close-sidebar-btn {
            margin-right: 0;
            order: 1; /* 按钮在最左侧 */
        }
        
        .sidebar-title {
            font-size: 1.35rem;
            color: #3898ff;
            font-weight: 600;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center; /* 确保内部元素垂直居中 */
            gap: 0.625rem; /* 10px */
            justify-content: flex-end; /* 靠右对齐 */
            order: 2; /* 标题在右侧 */
            flex: 1; /* 占据剩余空间 */
            min-width: 0; /* 允许文本收缩 */
            white-space: nowrap; /* 防止换行 */
            overflow: hidden; /* 超出隐藏 */
            text-overflow: ellipsis; /* 显示省略号 */
            line-height: normal; /* 使用默认行高，避免偏移 */
        }
        
        .sidebar-title::after {
            content: '';
            width: 0.25rem; /* 4px */
            height: 1.25rem; /* 20px */
            background: linear-gradient(180deg, #3898ff, #2effa4);
            border-radius: 2px;
        }
        
        /* 删除重复的返回按钮样式定义，已统一到上方 */

        /* ========== 导出/导入按钮样式 ========== */
        .sidebar-header-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem; /* 8px */
            order: 3; /* 在标题右侧 */
            margin-left: auto;
        }

        .import-export-btn {
            width: 2.25rem; /* 36px */
            height: 2.25rem; /* 36px */
            min-width: 2.25rem;
            min-height: 2.25rem;
            padding: 0;
            background: rgba(56, 152, 255, 0.1);
            border: 1px solid rgba(56, 152, 255, 0.3);
            border-radius: 0.5rem; /* 8px */
            color: rgba(56, 152, 255, 0.9);
            font-size: 1.125rem; /* 18px */
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .import-export-btn:hover {
            background: rgba(56, 152, 255, 0.2);
            border-color: rgba(56, 152, 255, 0.5);
            transform: translateY(-0.0625rem); /* -1px */
        }

        .import-export-btn:active {
            background: rgba(56, 152, 255, 0.3);
            transform: translateY(0);
        }

        .sidebar-content {
            display: none;
            /* 移除显式高度设置，让它自动填充剩余空间 */
        }
        
        .sidebar-content.active {
            display: block;
        }
        
        /* 功能分组分割线 */
        .sidebar-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(56, 152, 255, 0.2), transparent);
            margin: 24px 0;
            position: relative;
        }
        
        .sidebar-divider::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 3px;
            background: rgba(56, 152, 255, 0.3);
            border-radius: 2px;
        }
        
        /* 分组标题 */
        .sidebar-group-title {
            font-size: 0.85rem;
            color: #7a8a9a;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 0 4px;
            margin-bottom: 12px;
            margin-top: 24px;
        }
        
        /* 统一侧边栏按钮样式 - 参考大平台设计 */
        .menu-item, .history-item, .favorite-item {
            background: rgba(35, 40, 50, 0.5);
            border: 1px solid rgba(56, 152, 255, 0.1);
            border-radius: 12px;
            padding: 0;
            margin-bottom: 12px;
            cursor: pointer;
            transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
            position: relative;
            /* 移除overflow: hidden，避免影响按钮点击 */
            touch-action: manipulation; /* 确保点击事件正常传递 */
        }
        
        .menu-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 0.25rem; /* 4px */
            background: linear-gradient(180deg, #3898ff, #2effa4);
            opacity: 0;
            transition: opacity 0.25s ease;
        }
        
        .menu-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            min-height: 3.5rem; /* 56px */
            padding: 0 1.25rem; /* 0 20px */
        }
        
        .menu-item:hover, .history-item:hover, .favorite-item:hover {
            background: rgba(40, 48, 58, 0.7);
            border-color: rgba(56, 152, 255, 0.25);
            /* 只保留颜色变化，不添加其他交互效果 */
        }
        
        .menu-item:hover::before {
            opacity: 1;
        }
        
        .menu-item-text {
            font-weight: 500;
            font-size: 1rem; /* 16px */
            color: #e8e8e8;
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            gap: 0.75rem; /* 12px */
        }
        
        .menu-item-text::before {
            content: '•';
            color: #3898ff;
            font-size: 1.25rem; /* 20px */
            line-height: 1;
        }
        
        .menu-item-arrow {
            color: #7a8a9a;
            font-size: 1rem; /* 16px */
            font-weight: 300;
            transition: all 0.25s ease;
        }
        
        .menu-item:hover .menu-item-arrow {
            color: #3898ff;
        }
        
        /* ========== 统一侧边栏按钮样式 ========== */
        
        /* 按钮基础样式 - 简洁现代设计 */
        .sidebar-btn-base {
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            border: none;
            outline: none;
        }
        
        /* 返回按钮 */
        .back-btn {
            background: rgba(56, 152, 255, 0.15);
            border: 1px solid rgba(56, 152, 255, 0.3);
            color: #3898ff;
            width: 2.75rem; /* 44px */
            height: 2.75rem;
            min-width: 2.75rem;
            min-height: 2.75rem;
            max-width: 2.75rem;
            max-height: 2.75rem;
            padding: 0;
            border-radius: 0.75rem; /* 12px */
            font-size: 1.125rem; /* 18px */
            flex-shrink: 0;
            box-shadow: 0 0.125rem 0.375rem rgba(56, 152, 255, 0.1);
        }
        
        .back-btn:hover {
            background: rgba(56, 152, 255, 0.25);
            border-color: rgba(56, 152, 255, 0.5);
            color: #4da6ff;
            box-shadow: 0 0.1875rem 0.5rem rgba(56, 152, 255, 0.2);
        }
        
        /* 收起侧边栏按钮 */
        .close-sidebar-btn {
            background: rgba(56, 152, 255, 0.15);
            border: 1px solid rgba(56, 152, 255, 0.3);
            color: #3898ff;
            width: 2.75rem; /* 44px */
            height: 2.75rem;
            min-width: 2.75rem;
            min-height: 2.75rem;
            max-width: 2.75rem;
            max-height: 2.75rem;
            padding: 0;
            border-radius: 0.75rem; /* 12px */
            font-size: 1.25rem; /* 20px */
            flex-shrink: 0;
            box-shadow: 0 0.125rem 0.375rem rgba(56, 152, 255, 0.1);
        }
        
        .close-sidebar-btn:hover {
            background: rgba(56, 152, 255, 0.25);
            border-color: rgba(56, 152, 255, 0.5);
            color: #4da6ff;
            box-shadow: 0 0.1875rem 0.5rem rgba(56, 152, 255, 0.2);
        }
        
        /* 清空按钮 */
        .clear-history-btn, .clear-favorites-btn {
            width: 100%;
            background: rgba(255, 107, 122, 0.12);
            border: 1px solid rgba(255, 107, 122, 0.25);
            color: #ff6b7a;
            padding: 0.75rem 1.25rem; /* 12px 20px */
            border-radius: 0.75rem; /* 12px */
            font-size: 0.9375rem; /* 15px */
            margin-top: 1.25rem; /* 20px */
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem; /* 8px */
            box-shadow: 0 0.125rem 0.375rem rgba(255, 107, 122, 0.1);
        }
        
        .clear-history-btn:hover, .clear-favorites-btn:hover {
            background: rgba(255, 107, 122, 0.18);
            border-color: rgba(255, 107, 122, 0.4);
            color: #ff8a95;
            box-shadow: 0 0.1875rem 0.5rem rgba(255, 107, 122, 0.2);
        }
        
        .clear-history-btn::before, .clear-favorites-btn::before {
            content: '🗑️';
            font-size: 1rem; /* 16px */
        }

        /* 分类夹相关样式 */
        .categories-list-view, .category-favorites-view {
            padding: 0.75rem; /* 12px */
        }

        /* 分类夹头部操作区 */
        .categories-header-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem; /* 8px */
            margin-bottom: 1rem; /* 16px */
        }

        .categories-header-actions .create-category-btn {
            flex: 1;
            margin-bottom: 0;
            width: auto;
        }

        /* 历史头部操作区 */
        .history-header-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem; /* 8px */
            margin-bottom: 1rem; /* 16px */
            padding: 0 1.5rem; /* 0 24px */
        }

        /* 模板头部操作区 */
        .template-header-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            padding: 0 1.5rem;
        }

        /* 撤销/重做按钮 */
        .undo-redo-btn {
            width: 2.75rem !important; /* 44px */
            height: 2.75rem !important;
            min-width: 2.75rem !important;
            min-height: 2.75rem !important;
            max-width: 2.75rem !important;
            max-height: 2.75rem !important;
            padding: 0.625rem; /* 10px */
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(56, 152, 255, 0.3);
            background: rgba(56, 152, 255, 0.1);
            color: #3898ff;
            border-radius: 0.5rem; /* 8px */
            cursor: pointer;
            transition: all 0.3s ease;
            flex: none;
        }

        .undo-redo-btn:hover:not(:disabled) {
            background: rgba(56, 152, 255, 0.2);
            border-color: rgba(56, 152, 255, 0.5);
            transform: translateY(-1px);
        }

        .undo-redo-btn:active:not(:disabled) {
            transform: translateY(0);
        }

        .undo-redo-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            background: rgba(0, 0, 0, 0.1);
            border-color: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.3);
        }

        .undo-redo-btn svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        /* 更多选项按钮 */
        .more-options-btn {
            width: 44px !important;
            height: 44px !important;
            min-width: 44px !important;
            min-height: 44px !important;
            max-width: 44px !important;
            max-height: 44px !important;
            padding: 0 !important;
            flex: none !important;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(56, 152, 255, 0.12);
            border: 1px solid rgba(56, 152, 255, 0.3);
            border-radius: 12px;
            color: #3898ff;
            cursor: pointer;
            transition: all 0.2s;
            box-sizing: border-box;
        }

        .more-options-btn:hover {
            background: rgba(56, 152, 255, 0.2);
            border-color: rgba(56, 152, 255, 0.5);
            transform: translateY(-1px);
        }

        .more-options-btn svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        /* 创建分类夹按钮 */
        .create-category-btn {
            width: 100%;
            background: rgba(46, 255, 164, 0.12);
            border: 1px solid rgba(46, 255, 164, 0.3);
            color: #2effa4;
            padding: 14px 20px;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 500;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 6px rgba(46, 255, 164, 0.1);
        }

        .create-category-btn:hover {
            background: rgba(46, 255, 164, 0.18);
            border-color: rgba(46, 255, 164, 0.5);
            box-shadow: 0 3px 8px rgba(46, 255, 164, 0.2);
            transform: translateY(-1px);
        }

        .create-category-btn::before {
            content: '➕';
            font-size: 16px;
        }

        /* 分类夹容器 */
        .categories-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        /* 分类夹项 */
        .category-item {
            background: rgba(35, 40, 50, 0.6);
            border: 1px solid rgba(56, 152, 255, 0.15);
            border-radius: 12px;
            padding: 14px 16px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
            overflow: hidden;
        }

        .category-item:hover {
            background: rgba(40, 48, 58, 0.8);
            border-color: rgba(56, 152, 255, 0.3);
            transform: translateX(4px);
            box-shadow: 0 3px 8px rgba(56, 152, 255, 0.15);
        }

        .category-item.active {
            background: rgba(56, 152, 255, 0.15);
            border-color: rgba(56, 152, 255, 0.4);
        }

        .category-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, #2effa4, #3898ff);
            opacity: 0;
            transition: opacity 0.25s;
        }

        .category-item:hover::before,
        .category-item.active::before {
            opacity: 1;
        }

        .category-icon {
            font-size: 22px;
            flex-shrink: 0;
        }

        .category-info {
            flex: 1;
            min-width: 0;
        }

        .category-name {
            font-size: 15px;
            font-weight: 500;
            color: #ffffff;
            margin-bottom: 4px;
        }

        .category-count {
            font-size: 12px;
            color: #7a8a9a;
        }

        .category-item-actions {
            display: flex;
            gap: 6px;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .category-item:hover .category-item-actions {
            opacity: 1;
        }

        .category-item-action {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(56, 152, 255, 0.1);
            color: #3898ff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: all 0.2s;
        }

        .category-item-action:hover {
            background: rgba(56, 152, 255, 0.2);
            transform: scale(1.1);
        }

        .category-item-action.delete:hover {
            background: rgba(255, 107, 122, 0.2);
            border-color: rgba(255, 107, 122, 0.3);
            color: #ff6b7a;
        }

        /* 分类夹收藏视图头部 */
        .category-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 4px;
            margin-bottom: 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .small-back-btn {
            width: 36px !important;
            height: 36px !important;
            font-size: 16px !important;
        }

        .current-category-title {
            flex: 1;
            font-size: 16px;
            font-weight: 600;
            color: #ffffff;
            margin: 0;
        }

        .category-actions {
            display: flex;
            gap: 8px;
        }

        .category-action-btn {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(56, 152, 255, 0.1);
            color: #3898ff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            transition: all 0.2s;
            box-shadow: 0 2px 6px rgba(56, 152, 255, 0.1);
        }

        .category-action-btn:hover {
            background: rgba(56, 152, 255, 0.2);
            transform: translateY(-1px);
        }

        .category-action-btn.delete:hover {
            background: rgba(255, 107, 122, 0.2);
            border-color: rgba(255, 107, 122, 0.3);
            color: #ff6b7a;
        }

        /* 小屏幕下侧边栏标题栏布局优化 - 保持和大屏幕一致 */
        @media (max-width: 767px) {
            .sidebar-header {
                /* 保持大屏幕的布局，不修改 */
                height: 64px;
                padding: 16px 24px;
            }

            .sidebar-title {
                /* 保持大屏幕的样式 */
                font-size: 1.35rem;
                color: #3898ff;
                font-weight: 600;
                letter-spacing: 0.5px;
                display: flex;
                align-items: center;
                gap: 10px;
                order: 2;
            }

            .sidebar-title::after {
                /* 保持大屏幕的装饰线 */
                content: '';
                width: 0.25rem; /* 4px */
                height: 1.25rem; /* 20px */
                background: linear-gradient(180deg, #3898ff, #2effa4);
                border-radius: 0.125rem; /* 2px */
            }

            .back-btn,
            .close-sidebar-btn {
                /* 保持大屏幕的尺寸 */
                width: 2.75rem; /* 44px */
                height: 2.75rem;
                min-width: 2.75rem;
                min-height: 2.75rem;
                max-width: 2.75rem;
                max-height: 2.75rem;
                font-size: 1.125rem; /* 18px */
                flex-shrink: 0;
                order: 1;
            }

            /* 历史头部操作区 - 调整padding */
            .history-header-actions {
                padding: 0 1rem; /* 0 16px */
            }

            /* 分类夹头部优化 */
            .category-header {
                flex-wrap: nowrap;
                padding: 0.625rem 0.25rem; /* 10px 4px */
                gap: 0.5rem; /* 8px */
            }

            .small-back-btn {
                width: 2rem !important; /* 32px */
                height: 2rem !important;
                font-size: 0.875rem !important; /* 14px */
                flex-shrink: 0;
            }

            .current-category-title {
                font-size: 0.875rem; /* 14px */
                flex: 1;
                min-width: 0;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .category-actions {
                gap: 0.375rem; /* 6px */
                flex-shrink: 0;
            }

            .category-action-btn {
                width: 2rem; /* 32px */
                height: 2rem;
                font-size: 0.875rem; /* 14px */
            }

            /* 创建分类夹按钮优化 */
            .create-category-btn {
                padding: 0.75rem 1rem; /* 12px 16px */
                font-size: 0.875rem; /* 14px */
            }

            .category-item {
                padding: 0.75rem 0.875rem; /* 12px 14px */
                gap: 0.625rem; /* 10px */
            }

            .category-icon {
                font-size: 1.125rem; /* 18px */
            }

            .category-name {
                font-size: 0.875rem; /* 14px */
            }

            .category-count {
                font-size: 0.6875rem; /* 11px */
            }

            .category-item-actions {
                gap: 0.25rem; /* 4px */
            }

            .category-item-action {
                width: 1.75rem; /* 28px */
                height: 1.75rem;
                font-size: 0.75rem; /* 12px */
            }
        }


        /* 分类夹弹窗样式 */
        .category-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }

        .category-modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .category-modal {
            background: #1a1e24;
            border: 1px solid rgba(56, 152, 255, 0.3);
            border-radius: 16px;
            padding: 24px;
            min-width: 320px;
            max-width: 90%;
            transform: scale(0.9);
            transition: transform 0.3s;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .category-modal-overlay.active .category-modal {
            transform: scale(1);
        }

        .category-modal-title {
            font-size: 18px;
            font-weight: 600;
            color: #ffffff;
            margin-bottom: 20px;
        }

        .category-modal-input {
            width: 100%;
            background: rgba(35, 40, 50, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 14px 16px;
            font-size: 15px;
            color: #ffffff;
            margin-bottom: 20px;
            box-sizing: border-box;
        }

        .category-modal-input:focus {
            outline: none;
            border-color: #3898ff;
            box-shadow: 0 0 0 3px rgba(56, 152, 255, 0.1);
        }

        .category-modal-input::placeholder {
            color: #7a8a9a;
        }

        .category-modal-buttons {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }

        .category-modal-btn {
            padding: 12px 24px;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }

        .category-modal-btn.cancel {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
        }

        .category-modal-btn.cancel:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .category-modal-btn.confirm {
            background: #3898ff;
            color: #ffffff;
        }

        .category-modal-btn.confirm:hover {
            background: #2d87e6;
        }

        /* 历史记录操作按钮 */
        .history-action-btn {
            background: rgba(56, 152, 255, 0.12);
            border: 1px solid rgba(56, 152, 255, 0.25);
            color: #3898ff;
            width: 40px;
            height: 40px;
            padding: 0;
            border-radius: 10px;
            font-size: 13px;
            box-shadow: 0 2px 6px rgba(56, 152, 255, 0.1);
        }

        .history-action-btn:hover {
            background: rgba(56, 152, 255, 0.2);
            border-color: rgba(56, 152, 255, 0.4);
            color: #4da6ff;
            /* 移除box-shadow变化，只保留颜色变化 */
        }
        
        /* 收藏按钮 - 图标放大并优化颜色变化 */
        .star-btn {
            background: rgba(255, 193, 7, 0.12);
            border: 1px solid rgba(255, 193, 7, 0.25);
            color: #ffc107;
            width: 40px;
            height: 40px;
            padding: 0;
            border-radius: 10px;
            font-size: 22px; /* 图标放大从19px到22px */
            box-shadow: 0 2px 6px rgba(255, 193, 7, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .star-btn:hover {
            background: rgba(255, 193, 7, 0.2);
            border-color: rgba(255, 193, 7, 0.4);
            color: #ffd54f;
            /* 移除box-shadow变化，只保留颜色变化 */
        }

        .star-btn.starred {
            background: rgba(255, 193, 7, 0.4);
            border-color: rgba(255, 193, 7, 0.6);
            color: #ffeb3b;
            box-shadow: 0 3px 8px rgba(255, 193, 7, 0.25);
        }

        .star-btn.starred:hover {
            background: rgba(255, 193, 7, 0.5);
            border-color: rgba(255, 193, 7, 0.7);
            color: #fff176;
            /* 移除box-shadow变化，只保留颜色变化 */
        }
        
        /* 删除按钮 */
        .delete-btn {
            background: rgba(239, 83, 80, 0.12);
            border: 1px solid rgba(239, 83, 80, 0.25);
            color: #ef5350;
            width: 40px;
            height: 40px;
            padding: 0;
            border-radius: 10px;
            font-size: 16px;
            box-shadow: 0 2px 6px rgba(239, 83, 80, 0.1);
        }
        
        .delete-btn:hover {
            background: rgba(239, 83, 80, 0.2);
            border-color: rgba(239, 83, 80, 0.4);
            color: #ff6b66;
            box-shadow: 0 3px 8px rgba(239, 83, 80, 0.2);
        }
        }
        
        .clear-history-btn:hover, .clear-favorites-btn:hover {
            background: rgba(255, 107, 122, 0.25);
            border-color: rgba(255, 107, 122, 0.5);
            box-shadow: 0 2px 6px rgba(255, 107, 122, 0.2);
        }
        
        /* 历史记录和收藏项内部样式 - 卡片式现代设计 */
        .history-preview {
            text-align: center;
            margin-bottom: 14px;
            padding: 12px;
            background: rgba(20, 25, 35, 0.6);
            border-radius: 8px;
            border: 1px solid rgba(56, 152, 255, 0.08);
        }
        
        .history-preview-content {
            opacity: 1;
            mix-blend-mode: normal;
            white-space: pre-wrap;
            font-size: 14px;
            line-height: 1.6;
        }
        
        .history-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 14px;
            padding: 0 4px;
        }
        
        .history-text {
            font-size: 13px;
            color: #7a8a9a;
            font-weight: 400;
        }
        
        .history-time {
            font-size: 12px;
            color: #5a6a7a;
            font-weight: 400;
        }
        
        .history-mode {
            font-size: 12px;
            display: inline-block;
            margin-bottom: 8px;
            padding: 4px 8px;
            color: #3898ff;
            font-weight: 600;
            background: rgba(56, 152, 255, 0.1);
            border-radius: 4px;
        }
        
        .history-meta {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        
        .history-colors {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }
        
        .history-color {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            border: 1px solid rgba(56, 152, 255, 0.3);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        }
        
        .history-actions {
            display: flex;
            gap: 10px;
            margin-top: 14px;
            justify-content: flex-end;
            flex-shrink: 0;
            padding: 0 4px;
            position: relative;
            z-index: 1; /* 确保操作按钮在正确的层级 */
        }
        
        /* 历史记录和收藏项内部样式 */
        }
        
        .history-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 8px;
        }
        
        .history-text {
            font-size: 12px;
            color: #7a8a9a;
        }
        
        .history-time {
            font-size: 11px;
        }
        
        .history-mode {
            font-size: 11px;
            display: block;
            margin-bottom: 4px;
        }
        
        .history-meta {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        
        .history-colors {
            display: flex;
            gap: 4px;
        }
        
        .history-color {
            width: 16px;
            height: 16px;
            border-radius: 2px;
            border: 1px solid #2a3a4a;
        }
        
        .history-actions {
            display: flex;
            gap: 8px;
            margin-top: 8px;
            justify-content: flex-end;
            flex-shrink: 0;
        }
        .history-action-btn {
            background: rgba(56, 152, 255, 0.2);
            border: 1px solid rgba(56, 152, 255, 0.3);
            color: #3898ff;
            width: 38px;
            height: 38px;
            padding: 0;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .star-btn {
            background: rgba(255, 193, 7, 0.2);
            border: 1px solid rgba(255, 193, 7, 0.3);
            color: #ffc107;
            width: 38px;
            height: 38px;
            padding: 0;
            border-radius: 6px;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .star-btn.starred {
            background: rgba(255, 193, 7, 0.4);
            color: #ffd54f;
        }
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .history-action-btn:hover {
            background: rgba(56, 152, 255, 0.5);
        }

        .star-btn {
            background: none;
            border: none;
            color: #7a8a9a;
            cursor: pointer;
            font-size: 18px;
            transition: color 0.2s ease;
            width: 36px;
            height: 36px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .star-btn.favorited {
            color: #ffd700;
        }
        
        .empty-message {
            text-align: center;
            color: #7a8a9a;
            padding: 20px;
        }
        
        /* 遮罩层样式 */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 98;
            display: none;
        }
        
        .overlay.show {
            display: block;
        }
        
        /* 导入区域样式 - 修改输入框比例 */
        .import-section {
            margin-top: 20px;
            padding: 15px;
            background: rgba(30, 40, 50, 0.7);
            border-radius: 8px;
        }
        
        .import-title {
            margin-bottom: 10px;
            font-weight: bold;
            color: #2effa4;
        }
        
        .import-textarea {
            width: 100%;
            height: 150px; /* 5:5比例，150px高对应150px宽 */
            padding: 8px 10px;
            border-radius: 5px;
            background: #1e2a35;
            color: #e0e0e0;
            border: 1px solid #2a3a4a;
            resize: vertical;
            margin-bottom: 10px;
            font-size: 14px;
        }
        
        /* 导入模式选择器 */
        .import-mode-selector {
            margin-bottom: 15px;
        }
        
        .import-mode-selector label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #3898ff;
        }
        
        .import-mode-buttons {
            display: flex;
            gap: 10px;
        }
        
        .import-mode-btn {
            flex: 1;
            padding: 8px 12px;
            background: rgba(56, 152, 255, 0.2);
            border: 1px solid rgba(56, 152, 255, 0.3);
            border-radius: 5px;
            color: #e0e0e0;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
            text-align: center;
        }
        
        .import-mode-btn:hover {
            background: rgba(56, 152, 255, 0.3);
        }
        
        .import-mode-btn.active {
            background: rgba(46, 255, 164, 0.3);
            color: #2effa4;
            border-color: rgba(46, 255, 164, 0.5);
        }
        
        .import-btn {
            background: #3898ff;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
        }
        
        .import-btn:hover {
            background: #2d87e6;
        }
        
        /* 清空按钮样式 */
        .clear-history-btn, .clear-favorites-btn {
            background: rgba(255, 77, 77, 0.3);
            color: #e0e0e0;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
            margin-top: 10px;
            width: 100%;
        }
        
        .clear-history-btn:hover, .clear-favorites-btn:hover {
            background: rgba(255, 77, 77, 0.5);
        }
        
        .author-info {
            text-align: center;
            margin-top: 5px;
            color: #7a8a9a;
            font-size: 12px;
        }

        /* 游戏代码样式 */
        .dress-character-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .dress-line {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
            align-items: center;
            padding: 8px;
            background: rgba(30, 40, 50, 0.7);
            border-radius: 5px;
            border-left: 3px solid #3898ff;
        }

        .dress-line input {
            flex: 1;
            min-width: 0;
        }

        #dressDetailOutputArea .import-textarea {
            height: 32px;
            padding: 6px 8px;
            font-size: 13px;  
            margin-bottom: 8px; 
        }

        /* ========== 统一【游戏代码】和【联系/卡签跳转】按钮样式 ========== */
        
        /* 游戏代码复制按钮 - 统一样式 */
        .dress-copy {
            background: rgba(56, 152, 255, 0.15);
            border: 1px solid rgba(56, 152, 255, 0.3);
            color: #3898ff;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            white-space: nowrap;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            text-align: center;
            box-shadow: 0 2px 6px rgba(56, 152, 255, 0.1);
        }
        
        .dress-copy:hover {
            background: rgba(56, 152, 255, 0.25);
            border-color: rgba(56, 152, 255, 0.5);
            color: #4da6ff;
            box-shadow: 0 3px 8px rgba(56, 152, 255, 0.2);
        }

        /* 联系/卡签跳转菜单中的按钮 - 统一样式 */
        #contactMenu .dress-copy,
        .contact-menu-btn {
            background: rgba(56, 152, 255, 0.15);
            border: 1px solid rgba(56, 152, 255, 0.3);
            color: #3898ff;
            width: 60px !important;
            height: 36px !important;
            min-width: 60px !important;
            max-width: 60px !important;
            min-height: 36px !important;
            max-height: 36px !important;
            padding: 0 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            text-decoration: none !important;
            text-align: center !important;
            box-sizing: border-box !important;
            border-radius: 8px !important;
            box-shadow: 0 2px 6px rgba(56, 152, 255, 0.1) !important;
            transition: all 0.2s ease !important;
        }

        .contact-menu-btn:hover,
        #contactMenu .dress-copy:hover {
            background: rgba(56, 152, 255, 0.25) !important;
            border-color: rgba(56, 152, 255, 0.5) !important;
            color: #4da6ff !important;
            box-shadow: 0 3px 8px rgba(56, 152, 255, 0.2) !important;
        }

        /* 模式切换按钮样式 */
        .mode-switch-btn {
            flex: 1;
            padding: 8px 12px;
            background: rgba(56, 152, 255, 0.2);
            border: 1px solid rgba(56, 152, 255, 0.3);
            border-radius: 5px;
            color: #e0e0e0;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
            text-align: center;
        }

        .mode-switch-btn:hover {
            background: rgba(56, 152, 255, 0.3);
        }

        .mode-switch-btn.active {
            background: rgba(46, 255, 164, 0.3);
            color: #2effa4;
            border-color: rgba(46, 255, 164, 0.5);
        }

        /* 随机模式选择器样式 */
        .random-mode-selector {
            margin-top: 10px;
        }

        .random-mode-selector label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #3898ff;
        }

        /* 自定义范围模式样式 */
        .custom-color-selector {
            margin-top: 10px;
        }

        .custom-color-selector label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #3898ff;
        }

        .custom-color-rows {
            margin-top: 15px;
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }

        .custom-color-row {
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex: 0 0 calc(33.333% - 10px);
            min-width: 0; /* 移除最小宽度限制，确保能保持3列布局 */
            background: rgba(30, 40, 50, 0.6);
            padding: 6px;
            border-radius: 8px;
            border: 1px solid #2a3a4a;
            transition: all 0.3s ease;
        }
        
        /* 中屏幕设备 - 两列布局 */
        @media (max-width: 768px) {
            .custom-color-row {
                flex: 0 0 calc(50% - 7.5px); /* 50%宽度减去一半间距 */
                max-width: calc(50% - 7.5px);
            }
        }
        
        /* 小屏幕设备 - 两列布局 */
        @media (max-width: 480px) {
            .custom-color-row {
                flex: 0 0 calc(50% - 7.5px); /* 小屏幕上仍然显示为两列 */
                max-width: calc(50% - 7.5px);
                padding: 8px;
                gap: 8px;
            }
            
            .custom-color-row-line {
                gap: 5px;
            }
            
            .custom-color-input-group {
                gap: 6px;
            }
            
            /* 颜色代码输入框 - 使用统一的3:2宽高比样式 */
        }

        .custom-color-row-line {
            display: flex;
            flex-direction: column;
            gap: 3px;
            align-items: stretch;
        }

        .range-input-group {
            display: flex;
            width: 100%;
        }

        .range-input-group .style-range-input {
            width: 100%;
            min-height: 35px;
            max-height: 100px;
            resize: vertical;
        }

        .custom-color-input-group {
            display: flex;
            align-items: center;
            gap: 5px;
            min-width: 0;
        }

        .custom-color-input-group.range-group {
            flex-direction: column;
            align-items: flex-start;
        }

        .custom-color-input-group label {
            font-size: 13px;
            color: #7a8a9a;
            white-space: normal;
            word-break: break-word;
        }

        .input-hint {
            font-size: 10px;
            color: #6a7a8a;
            margin-top: 2px;
        }
        
        /* 模式切换的平滑过渡效果 */
        #mode1, #mode2 {
            transition: opacity 0.1s ease, visibility 0.1s ease;
            opacity: 1;
            visibility: visible;
        }

        /* 自定义颜色行中的字体大小输入框 - 与字数长度匹配 */
        /* 隐藏默认的数字输入框上下箭头 */
        input[type="number"]::-webkit-inner-spin-button,
        input[type="number"]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        input[type="number"] {
            -moz-appearance: textfield;
            /* 添加对IE11的支持 */
            -ms-appearance: textfield;
            /* 标准属性（目前浏览器支持有限） */
            appearance: textfield;
        }

        /* 字体大小输入框基础样式 - 3:2 宽高比 */
        .font-size-input {
            width: 80px;
            height: 40px;
            text-align: center;
            padding: 10px 5px;
            border: 1px solid #2a3a4a;
            border-radius: 5px;
            background: #1e2a35;
            color: #e0e0e0;
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s;
        }

        /* 自定义字体大小输入框特殊样式 - 3:2 宽高比 */
        .custom-font-size-input {
            width: 80px;
            height: 40px;
            text-align: center;
            padding: 10px 5px;
            border: 1px solid #2a3a4a;
            border-radius: 5px;
            background: #1e2a35;
            color: #e0e0e0;
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s;
        }

        /* 输入框获得焦点时的样式 */
        .font-size-input:focus,
        .custom-font-size-input:focus {
            border-color: #3898ff;
        }

        /* 字体大小输入框组容器 */
        .font-size-input-group {
            display: flex;
            align-items: center;
        }

        .custom-color-swatch {
            width: 24px;
            height: 24px;
            border-radius: 4px;
            border: 2px solid #2a3a4a;
            cursor: pointer;
            position: relative;
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        
        .custom-color-swatch:hover {
            border-color: #3898ff;
            box-shadow: 0 0 8px rgba(56, 152, 255, 0.5);
        }

        .custom-color-swatch input[type="color"] {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }

        .custom-color-count-selector {
            margin-top: 15px;
            background: rgba(30, 40, 50, 0.6);
            padding: 15px;
            border-radius: 8px;
            border-left: 3px solid #3898ff;
        }

        .custom-color-count-selector label {
            display: block;
            margin-bottom: 10px;
            font-weight: bold;
            color: #3898ff;
        }

        .custom-color-count-selector {
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .custom-color-count-selector label {
            margin-bottom: 0;
            font-weight: bold;
            color: #3898ff;
            white-space: nowrap;
        }

        .custom-color-count-input-container {
            display: flex;
            align-items: center;
            gap: 8px;
            justify-content: flex-start;
        }

        .custom-color-count-input {
            width: 64px !important;
            height: 48px !important;
            background: rgba(30, 40, 50, 0.8);
            border: 2px solid rgba(56, 152, 255, 0.3);
            border-radius: 6px;
            color: #e0e0e0;
            font-size: 20px;
            font-weight: bold;
            text-align: center;
            padding: 0 !important;
            flex: none;
            box-sizing: border-box;
        }

        .custom-color-count-input:focus {
            outline: none;
            border-color: #3898ff;
            box-shadow: 0 0 8px rgba(56, 152, 255, 0.5);
        }

        .custom-color-count-btn-minus,
        .custom-color-count-btn-plus {
            width: 48px;
            height: 48px;
            background: #3898ff;
            border: none;
            border-radius: 6px;
            color: #fff;
            cursor: pointer;
            font-size: 24px;
            font-weight: bold;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: none;
            min-width: 48px;
            max-width: 48px;
            min-height: 48px;
            max-height: 48px;
        }

        .custom-color-count-btn-minus:hover,
        .custom-color-count-btn-plus:hover {
            background: #2d87e6;
            transform: scale(1.05);
        }

        .custom-color-count-btn-minus:active,
        .custom-color-count-btn-plus:active {
            transform: scale(0.95);
        }

        .custom-color-count-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .custom-color-count-btn {
            padding: 10px 16px;
            background: rgba(56, 152, 255, 0.2);
            border: 2px solid rgba(56, 152, 255, 0.3);
            border-radius: 6px;
            color: #e0e0e0;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: all 0.2s ease;
            min-width: 60px;
        }

        .custom-color-count-btn:hover {
            background: rgba(56, 152, 255, 0.3);
            transform: translateY(-2px);
        }

        .custom-color-count-btn.active {
            background: rgba(46, 255, 164, 0.3);
            color: #2effa4;
            border-color: rgba(46, 255, 164, 0.5);
            box-shadow: 0 2px 8px rgba(46, 255, 164, 0.3);
        }

        /* 自定义样式输入区域 */
        .custom-style-section {
            margin-top: 15px;
            background: rgba(30, 40, 50, 0.6);
            padding: 10px;
            border-radius: 8px;
            border-left: 3px solid #3898ff;
        }

        .style-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        /* 切换样式按钮样式 - 保持1:1比例、纯蓝色背景 */
        .style-header .toggle-style-btn, #toggleStyleBtn {
            width: 32px !important;
            height: 32px !important;
            padding: 0 !important;
            background: #3898ff !important;
            border: none;
            border-radius: 6px;
            color: #fff;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            min-width: 32px !important;
            max-width: 32px !important;
            min-height: 32px !important;
            max-height: 32px !important;
            flex: none !important;
        }

        .toggle-style-btn:hover {
            background: #2b7dd2 !important;
            transform: translateY(-2px);
        }

        .style-content {
            margin-top: 10px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .custom-style-inputs {
            margin-top: 15px;
            background: rgba(30, 40, 50, 0.6);
            padding: 10px;
            border-radius: 8px;
            border-left: 3px solid #3898ff;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .style-content .style-input-group {
            flex: 0 0 calc(33.333% - 6px);
            margin-bottom: 0;
            padding: 8px;
            background: rgba(25, 35, 45, 0.6);
            border-radius: 6px;
        }

        .style-content .style-input-group:last-child {
            margin-bottom: 0;
        }

        .style-content .checkbox-group {
            margin-bottom: 5px;
        }

        .style-content .style-range-input {
            width: 100%;
            padding: 8px;
            border: 1px solid #2a3a4a;
            border-radius: 5px;
            background: #1e2a35;
            color: #e0e0e0;
            font-size: 14px;
            min-height: 35px;
            max-height: 100px;
            resize: vertical;
            box-sizing: border-box;
        }
        
        /* 滑杆模式下隐藏范围输入框 */
        #mode2 .style-content .style-range-input {
            display: none;
        }
        
        /* 数字模式在所有屏幕尺寸下保持3列布局 */
        #mode1 .style-content .style-input-group {
            flex: 0 0 calc(33.333% - 6px);
        }
        
        /* 数字模式下显示范围输入框 */
        #mode1 .style-content .style-range-input {
            display: block;
        }

        .style-content .input-hint {
            font-size: 10px;
            color: #6a7a8a;
            margin-top: 3px;
        }

        /* 渐变功能样式 */
        .custom-gradient-section {
            margin-top: 15px;
            background: rgba(30, 40, 50, 0.6);
            padding: 10px;
            border-radius: 8px;
            border-left: 3px solid #3898ff;
        }

        .gradient-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        /* 切换渐变按钮样式 - 保持1:1比例、纯蓝色背景 */
        .gradient-header .toggle-gradient-btn, #toggleGradientBtn, #toggleColorBtn {
            width: 32px !important;
            height: 32px !important;
            padding: 0 !important;
            background: #3898ff !important;
            border: none;
            border-radius: 6px;
            color: #fff;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            min-width: 32px !important;
            max-width: 32px !important;
            min-height: 32px !important;
            max-height: 32px !important;
            flex: none !important;
        }

        .toggle-gradient-btn:hover {
            background: #2b7dd2 !important;
            transform: translateY(-2px);
        }

        .gradient-content {
            margin-top: 10px;
        }

        .gradient-count-selector {
            margin-bottom: 15px;
        }

        .gradient-count-selector label {
            display: block;
            margin-bottom: 10px;
            font-weight: bold;
            color: #3898ff;
        }

        .gradient-count-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .gradient-count-btn {
            padding: 10px 16px;
            background: rgba(56, 152, 255, 0.2);
            border: 2px solid rgba(56, 152, 255, 0.3);
            border-radius: 6px;
            color: #e0e0e0;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: all 0.2s ease;
            min-width: 80px;
        }

        .gradient-count-btn:hover {
            background: rgba(56, 152, 255, 0.3);
            transform: translateY(-2px);
        }

        .gradient-count-btn.active {
            background: rgba(46, 255, 164, 0.3);
            color: #2effa4;
            border-color: rgba(46, 255, 164, 0.5);
            box-shadow: 0 2px 8px rgba(46, 255, 164, 0.3);
        }

        /* 渐变提醒文本 */
        .gradient-reminder {
            font-size: 10px !important;
            color: #999 !important;
            margin-top: 5px !important;
            margin-bottom: 10px !important;
            text-align: left !important;
            line-height: 1.2 !important;
        }

        .gradient-bars {
            margin-top: 15px;
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        /* 渐变条容器中的颜色行 - 两列布局 */
        .custom-gradient-section .gradient-bars .custom-color-row {
            flex: 0 0 calc(50% - 7.5px) !important; /* 50%宽度减去一半间距 */
            max-width: calc(50% - 7.5px) !important;
            box-sizing: border-box !important;
        }
        
        /* 1渐变模式中的颜色行 - 宽度铺满，起始和末尾颜色并列 */
        .custom-gradient-section .gradient-bars .custom-color-row.full-width {
            flex: 0 0 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
        }
        
        /* 1渐变模式中的颜色输入组 - 并列显示 */
        .custom-color-row.full-width .color-inputs-row {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }
        
        .custom-color-row.full-width .color-inputs-row .custom-color-input-group {
            flex: 1;
        }
        
        /* 大屏幕模式下渐变功能的起始和末尾色块水平排列 */
        @media (min-width: 769px) {
            .custom-color-row:not(.full-width) .custom-color-row-line:nth-child(3),
            .custom-color-row:not(.full-width) .custom-color-row-line:nth-child(4) {
                display: inline-block;
                width: calc(50% - 5px);
                vertical-align: top;
            }
            
            .custom-color-row:not(.full-width) .custom-color-row-line:nth-child(3) {
                margin-right: 10px;
            }
        }
        
        /* 确保在小屏幕上仍然保持两列布局 */
        @media (max-width: 480px) {
            .custom-gradient-section .gradient-bars {
                gap: 10px;
            }
            
            .custom-gradient-section .gradient-bars .custom-color-row {
                flex: 0 0 calc(50% - 5px) !important; /* 小屏幕上仍然显示为两列 */
                max-width: calc(50% - 5px) !important;
                padding: 8px !important;
                gap: 8px !important;
            }
            
            .custom-gradient-section .gradient-bars .color-code-input {
                width: 70px !important;
                height: 20px !important;
                padding: 1px 4px !important;
                font-size: 11px !important;
            }
            
            .custom-gradient-section .gradient-bars .color-code-prefix {
                font-size: 11px !important;
                min-width: 10px !important;
                height: 20px !important;
                line-height: 20px !important;
            }
            
            .custom-gradient-section .gradient-bars .color-swatch {
                width: 20px !important;
                height: 20px !important;
                min-width: 20px !important;
                max-width: 20px !important;
                min-height: 20px !important;
                max-height: 20px !important;
            }
            
            .custom-gradient-section .gradient-bars .custom-color-swatch {
                width: 20px !important;
                height: 20px !important;
                min-width: 20px !important;
                max-width: 20px !important;
                min-height: 20px !important;
                max-height: 20px !important;
            }
        }
        
        /* 超小屏幕手机适配 */
        @media (max-width: 360px) {
            .custom-gradient-section .gradient-bars {
                gap: 8px;
            }
            
            .custom-gradient-section .gradient-bars .custom-color-row {
                flex: 0 0 calc(50% - 4px) !important; /* 超小屏幕上仍然显示为两列 */
                max-width: calc(50% - 4px) !important;
                padding: 6px !important;
                gap: 6px !important;
            }
        }
        
        /* 渐变条预览样式 */
        .gradient-preview-container {
            width: 100%;
            margin-bottom: 5px;
        }
        
        .gradient-preview-bar {
            width: 100%;
            height: 10px;
            border-radius: 5px;
            border: 1px solid #2a3a4a;
            background: linear-gradient(to right, #2effa4, #3898ff);
            margin-bottom: 5px;
        }
        
        /* 渐变颜色数量选择器样式 */
        .gradient-color-count-selector {
            margin: 15px 0;
            background: rgba(30, 40, 50, 0.6);
            padding: 10px;
            border-radius: 8px;
            border-left: 3px solid #3898ff;
        }
        
        .gradient-color-count-selector label {
            display: block;
            margin-bottom: 10px;
            font-weight: bold;
            color: #3898ff;
        }
        
        .gradient-color-count-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .gradient-color-count-btn {
            width: 40px !important;
            height: 40px !important;
            padding: 0 !important;
            background: rgba(56, 152, 255, 0.2);
            border: 2px solid rgba(56, 152, 255, 0.3);
            border-radius: 6px;
            color: #e0e0e0;
            cursor: pointer;
            font-size: 12px;
            font-weight: bold;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
        }
        
        .gradient-color-count-btn:hover {
            background: rgba(56, 152, 255, 0.3);
            transform: translateY(-2px);
        }
        
        .gradient-color-count-btn.active {
            background: rgba(46, 255, 164, 0.3);
            color: #2effa4;
            border-color: rgba(46, 255, 164, 0.5);
            box-shadow: 0 2px 8px rgba(46, 255, 164, 0.3);
        }
        
        /* 渐变步长选择器样式 */
        .gradient-step-selector {
            margin: 15px 0;
            background: rgba(30, 40, 50, 0.6);
            padding: 10px;
            border-radius: 8px;
            border-left: 3px solid #3898ff;
        }
        
        .gradient-step-selector label {
            display: block;
            margin-bottom: 10px;
            font-weight: bold;
            color: #3898ff;
        }
        
        .gradient-step-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .gradient-step-btn {
            padding: 8px 16px;
            background: rgba(56, 152, 255, 0.2);
            border: 2px solid rgba(56, 152, 255, 0.3);
            border-radius: 6px;
            color: #e0e0e0;
            cursor: pointer;
            font-size: 12px;
            font-weight: bold;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
        }
        
        .gradient-step-btn:hover {
            background: rgba(56, 152, 255, 0.3);
            transform: translateY(-2px);
        }
        
        .gradient-step-btn.active {
            background: rgba(46, 255, 164, 0.3);
            color: #2effa4;
            border-color: rgba(46, 255, 164, 0.5);
            box-shadow: 0 2px 8px rgba(46, 255, 164, 0.3);
        }

        /* 自定义范围模式的全局字体设置 */
        .custom-global-settings {
            margin-top: 15px;
            background: rgba(30, 40, 50, 0.6);
            padding: 10px;
            border-radius: 8px;
            border-left: 3px solid #3898ff;
        }

        .custom-global-settings .font-settings-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            align-items: center;
            justify-content: space-between;
        }



        .custom-global-settings .style-checkboxes {
            display: flex;
            gap: 15px;
        }

        .color-swatch-container {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        /* 响应式设计 - 手机适配 */
        @media (max-width: 768px) {
            /* 移动端按钮触摸优化 */
            button, .btn, [role="button"], .history-action-btn, .star-btn, .category-action-btn {
                min-width: 44px;
                min-height: 44px;
                touch-action: manipulation;
                -webkit-tap-highlight-color: rgba(56, 152, 255, 0.3);
            }

            /* 移动端按钮触摸反馈 */
            button:active, .btn:active, .history-action-btn:active, .star-btn:active {
                transform: scale(0.95);
                opacity: 0.8;
            }

            body {
                padding: 8px;
                min-height: 100vh;
            }
            
            #fontSize {
                width: 60px;
                height: 40px;
                padding: 8px 4px;
                font-size: 14px;
            }
            
            /* 颜色代码输入框 - 使用统一的3:2宽高比样式 */



            .font-settings-row {
                flex-direction: row;
                gap: 10px;
                margin-bottom: 15px;
                align-items: center;
            }

            .font-size-group {
                flex: 1;
            }

            .style-checkboxes {
                flex-direction: row;
                gap: 15px;
                margin-left: 10px;
                margin-bottom: 0;
            }

            .size-info {
                margin-top: 5px;
                margin-bottom: 15px;
            }

            .container {
                max-width: 100%;
                padding: 12px;
                margin-top: 80px;
                border-radius: 8px;
            }
            
            h1 {
                font-size: 1.6rem;
                padding-bottom: 6px;
                margin-bottom: 5px;
            }
            
            .subtitle {
                font-size: 11px;
                margin-bottom: 15px;
            }
            
            h1::after {
                left: 20%;
                width: 60%;
            }
            
            .preview-section {
                margin-bottom: 20px;
            }
            
            .preview-title {
                margin-bottom: 10px;
                font-size: 14px;
            }
            
            .preview-content {
                padding: 12px !important;
                min-height: 50px !important;
                height: 40px !important;
                border-radius: 6px;
            }
            
            .input-group {
                margin-bottom: 15px;
            }
            
            label {
                font-size: 14px;
                margin-bottom: 6px;
            }
            
            textarea, input[type="text"], input[type="number"], input[type="password"], select {
                padding: 10px;
                font-size: 14px;
                border-radius: 6px;
            }
            
            .settings-row {
                flex-direction: row;
                gap: 8px;
                margin-bottom: 15px;
            }
            
            .size-info {
                font-size: 11px;
            }
            
            .style-checkboxes {
                flex-direction: row;
                gap: 10px;
                margin-bottom: 15px;
            }
            
            .color-inputs {
                flex-direction: row;
                gap: 8px;
                margin-bottom: 15px;
            }
            
            .color-input-row {
                flex-direction: row;
                gap: 8px;
            }
            
            .color-input-group {
                flex-direction: row;
                align-items: center;
                gap: 8px;
            }
            
            .color-swatch {
                width: 22px;
                height: 22px;
            }
            
            /* 手机端互换按钮样式 */
            .swap-colors-btn {
                width: 28px;
                height: 28px;
                font-size: 14px;
            }
            
            .color-preview {
                height: 50px;
                margin-bottom: 15px;
                border-radius: 6px;
            }
            
            .button-group {
                flex-direction: row;
                gap: 8px;
                margin-top: 15px;
            }
            
            button {
                padding: 12px;
                font-size: 14px;
                border-radius: 6px;
            }
            
            .output {
                margin-top: 20px;
                padding: 15px;
                border-radius: 6px;
            }
            
            .output-header {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                gap: 10px;
                margin-bottom: 12px;
            }
            
            .output-buttons {
                flex-direction: row;
                gap: 6px;
                width: 100%;
            }
            
            .copy-btn, .favorite-btn {
                flex: 1;
                justify-content: center;
                padding: 10px;
                font-size: 13px;
            }
            
            .code-block {
                padding: 12px;
                font-size: 11px;
                border-radius: 4px;
                white-space: pre-wrap;
                word-break: break-all;
                line-height: 1.4;
            }
            
            .examples {
                margin-top: 20px;
                padding: 15px;
                border-radius: 6px;
            }
            
            .examples-header {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                gap: 8px;
                margin-bottom: 12px;
            }
            
            .examples-title-row {
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .examples-title {
                font-size: 14px;
            }
            
            .examples-style-checkboxes {
                flex-direction: row;
                gap: 8px;
                width: auto;
            }
            
            .toggle-all-examples-btn {
                width: 30px !important;
                height: 30px !important;
                min-width: 30px !important;
                max-width: 30px !important;
                min-height: 30px !important;
                max-height: 30px !important;
                font-size: 12px;
            }
            
            .example-item {
                margin-bottom: 20px;
                padding: 12px;
                border-radius: 6px;
            }
            
            .example-preview {
                padding: 8px;
                margin-bottom: 12px;
                border-radius: 4px;
            }
            
            .example-controls {
                flex-direction: row;
                gap: 6px;
                margin-bottom: 8px;
                flex-wrap: wrap;
            }
            
            .example-text-input {
                min-width: 100%;
            }
            
            .example-buttons {
                width: 100%;
            }
            
            .example-btn {
                flex: 1;
                padding: 8px 10px;
                font-size: 13px;
            }
            
            .example-code {
                padding: 8px;
                font-size: 11px;
                border-radius: 4px;
                white-space: pre-wrap;
                word-break: break-all;
                line-height: 1.4;
            }
            
            .footer {
                margin-top: 20px;
                font-size: 12px;
            }
            
            /* 手机端更多颜色面板位置调整 */
            .more-colors-panel {
                top: 115px;
                right: 20px;
            }

            .history-action-btn {
                width: 44px; /* 增加到44px，符合移动端触摸标准 */
                height: 44px;
                text-align: center;
                padding: 0;
                font-size: 11px;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
                min-width: 44px; /* 确保最小宽度 */
                min-height: 44px; /* 确保最小高度 */
                position: relative;
                z-index: 1; /* 确保按钮在正确的层级 */
                -webkit-tap-highlight-color: rgba(56, 152, 255, 0.3); /* 添加触摸高亮 */
            }

            .star-btn {
                width: 44px; /* 增加到44px，符合移动端触摸标准 */
                height: 44px;
                padding: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
                min-width: 44px; /* 确保最小宽度 */
                min-height: 44px; /* 确保最小高度 */
                position: relative;
                z-index: 1; /* 确保按钮在正确的层级 */
                -webkit-tap-highlight-color: rgba(255, 193, 7, 0.3); /* 添加触摸高亮 */
            }

            /* 添加触摸激活状态 */
            .history-action-btn:active,
            .star-btn:active {
                transform: scale(0.95);
                opacity: 0.8;
            }
            
            .import-section {
                margin-top: 15px;
                padding: 12px;
                border-radius: 6px;
            }
            
            .import-textarea {
                height: 120px; /* 5:5比例，手机端调整 */
                padding: 8px;
                font-size: 13px;
            }
            
            .import-btn {
                padding: 8px 12px;
                font-size: 13px;
            }
            
            .clear-history-btn, .clear-favorites-btn {
                padding: 8px 12px;
                font-size: 13px;
                margin-top: 8px;
            }
            
            /* 自定义范围在中等屏幕下保持3列布局 */
            @media (min-width: 481px) {
                .custom-color-row {
                    flex: 0 0 calc(33.333% - 10px) !important;
                    min-width: 0 !important;
                    padding: 8px;
                    gap: 8px;
                }
            }
            
            /* 自定义范围在小屏幕下保持2列布局 */
            @media (max-width: 480px) {
                .custom-color-row {
                    flex: 0 0 calc(50% - 7.5px) !important;
                    min-width: 0 !important;
                    padding: 8px;
                    gap: 8px;
                }
                
                /* 滑杆模式下颜色设置水平布局 */
                #mode2 .custom-color-row-line.horizontal-layout {
                    flex-direction: row;
                    flex-wrap: wrap;
                    align-items: center;
                    gap: 8px;
                }
                
                #mode2 .custom-color-row-line.horizontal-layout .custom-color-input-group {
                    flex: 1;
                    min-width: 0;
                }

                #mode2 .custom-color-row-line.horizontal-layout .custom-color-input-group.range-group {
                    flex-direction: column;
                    align-items: flex-start;
                }
                
                #mode2 .custom-color-row-line.horizontal-layout .custom-color-input-group label {
                    white-space: nowrap;
                }
                
                #mode2 .custom-color-row-line.horizontal-layout .color-swatch-container {
                    display: flex;
                    align-items: center;
                    gap: 5px;
                    min-width: auto;
                }
                
                #mode2 .custom-color-row-line.horizontal-layout .color-code-input {
                    width: 70px !important;
                    height: 20px !important;
                    padding: 1px 4px !important;
                    font-size: 11px !important;
                    flex: 0 0 auto;
                    min-width: 0;
                }
                
                #mode2 .custom-color-row-line.horizontal-layout .color-code-prefix {
                    font-size: 11px !important;
                    min-width: 10px !important;
                    height: 20px !important;
                    line-height: 20px !important;
                }
                
                #mode2 .custom-color-row-line.horizontal-layout .color-swatch {
                    width: 20px !important;
                    height: 20px !important;
                    min-width: 20px !important;
                    max-width: 20px !important;
                    min-height: 20px !important;
                    max-height: 20px !important;
                }
                
                #mode2 .custom-color-row-line.horizontal-layout .custom-color-swatch {
                    width: 20px !important;
                    height: 20px !important;
                    min-width: 20px !important;
                    max-width: 20px !important;
                    min-height: 20px !important;
                    max-height: 20px !important;
                }
            }
            
            .custom-color-row-line {
                gap: 10px;
            }
            
            .custom-color-input-group {
                gap: 5px;
            }
            
            /* 渐变数量按钮响应式调整 */
            .gradient-count-btn {
                padding: 8px 12px;
                font-size: 12px;
                min-width: 60px;
            }
            
            .gradient-count-buttons {
                gap: 8px;
            }
            
            .custom-color-input-group label {
                font-size: 12px;
            }
            
            .custom-font-size-input,
            .color-code-input {
                padding: 8px;
                font-size: 12px;
            }
            
            .custom-color-swatch {
                width: 24px;
                height: 24px;
            }
            
            .custom-color-count-selector {
                margin-bottom: 15px;
                display: flex;
                align-items: center;
                gap: 8px;
            }
            
            .custom-color-count-selector label {
                margin-bottom: 0;
                font-weight: bold;
                color: #3898ff;
                white-space: nowrap;
                font-size: 12px;
            }
            
            .custom-color-count-input-container {
                gap: 6px;
                justify-content: flex-start;
            }
            
            .custom-color-count-input {
                width: 48px !important;
                height: 36px !important;
                font-size: 16px;
                padding: 0 !important;
                box-sizing: border-box;
            }
            
            .custom-color-count-btn-minus,
            .custom-color-count-btn-plus {
                width: 36px;
                height: 36px;
                font-size: 20px;
                min-width: 36px;
                max-width: 36px;
                min-height: 36px;
                max-height: 36px;
            }
            
            .custom-color-count-buttons {
                gap: 5px;
                justify-content: center;
            }
            
            .custom-color-count-btn {
                padding: 6px 10px;
                font-size: 12px;
                min-width: 40px;
                text-align: center;
            }
            
            /* 移动端步长选择器样式 */
            .gradient-step-selector {
                padding: 8px;
            }
            
            .gradient-step-selector label {
                font-size: 12px;
                margin-bottom: 8px;
            }
            
            .gradient-step-buttons {
                gap: 8px;
            }
            
            .gradient-step-btn {
                padding: 6px 12px;
                font-size: 11px;
            }

            /* 手机端自定义字体大小输入框 - 4:2 宽高比 */
            .custom-font-size-input {
                width: 80px;
                height: 40px;
                padding: 8px 4px;
                font-size: 14px;
            }

            /* 手机端颜色代码输入框 - 使用统一的3:2宽高比样式 */

            .color-swatch-container {
                gap: 6px;
            }
        }

        /* 小屏幕手机适配 */
        @media (max-width: 480px) {
            body {
                padding: 5px;
            }

            .font-settings-row {
                gap: 8px;
            }

            .font-size-group label {
                font-size: 13px;
                margin-bottom: 5px;
            }

            .style-checkboxes {
                gap: 10px;
                margin-left: 8px;
            }
            
            .container {
                padding: 8px;
            }
            
            h1 {
                font-size: 1.4rem;
            }
            
            .subtitle {
                font-size: 10px;
            }
            
            .preview-content {
                padding: 8px !important;
                min-height: 45px !important;
                height: 35px !important;
            }
            
            textarea, input[type="text"], input[type="number"], input[type="password"], select {
                padding: 8px;
                font-size: 13px;
            }
            
            .style-checkboxes, .examples-style-checkboxes {
                gap: 6px;
                flex-direction: row;
            }
            
            .checkbox-group {
                gap: 6px;
            }
            
            .checkbox-group input[type="checkbox"] {
                width: 16px;
                height: 16px;
            }
            
            .color-swatch {
                width: 25px;
                height: 25px;
            }
            
            /* 小屏幕互换按钮样式 */
            .swap-colors-btn {
                width: 25px;
                height: 25px;
                font-size: 12px;
            }
            
            .color-preview {
                height: 45px;
            }
            
            button {
                padding: 10px;
                font-size: 13px;
            }
            
            /* 小屏幕切换渐变按钮样式 - 保持1:1比例、纯蓝色背景 */
            .gradient-header .toggle-gradient-btn, #toggleGradientBtn, #toggleColorBtn {
                width: 32px !important;
                height: 32px !important;
                padding: 0 !important;
                font-size: 14px;
                display: flex;
                align-items: center;
                justify-content: center;
                box-sizing: border-box;
                min-width: 32px !important;
                max-width: 32px !important;
                min-height: 32px !important;
                max-height: 32px !important;
            }

            /* 小屏幕切换样式按钮样式 - 保持1:1比例、纯蓝色背景 */
            .style-header .toggle-style-btn, #toggleStyleBtn {
                width: 32px !important;
                height: 32px !important;
                padding: 0 !important;
                font-size: 14px;
                display: flex;
                align-items: center;
                justify-content: center;
                box-sizing: border-box;
                min-width: 32px !important;
                max-width: 32px !important;
                min-height: 32px !important;
                max-height: 32px !important;
            }
            
            .code-block, .example-code {
                font-size: 10px;
                padding: 8px;
            }
            
            .more-colors-panel {
                top: 108px;
                right: 10px;
            }
            
            
            .sidebar {
                padding: 0; /* 与大屏幕一致，不设置额外padding */
            }
            
            .sidebar-header {
                padding-top: 3.75rem; /* 60px */
                /* margin-bottom 已在全局样式中设置，此处无需重复 */
                display: flex;
                align-items: center;
            }
            
            .sidebar-header .back-btn {
                margin-right: 0.625rem; /* 10px */
            }
            
            .author-info {
                font-size: 0.6875rem; /* 11px */
            }

            /* 小屏幕自定义范围保持2列布局 */
            .custom-color-row {
                flex: 0 0 calc(50% - 0.46875rem) !important; /* 50% - 7.5px */
                min-width: 0 !important;
            }
            
            /* 小屏幕自定义字体大小输入框 - 4:2 宽高比 */
            .custom-font-size-input {
                width: 70px;
                height: 35px;
                padding: 6px 4px;
                font-size: 13px;
            }

            /* 小屏幕颜色代码输入框 - 重新设计 */
            .color-code-input {
                width: 70px !important;
                height: 20px !important;
                padding: 1px 4px !important;
                font-size: 11px !important;
            }
            
            .color-code-prefix {
                font-size: 11px !important;
                min-width: 10px !important;
                height: 20px !important;
                line-height: 20px !important;
            }
            
            .color-swatch {
                width: 20px !important;
                height: 20px !important;
                min-width: 20px !important;
                max-width: 20px !important;
                min-height: 20px !important;
                max-height: 20px !important;
            }
            
            .custom-color-swatch {
                width: 20px !important;
                height: 20px !important;
                min-width: 20px !important;
                max-width: 20px !important;
                min-height: 20px !important;
                max-height: 20px !important;
            }


        }

        /* 超小屏幕手机适配 */
        @media (max-width: 360px) {
            body {
                padding: 3px;
            }
            
            .preview-header {
                flex-wrap: wrap;
                gap: 5px;
            }
            
            .preview-controls {
                flex-shrink: 0;
            }
            
            #fontSize {
                width: 50px;
                height: 35px;
                padding: 6px 3px;
                font-size: 13px;
            }

            .font-settings-row {
                gap: 6px;
            }

            .font-size-group label {
                font-size: 12px;
            }

            .style-checkboxes {
                gap: 8px;
                margin-left: 6px;
            }
            .container {
                padding: 6px;
            }
            
            h1 {
                font-size: 1.3rem;
            }
            
            .preview-content {
                padding: 6px;
                min-height: 40px;
            }
            
            textarea, input[type="text"], input[type="number"], input[type="password"], select {
                padding: 6px;
                font-size: 12px;
            }
            
            /* 超小屏幕互换按钮样式 */
            .swap-colors-btn {
                width: 22px;
                height: 22px;
                font-size: 11px;
            }
            
            .align-btn {
                width: 24px;
                height: 24px;
                min-height: 24px;
                max-height: 24px;
            }
            
            .left-align-btn::before {
                width: 10px;
                top: 7px;
                left: 7px;
            }
            
            .left-align-btn::after {
                width: 6px;
                top: 12px;
                left: 7px;
                box-shadow: 0 3px 0 currentColor;
            }
            
            .center-align-btn::before {
                width: 10px;
                top: 7px;
                left: 7px;
            }
            
            .center-align-btn::after {
                width: 6px;
                top: 12px;
                left: 9px;
                box-shadow: 0 3px 0 currentColor;
            }
            
            button {
                padding: 8px;
                font-size: 12px;
            }
            
            .more-colors-panel {
                top: 100px;
                right: 10px;
            }

            /* 超小屏幕自定义范围保持2列布局 */
            .custom-color-row {
                flex: 0 0 calc(50% - 7.5px) !important;
                min-width: 0 !important;
            }
            
            /* 超小屏幕自定义字体大小输入框 - 4:2 宽高比 */
            .custom-font-size-input {
                width: 60px;
                height: 30px;
                padding: 5px 3px;
                font-size: 12px;
            }

            /* 超小屏幕颜色代码输入框 - 重新设计 */
            .color-code-input {
                width: 60px !important;
                height: 18px !important;
                padding: 1px 3px !important;
                font-size: 10px !important;
            }
            
            .color-code-prefix {
                font-size: 10px !important;
                min-width: 8px !important;
                height: 18px !important;
                line-height: 18px !important;
            }
            
            .color-swatch {
                width: 18px !important;
                height: 18px !important;
                min-width: 18px !important;
                max-width: 18px !important;
                min-height: 18px !important;
                max-height: 18px !important;
            }
            
            .custom-color-swatch {
                width: 18px !important;
                height: 18px !important;
                min-width: 18px !important;
                max-width: 18px !important;
                min-height: 18px !important;
                max-height: 18px !important;
            }
            
            /* 渐变数量按钮响应式调整 - 超小屏幕 */
            .gradient-count-btn {
                padding: 4px 8px;
                font-size: 10px;
                min-width: 40px;
            }
            
            .gradient-count-buttons {
                gap: 4px;
            }
        }

        /* 大屏幕适配 */
        @media (min-width: 1200px) {
            .container {
                max-width: 1000px;
            }
        }
        
        /* 横屏手机适配 */
        @media (max-height: 500px) and (orientation: landscape) {
            body {
                padding: 5px;
            }
    
            .container {
                padding: 10px;
            }
    
            .preview-section {
                margin-bottom: 15px;
            }
    
            .input-group {
                margin-bottom: 15px;
            }
    
            .button-group {
                margin-top: 15px;
            }
    
            .output {
                margin-top: 20px;
            }
    
            .examples {
                margin-top: 20px;
            }
        }

        /* ========== 滑动范围选择器样式 ========== */
        .slider-range-container {
            margin: 15px 0;
            padding: 15px;
            background: #1e2a35;
            border-radius: 8px;
            border: 2px solid #2a3a4a;
        }

        .slider-range-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .slider-range-title {
            font-weight: bold;
            color: #e0e0e0;
            font-size: 14px;
        }

        .slider-range-controls {
            display: flex;
            gap: 8px;
        }

        .slider-range-btn, .style-input-group .slider-range-btn {
            width: 28px !important;
            height: 28px !important;
            border-radius: 4px !important;
            border: none !important;
            background: #3898ff !important;
            color: #fff !important;
            font-size: 14px !important;
            font-weight: bold !important;
            cursor: pointer !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            transition: all 0.3s ease !important;
            padding: 0 !important;
            min-height: 28px !important;
            max-height: 28px !important;
            line-height: 1 !important;
        }

        .slider-range-btn:hover {
            background: #2d87e6;
        }

        .slider-range-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .slider-range-track-container {
            position: relative;
            height: 40px;
            margin: 10px 0;
        }

        .slider-range-track {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 10px;
            background: #2a3a4a;
            border-radius: 10px;
            transform: translateY(-50%);
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        .slider-range-segment {
            position: absolute;
            height: 10px;
            background: linear-gradient(135deg, #3898ff, #2d87e6);
            border-radius: 10px;
            transition: none;
            box-shadow: 0 0 8px rgba(56, 152, 255, 0.4);
        }

        .slider-range-handle {
            position: absolute;
            top: 50%;
            width: 22px;
            height: 22px;
            background: #1e2a35;
            border: 3px solid #3898ff;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            cursor: grab;
            transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
            z-index: 10;
        }
        
        .slider-range-handle.dragging {
            cursor: grabbing;
            transition: none;
        }

        .slider-range-handle:hover {
            transform: translate(-50%, -50%) scale(1.1);
            box-shadow: 0 0 12px rgba(56, 152, 255, 0.6);
            border-color: #5ab0ff;
        }

        .slider-range-handle:active {
            transform: translate(-50%, -50%) scale(1.15);
            box-shadow: 0 4px 16px rgba(56, 152, 255, 0.7);
            border-color: #5ab0ff;
        }

        .slider-range-handle.dragging {
            transform: translate(-50%, -50%) scale(1.2);
            box-shadow: 0 6px 20px rgba(56, 152, 255, 0.8);
            border-color: #5ab0ff;
        }

        @media (max-width: 768px) {
            .slider-range-handle {
                width: 18px;
                height: 18px;
                border-width: 2.5px;
            }

            .slider-range-handle:hover {
                transform: translate(-50%, -50%) scale(1.08);
            }

            .slider-range-handle:active {
                transform: translate(-50%, -50%) scale(1.12);
            }

            .slider-range-handle.dragging {
                transform: translate(-50%, -50%) scale(1.15);
            }
        }

        .slider-range-scale {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            height: 50px;
            display: flex;
            align-items: flex-start;
            padding: 10px 15px 0;
            font-size: 12px;
            color: #7a8a9a;
            box-sizing: border-box;
            overflow: visible;
        }

        .slider-range-scale-item {
            position: absolute;
            width: 1px;
            background: #4a5a6a;
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .slider-range-scale-item.char-boundary {
            height: 8px;
            background: #5a6a7a;
        }

        .slider-range-scale-item.char-boundary.major {
            height: 18px;
            background: #3898ff;
        }

        .slider-range-scale-item.char-boundary.major.with-number::before {
            content: attr(data-value);
            position: absolute;
            top: 24px;
            left: 50%;
            transform: translateX(-50%);
            white-space: nowrap;
            color: #e0e0e0;
            font-size: 12px;
            font-weight: 600;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }

        .slider-range-scale-item.major {
            height: 14px;
            background: #3898ff;
        }

        .slider-range-scale-item.major::before {
            content: attr(data-value);
            position: absolute;
            top: 18px;
            left: 50%;
            transform: translateX(-50%);
            white-space: nowrap;
            color: #e0e0e0;
            font-size: 11px;
            font-weight: 600;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }

        @media (max-width: 768px) {
            .slider-range-scale {
                height: 45px;
                padding: 8px 10px 0;
            }

            .slider-range-scale-item.char-boundary {
                height: 6px;
            }

            .slider-range-scale-item.char-boundary.major {
                height: 16px;
            }

            .slider-range-scale-item.char-boundary.major.with-number::before {
                font-size: 10px;
                top: 20px;
            }

            .slider-range-scale-item.major::before {
                font-size: 10px;
                top: 16px;
            }
        }

        .slider-range-values {
            display: none;
        }

        .slider-range-value-item {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
        }

        .slider-range-value-item:last-child {
            margin-bottom: 0;
        }

        .slider-range-value-label {
            min-width: 60px;
            font-size: 13px;
            color: #666;
            margin-right: 10px;
        }

        .slider-range-value-input {
            flex: 1;
            padding: 6px 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            color: #333;
            transition: border-color 0.3s ease;
        }

        .slider-range-value-input:focus {
            outline: none;
            border-color: #3898ff;
            box-shadow: 0 0 0 3px rgba(56, 152, 255, 0.1);
        }

        .slider-range-value-input::placeholder {
            color: #ccc;
        }

        /* 只在非自定义范围模式下隐藏原始的textarea输入框 */
        .custom-mode-selector:not(.active) + .random-mode-selector + .custom-color-selector + .custom-style-section .style-content .style-input-group .style-range-input,
        .custom-mode-selector:not(.active) + .random-mode-selector + .custom-color-selector + .custom-style-section .style-content .style-input-group .input-hint {
            display: none;
        }
        
        /* 在自定义范围模式下显示原始的textarea输入框，并隐藏滑动范围选择器 */
        .custom-mode-selector.active + .random-mode-selector + .custom-color-selector + .custom-style-section .style-content .style-input-group .style-range-input,
        .custom-mode-selector.active + .random-mode-selector + .custom-color-selector + .custom-style-section .style-content .style-input-group .input-hint {
            display: block;
        }
        
        /* 在自定义范围模式下隐藏滑动范围选择器 */
        .custom-mode-selector.active + .random-mode-selector + .custom-color-selector + .custom-style-section .style-content .style-input-group .slider-range-container {
            display: none;
        }
        
        /* 在非自定义范围模式下显示滑动范围选择器 */
        .custom-mode-selector:not(.active) + .random-mode-selector + .custom-color-selector + .custom-style-section .style-content .style-input-group .slider-range-container {
            display: block;
        }

        /* 滑动范围选择器在样式输入组中的样式 */
        .style-input-group .slider-range-container {
            margin: 10px 0;
            padding: 12px;
            background: #1e2a35;
            border-radius: 8px;
            border: 2px solid #2a3a4a;
        }

        .style-input-group .slider-range-title {
            font-size: 13px;
            color: #e0e0e0;
        }

        .style-input-group .slider-range-track-container {
            height: 40px;
        }

        .style-input-group .slider-range-handle {
            width: 20px;
            height: 20px;
            background: #1e2a35;
            border: 2px solid #3898ff;
        }
        
        /* 预览区域样式扩展 */
        /* 预览区域样式1 */
        .preview-section.style1 {
            background: linear-gradient(to right, #30233F, #482766);
        }
        
        /* 小窗口标题栏样式1 */
        .floating-preview-header.style1 {
            background: linear-gradient(to right, #30233F, #482766);
        }
        
        /* 预览区域样式2 */
        .preview-section.style2 {
            background: linear-gradient(to right, #8C407A, #A64E8F);
        }
        
        /* 小窗口标题栏样式2 */
        .floating-preview-header.style2 {
            background: linear-gradient(to right, #8C407A, #A64E8F);
        }
        
        .preview-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .preview-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        
        /* 对齐按钮图标 - 三线风格 */
        .align-btn {
            position: relative;
            width: 28px;
            height: 28px;
            min-height: 28px;
            max-height: 28px;
            flex: none;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.2);
            color: #ffffff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            padding: 0;
            box-sizing: border-box;
        }
        
        .align-btn:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        /* 左对齐图标：三条线左对齐，中间那条短 */
        .left-align-btn::before {
            content: '';
            position: absolute;
            width: 14px;
            height: 2px;
            background-color: currentColor;
            border-radius: 1px;
            top: 8px;
            left: 7px;
        }
        .left-align-btn::after {
            content: '';
            position: absolute;
            width: 10px;
            height: 2px;
            background-color: currentColor;
            border-radius: 1px;
            top: 13px;
            left: 7px;
            box-shadow: 0 4px 0 currentColor;
        }

        /* 居中对齐图标：三条线居中，中间那条短 */
        .center-align-btn::before {
            content: '';
            position: absolute;
            width: 14px;
            height: 2px;
            background-color: currentColor;
            border-radius: 1px;
            top: 8px;
            left: 7px;
        }
        .center-align-btn::after {
            content: '';
            position: absolute;
            width: 10px;
            height: 2px;
            background-color: currentColor;
            border-radius: 1px;
            top: 13px;
            left: 9px;
            box-shadow: 0 4px 0 currentColor;
        }
        
        .dropdown-container {
            position: relative;
        }
        
        .dropdown-btn {
            width: 100px;
            flex: none;
            padding: 4px 8px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.2);
            color: #ffffff;
            font-size: 12px;
            cursor: pointer;
            box-shadow: none;
            height: 28px;
            min-height: 28px;
            max-height: 28px;
            display: flex;
            align-items: center;
            box-sizing: border-box;
        }
        
        .dropdown-panel {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 4px;
            background: rgba(30, 40, 50, 0.95);
            border: 1px solid rgba(56, 152, 255, 0.3);
            border-radius: 4px;
            display: none;
            z-index: 1000;
            width: 100px;
            min-width: 100px;
            flex-direction: column;
        }
        
        .dropdown-panel.show {
            display: block;
        }
        
        .dropdown-item {
            width: 100px;
            flex: none;
            height: 28px;
            min-height: 28px;
            max-height: 28px;
            padding: 4px 8px;
            border: none;
            background: transparent;
            color: #ffffff;
            font-size: 12px;
            text-align: left;
            cursor: pointer;
            display: flex;
            align-items: center;
            box-sizing: border-box;
        }
        
        /* 响应式设计：小屏幕下按钮等比放大 */
        @media (max-width: 768px) {
            .preview-header {
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .preview-controls {
                flex-shrink: 0;
            }
            
            .align-btn {
                width: 32px;
                height: 32px;
                min-height: 32px;
                max-height: 32px;
            }
            
            .left-align-btn::before {
                width: 14px;
                top: 9px;
                left: 9px;
            }
            
            .left-align-btn::after {
                width: 10px;
                top: 14px;
                left: 9px;
                box-shadow: 0 4px 0 currentColor;
            }
            
            .center-align-btn::before {
                width: 14px;
                top: 9px;
                left: 9px;
            }
            
            .center-align-btn::after {
                width: 10px;
                top: 14px;
                left: 11px;
                box-shadow: 0 4px 0 currentColor;
            }
            
            .dropdown-btn {
                width: 100px;
                flex: none;
                height: 32px;
                min-height: 32px;
                max-height: 32px;
                padding: 4px 8px;
                font-size: 12px;
            }
            
            .preview-title {
                padding: 4px 8px;
                font-size: 12px;
                height: 32px;
                min-height: 32px;
                max-height: 32px;
            }
            
            .dropdown-item {
                width: 100px;
                flex: none;
                height: 32px;
                min-height: 32px;
                max-height: 32px;
                padding: 4px 8px;
                font-size: 12px;
            }
            
            .dropdown-panel {
                width: 100px;
                min-width: 100px;
            }
            
            /* 预览内容区域响应式高度 */
            .preview-content {
                height: 45px;
                padding: 0 12px;
            }
            
            /* 输出标题区域响应式优化 */
            .output-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }
            
            .output-title {
                font-size: 13px;
                width: 100%;
            }
            
            .output-buttons {
                width: 100%;
                justify-content: space-between;
                gap: 10px;
            }
            
            .favorite-btn,
            .copy-btn {
                flex: 1;
                min-width: 85px;
                padding: 11px 18px;
                font-size: 13px;
                min-height: 40px;
            }
        }
        
        @media (max-width: 480px) {
            .preview-header {
                flex-wrap: wrap;
                gap: 6px;
            }
            
            .preview-controls {
                flex-shrink: 0;
            }
            
            .align-btn {
                width: 28px;
                height: 28px;
                min-height: 28px;
                max-height: 28px;
            }
            
            .left-align-btn::before {
                width: 12px;
                top: 8px;
                left: 8px;
            }
            
            .left-align-btn::after {
                width: 8px;
                top: 13px;
                left: 8px;
                box-shadow: 0 3px 0 currentColor;
            }
            
            .center-align-btn::before {
                width: 12px;
                top: 8px;
                left: 8px;
            }
            
            .center-align-btn::after {
                width: 8px;
                top: 13px;
                left: 10px;
                box-shadow: 0 3px 0 currentColor;
            }
            
            .dropdown-btn {
                width: 100px;
                flex: none;
                height: 28px;
                min-height: 28px;
                max-height: 28px;
                padding: 3px 6px;
                font-size: 11px;
            }
            
            .preview-title {
                padding: 3px 6px;
                font-size: 11px;
                height: 28px;
                min-height: 28px;
                max-height: 28px;
            }
            
            .dropdown-item {
                width: 100px;
                flex: none;
                height: 28px;
                min-height: 28px;
                max-height: 28px;
                padding: 3px 6px;
                font-size: 11px;
            }
            
            .dropdown-panel {
                width: 100px;
                min-width: 100px;
            }
            
            /* 预览内容区域响应式高度 */
            .preview-content {
                height: 40px;
                padding: 0 10px;
            }
            
            /* 输出标题区域响应式优化 */
            .output-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            
            .output-title {
                font-size: 12px;
                width: 100%;
            }
            
            .output-buttons {
                width: 100%;
                justify-content: space-between;
                gap: 8px;
            }
            
            .favorite-btn,
            .copy-btn {
                flex: 1;
                min-width: 75px;
                padding: 10px 14px;
                font-size: 12px;
                min-height: 38px;
            }
            
            .toggle-code-btn {
                width: 32px !important;
                height: 32px !important;
                min-width: 32px !important;
                max-width: 32px !important;
                min-height: 32px !important;
                max-height: 32px !important;
                flex: none !important;
            }
            
            #codeCharCount {
                font-size: 12px;
                padding: 2px 4px;
            }
            
            .code-status {
                font-size: 11px;
                padding: 2px 6px;
            }
        }
    
    /* ===== HSV选色器悬浮窗样式 ===== */
    .hsv-picker-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 20000;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(4px);
        overflow: auto;
        touch-action: pan-y pan-x pinch-zoom;
        -webkit-overflow-scrolling: touch;
    }
    
    .hsv-picker-modal.show {
        display: flex;
    }
    
    .hsv-picker-container {
        max-width: 350px;
        width: 63%;
        background: rgba(25, 35, 45, 0.95);
        backdrop-filter: blur(8px);
        border-radius: 20px;
        padding: 16.8px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(56, 152, 255, 0.3);
        animation: hsvPickerSlideIn 0.3s ease;
        margin: auto;
        flex-shrink: 0;
        touch-action: pan-y pan-x pinch-zoom;
    }
    
    @keyframes hsvPickerSlideIn {
        from {
            opacity: 0;
            transform: scale(0.9) translateY(-20px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    
    .hsv-picker-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(56, 152, 255, 0.2);
    }
    
    .hsv-picker-header h3 {
        margin: 0;
        color: #2effa4;
        font-size: 1.4rem;
        text-shadow: 0 0 8px rgba(46, 255, 164, 0.4);
    }
    
    .hsv-picker-container .hsv-picker-close {
        background: transparent;
        border: none;
        color: #e0e0e0;
        width: 32px;
        height: 32px;
        border-radius: 4px;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: none;
        padding: 0;
        min-height: auto;
        box-shadow: none;
        background-image: none;
        transition: background 0.15s ease, color 0.15s ease;
    }
    
    .hsv-picker-container .hsv-picker-close:hover {
        background: #e81123;
        color: white;
    }
    
    .hsv-picker-container .hsv-picker-close:active {
        background: #c50f1e;
    }
    
    .hsv-preview-section {
        margin-bottom: 20px;
    }
    
    .hsv-color-preview-block {
        width: 100%;
        aspect-ratio: 2.2 / 1;
        background: #ff0000;
        border-radius: 14px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.1);
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        transition: background 0.05s ease;
        border: 2px solid rgba(56,152,255,0.3);
        padding: 12px;
    }
    
    .hsv-preview-hex {
        font-size: 1.05rem;
        font-weight: 900;
        letter-spacing: 1.4px;
        text-shadow: none;
        background: transparent;
        backdrop-filter: none;
        padding: 4.2px 12.6px;
        border-radius: 21px;
        font-family: 'Courier New', monospace;
        color: #3898FF;
        box-shadow: none;
    }
    
    .hsv-color-input-wrapper {
        display: flex;
        align-items: center;
        background: transparent;
        border-radius: 16px;
        border: 1px solid #3898FF;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.4);
        margin-top: 14px;
        padding: 8px 12px;
        height: 35px;
        cursor: text;
    }
    
    .hsv-color-code-prefix {
        font-size: 1rem;
        font-weight: 700;
        color: #3898FF;
        font-family: 'Courier New', monospace;
        margin-right: 4px;
        user-select: none;
    }
    
    .hsv-color-code-text {
        flex: 1;
        font-size: 1rem;
        font-weight: 700;
        color: #3898FF;
        font-family: 'Courier New', monospace;
        text-transform: uppercase;
        letter-spacing: 1px;
        outline: none;
    }
    
    .hsv-color-code-input::placeholder {
        color: #4a5568;
        text-transform: none;
    }
    
    .hsv-color-info-panel {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        background: #0f161f;
        padding: 14px 16px;
        border-radius: 16px;
        border: 1px solid #2a3a4a;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.4);
        margin-top: 14px;
    }
    
    .hsv-info-cell {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .hsv-info-label {
        font-size: 0.65rem;
        text-transform: uppercase;
        color: #9aa2b5;
        letter-spacing: 1.5px;
        font-weight: 600;
    }
    
    .hsv-info-value {
        font-size: 0.95rem;
        font-weight: 600;
        color: white;
        font-family: 'Courier New', monospace;
        background: #1a2530;
        padding: 5px 12px;
        border-radius: 25px;
        border: 1px solid #3898ff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }
    
    .hsv-sliders-panel {
        background: #0f161f;
        border-radius: 20px;
        padding: 18px 16px;
        margin-top: 12px;
        border: 1px solid rgba(56,152,255,0.3);
        box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
        touch-action: pan-y pan-x pinch-zoom;
    }
    
    .hsv-slider-item {
        margin-bottom: 18px;
    }
    
    .hsv-slider-item:last-child {
        margin-bottom: 0;
    }
    
    .hsv-slider-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
    }
    
    .hsv-slider-label {
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #b7c0d0;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .hsv-slider-label i {
        color: #2effa4;
        font-style: normal;
    }
    
    .hsv-slider-value-badge {
        background: #1e2a35;
        padding: 5px 14px;
        border-radius: 35px;
        font-size: 0.85rem;
        font-weight: 600;
        color: #2effa4;
        border: 1px solid #3898ff;
        font-family: 'Courier New', monospace;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }
    
    .hsv-sliders-panel input[type=range] {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        height: 10px;
        background: transparent;
        outline: none;
        margin: 6px 0;
        touch-action: pan-x pinch-zoom;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 滑杆容器阻止返回手势 */
    .hsv-sliders-panel input[type=range]::-webkit-slider-runnable-track {
        width: 100%;
        height: 10px;
        border-radius: 20px;
        border: none;
        box-shadow: inset 0 1px 6px rgba(0,0,0,0.8);
        transition: all 0.2s;
    }
    
    .hsv-sliders-panel input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 22px;
        height: 22px;
        background: white;
        border-radius: 50%;
        margin-top: -6px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.7), 0 0 0 2px rgba(46,255,164,0.6);
        border: 1px solid rgba(0,0,0,0.3);
        cursor: pointer;
        transition: 0.08s;
        transform: scale(1);
        touch-action: none;
    }
    
    .hsv-sliders-panel input[type=range]::-webkit-slider-thumb:hover {
        transform: scale(1.15);
        background: #fff6e5;
        box-shadow: 0 6px 12px rgba(0,0,0,0.9), 0 0 0 3px #2effa4;
    }
    
    .hsv-sliders-panel input[type=range]::-moz-range-track {
        width: 100%;
        height: 10px;
        border-radius: 20px;
        border: none;
        box-shadow: inset 0 1px 6px rgba(0,0,0,0.8);
    }
    
    .hsv-sliders-panel input[type=range]::-moz-range-thumb {
        width: 22px;
        height: 22px;
        background: white;
        border: none;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.7), 0 0 0 2px #2effa4;
        cursor: pointer;
        touch-action: none;
    }
    
    #hsvHueSlider::-webkit-slider-runnable-track {
        background: linear-gradient(to right, 
            #ff0000, #ffaa00, #ffff00, #00ff00, #00ffff, #0000ff, #aa00ff, #ff00ff, #ff0000);
    }
    
    #hsvHueSlider::-moz-range-track {
        background: linear-gradient(to right, 
            #ff0000, #ffaa00, #ffff00, #00ff00, #00ffff, #0000ff, #aa00ff, #ff00ff, #ff0000);
    }
    
    #hsvSatSlider::-webkit-slider-runnable-track {
        background: linear-gradient(to right, var(--hsv-sat-start, #5a5a5a), var(--hsv-sat-end, #ff0000));
    }
    
    #hsvSatSlider::-moz-range-track {
        background: linear-gradient(to right, var(--hsv-sat-start, #5a5a5a), var(--hsv-sat-end, #ff0000));
    }
    
    #hsvValSlider::-webkit-slider-runnable-track {
        background: linear-gradient(to right, var(--hsv-val-start, #000000), var(--hsv-val-end, #ff0000));
    }
    
    #hsvValSlider::-moz-range-track {
        background: linear-gradient(to right, var(--hsv-val-start, #000000), var(--hsv-val-end, #ff0000));
    }
    
    .hsv-action-buttons {
        display: flex;
        gap: 12px;
        margin-top: 20px;
    }
    
    .hsv-btn {
        flex: 1;
        padding: 12px 14px;
        border: none;
        border-radius: 10px;
        background: #3898ff;
        color: #ffffff;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.25s;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        letter-spacing: 1px;
    }
    
    .hsv-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
        background: #4aa6ff;
    }
    
    .hsv-btn:active {
        transform: translateY(1px);
        background: #2d87e6;
    }
    
    .hsv-btn-outline {
        background: transparent;
        border: 2px solid #3898ff;
        color: #e0e0e0;
        box-shadow: none;
    }
    
    .hsv-btn-outline:hover {
        background: rgba(56,152,255,0.2);
        border-color: #2effa4;
        color: white;
    }
    
    /* HSV选色器响应式 */
    @media (max-width: 768px) {
        .hsv-picker-container {
            padding: 14px;
            width: 64.4%;
            max-width: 315px;
        }
        
        .hsv-picker-header h3 {
            font-size: 0.91rem;
        }
        
        .hsv-color-preview-block {
            aspect-ratio: 2.5 / 1;
            padding: 7px;
        }
        
        .hsv-preview-hex {
            font-size: 0.9555rem;
            padding: 3.675px 10.29px;
            box-shadow: none;
        }
        
        .hsv-color-input-wrapper {
            padding: 5.6px 8.4px;
            height: 31.85px;
            margin-top: 9.8px;
            background: transparent;
            border: 1px solid #3898FF;
        }
        
        .hsv-color-code-prefix {
            font-size: 0.7rem;
            color: #3898FF;
        }
        
        .hsv-color-code-text {
            font-size: 0.7rem;
            color: #3898FF;
        }
        
        .hsv-slider-label {
            font-size: 0.595rem;
        }
        
        .hsv-slider-value-badge {
            padding: 2.8px 8.4px;
            font-size: 0.595rem;
        }
        
        .hsv-btn {
            padding: 7.7px 9.1px;
            font-size: 9.1px;
        }
    }
    
    @media (max-width: 600px) {
        .hsv-picker-container {
            padding: 12.6px;
            width: 65.8%;
            max-width: 280px;
        }
        
        .hsv-picker-header h3 {
            font-size: 0.84rem;
        }
        
        .hsv-color-preview-block {
            aspect-ratio: 2.8 / 1;
            padding: 5.6px;
        }
        
        .hsv-preview-hex {
            font-size: 0.882rem;
            padding: 2.94px 8.82px;
            box-shadow: none;
        }
        
        .hsv-color-input-wrapper {
            padding: 4.9px 7px;
            height: 27.3px;
            margin-top: 8.4px;
            background: transparent;
            border: 1px solid #3898FF;
        }
        
        .hsv-color-code-prefix {
            font-size: 0.6rem;
            color: #3898FF;
        }
        
        .hsv-color-code-text {
            font-size: 0.6rem;
            color: #3898FF;
        }
        
        .hsv-slider-label {
            font-size: 0.56rem;
        }
        
        .hsv-slider-value-badge {
            padding: 2.8px 8.4px;
            font-size: 0.56rem;
        }
        
        .hsv-btn {
            padding: 7px 8.4px;
            font-size: 9.1px;
        }
    }
    
    @media (max-width: 480px) {
        .hsv-picker-container {
            padding: 9.8px;
            width: 67.2%;
            max-width: 245px;
        }
        
        .hsv-picker-header {
            margin-bottom: 10.5px;
            padding-bottom: 7px;
        }
        
        .hsv-picker-header h3 {
            font-size: 0.77rem;
        }
        
        .hsv-picker-container .hsv-picker-close {
            width: 19.6px;
            height: 19.6px;
            font-size: 9.8px;
        }
        
        .hsv-color-preview-block {
            aspect-ratio: 3 / 1;
            padding: 4.2px;
            border-radius: 7px;
        }
        
        .hsv-preview-hex {
            font-size: 0.735rem;
            padding: 2.205px 7.35px;
            box-shadow: none;
        }
        
        .hsv-color-input-wrapper {
            padding: 4.2px 5.6px;
            height: 22.75px;
            margin-top: 7px;
            background: transparent;
            border: 1px solid #3898FF;
        }
        
        .hsv-color-code-prefix {
            font-size: 0.5rem;
            color: #3898FF;
        }
        
        .hsv-color-code-text {
            font-size: 0.5rem;
            color: #3898FF;
        }
        
        .hsv-sliders-panel {
            padding: 9.8px 8.4px;
            border-radius: 11.2px;
        }
        
        .hsv-slider-item {
            margin-bottom: 9.8px;
        }
        
        .hsv-slider-header {
            margin-bottom: 2.8px;
        }
        
        .hsv-slider-label {
            font-size: 0.525rem;
        }
        
        .hsv-slider-value-badge {
            padding: 2.1px 7px;
            font-size: 0.525rem;
            border-radius: 21px;
        }
        
        .hsv-sliders-panel input[type=range] {
            height: 8px;
        }
        
        .hsv-sliders-panel input[type=range]::-webkit-slider-thumb {
            width: 22px;
            height: 22px;
            margin-top: -7px;
        }
        
        .hsv-sliders-panel input[type=range]::-moz-range-thumb {
            width: 22px;
            height: 22px;
        }
        
        .hsv-action-buttons {
            gap: 7px;
            margin-top: 11.2px;
        }
        
        .hsv-btn {
            padding: 6.3px 7.7px;
            font-size: 8.4px;
            border-radius: 5.6px;
        }
    }
    
    @media (max-width: 360px) {
        .hsv-picker-container {
            padding: 8.4px;
            width: 68.6%;
            max-width: 224px;
        }
        
        .hsv-picker-header h3 {
            font-size: 0.7rem;
        }
        
        .hsv-color-preview-block {
            aspect-ratio: 3.2 / 1;
            padding: 3.5px;
        }
        
        .hsv-preview-hex {
            font-size: 0.6615rem;
            padding: 1.47px 5.88px;
            box-shadow: none;
        }
        
        .hsv-color-input-wrapper {
            padding: 3.5px 4.2px;
            height: 18.2px;
            margin-top: 5.6px;
            background: transparent;
            border: 1px solid #3898FF;
        }
        
        .hsv-color-code-prefix {
            font-size: 0.4rem;
            color: #3898FF;
        }
        
        .hsv-color-code-text {
            font-size: 0.4rem;
            color: #3898FF;
        }
        
        .hsv-slider-label {
            font-size: 0.49rem;
        }
        
        .hsv-slider-value-badge {
            font-size: 0.49rem;
            padding: 1.4px 5.6px;
        }
        
        .hsv-btn {
            padding: 5.6px 7px;
            font-size: 7.7px;
        }
    }

    /* ========== 游戏预览页面样式 ========== */
    .game-preview-page {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        z-index: 10000;
        display: none;
        flex-direction: column;
        overflow-y: auto;
        scrollbar-gutter: stable;
    }
    
    .game-preview-page.active {
        display: flex;
    }
    
    .game-preview-header {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 20px;
        background: rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid rgba(56, 152, 255, 0.3);
        flex-shrink: 0;
        position: relative;
    }
    
    .game-preview-back-btn {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        min-width: 36px;
        max-width: 36px;
        min-height: 36px;
        max-height: 36px;
        padding: 0;
        background: #3898ff;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
        transition: background 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .game-preview-back-btn:hover {
        background: #5ab0ff;
        transform: translateY(-50%);
    }
    
    .game-preview-title {
        color: #fff;
        font-size: 18px;
        font-weight: bold;
        margin: 0;
    }
    
    /* 装扮列表容器 */
    .game-preview-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: center;
        padding: 3px 0;
        width: 100%;
    }
    
    /* 单个装扮项 */
    .game-preview-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        /* margin-bottom 由 JS 动态设置，根据缩放比例变化 */
    }
    
    /* 装扮标签 */
    .game-theme-label {
        color: #e0e0e0;
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 5px;
        padding: 4px 12px;
        background: rgba(56, 152, 255, 0.2);
        border-radius: 4px;
        border: 1px solid rgba(56, 152, 255, 0.3);
        flex-shrink: 0;
    }
    
    .game-preview-container {
        flex: 1;
        padding: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-gutter: stable;
    }
    
    /* 固定尺寸布局 - 以800px宽度为设计标准 */
    .game-reference-layout {
        width: 800px;
        flex-shrink: 0;
        transform-origin: top center;
        /* 初始缩放为1（不缩放） */
        transform: scale(1);
    }
    
    .game-reference-background {
        position: relative;
        display: block;
        padding: 0;
        margin: 0;
        border: none;
        background: none;
        box-shadow: none;
    }
    
    .game-content-group {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    /* 游戏背景图 */
    .game-background-image {
        position: relative;
        width: 100%;
        height: auto;
        display: block;
        border-radius: 0;
        box-shadow: none;
        z-index: 1;
    }
    
    /* 头像部分 - 使用百分比定位保持比例一致 */
    .game-avatar-section {
        position: absolute;
        left: 11.5%;
        top: 26.5%;
        width: 20%;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
        z-index: 2;
    }
    
    .game-reference-avatar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border: 2px solid #ffffff;
        border-radius: 0;
        cursor: pointer;
    }
    
    .avatar-frame {
        position: absolute;
        top: -26.5%;
        left: -26.5%;
        width: 153%;
        height: 153%;
        object-fit: contain;
        pointer-events: none;
        z-index: 1;
    }

    .game-avatar-container {
        position: relative;
        width: 100%;
        height: 100%;
    }
    
    /* 黄金色动态渐变动画 - 往右上角无缝流动 */
    @keyframes goldenShimmer {
        0% {
            background-position: 0 0;
        }
        100% {
            background-position: 141.4px 0;
        }
    }
    
    /* 信息部分 - 使用百分比定位 */
    .game-name-row {
        position: absolute;
        left: 34%;
        top: 32%;
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 2;
    }
    
    .game-name {
        /* 大屏幕标准字体大小 */
        font-size: 28px;
        font-weight: bold;
        width: fit-content;
        display: inline-block;
        /* 默认黄金色渐变效果 - 完整循环 */
        background: linear-gradient(
            -45deg,
            #FFD700 0%,
            #FFEC8B 12%,
            #FFD700 24%,
            #FFB90F 36%,
            #FFA500 48%,
            #FFB90F 60%,
            #FFD700 72%,
            #FFEC8B 84%,
            #FFD700 100%
        );
        background-size: 100px 100px;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: goldenShimmer 5s linear infinite;
    }
    
    .game-name-pen {
        /* 大屏幕标准图标大小 */
        width: 22px;
        height: auto;
        z-index: 2;
    }
    
    /* 辐射彩动态渐变动画 */
    @keyframes starpurpleShimmer {
        0% { background-position: 0 0; }
        100% { background-position: 113.14px 0; }
    }
    
    /* 昵称特效 - 黄金色渐变 - 完整循环 */
    .game-name.effect-golden {
        background: linear-gradient(
            -45deg,
            #FFD700 0%,
            #FFEC8B 12%,
            #FFD700 24%,
            #FFB90F 36%,
            #FFA500 48%,
            #FFB90F 60%,
            #FFD700 72%,
            #FFEC8B 84%,
            #FFD700 100%
        );
        background-size: 100px 100px;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: goldenShimmer 5s linear infinite;
    }
    
    /* 昵称特效 - 辐射彩渐变（浅粉/蓝兰粉/紫渐变循环流动）- 完整循环 */
    .game-name.effect-starpurple {
        position: relative;
        background: linear-gradient(
            -45deg,
            #FFD1DC 0%,
            #F8B4D9 14%,
            #B4A7FF 28%,
            #A78BFA 42%,
            #C4B5FD 56%,
            #FFD1DC 70%,
            #F8B4D9 84%,
            #FFD1DC 100%
        );
        background-size: 80px 80px;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: starpurpleShimmer 5s linear infinite;
        /* 文本发光效果 */
        filter: drop-shadow(0 0 8px rgba(180, 167, 255, 0.8))
                drop-shadow(0 0 15px rgba(167, 139, 250, 0.6))
                drop-shadow(0 0 25px rgba(196, 181, 253, 0.4));
    }
    
    /* ========== 昵称特效选择器样式 ========== */
    .effect-picker-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 10px 0;
    }
    
    .effect-option {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 12px 8px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid transparent;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .effect-option:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }
    
    .effect-option.active {
        border-color: #FFD700;
        background: rgba(255, 215, 0, 0.1);
    }
    
    .effect-preview {
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        margin-bottom: 8px;
        overflow: hidden;
        position: relative;
    }
    
    .effect-preview-text {
        font-size: 22px;
        font-weight: bold;
    }
    
    /* 黄金色特效预览 */
    .golden-effect {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .golden-effect .effect-preview-text {
        background: linear-gradient(
            -45deg,
            #FFD700 0%,
            #FFEC8B 12%,
            #FFD700 24%,
            #FFB90F 36%,
            #FFA500 48%,
            #FFB90F 60%,
            #FFD700 72%,
            #FFEC8B 84%,
            #FFD700 100%
        );
        background-size: 100px 100px;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: goldenShimmer 5s linear infinite;
    }
    
    /* 辐射彩特效预览 - 深色背景+发光 */
    .starpurple-effect {
        background: linear-gradient(135deg, #0d0015 0%, #1a0a2e 50%, #0d0015 100%);
        position: relative;
        overflow: hidden;
    }
    
    .starpurple-effect .effect-preview-text {
        background: linear-gradient(
            -45deg,
            #FFD1DC 0%,
            #F8B4D9 14%,
            #B4A7FF 28%,
            #A78BFA 42%,
            #C4B5FD 56%,
            #FFD1DC 70%,
            #F8B4D9 84%,
            #FFD1DC 100%
        );
        background-size: 80px 80px;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: starpurpleShimmer 5s linear infinite;
        position: relative;
        z-index: 1;
        /* 文本发光效果 */
        filter: drop-shadow(0 0 6px rgba(180, 167, 255, 0.8))
                drop-shadow(0 0 12px rgba(167, 139, 250, 0.6))
                drop-shadow(0 0 20px rgba(196, 181, 253, 0.4));
    }
    
    .effect-name {
        font-size: 14px;
        color: #ccc;
        text-align: center;
    }
    
    .effect-option.active .effect-name {
        color: #FFD700;
    }
    
    /* ========== 玄幻主题特效 - 樱花粉系列 ========== */
    /* 玄幻动画 - 云雾流动 */
    @keyframes xuanhuanShimmer {
        0% { background-position: 0 0; }
        100% { background-position: 113.14px 0; }
    }
    
    @keyframes xuanhuanMist {
        0%, 100% { 
            opacity: 0.5;
            transform: translateX(-10px) scale(1);
        }
        50% { 
            opacity: 0.8;
            transform: translateX(10px) scale(1.1);
        }
    }
    
    .game-name.effect-xuanhuan {
        position: relative;
        background: linear-gradient(
            -45deg,
            #FFB7C5 0%,
            #FFC0CB 14%,
            #FFD1DC 28%,
            #FFA5B4 42%,
            #FF8FAB 56%,
            #FFB7C5 70%,
            #FFC0CB 84%,
            #FFB7C5 100%
        );
        background-size: 80px 80px;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: xuanhuanShimmer 5s linear infinite;
        filter: drop-shadow(0 0 10px rgba(255, 183, 197, 0.8))
                drop-shadow(0 0 18px rgba(255, 165, 180, 0.6))
                drop-shadow(0 0 28px rgba(255, 143, 171, 0.4));
    }
    
    /* 玄幻云雾效果 */
    .game-name.effect-xuanhuan::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -20px;
        right: -20px;
        bottom: -10px;
        background: 
            radial-gradient(ellipse 60% 40% at 30% 50%, rgba(255, 183, 197, 0.15), transparent),
            radial-gradient(ellipse 50% 30% at 70% 40%, rgba(255, 165, 180, 0.12), transparent);
        animation: xuanhuanMist 6s ease-in-out infinite;
        pointer-events: none;
        z-index: -1;
        border-radius: 8px;
    }
    
    /* 玄幻特效预览 */
    .xuanhuan-effect {
        background: linear-gradient(135deg, #1a0a0f 0%, #2a0a15 50%, #1a0a0f 100%);
        position: relative;
        overflow: hidden;
    }
    
    .xuanhuan-effect::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: 
            radial-gradient(ellipse 60% 40% at 30% 50%, rgba(255, 183, 197, 0.2), transparent),
            radial-gradient(ellipse 50% 30% at 70% 40%, rgba(255, 165, 180, 0.15), transparent);
        animation: xuanhuanMist 6s ease-in-out infinite;
        pointer-events: none;
    }
    
    .xuanhuan-effect .effect-preview-text {
        background: linear-gradient(
            -45deg,
            #FFB7C5 0%,
            #FFC0CB 14%,
            #FFD1DC 28%,
            #FFA5B4 42%,
            #FF8FAB 56%,
            #FFB7C5 70%,
            #FFC0CB 84%,
            #FFB7C5 100%
        );
        background-size: 80px 80px;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: xuanhuanShimmer 5s linear infinite;
        filter: drop-shadow(0 0 8px rgba(255, 183, 197, 0.8))
                drop-shadow(0 0 15px rgba(255, 165, 180, 0.6));
        position: relative;
        z-index: 1;
    }
    
    /* ========== 科幻主题特效 ========== */
    /* 科幻动画 */
    @keyframes kehuanShimmer {
        0% { background-position: 0 0; }
        100% { background-position: 113.14px 0; }
    }
    
    @keyframes kehuanPulse {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 1; }
    }
    
    /* 科幻故障动画 - 方块碎片式故障，每3秒一次，持续0.5秒 */
    @keyframes kehuanGlitch {
        0%, 100% { transform: translate(0); }
    }
    
    /* 红色碎片层故障 */
    @keyframes glitchRed {
        0%, 100% {
            clip-path: none;
            transform: translate(0);
            opacity: 0;
        }
        0.5% {
            clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%);
            transform: translate(-4px, 0);
            opacity: 1;
        }
        2% {
            clip-path: polygon(0 15%, 100% 15%, 100% 35%, 0 35%);
            transform: translate(3px, 0);
            opacity: 1;
        }
        4% {
            clip-path: polygon(0 40%, 100% 40%, 100% 55%, 0 55%);
            transform: translate(-2px, 0);
            opacity: 1;
        }
        6% {
            clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
            transform: translate(5px, 0);
            opacity: 1;
        }
        8% {
            clip-path: polygon(0 25%, 100% 25%, 100% 45%, 0 45%);
            transform: translate(-3px, 0);
            opacity: 1;
        }
        10% {
            clip-path: polygon(0 70%, 100% 70%, 100% 90%, 0 90%);
            transform: translate(4px, 0);
            opacity: 1;
        }
        12% {
            clip-path: polygon(0 5%, 100% 5%, 100% 25%, 0 25%);
            transform: translate(-5px, 0);
            opacity: 1;
        }
        14% {
            clip-path: polygon(0 50%, 100% 50%, 100% 70%, 0 70%);
            transform: translate(2px, 0);
            opacity: 1;
        }
        16.67% {
            clip-path: none;
            transform: translate(0);
            opacity: 0;
        }
    }
    
    /* 蓝色碎片层故障 */
    @keyframes glitchBlue {
        0%, 100% {
            clip-path: none;
            transform: translate(0);
            opacity: 0;
        }
        0.5% {
            clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%);
            transform: translate(4px, 0);
            opacity: 1;
        }
        2% {
            clip-path: polygon(0 35%, 100% 35%, 100% 50%, 0 50%);
            transform: translate(-3px, 0);
            opacity: 1;
        }
        4% {
            clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%);
            transform: translate(5px, 0);
            opacity: 1;
        }
        6% {
            clip-path: polygon(0 80%, 100% 80%, 100% 100%, 0 100%);
            transform: translate(-4px, 0);
            opacity: 1;
        }
        8% {
            clip-path: polygon(0 0, 100% 0, 100% 15%, 0 15%);
            transform: translate(3px, 0);
            opacity: 1;
        }
        10% {
            clip-path: polygon(0 45%, 100% 45%, 100% 65%, 0 65%);
            transform: translate(-5px, 0);
            opacity: 1;
        }
        12% {
            clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
            transform: translate(2px, 0);
            opacity: 1;
        }
        14% {
            clip-path: polygon(0 75%, 100% 75%, 100% 95%, 0 95%);
            transform: translate(-3px, 0);
            opacity: 1;
        }
        16.67% {
            clip-path: none;
            transform: translate(0);
            opacity: 0;
        }
    }
    
    /* 闪烁效果 */
    @keyframes glitchFlicker {
        0%, 100% { opacity: 1; }
        2% { opacity: 0.8; }
        4% { opacity: 1; }
        6% { opacity: 0.85; }
        8% { opacity: 1; }
        10% { opacity: 0.9; }
        12% { opacity: 1; }
        14% { opacity: 0.75; }
        16.67% { opacity: 1; }
    }
    
    .game-name.effect-kehuan {
        position: relative;
        background: linear-gradient(
            -45deg,
            #00FFFF 0%,
            #00D4FF 14%,
            #0099FF 28%,
            #6366F1 42%,
            #8B5CF6 56%,
            #00FFFF 70%,
            #00D4FF 84%,
            #00FFFF 100%
        );
        background-size: 80px 80px;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: 
            kehuanShimmer 5s linear infinite,
            glitchFlicker 3s linear infinite;
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.8))
                drop-shadow(0 0 20px rgba(99, 102, 241, 0.6))
                drop-shadow(0 0 30px rgba(139, 92, 246, 0.4));
    }
    
    /* 红色碎片层 */
    .game-name.effect-kehuan::before {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        color: #ff0040;
        -webkit-text-fill-color: #ff0040;
        opacity: 0;
        animation: glitchRed 3s linear infinite;
        pointer-events: none;
        text-shadow: 0 0 8px rgba(255, 0, 64, 0.8);
        /* 继承主元素字体样式 */
        font-size: inherit;
        font-weight: inherit;
        font-family: inherit;
        letter-spacing: inherit;
    }
    
    /* 蓝色碎片层 */
    .game-name.effect-kehuan::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        color: #00d4ff;
        -webkit-text-fill-color: #00d4ff;
        opacity: 0;
        animation: glitchBlue 3s linear infinite;
        pointer-events: none;
        text-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
        /* 继承主元素字体样式 */
        font-size: inherit;
        font-weight: inherit;
        font-family: inherit;
        letter-spacing: inherit;
    }
    
    /* 科幻特效预览 */
    .kehuan-effect {
        background: linear-gradient(135deg, #0a0a1a 0%, #0f0f2a 50%, #0a0a1a 100%);
        position: relative;
        overflow: hidden;
    }
    
    .kehuan-effect .effect-preview-text {
        background: linear-gradient(
            -45deg,
            #00FFFF 0%,
            #00D4FF 14%,
            #0099FF 28%,
            #6366F1 42%,
            #8B5CF6 56%,
            #00FFFF 70%,
            #00D4FF 84%,
            #00FFFF 100%
        );
        background-size: 80px 80px;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: 
            kehuanShimmer 5s linear infinite,
            glitchFlicker 3s linear infinite;
        filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.8))
                drop-shadow(0 0 15px rgba(99, 102, 241, 0.5));
        position: relative;
        z-index: 1;
    }
    
    /* 预览卡片红色碎片层 */
    .kehuan-effect .effect-preview-text::before {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        color: #ff0040;
        -webkit-text-fill-color: #ff0040;
        opacity: 0;
        animation: glitchRed 3s linear infinite;
        pointer-events: none;
        text-shadow: 0 0 8px rgba(255, 0, 64, 0.8);
        font-size: inherit;
        font-weight: inherit;
        font-family: inherit;
        z-index: 2;
    }
    
    /* 预览卡片蓝色碎片层 */
    .kehuan-effect .effect-preview-text::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        color: #00d4ff;
        -webkit-text-fill-color: #00d4ff;
        opacity: 0;
        animation: glitchBlue 3s linear infinite;
        pointer-events: none;
        text-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
        font-size: inherit;
        font-weight: inherit;
        font-family: inherit;
        z-index: 2;
    }
    
    /* ========== 恐怖主题特效 ========== */
    /* 恐怖动画 */
    @keyframes kongbuShimmer {
        0% { background-position: 0 0; }
        100% { background-position: 113.14px 0; }
    }
    
    @keyframes kongbuFlicker {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
        75% { opacity: 0.9; }
    }
    
    /* 恐怖灯泡坏掉闪烁效果 - 每6秒周期，最后1.5秒闪烁，频率从快到慢 */
    @keyframes kongbuBulbFlicker {
        0%, 75% { opacity: 1; }
        /* 快速闪烁阶段 4.5s-4.8s (0.3秒内5次) */
        76% { opacity: 0.1; }
        76.7% { opacity: 0.9; }
        77.4% { opacity: 0.15; }
        78.1% { opacity: 0.85; }
        78.8% { opacity: 0.2; }
        /* 中速闪烁阶段 4.8s-5.4s (0.6秒内4次) */
        80% { opacity: 0.9; }
        82% { opacity: 0.1; }
        84% { opacity: 0.8; }
        /* 慢速闪烁阶段 5.4s-6s (0.6秒内2次) */
        88% { opacity: 0.15; }
        94% { opacity: 0.7; }
        100% { opacity: 1; }
    }
    
    /* 恐怖粒子呼吸灯效果 - 固定位置，明暗呼吸 */
    @keyframes kongbuParticleBreathe1 {
        0%, 100% { 
            opacity: 0.2; 
            box-shadow: 
                0 0 3px 1px rgba(255, 0, 0, 0.3),
                0 0 6px 2px rgba(255, 0, 0, 0.2);
        }
        50% { 
            opacity: 0.6; 
            box-shadow: 
                0 0 4px 2px rgba(255, 0, 0, 0.5),
                0 0 8px 4px rgba(255, 0, 0, 0.3),
                0 0 12px 6px rgba(255, 50, 50, 0.2);
        }
    }
    
    @keyframes kongbuParticleBreathe2 {
        0%, 100% { 
            opacity: 0.15; 
            box-shadow: 
                0 0 2px 1px rgba(139, 0, 0, 0.3),
                0 0 4px 2px rgba(139, 0, 0, 0.2);
        }
        50% { 
            opacity: 0.5; 
            box-shadow: 
                0 0 4px 2px rgba(139, 0, 0, 0.5),
                0 0 8px 4px rgba(139, 0, 0, 0.3),
                0 0 12px 6px rgba(139, 50, 50, 0.15);
        }
    }
    
    .game-name.effect-kongbu {
        position: relative;
        background: linear-gradient(
            -45deg,
            #FF0000 0%,
            #8B0000 14%,
            #4A0E4E 28%,
            #8B0000 42%,
            #FF0000 56%,
            #8B0000 70%,
            #4A0E4E 84%,
            #FF0000 100%
        );
        background-size: 80px 80px;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: kongbuShimmer 5s linear infinite, kongbuBulbFlicker 6s ease-in-out infinite;
        filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.7))
                drop-shadow(0 0 15px rgba(139, 0, 0, 0.5))
                drop-shadow(0 0 25px rgba(74, 14, 78, 0.4));
    }
    
    /* 恐怖粒子效果 - 呼吸灯闪烁，位于文字周围 */
    .game-name.effect-kongbu::before,
    .game-name.effect-kongbu::after {
        content: '';
        position: absolute;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        pointer-events: none;
        z-index: -1;
    }
    
    .game-name.effect-kongbu::before {
        top: -8px;
        left: 5%;
        background: #FF0000;
        animation: kongbuParticleBreathe1 1.8s ease-in-out infinite;
    }
    
    .game-name.effect-kongbu::after {
        bottom: -8px;
        right: 10%;
        background: #8B0000;
        animation: kongbuParticleBreathe2 2.3s ease-in-out infinite 0.5s;
    }
    
    /* 恐怖特效预览 */
    .kongbu-effect {
        background: linear-gradient(135deg, #0a0000 0%, #1a0a0a 50%, #0a0000 100%);
        position: relative;
        overflow: hidden;
    }
    
    .kongbu-effect::before,
    .kongbu-effect::after {
        content: '';
        position: absolute;
        width: 3px;
        height: 3px;
        border-radius: 50%;
        pointer-events: none;
        z-index: -1;
    }
    
    .kongbu-effect::before {
        top: 5px;
        left: 10%;
        background: #FF0000;
        animation: kongbuParticleBreathe1 1.8s ease-in-out infinite;
    }
    
    .kongbu-effect::after {
        bottom: 5px;
        right: 15%;
        background: #8B0000;
        animation: kongbuParticleBreathe2 2.3s ease-in-out infinite 0.5s;
    }
    
    .kongbu-effect .effect-preview-text {
        background: linear-gradient(
            -45deg,
            #FF0000 0%,
            #8B0000 14%,
            #4A0E4E 28%,
            #8B0000 42%,
            #FF0000 56%,
            #8B0000 70%,
            #4A0E4E 84%,
            #FF0000 100%
        );
        background-size: 80px 80px;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: kongbuShimmer 5s linear infinite, kongbuBulbFlicker 6s ease-in-out infinite;
        filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.8))
                drop-shadow(0 0 12px rgba(139, 0, 0, 0.5));
        position: relative;
        z-index: 1;
    }
    
    /* ========== 水墨风主题特效 ========== */
    /* 水墨风动画 */
    @keyframes gufengShimmer {
        0% { background-position: 0 0; }
        100% { background-position: 300px 0; }
    }
    
    /* 水墨晕染动画 - 中心持续晕染，只覆盖名字行 */
    @keyframes inkSpreadCenter {
        0% {
            transform: translate(-50%, -50%) scale(0.6);
            opacity: 0.7;
        }
        50% {
            transform: translate(-50%, -50%) scale(1.3);
            opacity: 0.35;
        }
        100% {
            transform: translate(-50%, -50%) scale(0.6);
            opacity: 0.7;
        }
    }
    
    @keyframes inkSpreadCenter2 {
        0% {
            transform: translate(-50%, -50%) scale(0.7);
            opacity: 0.6;
        }
        50% {
            transform: translate(-50%, -50%) scale(1.2);
            opacity: 0.3;
        }
        100% {
            transform: translate(-50%, -50%) scale(0.7);
            opacity: 0.6;
        }
    }
    
    @keyframes inkPulse {
        0%, 100% {
            opacity: 0.4;
            filter: blur(3px);
        }
        50% {
            opacity: 0.7;
            filter: blur(5px);
        }
    }
    
    @keyframes inkDrop1 {
        0% { 
            transform: scale(0.3);
            opacity: 0;
            filter: blur(0px);
        }
        10% {
            opacity: 0.6;
        }
        50% { 
            transform: scale(1.5);
            opacity: 0.4;
            filter: blur(8px);
        }
        100% { 
            transform: scale(2.5);
            opacity: 0;
            filter: blur(15px);
        }
    }
    
    @keyframes inkDrop2 {
        0% { 
            transform: scale(0.2);
            opacity: 0;
            filter: blur(0px);
        }
        15% {
            opacity: 0.5;
        }
        60% { 
            transform: scale(1.8);
            opacity: 0.35;
            filter: blur(10px);
        }
        100% { 
            transform: scale(3);
            opacity: 0;
            filter: blur(18px);
        }
    }
    
    @keyframes inkDrop3 {
        0% { 
            transform: scale(0.4);
            opacity: 0;
            filter: blur(0px);
        }
        20% {
            opacity: 0.45;
        }
        55% { 
            transform: scale(1.6);
            opacity: 0.3;
            filter: blur(6px);
        }
        100% { 
            transform: scale(2.2);
            opacity: 0;
            filter: blur(12px);
        }
    }
    
    /* 水墨流动动画 */
    @keyframes inkFlow {
        0% { 
            transform: translateY(0) scale(1);
            opacity: 0.5;
            filter: blur(1px);
        }
        50% { 
            transform: translateY(-4px) scale(1.15);
            opacity: 0.8;
            filter: blur(2px);
        }
        100% { 
            transform: translateY(0) scale(1);
            opacity: 0.5;
            filter: blur(1px);
        }
    }
    
    .game-name.effect-gufeng {
        position: relative;
        background: linear-gradient(
            90deg,
            #3a3a3a 0%,
            #6a6a6a 10%,
            #9a9a9a 20%,
            #d0d0d0 35%,
            #ffffff 50%,
            #ffffff 60%,
            #d0d0d0 65%,
            #9a9a9a 80%,
            #6a6a6a 90%,
            #3a3a3a 100%
        );
        background-size: 300px 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: gufengShimmer 3s linear infinite;
        filter: drop-shadow(0 0 6px rgba(200, 200, 200, 0.8))
                drop-shadow(0 0 12px rgba(180, 180, 180, 0.6));
    }
    
    /* 水墨晕染效果 - 只覆盖名字行，椭圆形 */
    .game-name.effect-gufeng::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 120px;
        height: 35px;
        background: radial-gradient(
            ellipse,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(200, 200, 200, 0.35) 20%,
            rgba(150, 150, 150, 0.2) 40%,
            rgba(100, 100, 100, 0.1) 60%,
            transparent 80%
        );
        border-radius: 50%;
        animation: inkSpreadCenter 3.5s ease-in-out infinite;
        pointer-events: none;
        z-index: -1;
        filter: blur(2px);
    }
    
    .game-name.effect-gufeng::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100px;
        height: 28px;
        background: radial-gradient(
            ellipse,
            rgba(20, 20, 20, 0.6) 0%,
            rgba(50, 50, 50, 0.4) 25%,
            rgba(80, 80, 80, 0.2) 45%,
            rgba(110, 110, 110, 0.1) 65%,
            transparent 85%
        );
        border-radius: 50%;
        animation: inkSpreadCenter2 2.8s ease-in-out infinite 0.4s;
        pointer-events: none;
        z-index: -1;
        filter: blur(3px);
    }
    
    /* 水墨风特效预览 */
    .gufeng-effect {
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
        position: relative;
        overflow: hidden;
    }
    
    /* 白色墨晕 - 只覆盖名字行 */
    .gufeng-effect::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 80px;
        height: 22px;
        background: radial-gradient(
            ellipse,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(200, 200, 200, 0.38) 25%,
            rgba(150, 150, 150, 0.22) 45%,
            rgba(100, 100, 100, 0.1) 65%,
            transparent 85%
        );
        border-radius: 50%;
        animation: inkSpreadCenter 3.5s ease-in-out infinite;
        pointer-events: none;
        filter: blur(2px);
        z-index: 0;
    }
    
    /* 黑色墨晕 - 只覆盖名字行 */
    .gufeng-effect::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 65px;
        height: 18px;
        background: radial-gradient(
            ellipse,
            rgba(20, 20, 20, 0.6) 0%,
            rgba(50, 50, 50, 0.4) 25%,
            rgba(80, 80, 80, 0.22) 45%,
            rgba(110, 110, 110, 0.1) 65%,
            transparent 85%
        );
        border-radius: 50%;
        animation: inkSpreadCenter2 2.8s ease-in-out infinite 0.4s;
        pointer-events: none;
        filter: blur(3px);
        z-index: 0;
    }
    
    .gufeng-effect .effect-preview-text {
        background: linear-gradient(
            90deg,
            #3a3a3a 0%,
            #6a6a6a 10%,
            #9a9a9a 20%,
            #d0d0d0 35%,
            #ffffff 50%,
            #ffffff 60%,
            #d0d0d0 65%,
            #9a9a9a 80%,
            #6a6a6a 90%,
            #3a3a3a 100%
        );
        background-size: 300px 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: gufengShimmer 3s linear infinite;
        filter: drop-shadow(0 0 6px rgba(200, 200, 200, 0.8))
                drop-shadow(0 0 12px rgba(180, 180, 180, 0.6));
        position: relative;
        z-index: 1;
    }
    
    .game-province-container {
        position: absolute;
        left: 34%;
        top: 47%;
        width: 14%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2;
    }
    
    .game-province {
        /* 大屏幕标准字体大小 */
        font-size: 16px;
        font-weight: bold;
        color: #9CA8BF;
        background: none;
        padding: 0;
        border-radius: 0;
        display: block;
        width: fit-content;
        text-align: center;
        margin: 0;
    }
    
    .game-signature {
        position: absolute;
        left: 35%;
        top: 58%;
        width: 42%;
        /* 大屏幕标准字体大小 */
        font-size: 16px;
        color: #ffffff;
        line-height: 1.5;
        display: block;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0;
        z-index: 2;
        transform-origin: top left;
    }
    
    .game-signature-pen {
        position: absolute;
        left: 80%;
        top: 59%;
        /* 大屏幕标准图标大小 */
        width: 18px;
        height: auto;
        z-index: 2;
    }
    
    /* 响应式设计 - 使用整体缩放，移除布局调整 */
    @media (max-width: 768px) {
        .game-preview-header {
            padding: 8px 12px;
        }
        
        .game-preview-controls {
            flex-direction: column;
            align-items: center;
        }
        
        /* 游戏预览容器使用更小的padding */
        .game-preview-container {
            padding: 5px;
        }
    }
    
    @media (max-width: 480px) {
        .game-preview-header {
            padding: 6px 10px;
        }
        
        .game-preview-back-btn {
            width: 32px;
            height: 32px;
            min-width: 32px;
            max-width: 32px;
            min-height: 32px;
            max-height: 32px;
            font-size: 12px;
        }
        
        .game-preview-container {
            padding: 3px;
        }
    }
    
    /* 虚镜回廊和樱落金笺装扮 - 布局调整 */
    .game-preview-item[data-theme="xujing"] .game-avatar-section,
    .game-preview-item[data-theme="yingluo"] .game-avatar-section {
        left: 12.2%; /* 12.5% - 0.3% */
        top: 26%; /* 26.5% - 0.5% */
    }
    
    .game-preview-item[data-theme="xujing"] .game-name-row,
    .game-preview-item[data-theme="yingluo"] .game-name-row {
        left: 35%; /* 34% + 1% */
    }
    
    .game-preview-item[data-theme="xujing"] .game-province-container,
    .game-preview-item[data-theme="yingluo"] .game-province-container {
        left: 36%;
        top: 48%; /* 47% + 1% */
    }
    
    .game-preview-item[data-theme="xujing"] .game-signature,
    .game-preview-item[data-theme="yingluo"] .game-signature {
        left: 36%; /* 35% + 1% */
        top: 60%; /* 58% + 2% */
    }
    
    .game-preview-item[data-theme="xujing"] .game-signature-pen,
    .game-preview-item[data-theme="yingluo"] .game-signature-pen {
        left: 85%; /* 80% + 1% + 4% */
        top: 61%; /* 59% + 2% */
    }
    
    /* ========== 头像选择浮窗样式 ========== */
    .avatar-picker-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 10000;
    }
    
    .avatar-picker-overlay.active {
        display: flex;
    }
    
    .avatar-picker-modal {
        background: linear-gradient(145deg, #1a2a3a, #0d1a2a);
        border-radius: 16px;
        padding: 20px;
        max-width: 320px;
        width: 90%;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(56, 152, 255, 0.3);
    }
    
    .avatar-picker-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .avatar-picker-title {
        color: #fff;
        font-size: 18px;
        font-weight: bold;
    }
    
    .avatar-picker-close {
        width: 32px;
        height: 32px;
        min-width: 32px;
        max-width: 32px;
        min-height: 32px;
        max-height: 32px;
        padding: 0;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 8px;
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .avatar-picker-close:hover {
        background: rgba(255, 100, 100, 0.3);
    }
    
    .avatar-picker-section {
        margin-bottom: 15px;
    }
    
    .avatar-picker-section-title {
        color: #3898ff;
        font-size: 14px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .avatar-picker-grid {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .avatar-option {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        overflow: visible;
        border: 3px solid transparent;
        cursor: pointer;
        transition: all 0.2s;
        background: rgba(255, 255, 255, 0.1);
        position: relative;
    }
    
    .avatar-option:hover {
        border-color: #3898ff;
        transform: scale(1.05);
    }
    
    .avatar-option.selected {
        border-color: #2effa4;
        box-shadow: 0 0 10px rgba(46, 255, 164, 0.5);
    }
    
    .avatar-option img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    /* 自定义头像占位符 */
    .avatar-custom-option {
        border: 2px dashed rgba(56, 152, 255, 0.5);
        background: rgba(56, 152, 255, 0.1);
        overflow: visible;
    }
    
    .avatar-custom-option:hover {
        border-color: #3898ff;
        background: rgba(56, 152, 255, 0.2);
    }
    
    .avatar-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        color: #3898ff;
        font-weight: 300;
        border-radius: 50%;
        background: inherit;
    }
    
    .avatar-custom-option.has-custom {
        border-style: solid;
        border-color: transparent;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .avatar-custom-option.has-custom:hover {
        border-color: #3898ff;
    }
    
    /* 删除自定义头像按钮 */
    .avatar-delete-btn {
        position: absolute;
        top: -4px;
        right: -4px;
        width: 20px;
        height: 20px;
        min-width: 20px;
        max-width: 20px;
        min-height: 20px;
        max-height: 20px;
        padding: 0;
        background: #ff4757;
        border: 2px solid #1a2a3a;
        border-radius: 50%;
        color: #fff;
        font-size: 12px;
        font-weight: bold;
        cursor: pointer;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 10;
        transition: all 0.2s;
    }
    
    .avatar-delete-btn.visible {
        display: flex !important;
    }
    
    .avatar-delete-btn:hover {
        background: #ff6b7a;
        transform: scale(1.1);
    }
    
    /* 自定义头像控制按钮 */
    .avatar-custom-controls {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .avatar-control-btn {
        padding: 8px 16px;
        background: rgba(56, 152, 255, 0.2);
        border: 1px solid rgba(56, 152, 255, 0.4);
        border-radius: 8px;
        color: #3898ff;
        font-size: 13px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .avatar-control-btn:hover {
        background: rgba(56, 152, 255, 0.3);
        border-color: #3898ff;
    }
    
    .avatar-control-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }
    
    .avatar-control-btn:disabled:hover {
        background: rgba(56, 152, 255, 0.2);
        border-color: rgba(56, 152, 255, 0.4);
    }
    
    /* ========== 左侧模式切换按钮 ========== */
    .avatar-picker-overlay {
        gap: 12px;
        align-items: center;
    }
    
    .avatar-mode-switch-side {
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: linear-gradient(145deg, #1a2a3a, #0d1a2a);
        border-radius: 16px;
        padding: 12px 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(56, 152, 255, 0.3);
    }
    
    .avatar-mode-side-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 70px;
        padding: 12px 8px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid transparent;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.6);
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .avatar-mode-side-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(56, 152, 255, 0.5);
        color: #fff;
        transform: translateY(-2px);
    }
    
    .avatar-mode-side-btn.active {
        background: rgba(56, 152, 255, 0.3);
        border-color: #3898ff;
        color: #3898ff;
        box-shadow: 0 0 15px rgba(56, 152, 255, 0.4);
    }
    
    .mode-icon {
        font-size: 28px;
        line-height: 1;
    }
    
    .mode-text {
        font-size: 12px;
        line-height: 1;
    }
    
    /* ========== 头像框选择样式 ========== */
    .avatar-picker-content {
        display: block;
    }
    
    .avatar-picker-content[style*="display: none"] {
        display: none;
    }
    
    .frame-option {
        width: 105px;
        height: 105px;
        border-radius: 50%;
        overflow: visible;
        border: 3px solid transparent;
        cursor: pointer;
        transition: all 0.2s;
        background: rgba(255, 255, 255, 0.1);
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .frame-option:hover {
        border-color: #3898ff;
        transform: scale(1.05);
    }
    
    .frame-option.selected {
        border-color: #2effa4;
        box-shadow: 0 0 10px rgba(46, 255, 164, 0.5);
    }
    
    .frame-option img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 50%;
    }
    
    /* 无头像框预览 */
    .frame-preview {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }
    
    .no-frame-icon {
        font-size: 24px;
        color: rgba(255, 255, 255, 0.4);
    }
    
    /* ========== 头像选择浮窗响应式样式 ========== */
    /* 中屏幕设备（768px - 1024px） */
    @media (max-width: 1024px) {
        .avatar-picker-modal {
            max-width: 290px;
            padding: 18px;
            border-radius: 14px;
        }
        
        .avatar-mode-switch-side {
            padding: 10px 7px;
            border-radius: 14px;
        }
        
        .avatar-mode-side-btn {
            width: 63px;
            padding: 10px 7px;
            font-size: 11px;
        }
        
        .mode-icon {
            font-size: 25px;
        }
        
        .avatar-picker-title {
            font-size: 16px;
        }
        
        .avatar-picker-close {
            width: 28px;
            height: 28px;
            min-width: 28px;
            max-width: 28px;
            min-height: 28px;
            max-height: 28px;
            font-size: 16px;
        }
        
        .avatar-option {
            width: 63px;
            height: 63px;
        }
        
        .frame-option {
            width: 95px;
            height: 95px;
        }
        
        .effect-picker-grid {
            gap: 10px;
        }
        
        .effect-option {
            padding: 10px 7px;
        }
        
        .effect-preview {
            height: 45px;
        }
        
        .effect-preview-text {
            font-size: 20px;
        }
        
        .effect-name {
            font-size: 13px;
        }
    }
    
    /* 小屏幕设备（<768px） */
    @media (max-width: 768px) {
        .avatar-picker-modal {
            max-width: 260px;
            padding: 16px;
            border-radius: 12px;
        }
        
        .avatar-mode-switch-side {
            padding: 8px 6px;
            border-radius: 12px;
            gap: 10px;
        }
        
        .avatar-mode-side-btn {
            width: 56px;
            padding: 8px 6px;
            font-size: 10px;
            gap: 4px;
            border-radius: 10px;
        }
        
        .mode-icon {
            font-size: 22px;
        }
        
        .mode-text {
            font-size: 10px;
        }
        
        .avatar-picker-header {
            margin-bottom: 16px;
            padding-bottom: 8px;
        }
        
        .avatar-picker-title {
            font-size: 15px;
        }
        
        .avatar-picker-close {
            width: 26px;
            height: 26px;
            min-width: 26px;
            max-width: 26px;
            min-height: 26px;
            max-height: 26px;
            font-size: 14px;
            border-radius: 6px;
        }
        
        .avatar-picker-section {
            margin-bottom: 12px;
        }
        
        .avatar-picker-section-title {
            font-size: 12px;
            margin-bottom: 8px;
        }
        
        .avatar-picker-grid {
            gap: 10px;
        }
        
        .avatar-option {
            width: 56px;
            height: 56px;
            border-width: 2px;
        }
        
        .avatar-placeholder {
            font-size: 26px;
        }
        
        .avatar-delete-btn {
            width: 16px;
            height: 16px;
            min-width: 16px;
            max-width: 16px;
            min-height: 16px;
            max-height: 16px;
            font-size: 10px;
        }
        
        .frame-option {
            width: 84px;
            height: 84px;
            border-width: 2px;
        }
        
        .no-frame-icon {
            font-size: 20px;
        }
        
        .effect-picker-grid {
            gap: 8px;
            padding: 8px 0;
        }
        
        .effect-option {
            padding: 8px 6px;
            border-radius: 10px;
        }
        
        .effect-preview {
            height: 40px;
            border-radius: 6px;
            margin-bottom: 6px;
        }
        
        .effect-preview-text {
            font-size: 18px;
        }
        
        .effect-name {
            font-size: 11px;
        }
        
        .avatar-custom-controls {
            margin-top: 12px;
            padding-top: 8px;
            gap: 8px;
        }
        
        .avatar-control-btn {
            padding: 6px 12px;
            font-size: 11px;
        }
    }
    
    /* 超小屏幕设备（<480px） */
    @media (max-width: 480px) {
        .avatar-picker-modal {
            max-width: 230px;
            padding: 14px;
            border-radius: 10px;
        }
        
        .avatar-mode-switch-side {
            padding: 6px 5px;
            border-radius: 10px;
            gap: 8px;
        }
        
        .avatar-mode-side-btn {
            width: 50px;
            padding: 6px 5px;
            font-size: 9px;
            gap: 3px;
            border-radius: 8px;
        }
        
        .mode-icon {
            font-size: 20px;
        }
        
        .mode-text {
            font-size: 9px;
        }
        
        .avatar-picker-header {
            margin-bottom: 12px;
            padding-bottom: 6px;
        }
        
        .avatar-picker-title {
            font-size: 14px;
        }
        
        .avatar-picker-close {
            width: 24px;
            height: 24px;
            min-width: 24px;
            max-width: 24px;
            min-height: 24px;
            max-height: 24px;
            font-size: 12px;
            border-radius: 5px;
        }
        
        .avatar-picker-section {
            margin-bottom: 10px;
        }
        
        .avatar-picker-section-title {
            font-size: 11px;
            margin-bottom: 6px;
            gap: 4px;
        }
        
        .avatar-picker-grid {
            gap: 8px;
        }
        
        .avatar-option {
            width: 50px;
            height: 50px;
            border-width: 2px;
        }
        
        .avatar-placeholder {
            font-size: 22px;
        }
        
        .avatar-delete-btn {
            width: 14px;
            height: 14px;
            min-width: 14px;
            max-width: 14px;
            min-height: 14px;
            max-height: 14px;
            font-size: 8px;
            top: -3px;
            right: -3px;
        }
        
        .frame-option {
            width: 75px;
            height: 75px;
            border-width: 2px;
        }
        
        .no-frame-icon {
            font-size: 18px;
        }
        
        .effect-picker-grid {
            gap: 6px;
            padding: 6px 0;
        }
        
        .effect-option {
            padding: 6px 5px;
            border-radius: 8px;
        }
        
        .effect-preview {
            height: 35px;
            border-radius: 5px;
            margin-bottom: 5px;
        }
        
        .effect-preview-text {
            font-size: 16px;
        }
        
        .effect-name {
            font-size: 10px;
        }
        
        .avatar-custom-controls {
            margin-top: 10px;
            padding-top: 6px;
            gap: 6px;
        }
        
        .avatar-control-btn {
            padding: 5px 10px;
            font-size: 10px;
            border-radius: 6px;
        }
    }
    
    /* 极小屏幕设备（<360px） */
    @media (max-width: 360px) {
        .avatar-picker-modal {
            max-width: 200px;
            padding: 12px;
            border-radius: 8px;
        }
        
        .avatar-mode-switch-side {
            padding: 5px 4px;
            border-radius: 8px;
            gap: 6px;
        }
        
        .avatar-mode-side-btn {
            width: 44px;
            padding: 5px 4px;
            font-size: 8px;
            gap: 2px;
            border-radius: 6px;
        }
        
        .mode-icon {
            font-size: 18px;
        }
        
        .mode-text {
            font-size: 8px;
        }
        
        .avatar-picker-header {
            margin-bottom: 10px;
            padding-bottom: 5px;
        }
        
        .avatar-picker-title {
            font-size: 13px;
        }
        
        .avatar-picker-close {
            width: 22px;
            height: 22px;
            min-width: 22px;
            max-width: 22px;
            min-height: 22px;
            max-height: 22px;
            font-size: 11px;
            border-radius: 4px;
        }
        
        .avatar-picker-section {
            margin-bottom: 8px;
        }
        
        .avatar-picker-section-title {
            font-size: 10px;
            margin-bottom: 5px;
            gap: 3px;
        }
        
        .avatar-picker-grid {
            gap: 6px;
        }
        
        .avatar-option {
            width: 44px;
            height: 44px;
            border-width: 2px;
        }
        
        .avatar-placeholder {
            font-size: 20px;
        }
        
        .avatar-delete-btn {
            width: 12px;
            height: 12px;
            min-width: 12px;
            max-width: 12px;
            min-height: 12px;
            max-height: 12px;
            font-size: 7px;
            top: -2px;
            right: -2px;
        }
        
        .frame-option {
            width: 66px;
            height: 66px;
            border-width: 2px;
        }
        
        .no-frame-icon {
            font-size: 16px;
        }
        
        .effect-picker-grid {
            gap: 5px;
            padding: 5px 0;
        }
        
        .effect-option {
            padding: 5px 4px;
            border-radius: 6px;
        }
        
        .effect-preview {
            height: 30px;
            border-radius: 4px;
            margin-bottom: 4px;
        }
        
        .effect-preview-text {
            font-size: 14px;
        }
        
        .effect-name {
            font-size: 9px;
        }
        
        .avatar-custom-controls {
            margin-top: 8px;
            padding-top: 5px;
            gap: 5px;
        }
        
        .avatar-control-btn {
            padding: 4px 8px;
            font-size: 9px;
            border-radius: 5px;
        }
    }
    
    /* ========== 游戏效果预览按钮样式 ========== */
    .game-preview-btn {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.5rem 1.25rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        border-radius: 0.5rem;
        color: #fff;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        flex: 1;
        justify-content: center;
    }
    
    .game-preview-btn:hover {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    }

    .game-preview-btn:active {
        transform: scale(0.96);
    }
    
    .game-preview-btn-icon {
        font-size: 0.875rem;
    }
    
    .game-preview-btn-text {
        letter-spacing: 1px;
    }

    /* ========== 底部动作面板（Action Sheet）样式 ========== */
    /* 注意：Action Sheet 已移动到 body 下，脱离侧边栏滚动上下文 */

    /* 遮罩层 - 全屏覆盖 */
    .action-sheet-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1002; /* 高于侧边栏 z-index: 101 */
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .action-sheet-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* 动作面板主体 - 固定在视口底部，通过JS定位到侧边栏范围 */
    .action-sheet {
        position: fixed;
        bottom: 0;
        background: #1e1e2e;
        border-radius: 20px 20px 0 0;
        z-index: 1003; /* 高于遮罩层 */
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        max-height: 80vh;
        overflow: hidden;
    }

    .action-sheet.active {
        transform: translateY(0);
    }

    /* 顶部拖拽手柄 */
    .action-sheet-handle {
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        margin: 12px auto;
    }

    /* 动作面板标题 */
    .action-sheet-title {
        text-align: center;
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        padding: 8px 0 16px 0;
    }

    /* 动作按钮容器 */
    .action-sheet-actions {
        padding: 0 16px 24px 16px;
    }

    /* 动作按钮 */
    .action-sheet-btn {
        width: 100%;
        min-height: 56px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 16px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-bottom: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .action-sheet-btn:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
    }

    /* 危险操作按钮（删除） */
    .action-sheet-btn.danger {
        color: #ff5252;
        background: rgba(255, 82, 82, 0.1);
        border-color: rgba(255, 82, 82, 0.2);
    }

    .action-sheet-btn.danger:active {
        background: rgba(255, 82, 82, 0.2);
    }

    /* 取消按钮 */
    .action-sheet-btn.cancel {
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        font-weight: 400;
    }

    .action-sheet-btn.cancel:active {
        background: rgba(255, 255, 255, 0.05);
    }

    /* 按钮图标 */
    .action-sheet-icon {
        font-size: 20px;
        flex-shrink: 0;
    }

    /* ========== 记录项更多按钮样式 ========== */
    .item-more-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 6px !important;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        margin-left: auto;
        flex-shrink: 0;
    }

    .item-more-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.8);
    }

    .item-more-btn:active {
        background: rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.9);
    }

    /* ========== 分类夹项样式优化 ========== */

    /* 更多图标按钮 */
    .category-more-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 6px !important;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        margin-left: auto;
        flex-shrink: 0;
    }

    .category-more-btn:active {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.8);
    }

    /* 分类夹项长按状态 */
    .category-item.long-press-active {
        background: rgba(255, 255, 255, 0.15) !important;
        transform: scale(0.98);
        box-shadow: 0 0 20px rgba(56, 152, 255, 0.2);
    }

    /* 移除原有的操作按钮样式（hover相关） */
    .category-item-actions {
        display: none;
    }

    /* ========== 分类夹选择面板样式 ========== */
    /* 注意：分类选择器已移动到 body 下，脱离侧边栏滚动上下文 */

    /* 遮罩层 - 全屏覆盖 */
    .category-selector-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1004; /* 高于侧边栏 z-index: 101 */
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .category-selector-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* 选择面板主体 - 固定在视口底部，通过JS定位到侧边栏范围 */
    .category-selector {
        position: fixed;
        bottom: 0;
        background: #1e1e2e;
        border-radius: 20px 20px 0 0;
        z-index: 1005; /* 高于遮罩层 */
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        max-height: 80vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .category-selector.active {
        transform: translateY(0);
    }

    /* 顶部拖拽手柄 */
    .category-selector-handle {
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        margin: 12px auto;
    }

    /* 选择面板头部 - 改为标题样式 */
    .category-selector-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 16px;
    }

    .category-selector-title {
        text-align: center;
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        padding: 8px 0;
        flex: 1;
        margin: 0;
    }

    .category-selector-close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 24px;
        height: 24px;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.5);
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        z-index: 1;
    }

    .category-selector-close:active {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.8);
    }

    /* 选择面板内容区域 */
    .category-selector-content {
        flex: 1;
        overflow-y: auto;
        scrollbar-gutter: stable;
        padding: 0 16px 16px 16px;
    }

    /* 分类夹选择项 - 改为动作面板按钮样式 */
    .category-selector-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        margin-bottom: 12px;
        min-height: 56px;
    }

    .category-selector-item:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
    }

    .category-selector-item.selected {
        background: rgba(56, 152, 255, 0.15);
        border-color: rgba(56, 152, 255, 0.4);
        opacity: 0.5;
        pointer-events: none;
    }

    .category-selector-item.disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .category-selector-item-icon {
        font-size: 24px;
        flex-shrink: 0;
    }

    .category-selector-item-info {
        flex: 1;
        min-width: 0;
        text-align: left;
    }

    .category-selector-item-name {
        font-size: 16px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 4px;
    }

    .category-selector-item-count {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
    }

    .category-selector-item-current {
        font-size: 12px;
        color: rgba(56, 152, 255, 0.8);
        background: rgba(56, 152, 255, 0.1);
        padding: 2px 8px;
        border-radius: 4px;
        flex-shrink: 0;
    }

    /* 选择面板底部 - 移除边框，简化样式 */
    .category-selector-footer {
        padding: 0 16px 24px 16px;
    }

    .category-selector-btn {
        width: 100%;
        min-height: 56px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 16px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .category-selector-btn:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
    }

    .category-selector-icon {
        font-size: 20px;
        flex-shrink: 0;
    }

    /* ========== 自定义模板功能样式 ========== */

    /* 生成模板按钮区域 */
    .action-btns-row {
        display: flex;
        gap: 0.75rem;
        justify-content: center;
        align-items: center;
        margin: 0.625rem 0 1.25rem 0;
    }

    .template-generate-btn {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.5rem 1.25rem;
        background: rgba(56, 152, 255, 0.12);
        border: 1px solid rgba(56, 152, 255, 0.4);
        border-radius: 0.5rem;
        color: #3898ff;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        flex: 1;
        justify-content: center;
    }

    .template-generate-btn:hover {
        background: rgba(56, 152, 255, 0.2);
        border-color: rgba(56, 152, 255, 0.6);
        box-shadow: 0 2px 8px rgba(56, 152, 255, 0.2);
    }

    .template-generate-btn:active {
        transform: scale(0.96);
    }

    .template-generate-icon {
        font-size: 1rem;
    }

    /* 模板弹出面板遮罩层 */
    .template-popup-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10001;
        transition: opacity 0.2s ease;
    }

    .template-popup-overlay.active {
        display: block;
    }

    /* 模板弹出面板 */
    .template-popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        max-height: 80vh;
        background: #1a2332;
        border-radius: 12px;
        border: 1px solid rgba(56, 152, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        z-index: 10002;
        overflow-y: auto;
        animation: templatePopupIn 0.25s ease;
    }

    .template-popup.active {
        display: block;
    }

    @keyframes templatePopupIn {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }

    .template-popup-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .template-popup-header h3 {
        color: #e8e8e8;
        font-size: 1.0625rem;
        font-weight: 600;
        margin: 0;
    }

    .template-popup-close {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        font-size: 1.25rem;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        transition: color 0.2s;
        border-radius: 4px;
    }

    .template-popup-close:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }

    .template-popup-body {
        padding: 1.25rem;
    }

    /* 模板类型勾选 */
    .template-type-checks {
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
    }

    .template-check-item {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.75rem;
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .template-check-item:hover {
        background: rgba(56, 152, 255, 0.08);
        border-color: rgba(56, 152, 255, 0.3);
    }

    .template-check-item:has(input:checked) {
        background: rgba(56, 152, 255, 0.12);
        border-color: #3898ff;
        box-shadow: 0 0 8px rgba(56, 152, 255, 0.15);
    }

    .template-check-item input[type="checkbox"] {
        width: 1.125rem;
        height: 1.125rem;
        accent-color: #3898ff;
        cursor: pointer;
        flex-shrink: 0;
    }

    .template-check-label {
        color: #e8e8e8;
        font-size: 0.9375rem;
        font-weight: 500;
    }

    .template-check-desc {
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.6875rem;
        margin-left: auto;
    }

    /* 色块模板选择面板 */
    .template-colorblock-panel,
    .template-text-panel {
        margin-top: 1rem;
        animation: templateSlideIn 0.2s ease;
    }

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

    .template-panel-title {
        color: #e8e8e8;
        font-size: 0.875rem;
        font-weight: 500;
        margin-bottom: 0.75rem;
    }

    /* 色块多选列表 */
    .template-colorblock-list {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-bottom: 1rem;
        padding: 0.75rem;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0.5rem;
        max-height: 200px;
        overflow-y: auto;
    }

    .template-colorblock-item {
        position: relative;
        width: 2.5rem;
        height: 1.5rem;
        border-radius: 0.375rem;
        border: 2px solid rgba(255, 255, 255, 0.15);
        cursor: pointer;
        transition: all 0.15s ease;
        -webkit-tap-highlight-color: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .template-colorblock-item:hover {
        transform: scale(1.08);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .template-colorblock-item.selected {
        border-color: #3898ff;
        box-shadow: 0 0 8px rgba(56, 152, 255, 0.4);
    }

    .template-colorblock-item.selected::after {
        content: '✓';
        color: #fff;
        font-size: 0.625rem;
        font-weight: bold;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }


    /* 保存模板按钮 */
    .template-save-btn {
        width: 100%;
        padding: 0.625rem;
        background: linear-gradient(135deg, #3898ff, #2d87e6);
        border: none;
        border-radius: 0.5rem;
        color: #fff;
        font-size: 0.9375rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        margin-top: 1rem;
    }

    .template-save-btn:hover {
        box-shadow: 0 4px 12px rgba(56, 152, 255, 0.4);
    }

    .template-save-btn:active {
        transform: scale(0.98);
    }

    /* ========== 侧边栏模板列表样式（参考历史/收藏） ========== */
    .template-list-container {
        padding: 0.625rem 0;
    }

    .template-empty-hint {
        color: rgba(255, 255, 255, 0.35);
        font-size: 0.8125rem;
        text-align: center;
        padding: 2rem 1rem;
    }

    /* 模板卡片项 - 类似history-item */
    .template-card {
        margin: 0.5rem 0;
        padding: 0.75rem;
        background: rgba(20, 30, 40, 0.7);
        border-radius: 0.5rem;
        border: 1px solid rgba(56, 152, 255, 0.08);
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .template-card:hover {
        background: rgba(56, 152, 255, 0.08);
        border-color: rgba(56, 152, 255, 0.2);
    }

    .template-card:active {
        transform: scale(0.98);
    }

    .template-card-preview {
        text-align: center;
        margin-bottom: 0.5rem;
        padding: 0.5rem;
        background: rgba(20, 25, 35, 0.6);
        border-radius: 0.375rem;
        border: 1px solid rgba(56, 152, 255, 0.08);
        white-space: pre-wrap;
        font-size: 0.8125rem;
        line-height: 1.5;
        word-break: break-all;
    }

    .template-card-colors {
        display: flex;
        gap: 0.25rem;
        flex-wrap: wrap;
        margin-top: 0.375rem;
    }

    .template-card-color {
        width: 1rem;
        height: 1rem;
        border-radius: 0.1875rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .template-card-text {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.7);
        padding: 0.375rem 0.5rem;
        background: rgba(255, 152, 0, 0.08);
        border: 1px solid rgba(255, 152, 0, 0.2);
        border-radius: 0.25rem;
        margin-top: 0.375rem;
        line-height: 1.4;
        word-break: break-all;
        max-height: 3rem;
        overflow: hidden;
    }

    .template-card-tags {
        display: flex;
        gap: 0.25rem;
        margin-top: 0.5rem;
    }

    .template-card-tag {
        font-size: 0.625rem;
        padding: 0.0625rem 0.375rem;
        border-radius: 0.1875rem;
        font-weight: 400;
    }

    .template-card-tag.colorBlock {
        background: rgba(46, 255, 164, 0.15);
        color: #2effa4;
        border: 1px solid rgba(46, 255, 164, 0.3);
    }

    .template-card-tag.text {
        background: rgba(255, 152, 0, 0.15);
        color: #ff9800;
        border: 1px solid rgba(255, 152, 0, 0.3);
    }


    /* ========== 模板详情弹窗 ========== */
    .template-detail-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10003;
    }

    .template-detail-overlay.active {
        display: block;
    }

    .template-detail-popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 420px;
        max-height: 85vh;
        background: #1a2332;
        border-radius: 12px;
        border: 1px solid rgba(56, 152, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        z-index: 10004;
        overflow-y: auto;
        animation: templatePopupIn 0.25s ease;
    }

    .template-detail-popup.active {
        display: block;
    }

    .template-detail-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .template-detail-header h3 {
        color: #e8e8e8;
        font-size: 1.0625rem;
        font-weight: 600;
        margin: 0;
    }

    .template-detail-close {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        font-size: 1.25rem;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        transition: color 0.2s;
        border-radius: 4px;
    }

    .template-detail-close:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }

    .template-detail-body {
        padding: 1.25rem;
    }

    .template-detail-preview {
        text-align: center;
        margin-bottom: 1rem;
        padding: 0.75rem;
        background: rgba(20, 25, 35, 0.6);
        border-radius: 0.5rem;
        border: 1px solid rgba(56, 152, 255, 0.08);
        white-space: pre-wrap;
        font-size: 0.875rem;
        line-height: 1.6;
        word-break: break-all;
    }

    .template-detail-section {
        margin-top: 1rem;
    }

    .template-detail-section-title {
        color: #e8e8e8;
        font-size: 0.8125rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
    }

    .template-detail-colors {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .template-detail-color-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .template-detail-color-swatch {
        width: 2rem;
        height: 2rem;
        border-radius: 0.375rem;
        border: 2px solid rgba(255, 255, 255, 0.15);
        cursor: pointer;
        position: relative;
        transition: all 0.15s ease;
    }

    .template-detail-color-swatch:hover {
        border-color: rgba(255, 255, 255, 0.3);
    }

    .template-detail-color-swatch.editable {
        border-color: #3898ff;
        box-shadow: 0 0 6px rgba(56, 152, 255, 0.3);
    }

    .template-detail-color-swatch.locked {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .template-detail-color-hex {
        font-size: 0.5625rem;
        color: rgba(255, 255, 255, 0.4);
    }

    .template-detail-text-input {
        width: 100%;
        padding: 0.625rem 0.75rem;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0.375rem;
        color: #e8e8e8;
        font-size: 0.875rem;
        outline: none;
        transition: border-color 0.2s;
        resize: vertical;
        min-height: 60px;
        box-sizing: border-box;
    }

    .template-detail-text-input:focus {
        border-color: #3898ff;
    }

    .template-detail-text-input.locked {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .template-detail-footer {
        display: flex;
        gap: 0.75rem;
        padding: 0.75rem 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .template-detail-copy-btn {
        padding: 0.625rem 1.25rem;
        background: rgba(46, 255, 164, 0.12);
        border: 1px solid rgba(46, 255, 164, 0.25);
        border-radius: 0.5rem;
        color: #2effa4;
        font-size: 0.9375rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .template-detail-copy-btn:hover {
        background: rgba(46, 255, 164, 0.2);
        box-shadow: 0 4px 12px rgba(46, 255, 164, 0.2);
    }

    .template-detail-edit-btn {
        flex: 1;
        padding: 0.625rem;
        background: linear-gradient(135deg, #3898ff, #2d87e6);
        border: none;
        border-radius: 0.5rem;
        color: #fff;
        font-size: 0.9375rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .template-detail-edit-btn:hover {
        box-shadow: 0 4px 12px rgba(56, 152, 255, 0.4);
    }

    .template-detail-delete-btn {
        padding: 0.625rem 1.25rem;
        background: rgba(239, 83, 80, 0.12);
        border: 1px solid rgba(239, 83, 80, 0.25);
        border-radius: 0.5rem;
        color: #ef5350;
        font-size: 0.9375rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .template-detail-delete-btn:hover {
        background: rgba(239, 83, 80, 0.2);
        border-color: rgba(239, 83, 80, 0.4);
    }

    /* 响应式 - 小屏幕 */
    @media (max-width: 768px) {
        .template-popup, .template-detail-popup {
            width: 95%;
            max-height: 85vh;
        }

        .template-check-item {
            padding: 0.625rem 0.75rem;
        }

        .template-colorblock-item {
            width: 2rem;
            height: 1.25rem;
        }
    }

