/* CSS变量 */
:root {
    --primary-color: #6366f1;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --success-color: #22c55e;
    --warning-color: #f97316;
    --info-color: #06b6d4;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-color: #6b7280;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* 主要内容 */
main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* About page layout */
.about-main {
    margin-top: 70px;
    background: var(--light-color);
}

.about-hero {
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 55%),
                linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 64, 175, 0.65)),
                url('https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=1600&q=80') center/cover;
    color: #fff;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 64, 175, 0.55));
    z-index: 0;
    pointer-events: none;
}

.about-hero .about-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: center;
}

.about-hero-text h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
}

.about-hero-message {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.about-hero-line {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.95;
}

.about-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--primary-color);
    padding: 12px 22px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.about-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
}

.about-hero-media {
    display: flex;
    justify-content: center;
}

.about-analytics-image {
    width: min(100%, 420px);
    filter: drop-shadow(0 30px 60px rgba(15, 23, 42, 0.25));
}

.about-content {
    padding: 70px 0 90px;
}

.about-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
}

.about-intro h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 16px;
}

.about-intro p {
    color: var(--gray-color);
    font-size: 1.05rem;
}

.about-highlights {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    list-style: none;
    padding: 0;
}

.about-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.about-highlights i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 4px;
}

.about-share h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.about-share p {
    text-align: center;
    color: var(--gray-color);
    max-width: 720px;
    margin: 0 auto 28px;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.share-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.share-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.share-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
}

.share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.share-copy-btn:hover,
.share-copy-btn.copied {
    background: var(--secondary-color);
}

.share-text {
    width: 100%;
    min-height: 220px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
    resize: none;
}

.share-text:focus {
    outline: 2px solid rgba(99, 102, 241, 0.35);
    outline-offset: 2px;
}

.share-tip {
    margin-top: 24px;
    color: var(--gray-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.share-tip i {
    color: var(--accent-color);
}

.about-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 24px 0;
    text-align: center;
}

.about-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* 英雄区域 - Wood Block Jam */
.hero {
    background: linear-gradient(135deg, #8B5E3C 0%, #C08A5C 100%);
    color: #fff;
    padding: 80px 0;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: #fff;
    color: #8B5E3C;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 80px 0 40px;
    }

    .about-hero-text h1 {
        font-size: clamp(1.9rem, 6vw, 2.4rem);
    }

    .about-hero-line {
        font-size: 0.98rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .share-grid {
        grid-template-columns: 1fr;
    }

    .share-text {
        min-height: 180px;
    }
}

/* 游戏展示区域 */
.games-section {
    padding: 40px 0;
    background: var(--light-color);
}

/* 直接嵌入游戏区域 */
.embed-section {
    padding: 40px 0 0;
    background: var(--light-color);
}

.embed-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark-color);
}

.embed-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #00000010;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.embed-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* 游戏控制区域 */
.games-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
    color: var(--gray-color);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--dark-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 游戏统计 */
.games-stats {
    text-align: center;
    margin-bottom: 30px;
}

.stats-text {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 游戏网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.game-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

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

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gradient-primary);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-image.fallback {
    background: var(--gradient-secondary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-image.fallback::before {
    content: '\f11b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    animation: pulse 2s infinite;
}

.game-image.fallback::after {
    content: '游戏';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

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

.game-info {
    padding: 20px;
}

.game-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.game-description {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 加载更多按钮 */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: #5855eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* 分类展示区域 */
.categories-section {
    padding: 60px 0;
    background: white;
}

.categories-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--dark-color);
}

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

.category-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-icon i {
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.category-card p {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.category-count {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

/* 关于区域 */
.about-section {
    padding: 60px 0;
    background: var(--light-color);
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    color: var(--gray-color);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.features {
    display: grid;
    gap: 30px;
}

/* Game Features 区块 */
.features-section { padding: 40px 0; background: var(--light-color); }
.features-header { text-align: center; margin-bottom: 20px; }
.features-header h2 { font-size: 2rem; font-weight: 800; color: var(--dark-color); }
.features-subtitle { color: var(--gray-color); margin-top: 6px; }
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 4px 12px rgba(0,0,0,.08); padding: 22px; transition: var(--transition); text-align: center; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.12); }
.feature-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: var(--gradient-primary); color: #fff; font-size: 1.5rem; }
.feature-title { font-size: 1.1rem; font-weight: 700; color: var(--dark-color); margin-bottom: 8px; }
.feature-desc { color: var(--gray-color); line-height: 1.7; }

@media (max-width: 992px) {
    .feature-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .feature-cards { grid-template-columns: 1fr; }
}

/* Play on Any Device 区块 */
.devices-section { padding: 40px 0; background: white; }
.devices-header { text-align: center; margin-bottom: 20px; }
.devices-header h2 { font-size: 2rem; font-weight: 800; color: var(--dark-color); }
.devices-subtitle { color: var(--gray-color); margin-top: 6px; }
.devices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.device-card { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 4px 12px rgba(0,0,0,.08); padding: 22px; }
.device-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--dark-color); }
.device-desc { color: var(--gray-color); line-height: 1.7; }
@media (max-width: 992px) { .devices-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .devices-grid { grid-template-columns: 1fr; } }

/* About the Game 区块 */
.about-game-section { padding: 40px 0; background: var(--light-color); }
.about-game-header { text-align: center; margin-bottom: 20px; }
.about-game-header h2 { font-size: 2rem; font-weight: 800; color: var(--dark-color); }
.about-game-subtitle { color: var(--gray-color); margin-top: 6px; }
.about-game-content { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.about-game-text p { color: var(--gray-color); margin-bottom: 14px; line-height: 1.8; }
.about-game-meta { list-style: none; padding-left: 0; margin: 0; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 4px 12px rgba(0,0,0,.08); padding: 16px; }
.about-game-meta li { padding: 8px 0; border-bottom: 1px solid var(--border-color); color: var(--dark-color); }
.about-game-meta li:last-child { border-bottom: none; }
.meta-label { color: var(--gray-color); font-weight: 700; margin-right: 6px; }
@media (max-width: 992px) { .about-game-content { grid-template-columns: 1fr; } }
/* How to Play 区块 */
.howto-section { padding: 40px 0; background: white; }
.howto-header { text-align: center; margin-bottom: 20px; }
.howto-header h2 { font-size: 2rem; font-weight: 800; color: var(--dark-color); }
.howto-subtitle { color: var(--gray-color); margin-top: 6px; }
.howto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.howto-card { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 2px 8px rgba(0,0,0,.08); padding: 20px; }
.howto-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--dark-color); display: flex; align-items: center; gap: 8px; }
.howto-list { color: var(--gray-color); line-height: 1.7; }
.howto-list.numbered { padding-left: 18px; }
.howto-list.bulleted { list-style: none; padding-left: 0; }
.howto-list.bulleted li { margin: 6px 0; }
.howto-list .label { color: var(--dark-color); font-weight: 700; }

@media (max-width: 768px) {
    .howto-grid { grid-template-columns: 1fr; }
}

.feature {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.feature p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 游戏模态框 */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.game-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-color);
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.modal-body {
    padding: 20px;
}

.modal-body iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: var(--radius-md);
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: 0 4px 6px var(--shadow-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .games-controls {
        gap: 15px;
    }

    .filter-container {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-body iframe {
        height: 400px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .modal-body {
        padding: 10px;
    }

    .modal-body iframe {
        height: 300px;
    }
}

/* 懒加载动画 */
.lazy-load {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn, .timer-btn, .filter-btn {
    position: relative;
    overflow: hidden;
}
