    :root {
            --primary-color: #4CAF50;
            --secondary-color: #2196F3;
            --success-color: #4CAF50;
            --error-color: #f44336;
             --wechat-green: #2ecc71;
            --text-color: #2c3e50;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }


        body {
            font-family: 'Arial', sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            padding: 15px;
            background: #f0f2f5;
        }

        .game-title {
            font-size: clamp(1rem, 6vw, 2.5rem);
            margin: 2px 0;
            background: linear-gradient(135deg, #4CAF50, #2196F3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-align: center;
            line-height: 1.3;
            padding: 0 10px;
            position: relative;
            
   
        }
        
 
        .game-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #4CAF50, transparent);
        }

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

        .mode-btn {
            padding: clamp(10px, 3vw, 12px) clamp(20px, 5vw, 24px);
            border-radius: 30px;
            cursor: pointer;
            font-size: clamp(0.9rem, 4vw, 1rem);
            transition: all 0.3s ease;
            border: 2px solid var(--secondary-color);
            background: white;
            color: var(--secondary-color);
        }

        .mode-btn.active {
            background: var(--secondary-color);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
        }

        #status {
            text-align: center;
            margin-bottom: 15px;
            font-size: clamp(0.95rem, 4vw, 1.1rem);
            color: #666;
            display: flex;
            gap: 20px;  /* 控制两个信息之间的间距 */
             margin: 10px 0;
             display: flex !important;
             flex-direction: row !important;
            
        }

        #gameContainer {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
            max-width: 800px;
            padding: 15px;
            transition: opacity 0.3s;
        }

        .card {
            width: clamp(100px, 28vw, 200px);
            height: clamp(60px, 18vw, 80px);
            background: white;
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            font-size: clamp(14px, 3.5vw, 16px);
            font-weight: 500;
            user-select: none;
            text-align: center;
            padding: 5px;
            border: 2px solid transparent;
        }

        .card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }

        .card.active {
            transform: scale(0.95);
            background: var(--primary-color);
            color: white;
        }

        .matched {
            animation: shrink 0.5s forwards;
        }

        @keyframes shrink {
            to { transform: scale(0); opacity: 0; }
        }

        .feedback {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: clamp(16px, 4vw, 20px);
            padding: 12px 25px;
            border-radius: 30px;
            background: rgba(0, 0, 0, 0.9);
            color: white;
            opacity: 0;
            animation: fade 1s, pop 0.3s;
            z-index: 1000;
            white-space: nowrap;
            max-width: 90%;
            text-overflow: ellipsis;
            overflow: hidden;
        }
       
                 .phonetic {
    font-family: "Lucida Sans Unicode", "Arial Unicode MS", sans-serif;
    unicode-bidi: embed;
  }
        @keyframes pop {
            0% { transform: translate(-50%, -50%) scale(0.5); }
            80% { transform: translate(-50%, -50%) scale(1.1); }
            100% { transform: translate(-50%, -50%) scale(1); }
        }

        @keyframes fade {
            0% { opacity: 1; }
            100% { opacity: 0; }
        }

        #stats {
            display: none;
            text-align: center;
            margin: 20px 0;
            font-size: clamp(1rem, 4vw, 1.2rem);
            padding: 20px;
            background: rgba(255,255,255,0.95);
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            width: 90%;
            max-width: 500px;
        }

        #stats h2 {
            font-size: clamp(1.2rem, 5vw, 1.5rem);
            margin: 10px 0;
            color: #2c3e50;
        }

        button {
            padding: clamp(10px, 3vw, 12px) clamp(20px, 5vw, 24px);
            background: var(--secondary-color);
            color: white;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-size: clamp(0.95rem, 4vw, 1.1rem);
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            margin-top: 15px;
        }

        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.2);
        }

        @media (max-width: 480px) {
            #gameContainer {
                gap: 10px;
                padding: 10px;
            }
            .card {
                box-shadow: 0 3px 6px rgba(0,0,0,0.1);
                font-size: clamp(12px, 3vw, 16px);
                
            }
            .mode-buttons {
                gap: 10px;
            }
        }
        
        

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

