/* Optimized Google Fonts loading with font-display: swap */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

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

body {
    font-family: 'Share Tech Mono', monospace;
    background: #0d0d0d;
    background-image: 
        radial-gradient(circle at 25% 25%, #1a1a1a 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #1a1a1a 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    min-height: 100vh;
    color: #fcff00;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 120, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.lang-btn {
    padding: 8px 16px;
    border: 1px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    text-shadow: 0 0 10px #00ffff;
}

.lang-btn.active {
    background: rgba(255, 0, 128, 0.2);
    border-color: #ff0080;
    color: #ff0080;
    text-shadow: 0 0 10px #ff0080;
}

@keyframes cyberpunkBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

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

.header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: #fcff00;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 10px #fcff00,
        0 0 20px #fcff00,
        0 0 40px #fcff00,
        0 0 60px #fcff00;
    animation: neonFlicker 2s infinite alternate;
    position: relative;
}

.header h1::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ff6b00;
    text-shadow: 
        0 0 10px #ff6b00,
        0 0 20px #ff6b00;
    animation: glitch 0.3s infinite;
    clip-path: inset(0);
}

.header p {
    font-size: 1.3rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px #fcff00;
    opacity: 0.9;
}

@keyframes neonFlicker {
    0%, 100% { 
        text-shadow: 
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 40px #00ffff,
            0 0 80px #00ffff;
    }
    50% { 
        text-shadow: 
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 40px #00ffff;
    }
}

@keyframes glitch {
    0% { clip-path: inset(40% 0 61% 0); }
    5% { clip-path: inset(92% 0 1% 0); }
    10% { clip-path: inset(43% 0 1% 0); }
    15% { clip-path: inset(25% 0 58% 0); }
    20% { clip-path: inset(54% 0 7% 0); }
    25% { clip-path: inset(0 0 100% 0); }
    30% { clip-path: inset(37% 0 8% 0); }
    35% { clip-path: inset(71% 0 0 0); }
    40% { clip-path: inset(0 0 100% 0); }
    50% { clip-path: inset(0 0 100% 0); }
    100% { clip-path: inset(0 0 100% 0); }
}

.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 15px 25px;
    border: 2px solid #fcff00;
    background: rgba(252, 255, 0, 0.1);
    color: #fcff00;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
}

.nav-btn:hover {
    background: rgba(252, 255, 0, 0.2);
    box-shadow: 
        0 0 20px #fcff00,
        inset 0 0 20px rgba(252, 255, 0, 0.1);
    transform: translateY(-3px);
    text-shadow: 0 0 10px #fcff00;
}

.nav-btn.active {
    background: rgba(255, 107, 0, 0.2);
    border-color: #ff6b00;
    color: #ff6b00;
    box-shadow: 
        0 0 30px #ff6b00,
        inset 0 0 20px rgba(255, 107, 0, 0.2);
    text-shadow: 0 0 10px #ff6b00;
}

.main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 40px;
}

.game-container {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #fcff00;
    border-radius: 0;
    padding: 30px;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 0 40px rgba(252, 255, 0, 0.3),
        inset 0 0 30px rgba(252, 255, 0, 0.05);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.game-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #fcff00, #ff6b00, #fcff00, #ffffff);
    background-size: 400% 400%;
    animation: borderFlow 4s ease infinite;
    z-index: -1;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

@keyframes borderFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.game-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.game-select {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #fcff00;
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace;
    background: rgba(0, 0, 0, 0.9);
    color: #fcff00;
    cursor: pointer;
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.game-select:focus {
    outline: none;
    border-color: #ff0080;
    box-shadow: 
        0 0 20px rgba(255, 0, 128, 0.5),
        inset 0 0 20px rgba(255, 0, 128, 0.1);
    text-shadow: 0 0 10px #ff0080;
}

.game-select option {
    background: rgba(0, 0, 0, 0.9);
    color: #00ffff;
    padding: 10px;
}

.load-btn, .fullscreen-btn {
    padding: 15px 25px;
    border: 2px solid #ff6b00;
    background: rgba(255, 107, 0, 0.1);
    color: #ff6b00;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    backdrop-filter: blur(10px);
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

.load-btn:hover, .fullscreen-btn:hover {
    background: rgba(255, 107, 0, 0.2);
    box-shadow: 
        0 0 25px #ff6b00,
        inset 0 0 15px rgba(255, 107, 0, 0.1);
    transform: translateY(-2px);
    text-shadow: 0 0 8px #ff6b00;
}

.load-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    text-shadow: none;
}

.game-frame-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff41;
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.3),
        inset 0 0 30px rgba(0, 255, 65, 0.05);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    filter: contrast(1.1) saturate(1.2);
}

.game-frame.hidden, .loading.hidden, .placeholder.hidden {
    display: none;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #00ffff;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top: 3px solid #00ffff;
    border-right: 3px solid #ff0080;
    border-bottom: 3px solid #00ff41;
    border-radius: 50%;
    animation: cyberpunkSpin 1.5s linear infinite;
    margin-bottom: 25px;
    box-shadow: 
        0 0 20px #00ffff,
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

@keyframes cyberpunkSpin {
    0% { 
        transform: rotate(0deg);
        box-shadow: 0 0 20px #00ffff, inset 0 0 20px rgba(0, 255, 255, 0.1);
    }
    33% {
        box-shadow: 0 0 20px #ff0080, inset 0 0 20px rgba(255, 0, 128, 0.1);
    }
    66% {
        box-shadow: 0 0 20px #00ff41, inset 0 0 20px rgba(0, 255, 65, 0.1);
    }
    100% { 
        transform: rotate(360deg);
        box-shadow: 0 0 20px #00ffff, inset 0 0 20px rgba(0, 255, 255, 0.1);
    }
}

.placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(26, 26, 46, 0.9)),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        );
}

.placeholder-content {
    text-align: center;
    padding: 50px;
}

.placeholder-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff;
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

.placeholder-content p {
    font-size: 1.2rem;
    color: #00ff41;
    margin-bottom: 40px;
    line-height: 1.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px #00ff41;
}

@keyframes pulseGlow {
    0% { text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff; }
    100% { text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff; }
}

.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.05);
    clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: #ff0080;
    background: rgba(255, 0, 128, 0.1);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.feature span:last-child {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00ffff;
    text-shadow: 0 0 5px currentColor;
}

.game-info {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff41;
    border-radius: 0;
    padding: 30px;
    position: relative;
    backdrop-filter: blur(20px);
    height: fit-content;
    box-shadow: 
        0 0 40px rgba(0, 255, 65, 0.3),
        inset 0 0 40px rgba(0, 255, 65, 0.05);
    clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
}

.game-info::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff41, #00ffff, #ff0080, #00ff41);
    background-size: 400% 400%;
    animation: borderFlow 5s ease infinite;
    z-index: -1;
    clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
}

.game-info h2 {
    font-family: "Orbitron", monospace;
    color: #00ff41;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px #00ff41;
}

.game-description p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #00ffff;
    font-size: 1.1rem;
}

.game-description h4 {
    color: #ff0080;
    margin: 25px 0 15px 0;
    font-family: "Orbitron", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px #ff0080;
}

.game-description ol, .game-description ul {
    margin-left: 25px;
    color: #00ffff;
}

.game-description li {
    margin-bottom: 12px;
    line-height: 1.7;
    position: relative;
}

.game-description li strong {
    color: #00ff41;
    text-shadow: 0 0 5px #00ff41;
}

/* 简约打赏区域样式 */
.support-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    text-align: center;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(26, 26, 46, 0.8));
    border: 2px solid #00ffff;
    color: #00ffff;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    border-radius: 0;
    transition: all 0.4s ease;
    opacity: 0.85;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
}

.support-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.support-btn:hover {
    opacity: 1;
    border-color: #ff0080;
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.1), rgba(0, 255, 255, 0.1));
    color: #ffffff;
    text-shadow: 
        0 0 5px #00ffff,
        0 0 10px #00ffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.support-btn:hover::before {
    opacity: 1;
    animation: scanEffect 1.5s ease-in-out infinite;
}

@keyframes scanEffect {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.support-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.5),
        0 2px 10px rgba(0, 0, 0, 0.3);
}

.support-icon {
    font-size: 1rem;
}

.support-text {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* 全局超链接样式 - 赛博朋克风格 (仅用于普通文本链接) */
a:not(.support-btn):not(.footer-nav a) {
    color: #00ffff;
    text-decoration: none;
    position: relative;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

a:not(.support-btn):not(.footer-nav a)::before {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #00ffff, #ff0080);
    transition: all 0.4s ease;
    box-shadow: 0 0 5px #00ffff;
}

a:not(.support-btn):not(.footer-nav a):hover {
    color: #ffffff;
    text-shadow: 
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 15px #00ffff;
    transform: translateY(-1px);
}

a:not(.support-btn):not(.footer-nav a):hover::before {
    width: 100%;
    animation: linkGlow 1s ease-in-out infinite alternate;
}

@keyframes linkGlow {
    0% { 
        box-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff; 
        background: linear-gradient(90deg, #00ffff, #ff0080);
    }
    100% { 
        box-shadow: 0 0 8px #ff0080, 0 0 15px #ff0080; 
        background: linear-gradient(90deg, #ff0080, #00ff41);
    }
}

/* 外部链接特殊标识 */
a[href^="http"]:not([href*="niro.github.io"]):not(.support-btn):not(.footer-nav a)::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.7;
    color: #ff0080;
    transition: all 0.3s ease;
}

a[href^="http"]:not([href*="niro.github.io"]):not(.support-btn):not(.footer-nav a):hover::after {
    opacity: 1;
    color: #00ff41;
}

.footer {
    text-align: center;
    color: #00ffff;
    padding: 30px 0;
    border-top: 2px solid rgba(0, 255, 255, 0.3);
    margin-top: 50px;
    font-family: "Share Tech Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, #ff0080, #00ff41, transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 页脚导航链接专用样式 */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer-nav a {
    color: #00ffff;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(0, 255, 255, 0.05);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.footer-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.footer-nav a:hover {
    color: #ffffff;
    border-color: #ff0080;
    background: rgba(255, 0, 128, 0.1);
    text-shadow: 0 0 8px #ff0080;
    transform: translateY(-2px);
    box-shadow: 
        0 0 15px rgba(255, 0, 128, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

.footer-nav a:hover::before {
    left: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 128, 0.3), transparent);
}

.footer-content p {
    margin-bottom: 15px;
    opacity: 0.8;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .main {
        grid-template-columns: 1fr;
    }
    
    .game-info {
        order: -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .game-selector {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-select {
        min-width: 100%;
    }
    
    .load-btn, .fullscreen-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .game-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .nav {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        flex: 1;
        min-width: 100px;
    }
    
    .lang-switch {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .game-frame-container {
        height: 350px;
    }
    
    .placeholder-content {
        padding: 20px;
    }
    
    .placeholder-content h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .placeholder-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .nav-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        min-width: auto;
        flex: 1;
    }
    
    .game-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .feature {
        padding: 15px 10px;
    }
    
    .support-btn {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .game-info {
        padding: 20px;
    }
    
    .game-description h3 {
        font-size: 1.2rem;
    }
    
    .game-description p {
        font-size: 0.95rem;
    }
    
    /* 改善触摸体验 */
    .nav-btn, .load-btn, .fullscreen-btn, .support-btn, .lang-btn {
        min-height: 44px; /* iOS建议的最小触摸目标 */
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.2);
        touch-action: manipulation; /* 防止双击缩放 */
    }
    
    /* 移动端链接优化 */
    .footer-nav {
        gap: 15px;
    }
    
    .footer-nav a {
        padding: 10px 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(255, 0, 128, 0.2);
    }
    
    .support-btn {
        min-height: 44px;
        padding: 14px 18px;
    }
    
    /* 改善游戏选择器触摸体验 */
    .game-select {
        min-height: 44px;
        font-size: 16px; /* 防止iOS自动缩放 */
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* 优化滚动性能 */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* 防止横屏时的布局问题 */
    @media (orientation: landscape) and (max-height: 500px) {
        .header {
            margin-bottom: 20px;
        }
        
        .header h1 {
            font-size: 1.5rem;
            margin-bottom: 8px;
        }
        
        .nav {
            margin-bottom: 20px;
        }
        
        .game-frame-container {
            height: 280px;
        }
    }
}