:root {
    --primary-color: #f44336;
    --secondary-color: #ff9800;
    --accent-color: #4caf50;
    --background-color: #87ceeb;
    --text-color: #333;
    --light-text: #fff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Bird colors */
    --bird-yellow: #ffd700;
    --bird-blue: #2196f3;
    --bird-red: #f44336;
    --bird-green: #4caf50;
    --bird-purple: #9c27b0;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--background-color) 0%, #b0e2ff 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    user-select: none;
}

.logo-bird {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background-color: var(--bird-yellow);
    border-radius: 50% 50% 40% 40%;
    position: relative;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: visible;
}

/* Bird wings */
.logo-bird::before,
.logo-bird::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 28px;
    background-color: var(--bird-yellow);
    border-radius: 50%;
    top: -12px;
    box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.logo-bird::before {
    left: -5px;
    transform: rotate(-20deg);
}

.logo-bird::after {
    right: -5px;
    transform: rotate(20deg);
}

/* Beak for logo bird */
.logo-bird::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 12px solid var(--secondary-color);
    top: 15px;
    right: -8px;
    transform: rotate(0deg);
    z-index: 2;
}

/* Eye dots */
.logo-bird span {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    top: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.logo-bird span:first-child {
    left: 8px;
}

.logo-bird span:last-child {
    right: 8px;
}

.logo-bird span::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: black;
    border-radius: 50%;
    top: 2px;
    right: 1px;
    animation: lookAround 3s ease-in-out infinite alternate;
}

/* Add a small blush for cuteness */
.logo-bird::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 3px;
    background-color: rgba(255, 105, 180, 0.5);
    border-radius: 50%;
    top: 22px;
    left: 5px;
}

.logo-bird span:last-child::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 3px;
    background-color: rgba(255, 105, 180, 0.5);
    border-radius: 50%;
    top: 10px;
    right: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.menu-icon {
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    transition: transform 0.3s ease, width 0.2s ease, top 0.2s ease;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

.menu-icon::after {
    top: 8px;
}

/* Animation for hamburger menu open state */
.menu-icon.active {
    background-color: transparent;
}

.menu-icon.active::before {
    transform: rotate(45deg);
    top: 0;
    width: 28px;
}

.menu-icon.active::after {
    transform: rotate(-45deg);
    top: 0;
    width: 28px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-primary:active, .button-pressed {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary.large {
    padding: 15px 30px;
    font-size: 1.2rem;
}

.btn-play {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.btn-play:hover, .button-hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.5);
}

.btn-play:active, .button-pressed {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 150px 5% 100px;
    position: relative;
    overflow: hidden;
}

/* Responsive styles for hero section */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 3% 80px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-bird {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 2% 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-bird {
        width: 120px;
        height: 120px;
    }
}

.hero-content {
    max-width: 500px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-bird {
    width: 200px;
    height: 200px;
    background-color: var(--bird-yellow);
    border-radius: 50% 50% 40% 40%;
    position: relative;
    animation: fly 4s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: visible;
}



/* Bird wings */
.hero-bird .wings {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-bird .wing-left,
.hero-bird .wing-right {
    position: absolute;
    width: 100px;
    height: 150px;
    background-color: var(--bird-yellow);
    border-radius: 50%;
    top: -75px;
    box-shadow: inset -10px -10px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, rgba(255,215,0,0.9) 0%, rgba(255,215,0,1) 50%, rgba(255,193,7,1) 100%);
}

.hero-bird .wing-left {
    left: -25px;
    transform-origin: bottom right;
    animation: flapLeft 0.4s ease-in-out infinite;
}

.hero-bird .wing-right {
    right: -25px;
    transform-origin: bottom left;
    animation: flapRight 0.4s ease-in-out infinite 0.1s;
}

/* Bird eyes - more detailed */
.hero-bird span {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    top: 50px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-bird span:first-child {
    left: 40px;
}

.hero-bird span:last-child {
    right: 40px;
}

.hero-bird span::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: black;
    border-radius: 50%;
    top: 8px;
    right: 5px;
    animation: lookAround 3s ease-in-out infinite alternate;
}

/* Add a small highlight to eyes */
.hero-bird span::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 5px;
    left: 8px;
    z-index: 1;
}

/* Beak - more defined */
.hero-bird .beak {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid var(--secondary-color);
    transform: rotate(90deg);
    top: 60px;
    right: -25px;
    z-index: 3;
}

/* Beak detail */
.hero-bird .beak::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 24px solid #e65100;
    transform: translate(-15px, 4px);
}

/* Add blush for cuteness */
.hero-bird .blush {
    position: absolute;
    width: 25px;
    height: 12px;
    background-color: rgba(255, 105, 180, 0.5);
    border-radius: 50%;
    top: 80px;
    box-shadow: 0 2px 4px rgba(255, 105, 180, 0.3);
}

.hero-bird .blush:first-of-type {
    left: 25px;
}

.hero-bird .blush:last-of-type {
    right: 25px;
}


/* Game Stats Section */
.game-stats {
    background-color: #0077b6;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.game-stats h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .game-stats h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-item {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .stat-item {
        min-width: 100%;
    }
}

/* Features Section */
.features {
    padding: 100px 5%;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-color);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Responsive styles for features section */
@media (max-width: 768px) {
    .features {
        padding: 60px 3%;
    }
    
    .features h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .features h2 {
        font-size: 1.8rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
}

.feature-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
}

.feature-icon::before {
    content: '🎮';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

.icon-challenge::before { content: '🏆'; }
.icon-customize::before { content: '🎨'; }
.icon-score::before { content: '📊'; }
.icon-mobile::before { content: '📱'; }

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
}

/* Game Preview Section */
.game-preview {
    padding: 100px 5%;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

/* Testimonials Section */
.testimonials {
    background-color: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #03045e;
}

.testimonial-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.testimonial {
    flex: 1;
    min-width: 280px;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 3rem;
    color: #0077b6;
    opacity: 0.2;
    position: absolute;
}

.testimonial-content p::before {
    top: -20px;
    left: -10px;
}

.testimonial-content p::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0077b6;
    margin-right: 15px;
    background-image: linear-gradient(45deg, #0077b6, #0096c7);
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #03045e;
}

.author-info p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #777;
}

@media (max-width: 768px) {
    .testimonials h2 {
        font-size: 2rem;
    }
    
    .testimonial {
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .testimonial {
        min-width: 100%;
    }
}

.game-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    align-items: center;
}

/* Responsive styles for game preview section */
@media (max-width: 768px) {
    .game-preview {
        padding: 60px 3%;
    }
    
    .game-preview h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .preview-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .game-screenshot {
        width: 300px;
        height: 500px;
    }
    
    .instructions {
        max-width: 350px;
    }
    
    .instructions li {
        font-size: 1rem;
        padding-left: 25px;
    }
}

@media (max-width: 480px) {
    .game-preview h2 {
        font-size: 1.8rem;
    }
    
    .game-screenshot {
        width: 250px;
        height: 400px;
    }
    
    .instructions {
        max-width: 280px;
    }
    
    .instructions li {
        font-size: 0.95rem;
        padding-left: 22px;
        margin-bottom: 15px;
    }
}

.game-screenshot {
    width: 400px;
    height: 600px;
    background-color: #70c1ff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 8px solid #333;
}

/* 添加设备顶部边框和按钮 */
.game-screenshot::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 8px;
    background-color: #333;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* 添加天空渐变背景 */
.game-screenshot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #70c1ff, #bde0fe);
    z-index: 1;
}

/* 添加地面 */
.game-screenshot .ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #56ccf2;
    z-index: 2;
}

/* 添加地面上的草地 */
.game-screenshot .grass {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 20px;
    background-color: #2a9d8f;
    z-index: 2;
}

/* 添加草地纹理 */
.game-screenshot .grass::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        #2a9d8f,
        #2a9d8f 10px,
        #264653 10px,
        #264653 15px
    );
}

/* 添加云朵 */
.game-screenshot .cloud {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    z-index: 3;
}

.game-screenshot .cloud-1 {
    top: 100px;
    left: 50px;
    width: 80px;
    height: 50px;
}

.game-screenshot .cloud-1::before,
.game-screenshot .cloud-1::after {
    content: '';
    position: absolute;
    background-color: white;
    border-radius: 50%;
}

.game-screenshot .cloud-1::before {
    top: -20px;
    left: 10px;
    width: 40px;
    height: 40px;
}

.game-screenshot .cloud-1::after {
    top: -10px;
    right: 15px;
    width: 50px;
    height: 50px;
}

/* 添加游戏中的管道 */
.game-screenshot .pipe {
    position: absolute;
    width: 60px;
    background-color: #2a9d8f;
    z-index: 4;
}

.game-screenshot .pipe-top {
    top: 0;
    left: 200px;
    height: 150px;
}

.game-screenshot .pipe-bottom {
    bottom: 80px;
    left: 200px;
    height: 200px;
}

/* 添加管道顶部 */
.game-screenshot .pipe::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 20px;
    background-color: #2a9d8f;
    left: -10px;
    z-index: 1;
}

.game-screenshot .pipe-top::before {
    bottom: 0;
}

.game-screenshot .pipe-bottom::before {
    top: 0;
}

/* 添加鸟 - 与游戏中形象一致 */
.game-screenshot .bird-container {
    position: absolute;
    top: 250px;
    left: 100px;
    transform: rotate(-10deg);
    z-index: 5;
}

/* 鸟身体 - 椭圆形状 */
.game-screenshot .bird-body {
    width: 40px;
    height: 36px;
    background: linear-gradient(135deg, #ffd700 0%, #e6c200 100%);
    border-radius: 50%;
    position: relative;
}

/* 身体阴影 */
.game-screenshot .bird-body::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    bottom: 5px;
    left: 4px;
}

/* 左侧主翅膀 */
.game-screenshot .bird-wing-left {
    position: absolute;
    top: 14px;
    left: -8px;
    width: 32px;
    height: 24px;
    background-color: #e6c200;
    border-radius: 50% 0 50% 0;
    transform-origin: right center;
    transform: rotate(-45deg);
    clip-path: polygon(100% 0%, 20% 15%, 5% 50%, 30% 80%, 100% 60%);
    z-index: -1;
}

/* 翅膀细节线 */
.game-screenshot .bird-wing-left::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ccb100;
    top: 18px;
    left: 0;
    transform: rotate(30deg);
}

/* 右侧小翅膀 */
.game-screenshot .bird-wing-right {
    position: absolute;
    top: 10px;
    right: -4px;
    width: 12px;
    height: 10px;
    background-color: #e6c200;
    border-radius: 0 50% 50% 0;
    clip-path: polygon(0% 20%, 100% 0%, 80% 40%, 30% 40%);
}

/* 眼睛 */
.game-screenshot .bird-eye {
    position: absolute;
    top: 8px;
    right: 6px;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    z-index: 2;
}

/* 眼睛高光 */
.game-screenshot .bird-eye::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

/* 瞳孔 */
.game-screenshot .bird-pupil {
    position: absolute;
    top: 10px;
    right: 8px;
    width: 6px;
    height: 6px;
    background-color: black;
    border-radius: 50%;
    z-index: 3;
}

/* 瞳孔高光 */
.game-screenshot .bird-pupil::after {
    content: '';
    position: absolute;
    top: 1px;
    right: 1px;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
}

/* 上喙 */
.game-screenshot .bird-beak-upper {
    position: absolute;
    top: 12px;
    right: -10px;
    width: 24px;
    height: 8px;
    background: linear-gradient(to right, #ff9800 0%, #e68900 100%);
    border-radius: 2px 8px 0 0;
    clip-path: polygon(0% 50%, 70% 30%, 100% 50%, 70% 70%);
    z-index: 2;
}

/* 下喙 */
.game-screenshot .bird-beak-lower {
    position: absolute;
    top: 20px;
    right: -10px;
    width: 24px;
    height: 6px;
    background-color: #e68900;
    border-radius: 0 0 8px 2px;
    clip-path: polygon(0% 50%, 70% 30%, 100% 50%, 70% 70%);
    z-index: 1;
}

/* 左侧腮红 */
.game-screenshot .bird-cheek-left {
    position: absolute;
    top: 22px;
    left: 6px;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 150, 150, 0.5);
    border-radius: 50%;
}

/* 右侧腮红 */
.game-screenshot .bird-cheek-right {
    position: absolute;
    top: 22px;
    left: 16px;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 150, 150, 0.5);
    border-radius: 50%;
}

/* 尾巴 */
.game-screenshot .bird-tail {
    position: absolute;
    top: 14px;
    left: -12px;
    width: 12px;
    height: 12px;
    background-color: #ccb100;
    clip-path: polygon(100% 0%, 0% 50%, 100% 100%);
    z-index: -2;
}

.instructions {
    max-width: 400px;
}

.instructions ul {
    list-style: none;
}

.instructions li {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
}

.instructions li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Updates Section */
.updates {
    background-color: #e6f7ff;
    padding: 60px 20px;
}

.updates h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #003459;
}

.updates-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.update-item {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #0077b6;
}

.update-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left-color: #0096c7;
}

.update-date {
    display: inline-block;
    background-color: #0077b6;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.update-item h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: #03045e;
}

.update-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .updates h2 {
        font-size: 2rem;
    }
    
    .update-item {
        padding: 20px;
    }
    
    .update-item h3 {
        font-size: 1.2rem;
    }
}

/* Call to Action */
.call-to-action {
    padding: 100px 5%;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
}

.call-to-action h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.call-to-action p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive styles for call to action */
@media (max-width: 768px) {
    .call-to-action {
        padding: 80px 3%;
    }
    
    .call-to-action h2 {
        font-size: 2rem;
    }
    
    .call-to-action p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .btn-primary.large {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .call-to-action h2 {
        font-size: 1.8rem;
    }
    
    .call-to-action p {
        font-size: 1rem;
    }
    
    .btn-primary.large {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Footer */
footer {
    background-color: #333;
    color: var(--light-text);
    padding: 50px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

/* Responsive styles for footer */
@media (max-width: 768px) {
    footer {
        padding: 40px 3% 15px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 30px 2% 10px;
    }
    
    .footer-logo {
        font-size: 1.3rem;
    }
    
    .footer-logo .logo-bird {
        width: 25px;
        height: 25px;
    }
    
    .footer-links {
        gap: 10px;
        font-size: 0.9rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
}

.footer-logo .logo-bird {
    background-color: var(--bird-yellow);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Game Page Styles */
body.game-page {
    background: linear-gradient(135deg, #87ceeb 0%, #b0e2ff 50%, #87ceeb 100%);
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation; /* Optimize touch behavior without disabling scrolling */
}

/* 为游戏页面的main元素添加样式 */
body.game-page main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}



body.game-page::before {
    top: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite;
}


/* 添加云朵装饰 */
/* Cloud styles removed */

.cloud-1 {
    width: 200px;
    height: 60px;
    top: 20%;
    left: -200px;
    animation: cloudMove 30s linear infinite;
}

.cloud-2 {
    width: 150px;
    height: 50px;
    top: 15%;
    right: -150px;
    animation: cloudMove 40s linear infinite 5s;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.cloud::before {
    width: 100px;
    height: 100px;
    top: -50px;
    left: 25px;
}

.cloud::after {
    width: 80px;
    height: 80px;
    top: -40px;
    right: 35px;
}

.game-container {
    padding: 120px 5% 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.game-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}
.score-display,
.high-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}
.score-label {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
#high-score.score-value {
    background: linear-gradient(45deg, var(--accent-color), #2196f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.canvas-container {
    position: relative;
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #000000 0%, #222222 100%);
    padding: 15px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
}

canvas {
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* Countdown Styles */
.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
}

.countdown-number {
    font-size: 150px;
    font-weight: 700;
    color: white;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: countdownPulse 1s ease-in-out;
}

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

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

/* 添加粒子装饰效果 */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 5s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, 30px);
    }
    50% {
        transform: translate(0, 50px);
    }
    75% {
        transform: translate(-50px, 30px);
    }
}

@keyframes cloudMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(calc(100vw + 200px));
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-200px) rotate(360deg);
        opacity: 0;
    }
}

.game-instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: floatUpDown 2s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.game-instructions p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-instructions p::before {
    content: '💡';
    font-size: 1.3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.game-controls {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 400px;
}

.hidden {
    display: none !important;
}

.game-controls button {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.game-controls button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.game-controls button:hover::before {
    width: 300px;
    height: 300px;
}

#startBtn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.3), 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Press Start 2P', cursive;
    border: 3px solid;
    padding: 15px 25px;
    min-width: 120px;
    transition: all 0.1s ease;
    transform-origin: center;
}

#startBtn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(244, 67, 54, 0.4), 0 6px 12px rgba(0, 0, 0, 0.15);
}

#startBtn:active {
    transform: scale(0.95) translateY(3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#startBtn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#startBtn:active::after {
    width: 300px;
    height: 300px;
}

#pauseBtn, #restartBtn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Press Start 2P', cursive;
    padding: 15px 25px;
    min-width: 120px;
    transition: all 0.1s ease;
    transform-origin: center;
}

#pauseBtn:hover, #restartBtn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.3), 0 4px 8px rgba(0, 0, 0, 0.1);
}

#pauseBtn:active, #restartBtn:active {
    transform: scale(0.95) translateY(3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#pauseBtn::after, #restartBtn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#pauseBtn:active::after, #restartBtn:active::after {
    width: 300px;
    height: 300px;
}

.game-controls button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.95) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    backdrop-filter: blur(5px);
}

.game-overlay.active {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease-in-out;
}

.game-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Record celebration styles */
.record-modal {
    background-color: #ffeb3b;
    border: 6px solid #ffc107;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 15px #333;
    overflow: visible;
}

.record-modal::before {
    background: linear-gradient(90deg, #ff5722, #ffeb3b, #4caf50, #2196f3, #9c27b0);
    height: 12px;
}

.record-content h2 {
    font-size: 2rem;
    color: #d84315;
    margin-bottom: 30px;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
    animation: recordTitlePulse 1s infinite alternate;
}

.confetti-container {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
    overflow: visible;
    z-index: 10;
}

.game-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.4), 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 0 10px #333;
    transform: scale(0.8) translateY(50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: modalPopUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 模态框顶部装饰条 */
.game-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #f44336, #ff9800, #4caf50, #2196f3);
}

.game-overlay.active .game-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.game-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.game-modal h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    animation: bounceIn 0.8s ease-out;
    font-family: 'Press Start 2P', cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.game-modal p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 1px;
    color: #333;
    font-weight: 500;
}

.game-modal #finalScore {
        font-size: 2.5rem;
        font-weight: 700;
        margin: 0 10px;
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: scoreGrow 0.5s ease-out;
        display: inline-block;
        text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    }

.game-over-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-over-buttons button {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.game-over-buttons button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.game-over-buttons button:hover::before {
    width: 300px;
    height: 300px;
}

#playAgainBtn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: 4px solid #333;
    border-radius: 10px;
    box-shadow: 0 6px 0 #333;
    font-family: 'Press Start 2P', cursive;
}

#playAgainBtn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(244, 67, 54, 0.4);
    background: linear-gradient(45deg, var(--secondary-color), #ff7043);
}

#backToHomeBtn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#backToHomeBtn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(244, 67, 54, 0.3);
}

.game-over-buttons button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* 按钮波纹效果 */
.game-over-buttons button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

.game-over-buttons button:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Game Controls and Tips Styling */
.controls-info,
.game-tips {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.controls-info::before,
.game-tips::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.controls-info:hover,
.game-tips:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.controls-info ul,
.game-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.controls-info li,
.game-tips li {
    margin-bottom: 20px;
    padding-left: 45px;
    position: relative;
    line-height: 1.7;
    font-size: 1.05rem;
    transition: transform 0.2s ease;
    cursor: default;
}

.controls-info li:hover,
.game-tips li:hover {
    transform: translateX(5px);
}

.controls-info li:last-child,
.game-tips li:last-child {
    margin-bottom: 0;
}

.controls-info li::before {
    content: '🎮';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.game-tips li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.controls-info li:hover::before,
.game-tips li:hover::before {
    transform: scale(1.2) rotate(5deg);
}

.controls-info li b {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.controls-info li b::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.controls-info li:hover b::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Add subtle animation to list items */
.controls-info li,
.game-tips li {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes modalPopUp {
    0% {
        transform: scale(0.5) translateY(-50px);
        opacity: 0;
    }
    70% {
        transform: scale(1.1) translateY(10px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Settings Page */
.settings-container {
    padding: 120px 5% 100px;
    max-width: 800px;
    margin: 0 auto;
}

.settings-container h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.settings-section {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.settings-section h2 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.bird-colors {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.bird-color-option {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 15px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    overflow: hidden;
}

.bird-color-option::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: left 0.5s;
}

.bird-color-option:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(244, 67, 54, 0.3);
}

.bird-color-option:hover::before {
    left: 100%;
}

.bird-color-option.selected {
    border: 3px solid var(--primary-color);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.3), 0 0 0 8px rgba(244, 67, 54, 0.1);
    transform: translateY(-3px);
    animation: pulse-selected 2s infinite;
}

@keyframes pulse-selected {
    0% { box-shadow: 0 8px 20px rgba(244, 67, 54, 0.3), 0 0 0 8px rgba(244, 67, 54, 0.1); }
    50% { box-shadow: 0 8px 20px rgba(244, 67, 54, 0.4), 0 0 0 8px rgba(244, 67, 54, 0.15); }
    100% { box-shadow: 0 8px 20px rgba(244, 67, 54, 0.3), 0 0 0 8px rgba(244, 67, 54, 0.1); }
}

.mini-bird-canvas {
    margin-bottom: 10px;
    border-radius: 12px;
    background-color: #f8f9fa;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.bird-color-option:hover .mini-bird-canvas {
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.bird-color-option.selected .mini-bird-canvas {
    box-shadow: inset 0 0 0 3px var(--primary-color), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.color-label {
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.bird-color-option.selected .color-label {
    color: var(--primary-color);
    font-weight: 600;
}

.color-yellow { background-color: var(--bird-yellow); }
.color-blue { background-color: var(--bird-blue); }
.color-red { background-color: var(--bird-red); }
.color-green { background-color: var(--bird-green); }
.color-purple { background-color: var(--bird-purple); }

.themes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.theme-option {
    flex: 0 0 220px;
    background-color: white;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid transparent;
    position: relative;
}

.theme-option::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.theme-option:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.theme-option:hover::after {
    width: 60%;
}

.theme-option.selected {
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(244, 67, 54, 0.3), 0 0 0 8px rgba(244, 67, 54, 0.1);
    transform: translateY(-5px);
}

.theme-option.selected::after {
    width: 100%;
    bottom: 0;
}

.theme-option.selected .theme-label {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme-preview {
    width: 100%;
    height: 120px;
    border-radius: 15px 15px 0 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.theme-option:hover .theme-preview {
    transform: scale(1.03);
}

/* Add pipe decorations to theme previews */
.theme-preview::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 80px;
    background-color: rgba(0, 128, 0, 0.7);
    top: -40px;
    left: 30px;
    border-radius: 5px;
    box-shadow: 0 0 0 5px rgba(0, 128, 0, 0.8);
}

.theme-preview::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 60px;
    background-color: rgba(0, 128, 0, 0.7);
    bottom: -30px;
    right: 30px;
    border-radius: 5px;
    box-shadow: 0 0 0 5px rgba(0, 128, 0, 0.8);
}

/* Add a mini bird to the theme preview */
.theme-preview .preview-bird {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bird-yellow);
    border-radius: 50% 50% 40% 40%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: float-preview 2s ease-in-out infinite;
}

.theme-preview .preview-bird::before,
.theme-preview .preview-bird::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 15px;
    background-color: var(--bird-yellow);
    border-radius: 50%;
    top: -7px;
}

.theme-preview .preview-bird::before {
    left: -3px;
    transform: rotate(-20deg);
}

.theme-preview .preview-bird::after {
    right: -3px;
    transform: rotate(20deg);
}

@keyframes float-preview {
    0% { transform: translate(-50%, -50%) rotate(1deg); }
    50% { transform: translate(-50%, -55%) rotate(-1deg); }
    100% { transform: translate(-50%, -50%) rotate(1deg); }
}

.theme-label {
    padding: 15px;
    display: block;
    transition: var(--transition);
}

.theme-option.selected .theme-label {
    color: var(--primary-color);
}

.theme-default { background: linear-gradient(to bottom, #87ceeb, #2196f3); color: white; }
.theme-night { background: linear-gradient(to bottom, #1a237e, #0d47a1); color: white; }
.theme-desert { background: linear-gradient(to bottom, #ff9800, #f57c00); color: white; }
.theme-forest { background: linear-gradient(to bottom, #43a047, #2e7d32); color: white; }

/* Settings Actions */
.settings-actions {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(248,249,250,0.9) 100%);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.settings-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.settings-actions .btn-primary.large {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.settings-actions .btn-primary.large::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.settings-actions .btn-primary.large:hover::after {
    width: 300px;
    height: 300px;
}

/* About Page */
.about-container {
    padding: 120px 5% 100px;
    max-width: 800px;
    margin: 0 auto;
}

.about-container h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.about-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.about-content h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Responsive styles for about page */
@media (max-width: 768px) {
    .about-container {
        padding: 100px 3% 80px;
    }
    
    .about-container h1 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .about-content {
        padding: 30px;
    }
    
    .about-content h2 {
        font-size: 1.6rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
    }
    
    .about-content li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 80px 2% 60px;
    }
    
    .about-container h1 {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .about-content {
        padding: 20px;
    }
    
    .about-content h2 {
        font-size: 1.4rem;
    }
    
    .about-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .about-content li {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .about-container h1 {
        font-size: 1.8rem;
    }
    
    .about-content h2 {
        font-size: 1.3rem;
    }
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.about-content li {
    margin-bottom: 10px;
}

/* Contact Page */
.contact-container {
    padding: 120px 5% 100px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-container h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.contact-info {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-info h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-color);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Responsive styles for contact page */
@media (max-width: 768px) {
    .contact-container {
        padding: 100px 3% 80px;
    }
    
    .contact-container h1 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .contact-info {
        padding: 30px;
        margin-bottom: 20px;
    }
    
    .contact-info h2 {
        font-size: 1.6rem;
    }
    
    .contact-info p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 80px 2% 60px;
    }
    
    .contact-container h1 {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .contact-info {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .contact-info h2 {
        font-size: 1.4rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 360px) {
    .contact-container h1 {
        font-size: 1.8rem;
    }
    
    .contact-info h2 {
        font-size: 1.3rem;
    }
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Privacy Policy & Terms of Service */
.privacy-container,
.terms-container {
    padding: 120px 5% 100px;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-container h1,
.terms-container h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.privacy-content,
.terms-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.privacy-content h2,
.terms-content h2 {
    margin: 30px 0 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.privacy-content h3,
.terms-content h3 {
    margin: 20px 0 15px;
    color: var(--text-color);
    font-size: 1.2rem;
}

.privacy-content p,
.terms-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.privacy-content ul,
.terms-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-content li,
.terms-content li {
    margin-bottom: 10px;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0) rotate(1deg); }
    25% { transform: translateY(-8px) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
    75% { transform: translateY(-8px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(1deg); }
}

@keyframes fly {
    0% { 
        transform: translateY(0) translateX(0) rotate(0deg); 
    }
    15% { 
        transform: translateY(-15px) translateX(8px) rotate(-4deg); 
    }
    30% { 
        transform: translateY(-20px) translateX(15px) rotate(-2deg); 
    }
    50% { 
        transform: translateY(-10px) translateX(20px) rotate(0deg); 
    }
    70% { 
        transform: translateY(-15px) translateX(15px) rotate(2deg); 
    }
    85% { 
        transform: translateY(-5px) translateX(8px) rotate(4deg); 
    }
    100% { 
        transform: translateY(0) translateX(0) rotate(0deg); 
    }
}

@keyframes flapLeft {
    0% { transform: rotate(-20deg); }
    25% { transform: rotate(-60deg); }
    50% { transform: rotate(-70deg); }
    75% { transform: rotate(-60deg); }
    100% { transform: rotate(-20deg); }
}

@keyframes flapRight {
    0% { transform: rotate(20deg); }
    25% { transform: rotate(60deg); }
    50% { transform: rotate(70deg); }
    75% { transform: rotate(60deg); }
    100% { transform: rotate(20deg); }
}

@keyframes lookAround {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-2px, 1px); }
    100% { transform: translate(1px, -1px); }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

@keyframes recordTitlePulse {
    from {
        transform: scale(1) rotate(-1deg);
    }
    to {
        transform: scale(1.1) rotate(1deg);
    }
}

/* Confetti styles */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f44336;
    opacity: 1;
    transform-origin: center;
    animation: confettiFall 3s ease-in-out forwards;
}

@keyframes scoreGrow {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scorePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-bird {
        width: 150px;
        height: 150px;
    }
    
    
}

@media (max-width: 768px) {
    /* Navbar adjustments */
    .navbar {
        padding: 15px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-bird {
        width: 30px;
        height: 30px;
    }
    
    /* Mobile menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        flex-direction: column;
        background-color: white;
        width: 100%;
        max-width: 300px;
        text-align: center;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        padding: 100px 20px 20px;
        gap: 20px;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-links.active {
        transform: translateX(-100%);
    }
    
    /* 为每个导航链接添加动画 */
    .nav-links a {
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
        display: block;
        padding: 12px 20px;
        border-radius: 8px;
        text-align: center;
        margin-right: 20%;
    }
    
    .nav-links a:hover {
        background-color: rgba(244, 67, 54, 0.05);
        transform: translateY(-2px);
    }
    
    /* 移动设备上的Play Now按钮样式调整 */
    .nav-links .btn-primary {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .menu-btn {
        display: block;
    }
    
    /* 菜单按钮激活状态 */
    .menu-btn.active .menu-icon {
        background-color: transparent;
    }
    
    .menu-btn.active .menu-icon::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .menu-btn.active .menu-icon::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .preview-container {
        flex-direction: column;
    }
    
    .game-screenshot {
        width: 300px;
        height: 500px;
    }
    
    /* Game container adjustments */
    .game-container {
        padding: 100px 2% 30px;
        margin: 0 auto;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
        margin-bottom: 20px;
    }
    
    .score-display,
    .high-score-display {
        min-width: auto;
    }
    
    .score-value {
        font-size: 2rem;
    }
    
    .canvas-container {
        width: 100%;
        max-width: none; /* 移除移动设备上的最大宽度限制 */
        padding: 10px;
        margin: 15px 0;
        border-radius: 10px;
    }
    
    /* Button adjustments */
    button {
        padding: 12px 20px;
        font-size: 1rem;
    }

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .features h2,
    .game-preview h2,
    .call-to-action h2 {
        font-size: 2rem;
    }
    
    .btn-play,
    .btn-primary.large {
        font-size: 1rem;
        padding: 12px 24px;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .bird-colors,
    .themes {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Further adjustments for smaller screens */
    .navbar {
        padding: 10px 5%;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-bird {
        width: 25px;
        height: 25px;
        margin-right: 8px;
    }
    
    .game-container {
        padding: 80px 2% 20px;
    }
    
    .game-stats {
        padding: 12px 15px;
    }
    
    .score-label {
        font-size: 0.9rem;
    }
    
    .score-value {
        font-size: 1.8rem;
    }
    
    .canvas-container {
        padding: 8px;
    }
    
    button {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Responsive Design for Settings Page */
@media (max-width: 768px) {
    .settings-container {
        padding: 120px 15px 100px;
    }
    
    .settings-container h1 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .bird-colors {
        justify-content: center;
    }
    
    .bird-color-option {
        width: 100px;
        padding: 10px;
    }
    
    .theme-preview {
        height: 100px;
    }
    
    .themes {
        justify-content: center;
    }
    
    .theme-option {
        flex: 0 0 140px;
    }
    
    .settings-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .controls-info ul,
    .game-tips ul {
        padding-left: 20px;
    }
    
    .controls-info li,
    .game-tips li {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .settings-actions {
        padding: 20px 15px;
        margin-top: 40px;
    }
    
    .settings-actions .btn-primary.large {
        width: 100%;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .settings-container h1 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .bird-colors {
        gap: 15px;
    }
    
    .bird-color-option {
        width: 80px;
        padding: 8px;
    }
    
    .mini-bird-canvas {
        width: 50px;
        height: 50px;
    }
    
    .theme-preview {
        height: 80px;
    }
    
    .themes {
        gap: 15px;
    }
    
    .theme-option {
        flex: 0 0 120px;
    }
    
    .theme-label {
        padding: 10px 5px;
        font-size: 0.85rem;
    }
    
    .settings-section {
        padding: 15px;
    }
    
    .settings-section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .controls-info li,
    .game-tips li {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

@media (max-width: 360px) {
    .settings-container {
        padding: 100px 10px 80px;
    }
    
    .settings-container h1 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .bird-colors {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .bird-color-option {
        width: 70px;
        padding: 5px;
    }
    
    .mini-bird-canvas {
        width: 40px;
        height: 40px;
    }
    
    .color-label {
        font-size: 0.8rem;
    }
    
    .themes {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .theme-option {
        flex: 0 0 auto;
        width: 200px;
    }
    
    .theme-preview {
        height: 70px;
    }
    
    .settings-section {
        padding: 12px;
    }
    
    .settings-section h2 {
        font-size: 1.2rem;
    }
    
    .controls-info ul,
    .game-tips ul {
        padding-left: 15px;
    }
    
    .controls-info li,
    .game-tips li {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .settings-actions {
        margin-top: 30px;
        padding: 15px 10px;
    }
    
    .settings-actions .btn-primary.large {
        font-size: 1rem;
        padding: 12px 15px;
    }
}

/* Game Page Responsive Design */
@media (max-width: 768px) {
    .game-container {
        padding: 100px 3% 30px;
        max-width: 100%;
    }
    
    .game-stats {
        gap: 20px;
        padding: 15px 25px;
        margin-bottom: 20px;
    }
    
    .score-display,
    .high-score-display {
        min-width: 100px;
    }
    
    .score-label {
        font-size: 0.9rem;
    }
    
    .score-value {
        font-size: 2rem;
    }
    
    .canvas-container {
        padding: 10px;
        margin: 15px 0;
    }
    
    .game-instructions {
        padding: 12px 20px;
        bottom: 15px;
    }
    
    .game-instructions p {
        font-size: 0.9rem;
    }
    
    .game-controls {
        gap: 15px;
        margin-top: 25px;
    }
    
    .game-controls button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .countdown-number {
        font-size: 120px;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 90px 2% 25px;
    }
    
    .game-stats {
        gap: 15px;
        padding: 12px 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .score-display,
    .high-score-display {
        min-width: auto;
    }
    
    .score-value {
        font-size: 1.8rem;
    }
    
    .canvas-container {
        padding: 8px;
        margin: 10px 0;
        border-width: 2px;
    }
    
    canvas {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .game-instructions {
        padding: 10px 15px;
        bottom: 10px;
    }
    
    .game-instructions p {
        font-size: 0.8rem;
    }
    
    .game-controls {
        gap: 12px;
        margin-top: 20px;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .game-controls button {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .countdown-number {
        font-size: 100px;
    }
    
    /* 优化云朵大小 */
    .cloud-1 {
        width: 150px;
        height: 50px;
    }
    
    .cloud-2 {
        width: 120px;
        height: 40px;
    }
    
    .cloud::before {
        width: 75px;
        height: 75px;
        top: -37px;
    }
    
    .cloud::after {
        width: 60px;
        height: 60px;
        top: -30px;
    }
}

@media (max-width: 360px) {
    .game-container {
        padding: 80px 1% 20px;
    }
    
    .game-stats {
        padding: 10px 15px;
    }
    
    .score-label {
        font-size: 0.8rem;
    }
    
    .score-value {
        font-size: 1.5rem;
    }
    
    .canvas-container {
        padding: 5px;
    }
    
    .countdown-number {
        font-size: 80px;
    }
}}