/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */
        :root {
            --ss-primary: #ff6b35;
            --ss-primary-light: #f7931e;
            --ss-primary-gold: #ffd700;
            --ss-bg-dark: #0a0a0a;
            --ss-bg-mid: #1a1a1a;
            --ss-bg-light: #0f0f0f;
            --ss-bg-light-card: #2a2a2a;
            --ss-text-main: #e0e0e0;
            --ss-text-sub: #888;
            --ss-text-Label: #ccc;
            --ss-text-secondary: #aaa;
            --ss-border: #333;
            --ss-border-two: #444;
            --ss-border-hover: #555;
            --ss-radius: 12px;
            --ss-shadow: 0 4px 15px rgba(0,0,0,.3);
            --ss-transition: all .3s ease;
            --ss-res-lv-0: #666;
            --ss-res-lv-1: #666;
            --ss-res-lv-2: #006f2d;
            --ss-res-lv-3: #1b576d;
            --ss-res-lv-4: #4D1894;
            --ss-res-lv-5: #d3621c;
            --ss-res-lv-6: #972529;
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, var(--ss-bg-dark) 0%, var(--ss-bg-mid) 50%, var(--ss-bg-light) 100%);
            color: var(--ss-text-main);
            /* 使用边框盒模型，避免 min-height 与 padding 叠加导致溢出 */
            box-sizing: border-box;
            /* 重置默认外边距，避免出现额外滚动空间 */
            margin: 0;
            /* 视口高度：优先使用动态视口，兼容旧版浏览器使用 100vh */
            min-height: 100vh;
            min-height: 100dvh;
            /*padding: 20px; */
        }

        a {
            color: var(--ss-primary);
            text-decoration: none;
        }

        .container {
            margin: 0 auto;
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
        }

        .title {
            font-size: 2rem;
            font-weight: 700;
            background: linear-gradient(45deg, var(--ss-primary), var(--ss-primary-light), var(--ss-primary-gold));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
            margin-bottom: 10px;
        }

        .subtitle {
            font-size: 1.2rem;
            color: var(--ss-text-sub);
            font-weight: 300;
        }

        .control-section {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 30px;
            margin-bottom: 40px;
            flex-wrap: wrap;
            transition: all 0.8s ease;
        }

        .generate-btn {
            padding: 15px 40px;
            background: linear-gradient(45deg, var(--ss-primary), var(--ss-primary-light));
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
            position: relative;
            overflow: hidden;
        }

        .generate-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
        }

        .generate-btn:active {
            transform: translateY(0);
        }

        .generate-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .options-container {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .option-group {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
        }

        .checkbox-container {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-size: 0.9rem;
            color: var(--ss-text-main);
            font-weight: 500;
            user-select: none;
            outline: none;
            -webkit-tap-highlight-color: transparent;
        }

        .checkbox-container input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            outline: none;
        }

        .checkbox-container input:focus {
            outline: none;
        }

        .checkmark {
            position: relative;
            height: 18px;
            width: 18px;
            background: var(--ss-border);
            border: 2px solid var(--ss-border-hover);
            border-radius: 4px;
            margin-right: 8px;
            transition: all 0.3s ease;
        }

        .checkbox-container input:checked ~ .checkmark {
            background: linear-gradient(45deg, var(--ss-primary), var(--ss-primary-light));
            border-color: var(--ss-primary);
        }

        .checkmark:after {
            content: "";
            position: absolute;
            display: none;
        }

        .checkbox-container input:checked ~ .checkmark:after {
            display: block;
        }

        .checkbox-container .checkmark:after {
            left: 6px;
            top: 2px;
            width: 4px;
            height: 8px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        .option-description {
            font-size: 0.7rem;
            color: var(--ss-text-sub);
            text-align: center;
            max-width: 100px;
        }

        .loading {
            display: none;
            text-align: center;
            margin: 20px 0;
        }

        .spinner {
            border: 3px solid var(--ss-border);
            border-top: 3px solid var(--ss-primary);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

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

        /* 全屏加载样式 */
        .fullscreen-loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(10px);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s ease;
        }
        
        .fullscreen-loading.show {
            opacity: 1;
            pointer-events: auto;
        }

        .fullscreen-loading.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .fullscreen-loading-content {
            text-align: center;
            color: var(--ss-text-main);
        }

        .loading-spinner {
            border: 4px solid var(--ss-border);
            border-top: 4px solid var(--ss-primary);
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        .loading-text {
            font-size: 1.2rem;
            font-weight: 500;
            color: var(--ss-primary);
            margin: 0;
        }

        .loadout-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
            margin-bottom: 30px;
            justify-content: center;
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
        }

        .main-content {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .top-section {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 60px;
            flex-wrap: wrap;
        }

        .loadout-item {
            background: linear-gradient(145deg, var(--ss-bg-mid), var(--ss-bg-light));
            border-radius: 12px;
            padding: 13px;
            border: 1px solid var(--ss-border);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .loadout-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--ss-primary), var(--ss-primary-light), var(--ss-primary-gold));
        }

        .loadout-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            border-color: var(--ss-primary);
        }

        .item-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            justify-content: center;
        }

        .item-icon {
            width: 50px;
            height: 50px;
            margin-right: 15px;
            border-radius: 8px;
            background: var(--ss-border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .item-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--ss-primary);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .item-content {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .item-image {
            width: 80px;
            height: 80px;
            object-fit: contain;
            border-radius: 8px;
            background: var(--ss-border);
            padding: 5px;
        }

        .item-details {
            flex: 1;
        }

        .item-name {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--ss-text-main);
            margin-bottom: 10px;
        }

        .equipment-note {
            font-size: 0.85rem;
            color: var(--ss-text-sub);
            font-weight: normal;
            margin-top: 4px;
            margin-bottom: 6px;
        }

        .item-stats {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .stat-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: #aaa;
        }

        .stat-value {
            color: var(--ss-primary-light);
            font-weight: 600;
        }

        .protect-level {
            display: inline-block;
            color: var(--ss-text-main);
            font-size: 0.9rem;
            font-weight: 600;
            border-bottom: 4px solid;
            border-radius: 4px;
            padding: 2px 6px;
            margin-bottom: 2px;
        }

        .protect-level-0 {
            border-color: var(--ss-res-lv-0);
        }

        .protect-level-1 {
            border-color: var(--ss-res-lv-1);
        }

        .protect-level-2 {
            border-color: var(--ss-res-lv-2);
        }

        .protect-level-3 {
            border-color: var(--ss-res-lv-3);
        }

        .protect-level-4 {
            border-color: var(--ss-res-lv-4);
        }

        .protect-level-5 {
            border-color: var(--ss-res-lv-5);
        }

        .protect-level-6 {
            border-color: var(--ss-res-lv-6);
        }

        .armor-item-image {
            width: 80px;
            height: 80px;
            object-fit: contain;
            border-radius: 8px;
            padding: 5px;
        }

        .armor-item-image-0 {
            background: var(--ss-res-lv-0);
        }

        .armor-item-image-1 {
            background: var(--ss-res-lv-1);
        }

        .armor-item-image-2 {
            background: var(--ss-res-lv-2);
        }

        .armor-item-image-3 {
            background: var(--ss-res-lv-3);
        }

        .armor-item-image-4 {
            background: var(--ss-res-lv-4);
        }

        .armor-item-image-5 {
            background: var(--ss-res-lv-5);
        }

        .armor-item-image-6 {
            background: var(--ss-res-lv-6);
        }

        .special-task {
            grid-column: 1 / -1;
            background: linear-gradient(145deg, #2a1a1a, #3a2a2a);
            border-color: var(--ss-primary);
        }

        .special-task .item-title {
            color: var(--ss-primary-light);
        }

        .task-description {
            font-size: 1.1rem;
            color: var(--ss-text-main);
            text-align: center;
            padding: 15px;
            background: rgba(255, 107, 53, 0.1);
            border-radius: 8px;
            border-left: 4px solid var(--ss-primary);
            margin-bottom: 10px;
        }

        .task-description:last-child {
            margin-bottom: 0;
        }

        .task-title {
            color: var(--ss-primary-light);
            font-weight: 600;
        }

        .task-content {
            color: var(--ss-text-main);
            font-weight: 400;
        }

        .error {
            background: linear-gradient(145deg, #3a1a1a, #4a2a2a);
            border: 1px solid #dc3545;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            color: #fff;
            margin: 20px 0;
        }

        .error-title {
            color: #dc3545;
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .password-error {
            background: linear-gradient(145deg, #3a1a1a, #4a2a2a);
            border: 1px solid #dc3545;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            color: #fff;
            margin: 20px 0;
        }

        .password-error-icon {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .password-error h3 {
            color: #dc3545;
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .password-error p {
            color: #ccc;
            margin-bottom: 8px;
        }

        .retry-btn {
            background: linear-gradient(45deg, var(--ss-primary), var(--ss-primary-light));
            border: none;
            border-radius: 6px;
            color: white;
            padding: 8px 16px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            margin-top: 10px;
            transition: all 0.3s ease;
        }

        .retry-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
        }

        .stats-container {
            text-align: center;
            padding: 20px;
            border-top: 1px solid var(--ss-border);
        }

        .stats-text {
            color: var(--ss-text-sub);
            font-size: 0.9rem;
            font-weight: 400;
            margin: 0;
        }

        .author-link {
            color: #a0a0a0;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .author-link:hover {
            color: #d0d0d0;
            text-decoration: underline;
        }

        @media (max-width: 768px) {
            body {
                padding: 0; /* 移除 body 的 padding，改为在 .container 中设置 */
            }
            
            .control-section {
                flex-direction: column;
                gap: 20px;
            }
            
            .options-container {
                gap: 15px;
                justify-content: center;
            }
            
            /* 地图选择独占一行 */
            .option-group:has(.dropdown-container) {
                flex-basis: 100%;
                order: -1;
            }
            
            /* 移动端下拉选项最大高度限制 */
            .dropdown-options {
                max-height: 200px;
            }
            
            .loadout-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .loadout-item {
                padding: 15px;
            }
            
            /* 移动端隐藏装备类型标题 */
            .item-header {
                display: none;
            }
            
            .item-content {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }
            
            /* 移动端顶部区域布局 */
            .top-section {
                position: relative;
                gap: 0;
                flex-direction: column;
                align-items: center;
                margin-bottom: 20px;
            }
            
            /* 地图容器 - 与PC端保持一致 */
            .map-container {
                position: relative;
                display: inline-block;
                margin: 20px 0;
                z-index: 1;
            }
            
            .map-container-inner {
                position: relative;
                display: inline-block;
            }
            
            .map-image {
                width: 320px;
                height: 180px;
                object-fit: cover;
                border-radius: 12px;
                border: 2px solid var(--ss-border);
                transition: filter 0.3s ease;
                display: block;
            }

            .pwd-map-image {
                width: 320px;
                height: 180px;
                object-fit: cover;
                transition: filter 0.3s ease;
                display: block;
            }
            
            
            .map-overlay-filter {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                border-radius: 12px;
                pointer-events: none;
                transition: all 0.3s ease;
            }
            
            .map-title {
                position: absolute;
                top: 0;
                left: 0;
                background: rgba(0, 0, 0, 0.8);
                color: var(--ss-primary-light);
                padding: 6px 10px;
                border-radius: 12px 0 8px 0;
                font-size: 0.9rem;
                font-weight: 600;
                backdrop-filter: blur(5px);
                border-bottom: 2px solid var(--ss-primary);
                border-right: 2px solid var(--ss-primary);
                z-index: 2;
            }
            
            /* 移动端干员浮动布局 */
            .operator-container.mobile-floating {
                position: absolute;
                top: 15px;
                right: 15px;
                margin: 0;
                z-index: 10;
                display: flex;
                flex-direction: column;
                align-items: center;
                pointer-events: none; /* 允许点击穿透到地图 */
            }
            
            .operator-container.mobile-floating .operator-container-inner {
                display: flex;
                flex-direction: column;
                align-items: center;
                pointer-events: auto; /* 干员区域可以交互 */
            }
            
            .operator-container.mobile-floating .operator-image {
                width: 60px;
                height: 60px;
                border: 2px solid var(--ss-primary);
                box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
                border-radius: 50%;
                object-fit: cover;
            }
            
            .operator-container.mobile-floating .operator-name {
                font-size: 0.8rem;
                margin-top: 6px;
                background: rgba(0, 0, 0, 0.9);
                padding: 3px 6px;
                border-radius: 4px;
                border: 1px solid var(--ss-primary);
                white-space: nowrap;
                backdrop-filter: blur(10px);
                max-width: 100px;
                overflow: hidden;
                text-overflow: ellipsis;
                color: var(--ss-primary-light);
                font-weight: 600;
                text-align: center;
            }
            
            /* PC端干员样式保持不变 */
            .operator-container:not(.mobile-floating) {
                display: flex;
                flex-direction: column;
                align-items: center;
                margin: 20px;
            }
            
            .operator-container:not(.mobile-floating) .operator-image {
                width: 120px;
                height: 120px;
                border: 3px solid var(--ss-primary);
            }
            
            .operator-container:not(.mobile-floating) .operator-name {
                font-size: 1.4rem;
                margin-top: 15px;
                color: var(--ss-primary-light);
                font-weight: 600;
                text-align: center;
            }
            
            /* 主武器独占一行，图片和信息左右排列 */
            .weapon-item .item-content {
                flex-direction: row;
                text-align: left;
                align-items: flex-start;
                gap: 15px;
            }
            
            .weapon-item .item-image {
                width: 100px;
                height: 100px;
                flex-shrink: 0;
            }
            
            .weapon-item .item-details {
                flex: 1;
                min-width: 0;
            }
            
            .weapon-item .item-name {
                font-size: 1rem;
                margin-bottom: 8px;
            }
            
            .weapon-item .ammo-info {
                margin-top: 8px;
                padding: 8px;
                gap: 8px;
            }
            
            .weapon-item .ammo-image {
                width: 24px;
                height: 24px;
            }
            
            .weapon-item .stat-item {
                font-size: 0.8rem;
                gap: 3px;
            }
            
            /* 头盔和护甲横向布局 */
            .loadout-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            /* 创建头盔护甲横向容器 */
            .helmet-armor-row {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }
            
            .helmet-armor-row .loadout-item {
                padding: 15px;
            }
            
            .helmet-armor-row .loadout-item .item-header {
                display: none;
            }
            
            .helmet-armor-row .loadout-item .item-content {
                flex-direction: column;
                text-align: center;
                gap: 10px;
            }
            
            .helmet-armor-row .loadout-item .item-image,
            .helmet-armor-row .loadout-item .armor-item-image {
                width: 60px;
                height: 60px;
                margin: 0 auto;
            }
            
            .helmet-armor-row .loadout-item .item-name {
                font-size: 0.95rem;
                margin-bottom: 8px;
                line-height: 1.2;
            }
            
            .helmet-armor-row .loadout-item .stat-item {
                font-size: 0.8rem;
                justify-content: center;
            }
            
            /* 特殊任务卡片保持全宽 */
            .special-task {
                grid-column: 1 / -1;
            }
            
            .task-description {
                font-size: 1rem;
                padding: 12px;
                line-height: 1.4;
            }
            
            /* 统计信息优化 */
            .stats-container {
                margin-bottom: 40px;
                padding: 15px;
            }
            
            .stats-text {
                font-size: 0.8rem;
                line-height: 1.3;
            }
            
            /* 移动端骨架屏调整 */
            .skeleton-map {
                position: relative;
                display: inline-block;
                margin: 20px;
            }
            
            .skeleton-map-image {
                width: 320px;
                height: 180px;
                border-radius: 12px;
                border: 2px solid var(--ss-border);
            }
            
            .skeleton-map-title {
                position: absolute;
                top: 0;
                left: 0;
                width: 120px;
                height: 20px;
                border-radius: 12px 0 8px 0;
                background: rgba(0, 0, 0, 0.8);
                backdrop-filter: blur(5px);
                border-bottom: 2px solid var(--ss-primary);
                border-right: 2px solid var(--ss-primary);
            }
            
            .operator-container.mobile-floating .skeleton-operator-image {
                width: 60px;
                height: 60px;
                border-radius: 50%;
                border: 2px solid var(--ss-primary);
            }
            
            .operator-container.mobile-floating .skeleton-operator-name {
                width: 60px;
                height: 14px;
                border-radius: 4px;
                margin-top: 6px;
            }
        }

        .ammo-info {
            display: flex;
            align-items: center;
            gap: 10px;
                /* margin-top: 10px;
                padding: 10px; */
            border-radius: 6px 0 0 6px;
            position: relative;
        }

        .vertical-label {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            background: rgba(255, 107, 53, 0.8);
            color: white;
            padding: 8px 4px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 1px;
            margin-right: 8px;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
        }

        .ammo-info-0 {
            background: rgba(102, 102, 102, 0.1);
        }

        .ammo-info-1 {
            background: rgba(102, 102, 102, 0.1);
        }

        .ammo-info-2 {
            background: rgba(0, 111, 45, 0.1);
        }

        .ammo-info-3 {
            background: rgba(27, 87, 109, 0.1);
        }

        .ammo-info-4 {
            background: rgba(77, 24, 148, 0.1);
        }

        .ammo-info-5 {
            background: rgba(211, 98, 28, 0.1);
            position: relative;
            width: 90%;
        }

        /* 版本切换容器 */
        .version-toggle-container {
            margin-bottom: 0px;
        }

        .vertical-label {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            font-size: 12px;
            color: var(--ss-text-sub);
            padding: 2px 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
            min-height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        /* 当新版激活时隐藏二选一标签 */
        .ammo-info-5:has(.new-version.active) .vertical-label {
            opacity: 0;
            pointer-events: none;
            position: absolute;
            visibility: hidden;
        }

        /* 弹药信息容器 - 包含ammo-info和版本切换按钮 */
        .ammo-info-container {
            display: flex;
            align-items: stretch;
            gap: 0;
        }

        /* 版本切换按钮容器 - 位于ammo-info外部右侧 */
        .version-toggle-buttons {
            display: flex;
            flex-direction: column;
            gap: 0;
            min-width: 30px;
            /* margin-top: 10px; */ 
        }

        .version-toggle-buttons .version-btn {
            flex: 1;
            min-height: 0;
        }

        .version-btn {
            padding: 4px 8px;
            border: 1px solid var(--ss-border-hover);
            background: rgba(0, 0, 0, 0.6);
            color: #ccc;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
            font-size: 11px;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .version-btn-first {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            border-bottom: none;
        }

        .version-btn-last {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }

        .version-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: #777;
        }

        .version-btn.active {
            background: var(--ss-primary);
            border-color: var(--ss-primary);
            color: white;
        }

        /* 版本内容 */
        .version-content {
            display: none;
        }

        .version-content.active {
            display: block;
        }

        /* 新版布局样式 */
        .new-version-normal {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .new-stat-row {
            display: flex;
            gap: 16px;
        }

        .new-stat-card {
            flex: 1;
        }

        .new-stat-card .stat-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 5px;
        }

        .new-stat-card .stat-item span:first-child {
            color: #ccc;
            font-size: 14px;
        }

        .new-stat-card .stat-item .stat-value {
            color: #fff;
            font-weight: bold;
            font-size: 14px;
        }

        .new-quality-range .stat-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 5px;
        }

        .new-quality-range .stat-item span:first-child {
            color: #ccc;
            font-size: 14px;
        }

        .quality-bar {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .quality-min, .quality-max {
            font-size: 14px;
            font-weight: bold;
        }

        .quality-separator {
            color: #666;
            font-weight: bold;
        }

        /* 无限制模式样式 */
        .new-version-unlimited {
            text-align: center;
            padding: 16px 8px;
        }

        .unlimited-title {
            font-size: 16px;
            font-weight: bold;
            color: var(--ss-primary-light);
            margin-bottom: 8px;
        }

        .unlimited-subtitle {
            font-size: 13px;
            color: #ccc;
            margin-bottom: 6px;
        }

        .unlimited-blessing {
            font-size: 12px;
            color: #4CAF50;
            font-style: italic;
        }

        /* 配件品质颜色 */
        .quality-绿色 {
            color: #4CAF50 !important;
            font-weight: 600;
        }

        .quality-蓝色 {
            color: #2196F3 !important;
            font-weight: 600;
        }

        .quality-紫色 {
            color: #9C27B0 !important;
            font-weight: 600;
        }

        .quality-橙色 {
            color: #FF9800 !important;
            font-weight: 600;
        }

        .quality-红色 {
            color: #F44336 !important;
            font-weight: 600;
        }

        /* 无限制提示样式 */
        .unlimited-message {
            text-align: center;
            padding: 10px;
            background: linear-gradient(45deg, #ff6b6b, #ffd93d);
            border-radius: 8px;
            color: var(--ss-border);
            font-weight: bold;
        }

        .unlimited-line1 {
            font-size: 14px;
            margin-bottom: 4px;
        }

        .unlimited-line2 {
            font-size: 12px;
            opacity: 0.8;
        }

        .ammo-info-6 {
            background: rgba(151, 37, 41, 0.1);
        }

        .ammo-image {
            width: 30px;
            height: 30px;
            object-fit: contain;
        }

        .difficulty-badge {
            display: inline-block;
            padding: 4px 12px;
            background: linear-gradient(45deg, #dc3545, #c82333);
            border-radius: 20px;
            color: white;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        /* 地图和干员的特殊样式 */
        .map-container {
            position: relative;
            display: inline-block;
            margin: 20px;
        }

        .map-image {
            width: 320px;
            height: 180px; /* 16:9 比例 */
            object-fit: cover;
            border-radius: 12px;
            border: 2px solid var(--ss-border);
            transition: filter 0.3s ease;
        }

        .pwd-map-image {
            width: 320px;
            height: 180px; /* 16:9 比例 */
            object-fit: cover;
            transition: filter 0.3s ease;
        }

        .map-overlay-filter {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 12px;
            pointer-events: none;
            transition: all 0.3s ease;
        }

        .map-title {
            position: absolute;
            top: 0;
            left: 0;
            background: rgba(0, 0, 0, 0.8);
            color: var(--ss-primary-light);
            padding: 8px 12px;
            border-radius: 12px 0 8px 0;
            font-size: 1rem;
            font-weight: 600;
            backdrop-filter: blur(5px);
            border-bottom: 2px solid var(--ss-primary);
            border-right: 2px solid var(--ss-primary);
            z-index: 2;
        }

        .operator-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 20px;
        }

        .operator-image {
            width: 120px;
            height: 120px; /* 1:1 比例 */
            object-fit: cover;
            border-radius: 50%;
            border: 3px solid var(--ss-primary);
        }

        .operator-name {
            font-size: 1.4rem;
            margin-top: 15px;
            color: var(--ss-primary-light);
            font-weight: 600;
            text-align: center;
        }

        /* 骨架屏样式 */
        .skeleton {
            background: linear-gradient(90deg, var(--ss-border) 25%, #444 50%, var(--ss-border) 75%);
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s infinite;
        }

        @keyframes skeleton-loading {
            0% {
                background-position: 200% 0;
            }
            100% {
                background-position: -200% 0;
            }
        }

        .skeleton-item {
            background: linear-gradient(145deg, var(--ss-bg-mid), var(--ss-bg-light));
            border-radius: 12px;
            padding: 25px;
            border: 1px solid var(--ss-border);
            position: relative;
            overflow: hidden;
        }

        .skeleton-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--ss-primary), var(--ss-primary-light), var(--ss-primary-gold));
        }

        .skeleton-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            justify-content: center;
        }

        .skeleton-title {
            width: 80px;
            height: 20px;
            border-radius: 4px;
        }

        .skeleton-content {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .skeleton-image {
            width: 80px;
            height: 80px;
            border-radius: 8px;
        }

        .skeleton-details {
            flex: 1;
        }

        .skeleton-name {
            width: 120px;
            height: 18px;
            border-radius: 4px;
            margin-bottom: 15px;
        }

        .skeleton-stat {
            width: 100%;
            height: 14px;
            border-radius: 4px;
            margin-bottom: 8px;
        }

        .skeleton-stat:last-child {
            width: 80%;
        }

        .skeleton-map {
            position: relative;
            display: inline-block;
            margin: 20px;
        }

        .skeleton-map-image {
            width: 320px;
            height: 180px;
            border-radius: 12px;
            border: 2px solid var(--ss-border);
        }

        .skeleton-map-title {
            position: absolute;
            top: 0;
            left: 0;
            width: 120px;
            height: 20px;
            border-radius: 12px 0 8px 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            border-bottom: 2px solid var(--ss-primary);
            border-right: 2px solid var(--ss-primary);
        }

        .skeleton-operator {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 20px;
        }

        .skeleton-operator-image {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 3px solid var(--ss-primary);
        }

        .skeleton-operator-name {
            width: 100px;
            height: 20px;
            border-radius: 4px;
            margin-top: 15px;
        }

        .skeleton-task {
            grid-column: 1 / -1;
            background: linear-gradient(145deg, #2a1a1a, #3a2a2a);
            border-color: var(--ss-primary);
        }

        .skeleton-task-description {
            width: 100%;
            height: 30px;
            border-radius: 8px;
            margin-bottom: 10px;
        }

        .skeleton-task-description:last-child {
            margin-bottom: 0;
        }

        /* 公告框样式 */
        .announcement-box {
            position: fixed;
            top: 20px;
            right: -380px;
            width: 430px;
            z-index: 1000;
            transition: right 0.3s ease;
        }

        .announcement-box.show {
            right: 0;
        }

        .announcement-trigger {
            position: absolute;
            top: 0;
            left: 0;
            width: 50px;
            height: 40px;
            background: linear-gradient(135deg, var(--ss-primary), var(--ss-primary-light));
            border-radius: 25px 0 0 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.1);
            z-index: 2;
        }

        .announcement-trigger:hover {
            box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
            background: linear-gradient(135deg, var(--ss-primary-light), var(--ss-primary-gold));
        }

        .announcement-content {
            position: absolute;
            top: 0;
            left: 50px;
            width: 380px;
            max-height: 500px;
            background: rgba(0, 0, 0, 0.95);
            border-radius: 0 15px 15px 15px;
            backdrop-filter: blur(20px);
            border: 1px solid var(--ss-border);
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        .announcement-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background: linear-gradient(135deg, var(--ss-primary), var(--ss-primary-light));
            border-radius: 0 15px 0 0;
        }

        .announcement-header h3 {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
            color: white;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background-color 0.2s ease;
        }

        .close-btn:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .announcement-list {
            max-height: 420px;
            overflow-y: auto;
            padding: 0;
        }

        .announcement-item {
            padding: 15px 20px;
            border-bottom: 1px solid var(--ss-border);
            transition: background-color 0.2s ease;
        }

        .announcement-item:last-child {
            border-bottom: none;
        }

        .announcement-item:hover {
            background-color: rgba(255, 107, 53, 0.05);
        }

        .announcement-date {
            font-size: 12px;
            color: var(--ss-primary);
            margin-bottom: 5px;
            font-weight: 500;
        }

        .announcement-text {
            font-size: 14px;
            line-height: 1.5;
            color: var(--ss-text-main);
        }

        /* 滚动条样式 */
        .announcement-list::-webkit-scrollbar {
            width: 6px;
        }

        .announcement-list::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }

        .announcement-list::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, var(--ss-primary), var(--ss-primary-light));
            border-radius: 3px;
        }

        .announcement-list::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, var(--ss-primary-light), var(--ss-primary-gold));
        }

        /* 公告加载状态样式 */
        .announcement-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
            color: var(--ss-text-sub);
        }

        .loading-spinner-small {
            border: 2px solid var(--ss-border);
            border-top: 2px solid var(--ss-primary);
            border-radius: 50%;
            width: 20px;
            height: 20px;
            animation: spin 1s linear infinite;
            margin-bottom: 10px;
        }

        .announcement-error {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
            color: #dc3545;
            text-align: center;
        }

        .announcement-error-icon {
            font-size: 24px;
            margin-bottom: 10px;
        }

        .announcement-error-text {
            font-size: 14px;
            line-height: 1.4;
        }

        .announcement-retry-btn {
            background: linear-gradient(135deg, var(--ss-primary), var(--ss-primary-light));
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            margin-top: 10px;
            transition: all 0.2s ease;
        }

        .announcement-retry-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
        }

        /* 公告偏好设置样式 */
        .announcement-preference {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 30px 20px;
            text-align: center;
        }

        .preference-icon {
            font-size: 32px;
            margin-bottom: 15px;
        }

        .preference-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--ss-primary);
            margin-bottom: 15px;
        }

        .preference-description {
            font-size: 14px;
            line-height: 1.5;
            color: #ccc;
            margin-bottom: 25px;
            max-width: 280px;
        }

        .preference-buttons {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .preference-btn {
            background: transparent;
            border: 2px solid;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            min-width: 100px;
        }

        .preference-btn-yes {
            border-color: var(--ss-primary);
            color: var(--ss-primary);
        }

        .preference-btn-yes:hover {
            background: var(--ss-primary);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
        }

        .preference-btn-no {
            border-color: #666;
            color: #666;
        }

        .preference-btn-no:hover {
            background: #666;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 102, 102, 0.3);
        }

        /* 公告控制按钮样式 */
        .announcement-control {
            border-top: 1px solid var(--ss-border);
            padding: 15px 20px;
            text-align: center;
            background: rgba(255, 107, 53, 0.05);
        }

        .announcement-control-btn {
            background: transparent;
            border: 2px solid #666;
            color: #666;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.3s ease;
            margin-bottom: 8px;
        }

        .announcement-control-btn:hover {
            background: #666;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(102, 102, 102, 0.3);
        }

        .announcement-control-desc {
            font-size: 11px;
            color: var(--ss-text-sub);
            line-height: 1.3;
        }

        /* 移动端适配 */
        @media (max-width: 768px) {
            .announcement-box {
                top: 10px;
                right: calc(-100vw + 40px);
                width: 100vw;
            }

            .announcement-box.show {
                right: 0;
            }

            .announcement-trigger {
                width: 40px;
                height: 35px;
                font-size: 16px;
            }

            .announcement-content {
                width: calc(100vw - 40px);
                left: 40px;
                border-radius: 0 15px 15px 15px;
                max-height: 70vh;
            }

            .announcement-header {
                border-radius: 0 15px 0 0;
            }

            .announcement-list {
                max-height: calc(70vh - 60px);
            }
        }

        /* 侧边栏样式 */
        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            width: 220px;
            height: 100vh;
            background: linear-gradient(180deg, var(--ss-bg-mid) 0%, var(--ss-bg-light) 100%);
            border-right: 1px solid var(--ss-border);
            z-index: 1000;
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
            overflow-y: auto;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
        }

        .sidebar::-webkit-scrollbar {
            display: none; /* Chrome, Safari and Opera */
        }

        .sidebar.collapsed {
            transform: translateX(-154px);
        }

        .sidebar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px;
            border-bottom: 1px solid var(--ss-border);
            background: rgba(255, 107, 53, 0.1);
        }

        .sidebar-header h3 {
            color: var(--ss-primary);
            font-size: 1.2rem;
            font-weight: 600;
            margin: 0;
        }

        .sidebar-toggle {
            background: rgba(255, 107, 53, 0.2);
            border: 1px solid var(--ss-primary);
            color: var(--ss-primary);
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .sidebar-toggle:hover {
            background: var(--ss-primary);
            color: white;
            transform: scale(1.1);
        }

        .toggle-icon {
            font-size: 12px;
            transition: transform 0.3s ease;
        }

        .sidebar-nav {
            flex: 1;
            padding: 20px 0;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .nav-item {
            display: flex;
            align-items: center;
            padding: 13px 20px;
            text-decoration: none;
            color: var(--ss-text-Label);
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
            position: relative;
        }

        .nav-item:hover {
            background: rgba(255, 107, 53, 0.1);
            color: var(--ss-primary);
            border-left-color: var(--ss-primary);
            transform: translateX(5px);
        }

        .nav-item.active {
            background: rgba(255, 107, 53, 0.15);
            color: var(--ss-primary);
            border-left-color: var(--ss-primary);
            font-weight: 600;
        }

        /* 右侧图标，替代原来的小橙点 */
        .nav-icon-right {
            margin-left: auto;
            opacity: 0;
            transform: translateX(8px);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }

        /* 侧边栏收起时，右侧图标淡入显示 */
        .sidebar.collapsed .nav-icon-right {
            opacity: 1;
            transform: translateX(0);
        }

        /* 展开时隐藏右侧图标 */
        .nav-item.active::before { content: none; }

        .nav-icon {
            font-size: 1.2rem;
            margin-right: 3px;
            min-width: 20px;
            text-align: center;
        }

        .nav-text {
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }

        .sidebar.collapsed .nav-text {
            opacity: 0;
        }

        /* 侧边栏图片展示区域样式 */
        .sidebar-gallery {
            border-top: 1px solid var(--ss-border);
            display: none; /* 默认隐藏，避免初始闪烁 */
        }

        /* 多个广告时的布局样式 */
        .sidebar-gallery.multiple-ads {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .gallery-image-container {
            width: 100%;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            margin: 5px 0;
        }

        .gallery-image {
            width: 100%;
            height: auto;
            object-fit: contain;
            display: block;
            cursor: pointer;
        }

        /* 图片加载失败时的文本回退样式 */
        .ad-fallback-text {
            width: 100%;
            display: block;
            padding: 8px 0px;
            text-align: center;
            font-weight: 600;
            color: var(--ss-text, #fff);
            background: rgba(255, 255, 255, 0.06);
            border-radius: 5px;
        }

        /* 侧边栏收起时隐藏图片 */
        .sidebar.collapsed .sidebar-gallery {
            display: none;
        }
        
        /* 装备页面图片展示区域样式 */
        .loadout-gallery {
            grid-column: 1 / -1;
            width: 100%;
            margin-top: 15px;
            /*padding: 10px;*/
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            border: 1px solid rgba(255, 107, 53, 0.2);
            transition: all 0.3s ease;
            display: none; /* 默认隐藏，避免初始闪烁 */
        }
        
        .loadout-gallery:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 107, 53, 0.4);
        }
        
        .loadout-gallery .gallery-image-container {
            width: 100%;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
        }
        
        .loadout-gallery .gallery-image {
            width: 100%;
            height: auto;
            max-height: 150px;
            object-fit: cover;
            display: block;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .loadout-gallery .ad-fallback-text {
            max-height: 150px;
        }

        .sidebar-footer {
            padding: 8px 16px 8px 8px;
            border-top: 1px solid var(--ss-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .sidebar-footer-left {
            text-align: left;
        }

        .sidebar-footer-login {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            background-color: var(--ss-bg-mid);
            font-size: 0.8rem;
            color: var(--ss-text);
            position: relative;
        }

        .login-bubble {
            position: absolute;
            bottom: 100%;
            right: 0;
            margin-bottom: 8px;
            background: var(--ss-bg-light-card);
            border: 1px solid var(--ss-border);
            border-radius: 8px;
            padding: 8px 0;
            min-width: 100px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            opacity: 0;
            visibility: hidden;
            transform: translateY(5px);
            transition: all 0.2s ease;
        }

        .sidebar-footer-login:hover .login-bubble {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .login-option {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            color: var(--ss-text-main);
            text-decoration: none;
            font-size: 0.85rem;
            white-space: nowrap;
            transition: background 0.2s ease;
        }

        .login-option:hover {
            background: var(--ss-bg-mid);
        }

        .version-info,
        .IPC-info {
            font-size: 0.8rem;
            color: var(--ss-text-sub);
            font-weight: 500;
        }

        /* 主内容区域样式 */
        /* .has-sidebar {
            margin-left: 220px;
            transition: margin-left 0.3s ease;
        } */

        .has-sidebar.sidebar-collapsed {
            margin-left: 60px;
        }

        .main-content {
            background: inherit;
        }

        .page-content {
            opacity: 1;
            transition: opacity 0.2s ease;
        }

        /* 页面特定样式 */
        .quiz-page,
        .stats-page,
        .settings-page,
        .announcements-page {
            padding: 40px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .quiz-header,
        .stats-header,
        .settings-header,
        .announcements-header,
        .tools-header-like,
        .minigames-header-like {
            text-align: center;
            margin-bottom: 40px;
        }

        .quiz-header h2,
        .stats-header h2,
        .settings-header h2,
        .announcements-header h2,
        .tools-header-like h2,
        .minigames-header-like h2 {
            font-size: 2.5rem;
            font-weight: 700;
            background: linear-gradient(45deg, var(--ss-primary), var(--ss-primary-light), var(--ss-primary-gold));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 10px;
        }

        .quiz-header p,
        .stats-header p,
        .settings-header p,
        .announcements-header p,
        .tools-header-like p,
        .minigames-header-like p {
            font-size: 1.1rem;
            color: #aaa;
        }

        /* 公告页面特殊样式 */
        .announcements-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .announcements-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .announcement-card {
            background: linear-gradient(145deg, var(--ss-bg-mid), var(--ss-bg-light-card));
            border-radius: var(--ss-radius);
            padding: 25px;
            border: 1px solid var(--ss-border);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .announcement-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--ss-primary), var(--ss-primary-light), var(--ss-primary-gold));
        }

        .announcement-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
            border-color: var(--ss-primary);
        }

        .announcement-card-date {
            font-size: 0.9rem;
            color: var(--ss-primary);
            font-weight: 600;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }

        .announcement-card-date::before {
            content: '📅';
            margin-right: 8px;
        }

        .announcement-card-content {
            font-size: 1rem;
            line-height: 1.6;
            color: var(--ss-text-main);
        }

        .no-announcements {
            text-align: center;
            padding: 60px 20px;
            color: var(--ss-text-sub);
        }

        .no-announcements-icon {
            font-size: 4rem;
            margin-bottom: 20px;
            opacity: 0.6;
        }

        .no-announcements p {
            font-size: 1.2rem;
            margin: 0;
        }

        .announcements-error {
            text-align: center;
            padding: 60px 20px;
            background: linear-gradient(145deg, #2a1a1a, #3a2a2a);
            border-radius: 12px;
            border: 1px solid #dc3545;
        }

        .announcements-error-icon {
            font-size: 3rem;
            margin-bottom: 20px;
            color: #dc3545;
        }

        .announcements-error h3 {
            color: #dc3545;
            font-size: 1.5rem;
            margin-bottom: 15px;
        }

        .announcements-error p {
            color: #ccc;
            font-size: 1rem;
            margin-bottom: 25px;
            line-height: 1.5;
        }

        .retry-btn {
            background: linear-gradient(135deg, var(--ss-primary), var(--ss-primary-light));
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .retry-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4);
        }

        /* 历史记录页面样式 */
        .history-page {
            padding: 30px;
            max-width: 1000px;
            margin: 0 auto;
        }

        .history-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 2px solid var(--ss-border);
        }

        .history-header h2 {
            color: var(--ss-primary);
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .history-header p {
            color: #ccc;
            font-size: 1.2rem;
            margin-bottom: 20px;
        }

        .history-actions {
            display: flex;
            justify-content: center;
            gap: 15px;
        }

        .clear-history-btn {
            background: linear-gradient(135deg, #dc3545, #c82333);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .clear-history-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
        }

        .history-content {
            width: 100%;
        }

        .history-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .history-record {
            background: linear-gradient(145deg, var(--ss-bg-mid), var(--ss-bg-light-card));
            border-radius: var(--ss-radius);
            padding: 15px;
            border: 1px solid var(--ss-border);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .history-record::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--ss-primary), var(--ss-primary-light), var(--ss-primary-gold));
        }

        .history-record:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
            border-color: var(--ss-primary);
        }

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

        .record-time {
            display: flex;
            align-items: center;
            color: var(--ss-primary);
            font-weight: 600;
            font-size: 1rem;
        }

        .time-icon {
            margin-right: 8px;
            font-size: 1.1rem;
        }

        .record-number {
            background: rgba(255, 107, 53, 0.2);
            color: var(--ss-primary);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .record-options {
            margin-bottom: 20px;
        }

        .options-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .option-tag {
            background: linear-gradient(135deg, var(--ss-border), var(--ss-border-two));
            color: var(--ss-primary-light);
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 500;
            border: 1px solid var(--ss-border-hover);
        }

        .no-options {
            color: var(--ss-text-sub);
            font-size: 0.9rem;
            font-style: italic;
        }

        .accessory-limit {
            padding: 6px 12px;
            background: linear-gradient(135deg, #1a4d3a, #2d5a3d);
            color: #90ee90;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 500;
            border: 1px solid #4a7c59;
            display: inline-block;
        }

        /* 手机版配件限制换行显示 */
        @media (max-width: 768px) {
            .accessory-limit {
                margin-top: 8px;
                display: block;
                width: fit-content;
            }
        }

        .loadout-display {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            padding: 20px;
            border: 1px solid #444;
        }

        /* 紧凑布局样式 */
        .loadout-display.compact {
            padding: 15px;
        }

        .loadout-display.compact .loadout-section {
            margin-bottom: 15px;
        }

        /* 基本信息区域（地图、干员、难度） */
        .basic-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 8px;
        }

        .basic-info-item {
            background: rgba(255, 255, 255, 0.05);
            padding: 8px 12px;
            border-radius: 6px;
            color: var(--ss-text-main);
            font-size: 0.85rem;
            text-align: center;
        }

        /* 主要装备区域（武器、头盔、护甲横向排列） */
        .equipment-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 12px;
        }

        .equipment-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 12px;
            text-align: center;
            transition: all 0.2s ease;
        }

        .equipment-card:hover {
            background: rgba(255, 255, 255, 0.08);
        }

        .equipment-header {
            color: var(--ss-primary-light);
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .equipment-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }

        .equipment-img {
            width: 40px;
            height: 40px;
            object-fit: contain;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            padding: 2px;
        }

        .equipment-name {
            color: var(--ss-text-main);
            font-weight: 600;
            font-size: 0.85rem;
            line-height: 1.2;
            text-align: center;
        }

        .equipment-sub {
            color: #ccc;
            font-size: 0.75rem;
        }

        /* 其他装备区域 */
        .other-equipment-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 6px;
        }

        .other-equipment-item {
            background: rgba(255, 255, 255, 0.05);
            padding: 6px 10px;
            border-radius: 4px;
            color: var(--ss-text-main);
            font-size: 0.8rem;
            text-align: center;
        }

        /* 简化的历史记录布局样式 */
        .loadout-display-simple {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            padding: 12px;
            border: 1px solid var(--ss-border);
        }

        .loadout-display-simple .loadout-section {
            margin-bottom: 10px;
        }

        .loadout-display-simple .loadout-section:last-child {
            margin-bottom: 0;
        }

        /* 基本信息（地图-难度，干员）简化样式 */
        .basic-info-simple {
            margin-bottom: 8px !important;
        }

        .basic-info-text {
            color: var(--ss-text-Label);
            font-size: 0.85rem;
            text-align: center;
            padding: 4px 0;
        }

        /* 主要装备简化样式 */
        .equipment-grid-simple {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            justify-content: center;
        }

        .equipment-card-simple {
            text-align: center;
            padding: 8px 4px;
        }

        .equipment-img-simple {
            width: 70px;
            height: 70px;
            object-fit: contain;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.1);
            padding: 3px;
            margin-bottom: 6px;
        }

        .equipment-name-simple {
            color: var(--ss-text-main);
            font-size: 0.75rem;
            line-height: 1.1;
            margin-bottom: 2px;
        }

        .equipment-level-simple {
            color: var(--ss-primary-light);
            font-size: 0.7rem;
            font-weight: 600;
        }

        /* 其他装备简化样式 */
        .other-equipment-simple {
            margin-top: 8px;
        }

        .other-equipment-text {
            color: #ccc;
            font-size: 0.75rem;
            text-align: center;
            padding: 4px 8px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            line-height: 1.3;
        }

        .loadout-section {
            margin-bottom: 20px;
        }

        .loadout-section:last-child {
            margin-bottom: 0;
        }

        .loadout-section h4 {
            color: var(--ss-primary-light);
            font-size: 1.1rem;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .weapon-info,
        .equipment-info {
            display: flex;
            align-items: center;
            gap: 15px;
            background: rgba(255, 255, 255, 0.05);
            padding: 12px;
            border-radius: 8px;
        }

        .weapon-image,
        .equipment-image {
            width: 50px;
            height: 50px;
            object-fit: contain;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.1);
            padding: 4px;
        }

        .weapon-details,
        .equipment-details {
            flex: 1;
        }

        .weapon-name,
        .equipment-name {
            color: var(--ss-text-main);
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 4px;
        }

        .weapon-type,
        .equipment-level {
            color: #ccc;
            font-size: 0.85rem;
        }

        .other-equipment {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 8px;
        }

        .equipment-item {
            background: rgba(255, 255, 255, 0.05);
            padding: 8px 12px;
            border-radius: 6px;
            color: var(--ss-text-main);
            font-size: 0.9rem;
        }

        .no-history,
        .history-error {
            text-align: center;
            padding: 80px 20px;
            background: linear-gradient(145deg, var(--ss-bg-mid), var(--ss-bg-light-card));
            border-radius: var(--ss-radius);
            border: 1px solid var(--ss-border);
        }

        .no-history-icon,
        .history-error-icon {
            font-size: 4rem;
            margin-bottom: 25px;
            opacity: 0.6;
        }

        .history-error-icon {
            color: #dc3545;
            opacity: 1;
        }

        .no-history h3,
        .history-error h3 {
            color: var(--ss-primary);
            font-size: 1.8rem;
            margin-bottom: 15px;
        }

        .history-error h3 {
            color: #dc3545;
        }

        .no-history p,
        .history-error p {
            color: #ccc;
            font-size: 1.1rem;
            line-height: 1.5;
        }

        /* 设置页面特殊样式 */
        .settings-content {
            text-align: left;
        }

        .setting-group {
            margin-bottom: 30px;
        }

        .setting-group h3 {
            color: var(--ss-primary);
            font-size: 1.2rem;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .setting-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
            cursor: pointer;
            font-size: 1rem;
            color: var(--ss-text-main);
            user-select: none;
            transition: color 0.3s ease;
        }

        .setting-item:hover {
            color: var(--ss-primary);
        }

        .setting-item input[type="checkbox"] {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }

        .setting-item input[type="checkbox"] + span::before {
            content: '';
            display: inline-block;
            width: 20px;
            height: 20px;
            background: var(--ss-border);
            border: 2px solid var(--ss-border-hover);
            border-radius: 4px;
            margin-right: 12px;
            transition: all 0.3s ease;
            vertical-align: middle;
        }

        .setting-item:hover input[type="checkbox"] + span::before {
            border-color: var(--ss-primary);
        }

        .setting-item input[type="checkbox"]:checked + span::before {
            background: linear-gradient(45deg, var(--ss-primary), var(--ss-primary-light));
            border-color: var(--ss-primary);
        }

        .setting-item input[type="checkbox"]:checked + span::after {
            content: '✓';
            position: absolute;
            left: 6px;
            color: white;
            font-size: 14px;
            font-weight: bold;
            margin-left: -18px;
            margin-top: 1px;
        }

        /* 移动端侧边栏适配 */
        @media (max-width: 768px) {
            .sidebar {
                width: 100%;
                transform: translateX(-100%);
                z-index: 1001;
            }

            .sidebar.collapsed {
                transform: translateX(-100%);
            }

            .sidebar:not(.collapsed) {
                transform: translateX(0);
            }

            .has-sidebar {
                margin-left: 0;
            }

            .has-sidebar.sidebar-collapsed {
                margin-left: 0;
            }

            .quiz-page,
            .stats-page,
            .settings-page,
            .announcements-page,
            .history-page {
                padding: 20px;
            }

            /* 工具面板全局遮罩 */
            #toolsGlobalBackdrop {
                position: fixed;
                inset: 0;
                background: rgba(0,0,0,0.45);
                z-index: 98;
                display: none;
            }
            #toolsGlobalBackdrop.show { display: block; }

            .quiz-header h2,
            .stats-header h2,
            .settings-header h2,
            .announcements-header h2,
            .tools-header-like h2 {
                font-size: 2rem;
            }

            .quiz-content,
            .stats-content,
            .settings-content {
                padding: 20px;
            }

            /* 移动端公告页面适配 */
            .announcement-card {
                padding: 20px;
            }

            .announcement-card-date {
                font-size: 0.85rem;
                margin-bottom: 12px;
            }

            .announcement-card-content {
                font-size: 0.95rem;
                line-height: 1.5;
            }

            .no-announcements {
                padding: 40px 20px;
            }

            .no-announcements-icon {
                font-size: 3rem;
                margin-bottom: 15px;
            }

            .no-announcements p {
                font-size: 1.1rem;
            }

            .announcements-error {
                padding: 40px 20px;
            }

            .announcements-error-icon {
                font-size: 2.5rem;
            }

            .announcements-error h3 {
                font-size: 1.3rem;
            }

            .announcements-error p {
                font-size: 0.95rem;
            }

            /* 移动端侧边栏遮罩 */
            .sidebar-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.5);
                z-index: 1000;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.3s ease;
            }

            .sidebar-overlay.show {
                opacity: 1;
                pointer-events: auto;
            }
        }

        /* 悬浮可移动的菜单按钮 */
        .floating-menu-btn {
            position: fixed;
            right: 0px;
            bottom: 80px;
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, var(--ss-primary), var(--ss-primary-light));
            border: none;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
            transition: border-radius 0.3s ease, box-shadow 0.3s ease;
            z-index: 1000;
            touch-action: none;
            user-select: none;
        }

        .floating-menu-btn:hover {
            box-shadow: 0 6px 16px rgba(255, 107, 53, 0.6), 0 3px 6px rgba(0, 0, 0, 0.4);
        }

        .floating-menu-btn:active {
            opacity: 0.9;
        }

        .floating-menu-btn.dragging {
            transition: none;
            opacity: 0.9;
        }

        /* 贴左侧时的样式 */
        .floating-menu-btn.snap-left {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
            border-top-right-radius: 50%;
            border-bottom-right-radius: 50%;
        }

        /* 贴右侧时的样式 */
        .floating-menu-btn.snap-right {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            border-top-left-radius: 50%;
            border-bottom-left-radius: 50%;
        }

        .hamburger {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .hamburger span {
            width: 18px;
            height: 2.5px;
            background: white;
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        @media (max-width: 768px) {
            .floating-menu-btn {
                display: flex;
            }

            /* 历史记录页面移动端样式 */
            .history-header h2 {
                font-size: 2rem;
            }

            .history-header p {
                font-size: 1rem;
            }

            .history-record {
                padding: 12px;
            }

            .record-number {
                position: absolute;
                top: 8px;
                right: 12px;
            }

            .record-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            /* 紧凑布局移动端样式 */
            .loadout-display.compact {
                padding: 12px;
            }

            .basic-info-grid {
                grid-template-columns: 1fr;
                gap: 6px;
            }

            .basic-info-item {
                font-size: 0.8rem;
                padding: 6px 10px;
            }

            .equipment-grid {
                grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
                gap: 8px;
            }

            .equipment-card {
                padding: 8px;
            }

            .equipment-img {
                width: 35px;
                height: 35px;
                object-fit: contain;
            }

            .equipment-name {
                font-size: 0.8rem;
            }

            .equipment-sub {
                font-size: 0.7rem;
            }

            .other-equipment-grid {
                grid-template-columns: 1fr;
                gap: 4px;
            }

            .other-equipment-item {
                font-size: 0.75rem;
                padding: 5px 8px;
            }

            /* 简化布局移动端样式 */
            .loadout-display-simple {
                padding: 8px;
            }

            .basic-info-text {
                font-size: 0.8rem;
            }

            .equipment-grid-simple {
                grid-template-columns: repeat(3, 1fr);
                gap: 6px;
            }

            .equipment-img-simple {
                width: 60px;
                height: 60px;
                object-fit: contain;
            }

            .equipment-name-simple {
                font-size: 0.7rem;
            }

            .equipment-level-simple {
                font-size: 0.65rem;
            }

            .other-equipment-text {
                font-size: 0.7rem;
                padding: 3px 6px;
            }

            .no-history,
            .history-error {
                padding: 60px 20px;
            }

            .no-history-icon,
            .history-error-icon {
                font-size: 3rem;
            }

            .no-history h3,
            .history-error h3 {
                font-size: 1.5rem;
            }

            .no-history p,
            .history-error p {
                font-size: 1rem;
            }
            
            /* 为移动端内容添加顶部间距，避免被头部遮挡 */
            /* .container {
                padding: 80px 0 15px 0;
            } */
        }

        /* 每日密码页面样式 */
        .daily-password-page {
            padding: 40px 20px;
            min-height: auto;
            height: auto;
        }

        /* 确保每日密码页面的主容器能够正确调整高度 */
        .daily-password-active .main-content {
            min-height: auto !important;
            height: auto;
        }

        .daily-password-active .page-content {
            min-height: auto;
            height: auto;
        }

        .password-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .password-header h2 {
            color: var(--ss-primary);
            font-size: 2.5rem;
            margin-bottom: 15px;
            font-weight: 700;
        }

        .update-time {
            color: #ccc;
            font-size: 1.1rem;
            margin: 0;
        }

        .maps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .map-card {
            background: linear-gradient(145deg, var(--ss-bg-mid), var(--ss-bg-light-card));
            border-radius: var(--ss-radius);
            border: 1px solid var(--ss-border);
            overflow: hidden;
            transition: all 0.3s ease;
            opacity: 0;
            position: relative;
            animation: fadeInUp 0.6s ease forwards;
        }

        .map-name {
            background: linear-gradient(135deg, var(--ss-primary), var(--ss-primary-light));
            color: white;
            font-size: 1.2rem;
            font-weight: bold;
            text-align: center;
            padding: 12px 15px;
            margin: 0;
            letter-spacing: 1px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
        }

        .map-password-overlay {
            position: absolute;
            top: 56%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 3.3rem;
            font-weight: 900;
            font-family: 'Arial Black', Arial, sans-serif;
            letter-spacing: 4px;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
            z-index: 10;
        }

        /* 使用animation关键帧而不是初始transform来避免影响容器高度 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .map-card:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3);
            border-color: var(--ss-primary);
        }

        .map-image {
            position: relative;
            width: 100%;
            aspect-ratio: 16/9;
            overflow: hidden;
        }

        .map-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .pwd-map-image {
            position: relative;
            width: 100%;
            aspect-ratio: 16/9;
            overflow: hidden;
        }

        .pwd-map-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .map-card:hover .map-image img {
            transform: scale(1.1);
        }

        /* 每日密码页面移动端适配 */
        @media (max-width: 768px) {
            .daily-password-active .main-content {
                min-height: auto !important;
            }
            
            .password-header h2 {
                font-size: 2rem;
                margin-bottom: 10px;
            }

            .update-time {
                font-size: 1rem;
            }

            .maps-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
                margin-bottom: 30px;
            }

            .map-name {
                font-size: 1rem;
                padding: 8px 10px;
                letter-spacing: 0.5px;
            }

            .map-password-overlay {
                font-size: 2.5rem;
                letter-spacing: 2px;
            }

            .map-image {
                aspect-ratio: 16/9;
            }
            .pwd-map-image {
                aspect-ratio: 16/9;
            }

            .notice {
                flex-direction: column;
                gap: 8px;
                padding: 15px;
            }

            .notice p {
                font-size: 1rem;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .map-name {
                font-size: 0.9rem;
                padding: 6px 8px;
            }

            .map-password-overlay {
                font-size: 1.5rem;
                letter-spacing: 1px;
            }

            .map-image {
                aspect-ratio: 16/9;
            }

            .maps-grid {
                gap: 12px;
            }

            .password-header h2 {
                font-size: 2.8rem;
            }
        }

        /* iframe容器样式 */
        .iframe-container {
            width: 100%;
            height: 100vh;
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: none;
            background: transparent;
        }

        .iframe-container iframe {
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 10px;
            transition: opacity 0.3s ease;
            background: transparent;
        }

        /* 移动端iframe适配 */
        @media (max-width: 768px) {
            .iframe-container {
                height: 100vh;
                border-radius: 8px;
            }
            
            .iframe-container iframe {
                height: 100%;
            }
        }

        /* 移除 iframe 加载动画，因为页面会立即显示 */

        /* 关注弹窗样式 */
        .follow-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        /* Lightbox2 样式修复 - 确保正确的层级和居中显示 */
        .lightbox {
            z-index: 10001 !important;
        }
        
        .lightbox .lb-overlay {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            background: rgba(0, 0, 0, 0.8) !important;
            z-index: 10001 !important;
        }
        
        .lightbox .lb-outerContainer {
            position: fixed !important;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
            z-index: 10002 !important;
        }
        
        .lightbox .lb-container {
            position: relative !important;
        }
        
        .lightbox .lb-image {
            max-width: 90vw !important;
            max-height: 90vh !important;
            width: auto !important;
            height: auto !important;
        }

        .follow-modal-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .follow-modal-content {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 20px;
            padding: 30px;
            max-width: 400px;
            width: 90%;
            text-align: center;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            transform: scale(0.8) translateY(20px);
            transition: all 0.3s ease;
        }

        .follow-modal-overlay.show .follow-modal-content {
            transform: scale(1) translateY(0);
        }

        .follow-modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            color: white;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .follow-modal-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg);
        }

        .follow-modal-image {
            margin-bottom: 20px;
        }

        .cute-gif {
            width: 150px;
            height: 150px;
            border-radius: 15px;
            object-fit: cover;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            animation: cuteBounce 2s ease-in-out infinite;
        }

        @keyframes cuteBounce {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
        }

        .follow-modal-text h3 {
            color: white;
            font-size: 1.5em;
            margin: 0 0 25px 0;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            animation: textGlow 2s ease-in-out infinite;
        }

        @keyframes textGlow {
            0%, 100% {
                text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            }
            50% {
                text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
            }
        }

        .follow-modal-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        .follow-modal-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 25px;
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: none;
            letter-spacing: 0;
        }

        .later-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .later-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .follow-btn {
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
            color: white;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
        }

        .follow-btn:hover {
            background: linear-gradient(45deg, #ee5a24, #ff6b6b);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
        }

        /* 移动端弹窗适配 */
        @media (max-width: 768px) {
            .follow-modal-content {
                padding: 25px 20px;
                max-width: 350px;
            }

            .cute-gif {
                width: 120px;
                height: 120px;
            }

            .follow-modal-text h3 {
                font-size: 1.3em;
            }

            .follow-modal-buttons {
                flex-direction: column;
                gap: 10px;
            }

            .follow-modal-btn {
                width: 100%;
                padding: 15px 20px;
            }
        }

        /* 地图选择下拉框样式 */
        .dropdown-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
        }

        .custom-dropdown {
            position: relative;
            min-width: 120px;
        }

        .dropdown-selected {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: var(--ss-border);
            border: 2px solid var(--ss-border-hover);
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9rem;
            color: var(--ss-text-main);
            transition: all 0.3s ease;
            user-select: none;
        }

        .dropdown-selected:hover {
            border-color: var(--ss-primary);
            box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
        }

        .dropdown-arrow {
            font-size: 0.8rem;
            transition: transform 0.3s ease;
            margin-left: 8px;
        }

        .custom-dropdown.open .dropdown-arrow {
            transform: rotate(180deg);
        }

        .dropdown-options {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #2a2a2a;
            border: 2px solid var(--ss-border-hover);
            border-top: none;
            border-radius: 0 0 4px 4px;
            overflow-y: auto;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        .custom-dropdown.open .dropdown-options {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-option {
            padding: 10px 12px;
            cursor: pointer;
            font-size: 0.9rem;
            color: var(--ss-text-main);
            transition: all 0.2s ease;
            border-bottom: 1px solid #444;
        }

        .dropdown-option:last-child {
            border-bottom: none;
        }

        .dropdown-option:hover {
            background: var(--ss-primary);
            color: white;
        }

        .dropdown-option.selected {
            background: linear-gradient(45deg, var(--ss-primary), var(--ss-primary-light));
            color: white;
        }

        /* 互斥提示样式 */
        .mutual-exclusive-warning {
            color: #ff4444;
            font-size: 0.7rem;
            margin-top: 2px;
            text-align: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .mutual-exclusive-warning.show {
            opacity: 1;
        }

        /* 自定义下拉列表滚动条样式 */
        .dropdown-options::-webkit-scrollbar {
            width: 4px;
        }

        .dropdown-options::-webkit-scrollbar-track {
            background: var(--ss-bg-mid);
            border-radius: 2px;
        }

        .dropdown-options::-webkit-scrollbar-thumb {
            background: linear-gradient(45deg, var(--ss-primary), var(--ss-primary-light), var(--ss-primary-gold));
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        .dropdown-options::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(45deg, #ff8c5a, #ffa43e, #ffe033);
            box-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
        }

        .dropdown-options::-webkit-scrollbar-thumb:active {
            background: linear-gradient(45deg, #e55a2b, #e6821a, #e6c200);
        }
/* 制造台利润布局修复：足够宽度时四列，否则两列；避免挤压与三列 */
.weekly-container.profit-grid {
    display: grid;
    gap: 12px;
}

/* general-container 内部可用宽度约 1168px（1200 - 2*16 padding），达到该宽度再给四列 */
@media (min-width: 1168px) {
    .weekly-container.profit-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 低于该宽度统一两列（含手机端） */
@media (max-width: 1167px) {
    .weekly-container.profit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动端：每个卡片独占一行 */
@media (max-width: 768px) {
    .weekly-container.profit-grid {
        grid-template-columns: 1fr;
    }
}


/* 底部弹出菜单样式 */
.bottom-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bottom-menu.show {
    opacity: 1;
    pointer-events: auto;
}

.bottom-menu-content {
    width: 100%;
    max-height: 70vh;
    background: linear-gradient(145deg, var(--ss-bg-mid), var(--ss-bg-light));
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bottom-menu.show .bottom-menu-content {
    transform: translateY(0);
}

.bottom-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px;
    border-bottom: 1px solid var(--ss-border);
}

.bottom-menu-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ss-primary);
}

.bottom-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--ss-primary);
    color: var(--ss-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bottom-menu-close:hover {
    background: var(--ss-primary);
    color: white;
    transform: rotate(90deg);
}

.bottom-menu-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.bottom-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--ss-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bottom-menu-item.active {
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.2), rgba(247, 147, 30, 0.2));
    border-color: var(--ss-primary);
}

.bottom-menu-item i {
    width: 24px;
    height: 24px;
    color: var(--ss-primary);
}

.bottom-menu-item span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ss-text-main);
}

.bottom-menu-item.active span {
    color: var(--ss-primary-light);
    font-weight: 600;
}


/* 地图和设置按钮容器 */
.map-and-settings {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
}

/* 设置按钮样式 - 与下拉框保持一致 */
.settings-btn {
    padding: 8px 12px;
    background: var(--ss-border);
    border: 2px solid var(--ss-border-hover);
    border-radius: 4px;
    color: var(--ss-text-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.settings-btn:hover {
    border-color: var(--ss-primary);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.settings-btn:focus {
    outline: none;
}

/* 设置弹窗样式 */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.settings-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.settings-modal-content {
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: linear-gradient(145deg, var(--ss-bg-mid), var(--ss-bg-light));
    border-radius: 16px;
    border: 1px solid var(--ss-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.settings-modal.show .settings-modal-content {
    transform: scale(1);
}

.settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--ss-border);
}

.settings-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ss-text-main);
}

.settings-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--ss-bg-light-card);
    border: 1px solid var(--ss-border);
    color: var(--ss-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.settings-modal-close:hover {
    border-color: var(--ss-primary);
    color: var(--ss-primary);
}

.settings-modal-close:focus {
    outline: none;
}

.settings-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.settings-option {
    margin-bottom: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--ss-border);
    cursor: pointer;
    display: block;
    transition: border-color 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.settings-option:hover {
    border-color: var(--ss-border-hover);
}

.settings-option:focus {
    outline: none;
}

.settings-description {
    display: block;
    font-size: 0.85rem;
    color: var(--ss-text-sub);
    margin-top: 5px;
    margin-left: 26px;
    pointer-events: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .map-and-settings {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
    
    .settings-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .settings-modal-header {
        padding: 15px;
    }
    
    .settings-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .settings-modal-body {
        padding: 15px;
    }
    
    .settings-section {
        margin-bottom: 20px;
    }
    
    .settings-option {
        padding: 10px;
    }
}
