* { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #87CEEB 0%, #98FB98 50%, #90EE90 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        .game-container {
            background: white;
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            max-width: 1200px;
            width: 100%;
        }
        h1 {
            text-align: center;
            color: #228B22;
            margin-bottom: 20px;
            font-size: 2.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }
        .game-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }
        .info-card {
            background: #F0FFF0;
            padding: 10px;
            border-radius: 10px;
            text-align: center;
            border: 2px solid #32CD32;
        }
        .info-label {
            color: #228B22;
            font-size: 0.8rem;
            margin-bottom: 5px;
            font-weight: bold;
        }
        .info-value {
            color: #4A4A4A;
            font-size: 1.1rem;
            font-weight: bold;
        }
        .controls {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        button {
            background: #32CD32;
            color: white;
            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: #228B22;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        button:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }
        .game-board {
            display: grid;
            grid-template-columns: 3fr 1fr;
            gap: 20px;
            margin: 20px 0;
            min-height: 500px;
        }
        .lawn {
            background: #90EE90;
            border-radius: 15px;
            padding: 15px;
            border: 2px solid #32CD32;
        }
        .grid {
            display: grid;
            grid-template-columns: repeat(9, 1fr);
            grid-template-rows: repeat(5, 1fr);
            gap: 2px;
            height: 400px;
            background: #228B22;
            border-radius: 10px;
            padding: 5px;
        }
        .cell {
            background: #90EE90;
            border-radius: 5px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            border: 1px solid #32CD32;
        }
        .cell:hover {
            background: #98FB98;
            transform: scale(1.05);
        }
        .cell.selected {
            border-color: #FFD700;
            background: #FFFFE0;
        }
        .plant, .zombie {
            position: absolute;
            width: 80%;
            height: 80%;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            color: white;
            font-size: 1.2rem;
        }
        .plant.peashooter { background: #32CD32; }
        .plant.sunflower { background: #FFD700; color: black; }
        .plant.walnut { background: #8B4513; }
        .plant.cherry { background: #DC143C; }
        .zombie.basic { background: #696969; }
        .zombie.cone { background: #8B4513; }
        .zombie.bucket { background: #2F4F4F; }
        .control-panel {
            background: #F0FFF0;
            border-radius: 15px;
            padding: 15px;
            border: 2px solid #32CD32;
        }
        .section-title {
            text-align: center;
            color: #228B22;
            font-weight: bold;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }
        .plant-menu {
            margin-bottom: 20px;
        }
        .plant-item {
            background: white;
            border-radius: 8px;
            padding: 10px;
            margin: 8px 0;
            border: 2px solid #32CD32;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .plant-item:hover {
            transform: scale(1.02);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .plant-item.affordable {
            border-color: #228B22;
        }
        .plant-item.expensive {
            border-color: #DC143C;
            opacity: 0.7;
        }
        .plant-item.selected {
            border-color: #FFD700;
            background: #FFFFE0;
        }
        .plant-name {
            font-weight: bold;
            color: #228B22;
            margin-bottom: 5px;
        }
        .plant-cost {
            font-size: 0.8rem;
            color: #666;
        }
        .sun-counter {
            background: #FFD700;
            color: black;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            margin-bottom: 15px;
            font-size: 1.2rem;
            font-weight: bold;
        }
        .wave-info {
            background: #FFE4E1;
            border: 2px solid #DC143C;
            border-radius: 10px;
            padding: 10px;
            margin-bottom: 15px;
            text-align: center;
        }
        .projectile {
            position: absolute;
            width: 10px;
            height: 10px;
            background: #32CD32;
            border-radius: 50%;
            z-index: 10;
            transition: all 0.5s linear;
        }
        .sun {
            position: absolute;
            width: 30px;
            height: 30px;
            background: #FFD700;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            color: black;
            cursor: pointer;
            animation: sunFall 3s linear;
            z-index: 20;
        }
        @keyframes sunFall {
            from { top: 0; }
            to { top: 300px; }
        }
        .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: white;
            padding: 40px;
            border-radius: 20px;
            text-align: center;
            animation: victoryPop 0.5s ease-out;
            border: 3px solid #32CD32;
        }
        @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; }
            .grid { grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(4, 1fr); height: 300px; }
        }