        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
            color: #e0e0e0;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
            transition: all 0.8s ease;
        }

        .header.compact {
            text-align: left;
            margin-bottom: 20px;
            background: rgba(0, 0, 0, 0.8);
            padding: 10px 20px;
            border-radius: 8px;
            backdrop-filter: blur(10px);
            border: 1px solid #333;
        }

        .title {
            font-size: 3rem;
            font-weight: 700;
            background: linear-gradient(45deg, #ff6b35, #f7931e, #ffd700);
            -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;
            transition: all 0.8s ease;
        }

        .header.compact .title {
            font-size: 1.5rem;
            margin-bottom: 0;
        }

        .subtitle {
            font-size: 1.2rem;
            color: #888;
            font-weight: 300;
            opacity: 1;
            transition: opacity 0.5s ease;
        }

        .subtitle.hiding {
            opacity: 0;
        }

        .header.compact .subtitle {
            display: none;
        }

        .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, #ff6b35, #f7931e);
            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: #e0e0e0;
            font-weight: 500;
            user-select: none;
        }

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

        .checkmark {
            position: relative;
            height: 18px;
            width: 18px;
            background: #333;
            border: 2px solid #555;
            border-radius: 4px;
            margin-right: 8px;
            transition: all 0.3s ease;
        }

        .checkbox-container:hover .checkmark {
            border-color: #ff6b35;
            box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
        }

        .checkbox-container input:checked ~ .checkmark {
            background: linear-gradient(45deg, #ff6b35, #f7931e);
            border-color: #ff6b35;
        }

        .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: #888;
            text-align: center;
            max-width: 100px;
        }

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

        .spinner {
            border: 3px solid #333;
            border-top: 3px solid #ff6b35;
            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,
        .version-update-overlay {
            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,
        .version-update-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }

        .fullscreen-loading.hidden,
        .version-update-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .fullscreen-loading-content,
        .version-update-content {
            text-align: center;
            color: #e0e0e0;
        }

        .loading-spinner {
            border: 4px solid #333;
            border-top: 4px solid #ff6b35;
            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: #ff6b35;
            margin: 0;
        }

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

        .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, #1a1a1a, #2a2a2a);
            border-radius: 12px;
            padding: 25px;
            border: 1px solid #333;
            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, #ff6b35, #f7931e, #ffd700);
        }

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

        .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: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .item-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: #ff6b35;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

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

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

        .item-details {
            flex: 1;
        }

        .item-name {
            font-size: 1.1rem;
            font-weight: 600;
            color: #e0e0e0;
            margin-bottom: 10px;
        }

        .equipment-note {
            font-size: 0.85rem;
            color: #888;
            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: #ffd700;
            font-weight: 600;
        }

        .protect-level {
            display: inline-block;
            color: #e0e0e0;
            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: #666;
        }

        .protect-level-1 {
            border-color: #666;
        }

        .protect-level-2 {
            border-color: #006f2d;
        }

        .protect-level-3 {
            border-color: #1b576d;
        }

        .protect-level-4 {
            border-color: #4D1894;
        }

        .protect-level-5 {
            border-color: #d3621c;
        }

        .protect-level-6 {
            border-color: #972529;
        }

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

        .armor-item-image-0 {
            background: #333;
        }

        .armor-item-image-1 {
            background: #666;
        }

        .armor-item-image-2 {
            background: #006f2d;
        }

        .armor-item-image-3 {
            background: #1b576d;
        }

        .armor-item-image-4 {
            background: #4D1894;
        }

        .armor-item-image-5 {
            background: #D3621C;
        }

        .armor-item-image-6 {
            background: #972529;
        }

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

        .special-task .item-title {
            color: #ffd700;
        }

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

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

        .task-title {
            color: #ffd700;
            font-weight: 600;
        }

        .task-content {
            color: #e0e0e0;
            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;
        }

        .stats-container {
            margin-top: 40px;
            text-align: center;
            padding: 20px;
            border-top: 1px solid #333;
        }

        .stats-text {
            color: #888;
            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: 10px;
            }
            
            .header.compact {
                text-align: center;
                background: none;
                padding: 0;
                border: none;
                backdrop-filter: none;
            }
            
            .header.compact .title {
                font-size: 2rem;
                display: block;
                margin-right: 0;
                margin-bottom: 0;
            }
            
            .header.compact .subtitle {
                display: none;
            }
            
            .control-section {
                flex-direction: column;
                gap: 20px;
            }
            
            .options-container {
                gap: 15px;
            }
            
            .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 #333;
                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: #ffd700;
                padding: 6px 10px;
                border-radius: 12px 0 8px 0;
                font-size: 0.9rem;
                font-weight: 600;
                backdrop-filter: blur(5px);
                border-bottom: 2px solid #ff6b35;
                border-right: 2px solid #ff6b35;
                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 #ff6b35;
                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 #ff6b35;
                white-space: nowrap;
                backdrop-filter: blur(10px);
                max-width: 100px;
                overflow: hidden;
                text-overflow: ellipsis;
                color: #ffd700;
                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 #ff6b35;
            }
            
            .operator-container:not(.mobile-floating) .operator-name {
                font-size: 1.4rem;
                margin-top: 15px;
                color: #ffd700;
                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-top: 30px;
                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 #333;
            }
            
            .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 #ff6b35;
                border-right: 2px solid #ff6b35;
            }
            
            .operator-container.mobile-floating .skeleton-operator-image {
                width: 60px;
                height: 60px;
                border-radius: 50%;
                border: 2px solid #ff6b35;
            }
            
            .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;
        }

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

        .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 #333;
            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: #ffd700;
            padding: 8px 12px;
            border-radius: 12px 0 8px 0;
            font-size: 1rem;
            font-weight: 600;
            backdrop-filter: blur(5px);
            border-bottom: 2px solid #ff6b35;
            border-right: 2px solid #ff6b35;
            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 #ff6b35;
        }

        .operator-name {
            font-size: 1.4rem;
            margin-top: 15px;
            color: #ffd700;
            font-weight: 600;
            text-align: center;
        }

        /* 骨架屏样式 */
        .skeleton {
            background: linear-gradient(90deg, #333 25%, #444 50%, #333 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, #1a1a1a, #2a2a2a);
            border-radius: 12px;
            padding: 25px;
            border: 1px solid #333;
            position: relative;
            overflow: hidden;
        }

        .skeleton-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #ff6b35, #f7931e, #ffd700);
        }

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

        .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 #ff6b35;
            border-right: 2px solid #ff6b35;
        }

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

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

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

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