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

        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            color: white;
        }

        .game-container {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            max-width: 1400px;
            width: 100%;
            backdrop-filter: blur(10px);
        }

        h1 {
            text-align: center;
            color: #00d4ff;
            margin-bottom: 20px;
            font-size: 2.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .game-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 10px;
            margin-bottom: 20px;
        }

        .info-card {
            background: rgba(0, 212, 255, 0.2);
            padding: 10px;
            border-radius: 10px;
            text-align: center;
            border: 1px solid #00d4ff;
        }

        .info-label {
            color: #00d4ff;
            font-size: 0.8rem;
            margin-bottom: 5px;
            font-weight: bold;
        }

        .info-value {
            color: white;
            font-size: 1.1rem;
            font-weight: bold;
        }

        .controls {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        button {
            background: #00d4ff;
            color: #1a1a2e;
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        button:hover {
            background: #00b8e6;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
        }

        button:disabled {
            background: #666;
            cursor: not-allowed;
            transform: none;
        }

        .game-board {
            display: grid;
            grid-template-columns: 3fr 1fr;
            gap: 20px;
            margin: 20px 0;
            min-height: 600px;
        }

        .battlefield {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 15px;
            padding: 15px;
            border: 2px solid #00d4ff;
            position: relative;
        }

        .map-grid {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            grid-template-rows: repeat(8, 1fr);
            gap: 1px;
            height: 480px;
            background: #0f3460;
            border-radius: 10px;
            padding: 5px;
        }

        .cell {
            background: #1a1a2e;
            border-radius: 3px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 0.7rem;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            border: 1px solid #16213e;
        }

        .cell:hover {
            background: rgba(0, 212, 255, 0.2);
        }

        .cell.selected {
            border-color: #00d4ff;
            background: rgba(0, 212, 255, 0.3);
        }

        .cell.resource {
            background: #ffd700;
            color: black;
        }

        .cell.base {
            background: #32cd32;
            color: black;
        }

        .cell.enemy-base {
            background: #ff4500;
            color: white;
        }

        .unit {
            position: absolute;
            width: 80%;
            height: 80%;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 0.6rem;
            font-weight: bold;
            color: white;
            z-index: 10;
            transition: all 0.5s ease;
        }

        .unit.player { border: 2px solid #00d4ff; background: #0080ff; }
        .unit.enemy { border: 2px solid #ff4500; background: #ff6500; }

        .unit.marine { background: #0080ff; }
        .unit.tank { background: #4169e1; }
        .unit.aircraft { background: #1e90ff; }

        .unit.enemy-marine { background: #ff6500; }
        .unit.enemy-tank { background: #ff4500; }
        .unit.enemy-aircraft { background: #ff6347; }

        .control-panel {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 15px;
            padding: 15px;
            border: 2px solid #00d4ff;
        }

        .section-title {
            text-align: center;
            color: #00d4ff;
            font-weight: bold;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .resource-display {
            background: rgba(0, 212, 255, 0.1);
            padding: 10px;
            border-radius: 10px;
            margin-bottom: 15px;
        }

        .resource-item {
            display: flex;
            justify-content: space-between;
            margin: 5px 0;
            color: white;
        }

        .build-menu {
            margin-bottom: 20px;
        }

        .build-item {
            background: rgba(0, 212, 255, 0.2);
            border-radius: 8px;
            padding: 10px;
            margin: 8px 0;
            border: 1px solid #00d4ff;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .build-item:hover {
            background: rgba(0, 212, 255, 0.3);
            transform: scale(1.02);
        }

        .build-item.affordable {
            border-color: #32cd32;
        }

        .build-item.expensive {
            border-color: #ff4500;
            opacity: 0.6;
        }

        .unit-name {
            font-weight: bold;
            color: #00d4ff;
            margin-bottom: 5px;
        }

        .unit-cost {
            font-size: 0.8rem;
            color: #ccc;
        }

        .unit-stats {
            font-size: 0.8rem;
            color: #32cd32;
            margin-top: 5px;
        }

        .action-buttons {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .action-btn {
            background: rgba(0, 212, 255, 0.3);
            color: white;
            border: 1px solid #00d4ff;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .action-btn:hover {
            background: rgba(0, 212, 255, 0.5);
        }

        .action-btn:disabled {
            background: rgba(102, 102, 102, 0.3);
            border-color: #666;
            cursor: not-allowed;
        }

        .minimap {
            background: rgba(0, 0, 0, 0.5);
            border-radius: 10px;
            padding: 10px;
            margin-top: 15px;
            height: 120px;
        }

        .minimap-grid {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            grid-template-rows: repeat(8, 1fr);
            gap: 1px;
            height: 100%;
        }

        .minimap-cell {
            background: #1a1a2e;
            border-radius: 1px;
        }

        .minimap-cell.player { background: #00d4ff; }
        .minimap-cell.enemy { background: #ff4500; }
        .minimap-cell.resource { background: #ffd700; }

        .game-log {
            background: rgba(0, 0, 0, 0.5);
            border-radius: 10px;
            padding: 10px;
            margin-top: 15px;
            height: 150px;
            overflow-y: auto;
        }

        .log-entry {
            font-size: 0.8rem;
            color: #ccc;
            margin: 2px 0;
            padding: 2px 5px;
            border-radius: 3px;
        }

        .log-entry.combat {
            background: rgba(255, 69, 0, 0.2);
            color: #ff6347;
        }

        .log-entry.build {
            background: rgba(50, 205, 50, 0.2);
            color: #90ee90;
        }

        .log-entry.resource {
            background: rgba(255, 215, 0, 0.2);
            color: #ffd700;
        }

        .health-bar {
            position: absolute;
            bottom: -5px;
            left: 10%;
            width: 80%;
            height: 3px;
            background: rgba(255, 0, 0, 0.5);
            border-radius: 2px;
        }

        .health-fill {
            background: #32cd32;
            height: 100%;
            border-radius: 2px;
            transition: width 0.3s ease;
        }

        .victory-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .victory-content {
            background: linear-gradient(135deg, #1a1a2e, #16213e);
            padding: 40px;
            border-radius: 20px;
            text-align: center;
            animation: victoryPop 0.5s ease-out;
            border: 3px solid #00d4ff;
            color: white;
        }

        @keyframes victoryPop {
            0% { transform: scale(0.5); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }

        @media (max-width: 768px) {
            .game-container {
                padding: 15px;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .game-board {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .map-grid {
                grid-template-columns: repeat(8, 1fr);
                grid-template-rows: repeat(6, 1fr);
                height: 300px;
            }
            
            .game-info {
                grid-template-columns: repeat(3, 1fr);
            }
        }