        /* 样式保持不变 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            touch-action: manipulation;
        }
        
        body {
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #0c1e2c, #1a3a5f, #2a4b7c);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 15px;
            color: #fff;
            overflow-x: hidden;
            perspective: 1000px;
        }
        
        body::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(255,255,255,0.04) 0%, transparent 20%);
            z-index: -1;
        }
        
        .header {
            text-align: center;
            padding: 20px 0;
            width: 100%;
            max-width: 900px;
            margin-bottom: 10px;
            position: relative;
            transform: translateZ(20px);
        }
        
        h1 {
            font-size: 2.2rem;
            margin-bottom: 10px;
            text-shadow: 
                0 1px 0 #ccc, 
                0 2px 0 #c9c9c9,
                0 3px 0 #bbb,
                0 4px 0 #b9b9b9,
                0 5px 0 #aaa,
                0 6px 1px rgba(0,0,0,0.1),
                0 0 5px rgba(0,0,0,0.1),
                0 1px 3px rgba(0,0,0,0.3),
                0 3px 5px rgba(0,0,0,0.2),
                0 5px 10px rgba(0,0,0,0.25),
                0 10px 10px rgba(0,0,0,0.2),
                0 20px 20px rgba(0,0,0,0.15);
            background: linear-gradient(to right, #ffd700, #ff9800);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: 2px;
            position: relative;
            display: inline-block;
            transform: translateZ(30px);
        }
        
        .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            margin: 15px 0;
            color: #e0e0e0;
        }
        
        .stats-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin: 15px 0;
            width: 100%;
            transform: translateZ(15px);
        }
        
        .stat-box {
            background: rgba(0, 0, 0, 0.3);
            padding: 12px 15px;
            border-radius: 15px;
            text-align: center;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
            position: relative;
            overflow: hidden;
            transform: translateZ(20px);
        }
        
        .stat-box::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
        }
        
        .stat-value {
            font-size: 1.8rem;
            font-weight: bold;
            color: #ffd700;
            line-height: 1.1;
        }
        
        .stat-label {
            font-size: 0.9rem;
            opacity: 0.8;
            line-height: 1.1;
            margin-top: 5px;
        }
        
        .game-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            width: 100%;
            max-width: 900px;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(12px);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 
                0 15px 35px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(255,255,255,0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            margin-bottom: 20px;
            transform: translateZ(30px);
        }
        
        .player-info {
            display: flex;
            justify-content: space-between;
            width: 100%;
            max-width: 600px;
            margin-bottom: 15px;
            height: 40px;
            transform: translateZ(20px);
        }
        
        .player {
            display: flex;
            flex-direction: row;
            align-items: center;
            padding: 5px 15px;
            border-radius: 15px;
            background: rgba(0, 0, 0, 0.25);
            width: 45%;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 15px rgba(0,0,0,0.3);
            transform-style: preserve-3d;
            height: 100%;
            gap: 10px;
        }
        
        .player.active {
            background: rgba(255, 215, 0, 0.15);
            transform: scale(1.03) translateZ(10px);
            box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
        }
        
        .player.active::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(to right, #ffd700, #ff9800);
        }
        
        .player-icon {
            font-size: 1.8rem;
        }
        
        .player-black .player-icon {
            color: #111;
        }
        
        .player-white .player-icon {
            color: #fff;
        }
        
        .player-name {
            font-size: 1.1rem;
            font-weight: bold;
        }
        
        .player-type {
            font-size: 0.85rem;
            opacity: 0.8;
            background: rgba(255,255,255,0.1);
            padding: 2px 8px;
            border-radius: 10px;
        }
        
        .game-area {
            display: flex;
            width: 100%;
            gap: 10px;
            align-items: flex-start;
        }
        
        .left-panel {
            display: flex;
            flex-direction: column;
            gap: 20px;
            min-width: 120px;
            width: 120px;
        }
        
        .difficulty-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }
        
        .difficulty {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .difficulty-title {
            font-size: 1.1rem;
            text-align: center;
            font-weight: bold;
            color: #ffd700;
            margin-bottom: 5px;
        }
        
        .difficulty-btn {
            padding: 10px 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s;
            border: 2px solid transparent;
            font-weight: 500;
            box-shadow: 0 5px 10px rgba(0,0,0,0.2);
            transform: translateZ(15px);
            text-align: center;
            white-space: nowrap;
        }
        
        .difficulty-btn.active {
            background: rgba(255, 215, 0, 0.2);
            border-color: #ffd700;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
            transform: translateZ(20px);
        }
        
        .difficulty-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-3px) translateZ(18px);
        }
        
        .game-board-container {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }
        
        .game-board {
            position: relative;
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            background: #d6a65c;
            border-radius: 8px;
            box-shadow: 
                0 15px 30px rgba(0, 0, 0, 0.6),
                inset 0 0 30px rgba(0,0,0,0.2);
            overflow: hidden;
            transform: translateZ(40px) rotateX(2deg);
            border: 8px solid #b88c4a;
            border-top: 10px solid #a67c3a;
            border-bottom: 10px solid #a67c3a;
        }
        
        #boardCanvas {
            width: 100%;
            height: auto;
            display: block;
            touch-action: none;
        }
        
        .controls-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 15px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 15px;
            min-width: 130px;
            width: 130px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }
        
        .controls-title {
            font-size: 1.1rem;
            text-align: center;
            font-weight: bold;
            color: #ffd700;
            margin-bottom: 5px;
        }
        
        .controls {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .btn {
            padding: 14px 10px;
            font-size: 0.95rem;
            color: white;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
            box-shadow: 
                0 5px 15px rgba(0, 0, 0, 0.4),
                inset 0 0 10px rgba(255,255,255,0.2);
            position: relative;
            overflow: hidden;
            transform: translateZ(15px);
            border-bottom: 3px solid rgba(0,0,0,0.2);
            justify-content: center;
            white-space: nowrap;
        }
        
        .btn::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: 0.5s;
        }
        
        .btn:hover::before {
            left: 100%;
        }
        
        .btn i {
            font-size: 1.1rem;
        }
        
        .btn-primary {
            background: linear-gradient(to right, #ff9800, #ff5722);
        }
        
        .btn-secondary {
            background: linear-gradient(to right, #2196f3, #3f51b5);
        }
        
        .btn-success {
            background: linear-gradient(to right, #4caf50, #2e7d32);
        }
        
        .btn:hover {
            transform: translateY(-5px) translateZ(20px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
        }
        
        .btn:active {
            transform: translateY(2px) translateZ(15px);
        }
        
        .game-status {
            font-size: 1.4rem;
            font-weight: bold;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            margin: 5px auto;
            padding: 10px 25px;
            border-radius: 15px;
            background: rgba(0, 0, 0, 0.3);
            width: 100%;
            max-width: 600px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            transform: translateZ(25px);
        }
        
        .win-message {
            color: #ffeb3b;
            text-shadow: 
                0 0 15px rgba(255, 235, 59, 0.7),
                0 0 30px rgba(255, 235, 59, 0.4);
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0% { 
                transform: scale(1);
                text-shadow: 
                    0 0 10px rgba(255, 235, 59, 0.7),
                    0 0 20px rgba(255, 235, 59, 0.4);
            }
            50% { 
                transform: scale(1.05);
                text-shadow: 
                    0 0 20px rgba(255, 235, 59, 0.8),
                    0 0 40px rgba(255, 235, 59, 0.6);
            }
            100% { 
                transform: scale(1);
                text-shadow: 
                    0 0 10px rgba(255, 235, 59, 0.7),
                    0 0 20px rgba(255, 235, 59, 0.4);
            }
        }
        
        .instructions {
            max-width: 900px;
            margin: 20px 0 30px;
            background: rgba(0, 0, 0, 0.3);
            padding: 20px;
            border-radius: 15px;
            font-size: 1rem;
            line-height: 1.6;
            box-shadow: 0 10px 25px rgba(0,0,0,0.3);
            transform: translateZ(20px);
            border: 1px solid rgba(255,255,255,0.1);
            width: 100%;
        }
        
        .instructions h2 {
            margin-bottom: 15px;
            color: #ffd700;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .instructions ul {
            padding-left: 20px;
        }
        
        .instructions li {
            margin-bottom: 10px;
            position: relative;
            padding-left: 10px;
        }
        
        .instructions li::before {
            content: "•";
            color: #ff9800;
            position: absolute;
            left: -15px;
            font-size: 1.5rem;
            line-height: 1;
        }
        
        .language-selector {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 100;
            transform: translateZ(30px);
            display: flex;
            gap: 8px;
        }
        
        .lang-btn {
            padding: 8px 15px;
            background: rgba(255,255,255,0.15);
            border: none;
            border-radius: 8px;
            color: white;
            font-weight: bold;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            transition: all 0.3s;
            transform: translateZ(15px);
            border-bottom: 2px solid rgba(0,0,0,0.2);
        }
        
        .lang-btn:hover {
            background: rgba(255,255,255,0.25);
            transform: translateY(-3px) translateZ(20px);
        }
        
        .lang-btn:active {
            transform: translateY(1px) translateZ(15px);
        }
        
        footer {
            margin-top: 10px;
            text-align: center;
            font-size: 0.9rem;
            opacity: 0.8;
            padding: 15px;
            width: 100%;
            transform: translateZ(10px);
        }
        
        /* 移动端优化 - 放大棋盘 */
        @media (max-width: 850px) {
            .game-area {
                flex-direction: column;
            }
            
            .left-panel {
                width: 100%;
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: space-between;
                min-width: auto;
                width: 100%;
            }
            
            .difficulty-container, .stats-container, .controls-container {
                width: 100%;
                padding: 10px;
                background: rgba(0, 0, 0, 0.3);
                min-width: auto;
            }
            
            .controls-container {
                width: 100%;
            }
            
            .difficulty, .controls {
                flex-direction: row;
                flex-wrap: nowrap;
                justify-content: flex-start;
                overflow-x: auto;
                padding-bottom: 10px;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }
            
            .difficulty::-webkit-scrollbar, .controls::-webkit-scrollbar {
                display: none;
            }
            
            .difficulty::after, .controls::after {
                content: "";
                position: absolute;
                right: 15px;
                bottom: 15px;
                width: 20px;
                height: 20px;
                background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffd700"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>') no-repeat center;
                background-size: contain;
                opacity: 0.7;
                animation: bounceX 1.5s infinite;
            }
            
            @keyframes bounceX {
                0%, 100% { transform: translateX(0); }
                50% { transform: translateX(5px); }
            }
            
            .difficulty-title, .controls-title {
                margin-bottom: 12px;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            
            .difficulty-title::after, .controls-title::after {
                content: "← 滑动 →";
                font-size: 0.8rem;
                color: #ffd700;
                opacity: 0.7;
                margin-left: 10px;
            }
            
            .difficulty-btn, .btn {
                padding: 12px 16px;
                font-size: 1rem;
                min-width: 100px;
                flex-shrink: 0;
                margin-right: 8px;
            }
            
            .difficulty-btn:last-child, .btn:last-child {
                margin-right: 0;
            }
            
            .stats-container {
                flex-direction: row;
                flex-wrap: wrap;
            }
            
            .stat-box {
                min-width: 120px;
                flex: 1;
            }
            
            /* 移动端棋盘放大 */
            .game-board {
                max-width: 100%;
                max-height: 80vh;
            }
            
            .game-board-container {
                width: 100%;
            }
        }
        
        @media (max-width: 650px) {
            h1 {
                font-size: 2.2rem;
            }
            
            .subtitle {
                font-size: 1rem;
            }
            
            .game-container {
                padding: 15px;
            }
            
            .player {
                padding: 5px 10px;
            }
            
            .player-icon {
                font-size: 1.5rem;
            }
            
            .player-name {
                font-size: 1rem;
            }
            
            .btn {
                padding: 12px 15px;
                font-size: 0.95rem;
            }
            
            .game-status {
                font-size: 1.3rem;
                padding: 10px 15px;
            }
            
            .stat-box {
                padding: 5px 10px;
                min-width: 100px;
            }
            
            .stat-value {
                font-size: 1.5rem;
            }
            
            .instructions {
                padding: 15px;
            }
        }
        
        @media (max-width: 480px) {
            .stats-container {
                gap: 8px;
            }
            
            .stat-box {
                min-width: 0;
                padding: 5px;
                width: 33.33%;
            }
            
            .player-info {
                flex-direction: column;
                height: auto;
                gap: 10px;
            }
            
            .player {
                width: 100%;
                max-width: 300px;
                height: 40px;
            }
            
            .difficulty-btn, .btn {
                padding: 10px 12px;
                font-size: 0.9rem;
                min-width: 85px;
            }
            
            .language-selector {
                top: 20px;
                right: 10px;
            }
            
            .lang-btn {
                padding: 6px 10px;
                font-size: 0.85rem;
            }
        }
        
        @media (max-width: 350px) {
            .difficulty-btn, .btn {
                padding: 8px 10px;
                font-size: 0.85rem;
                min-width: 75px;
            }
            
            .difficulty-title::after, .controls-title::after {
                content: "← →";
                font-size: 0.7rem;
            }
        }
