       /* 导航栏样式 */
        .navbar {
            background: #3498db;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .logo {
            display: flex;
            align-items: center;
            color: white;
            font-weight: 700;
            font-size: 1.5rem;
            text-decoration: none;
            padding: 15px 0;
        }
        
        .logo i {
            margin-right: 10px;
            font-size: 1.8rem;
        }
        
        .logo-icon {
            height: 30px;
            vertical-align: middle;
            margin-right: 10px;
        }

        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin-left: 20px;
        }
        
        .nav-links a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-weight: 500;
            font-size: 1.1rem;
            padding: 10px 15px;
            border-radius: 4px;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .nav-links a:hover {
            color: white;
            background: rgba(255, 255, 255, 0.15);
        }
        
        .nav-links a.active {
            color: white;
            background: rgba(255, 255, 255, 0.2);
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 3px;
            background: white;
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }
        
        .nav-links a:hover::after {
            width: 80%;
        }

      /* 头部样式 */

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        .container {
            background-color: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
            width: 90%;
            max-width: 900px;
            padding: 30px;
            text-align: center;
        }
        
        h1 {
            color: #ff6b6b;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
            font-size: 2.8rem;
            margin-bottom: 10px;
            position: relative;
            display: inline-block;
        }
        
        h1:after {
            content: "";
            position: absolute;
            width: 100%;
            height: 4px;
            bottom: 0;
            left: 0;
            background: linear-gradient(90deg, #ff9a9e, #fad0c4, #a1c4fd);
            border-radius: 4px;
        }
        
        .subtitle {
            color: #5a67d8;
            font-size: 1.2rem;
            margin-bottom: 25px;
        }
        
        .settings {
            background: linear-gradient(to right, #dbeafe, #e0f2fe);
            padding: 20px;
            border-radius: 15px;
            margin: 20px 0;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .settings label {
            font-size: 1.2rem;
            color: #374151;
            margin-right: 10px;
        }
        
        .settings input {
            width: 80px;
            height: 40px;
            text-align: center;
            font-size: 1.2rem;
            border: 2px solid #93c5fd;
            border-radius: 10px;
            margin-right: 15px;
        }
        
        button {
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
            border: none;
            padding: 12px 30px;
            font-size: 1.2rem;
            color: white;
            font-weight: bold;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }
        
        button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
        }
        
        button:active {
            transform: translateY(0);
        }

        footer {
            background: linear-gradient(to right, #2c3e50, #1a2530);
            color: #ecf0f1;
            text-align: center;
            padding: 20px;
            margin-top: 25px;
            border-radius: 0 0 10px 10px;
        }
        
        .game-board {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin: 30px 0;
            perspective: 1000px;
        }
        
        @media (min-width: 768px) {
            .game-board {
                grid-template-columns: repeat(5, 1fr);
            }
        }
        
        .card {
            aspect-ratio: 7/4;
            background: linear-gradient(135deg, #ffd166, #ff9a76);
            border-radius: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1rem; /* 缩小字体大小 */
            font-weight: bold;
            cursor: pointer;
            color: #222;
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-style: preserve-3d;
            position: relative;
            user-select: none;
        }
        
        .expression {
            background: linear-gradient(135deg, #ffd166, #ff9a76);
        }
        
        .answer {
            background: linear-gradient(135deg, #a8d8ea, #97e6d0);
        }
        
        .card:hover {
            transform: translateY(-5px) rotate(1deg);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
        }
        
        .card.selected {
            background: linear-gradient(135deg, #f1c40f, #e67e22);
            transform: scale(1.05);
            color: white;
            box-shadow: 0 0 20px #f39c12;
        }
        
        .card.matched {
            visibility: hidden;
            opacity: 0;
            transform: scale(0.1) rotate(360deg);
            transition: all 0.6s ease;
        }
        
        .instructions {
            background-color: #f0f9ff;
            padding: 15px;
            border-radius: 15px;
            margin-top: 25px;
            border-left: 5px solid #3498db;
        }
        
        .instructions h3 {
            color: #2c3e50;
            margin-bottom: 10px;
        }
        
        .instructions p {
            color: #7f8c8d;
            line-height: 1.6;
        }
        
        .success-message {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            z-index: 100;
            color: white;
            font-size: 3rem;
            text-align: center;
            display: none;
            backdrop-filter: blur(5px);
        }
        
        .success-message h2 {
            margin-bottom: 30px;
            font-size: 4rem;
            color: #f1c40f;
            text-shadow: 0 0 20px rgba(241, 196, 15, 1);
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        .progress-bar {
            height: 10px;
            background-color: #e0e7ff;
            border-radius: 5px;
            margin: 20px 0;
            overflow: hidden;
        }
        
        .progress {
            height: 100%;
            background: linear-gradient(90deg, #f9a8d4, #f472b6);
            width: 0%;
            transition: width 0.5s ease;
        }
        
        .stats {
            display: flex;
            justify-content: space-around;
            margin: 15px 0;
            color: #4b5563;
            font-size: 1.1rem;
        }
        
        .stat-item {
            background: #e0f2fe;
            padding: 10px 20px;
            border-radius: 10px;
            min-width: 120px;
        }
        
        .stat-item span {
            font-weight: bold;
            color: #1d4ed8;
            font-size: 1.4rem;
        }
        
        .firework {
            position: absolute;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #ffca28;
            animation: firework 1.5s ease-out forwards;
        }
        
        @keyframes firework {
            0% {
                transform: translate(0, 0);
                opacity: 1;
            }
            100% {
                transform: translate(var(--tx), var(--ty));
                opacity: 0;
            }
        }
        
        /* 倒计时相关样式 */
        .timer-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 15px 0;
        }
        
        .timer {
            font-size: 2rem;
            font-weight: bold;
            color: #f44336;
            padding: 10px 20px;
            background: linear-gradient(135deg, #fff9c4, #ffecb3);
            border-radius: 15px;
            min-width: 160px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            position: relative;
        }
        
        .timer-label {
            font-size: 1.2rem;
            color: #333;
            margin-right: 10px;
            background: linear-gradient(135deg, #e8eaf6, #c5cae9);
            padding: 5px 15px;
            border-radius: 15px;
            font-weight: bold;
        }
        
        .timer-urgent {
            animation: pulse-red 1s infinite;
        }
        
        @keyframes pulse-red {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); box-shadow: 0 0 15px #f44336; }
            100% { transform: scale(1); }
        }
        
        .timer-warning {
            animation: pulse-orange 1.5s infinite;
        }
        
        @keyframes pulse-orange {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); box-shadow: 0 0 10px #ff9800; }
            100% { transform: scale(1); }
        }
        
        .progress-container {
            display: flex;
            flex-direction: column;
            margin: 15px 0;
        }
        
        .timer-bar-container {
            height: 12px;
            width: 100%;
            background-color: #e0f7fa;
            border-radius: 6px;
            margin-top: 10px;
            overflow: hidden;
        }
        
        .timer-bar {
            height: 100%;
            background: linear-gradient(90deg, #64dd17, #aeea00);
            border-radius: 6px;
            width: 100%;
            transition: width 1s linear;
        }
        
        /* 游戏结束弹窗 */
        .game-over-message {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            z-index: 100;
            color: white;
            text-align: center;
            display: none;
            backdrop-filter: blur(5px);
        }
        
        .game-over-message h2 {
            margin-bottom: 30px;
            font-size: 4rem;
            color: #e53935;
            text-shadow: 0 0 20px rgba(229, 57, 53, 0.8);
        }
    </style>