:root {
    --primary-color: #1a1a1a;
    --secondary-color: #e74c3c;
    --text-color: #e0e0e0;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --surface-color-hover: #2d2d2d;
    --header-height: 4rem;
    --footer-height: 12rem;
    --transition-speed: 0.3s;
    --border-radius-default: 12px;
    --spacing-large: 2rem;
    --box-shadow-default: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Header Styles */
.site-header {
    background-color: var(--primary-color);
    color: white;
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a, .logo {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Main Content */
main {
    flex: 1;
    margin-top: var(--header-height);
    padding: 2rem 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Game Section */
.game-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
    position: relative;
    background: var(--surface-color);
    border-radius: var(--border-radius-default);
    overflow: hidden;
}

.game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/下载.jpg') center/cover no-repeat;
    opacity: 0.1;
    filter: blur(8px);
    z-index: 0;
}

.game-container {
    position: relative;
    max-width: 1024px;
    margin: 0 auto;
    background-color: var(--surface-color);
    border-radius: var(--border-radius-default);
    padding: 1rem;
    box-shadow: var(--box-shadow-default);
    z-index: 1;
}

#game-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-color);
    position: relative;
    z-index: 2;
    display: block;
}

/* 移除之前的装饰性伪元素 */
#game-frame::before,
#game-frame::after {
    display: none;
}

.game-loading {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color);
    font-size: 1.2rem;
    z-index: 3;
    opacity: 0.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 添加加载动画 */
.loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
    display: inline-block;
    width: 0;
    overflow: hidden;
    vertical-align: bottom;
}

@keyframes dots {
    0%, 20% {
        width: 0;
    }
    40% {
        width: 0.5em;
    }
    60% {
        width: 1em;
    }
    80%, 100% {
        width: 1.5em;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    #game-frame::after {
        animation: none;
    }
    
    .loading-dots::after {
        animation: none;
    }
}

/* SEO Content Section */
.seo-content {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow-default);
}

.seo-content article {
    margin-bottom: 2rem;
}

.seo-content ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2a3a 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0;
    color: white;
}

.hero-content .highlight {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.primary-button,
.secondary-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.primary-button {
    background-color: var(--secondary-color);
    color: white;
}

.secondary-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .game-section {
        padding: 1.5rem 1rem;
    }
    
    .game-container {
        padding: 0.5rem;
    }
    
    #game-frame {
        border-radius: 4px;
    }
    
    .seo-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .game-section {
        padding: 1rem;
    }
    
    .game-container {
        padding: 0.75rem;
    }
}

/* Responsive Design for Hero Section */
@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-image {
        order: -1;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Feature Section */
.feature-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--surface-color) 0%, var(--primary-color) 100%);
    border-radius: var(--border-radius-default);
    margin: 2rem 0;
}

.feature-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.feature-item {
    background: var(--surface-color);
    border-radius: var(--border-radius-default);
    padding: 2rem;
    box-shadow: var(--box-shadow-default);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: var(--surface-color-hover);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

/* 移除旧的图片样式 */
.feature-icon img {
    display: none;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: center;
    position: relative;
}

.feature-item h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    margin: 0.5rem auto;
    border-radius: 2px;
}

.feature-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .feature-section {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }

    .feature-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .feature-item {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-item,
    .feature-icon {
        transition: none;
    }
}

@media (hover: none) {
    .feature-item:hover {
        transform: none;
    }
    
    .feature-item:hover .feature-icon {
        transform: none;
    }
}

/* What Is Section */
.what-is-section {
    padding: 4rem 0;
    background: linear-gradient(145deg, var(--surface-color) 0%, var(--primary-color) 100%);
    border-radius: var(--border-radius-default);
    margin: 2rem 0;
    box-shadow: var(--box-shadow-default);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
}

.highlight-text {
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.image-content img {
    width: 100%;
    border-radius: var(--border-radius-default);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.image-content img:hover {
    transform: scale(1.02);
}

/* How To Section */
.how-to-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--surface-color) 0%, var(--primary-color) 100%);
    border-radius: var(--border-radius-default);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.how-to-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.controls-overview {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.control-item {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius-default);
    box-shadow: var(--box-shadow-default);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.control-item:hover {
    transform: translateY(-2px);
    background: var(--surface-color-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.control-item h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    padding-left: 1.5rem;
}

.control-item h4::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.control-item ul {
    list-style: none;
}

.control-item li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
    opacity: 0.9;
}

.control-item li::before {
    content: "→";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.tips-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--surface-color) 100%);
    color: var(--text-color);
    padding: 2rem;
    border-radius: var(--border-radius-default);
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--box-shadow-default);
}

.tips-section h4 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-section h4::before {
    content: '💡';
    font-size: 1.2em;
}

.tips-section li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0.9;
}

.tips-section li::before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Why Section */
.why-section {
    padding: 4rem 0;
    background: linear-gradient(210deg, var(--surface-color) 0%, var(--primary-color) 100%);
    border-radius: var(--border-radius-default);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.why-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(231, 76, 60, 0.1), transparent 70%);
    pointer-events: none;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.reason-item {
    padding: 2rem;
    background: var(--surface-color);
    border-radius: var(--border-radius-default);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--box-shadow-default);
}

.reason-item:hover {
    transform: translateY(-5px);
    background: var(--surface-color-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.testimonial-section {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

blockquote {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius-default);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--box-shadow-default);
}

blockquote::before {
    content: "\"";
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.2;
}

cite {
    display: block;
    margin-top: 1rem;
    color: var(--text-color);
    font-style: normal;
    font-weight: bold;
}

@media (max-width: 968px) {
    .content-grid,
    .controls-grid,
    .reasons-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .image-content {
        order: -1;
    }

    .control-item,
    .reason-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .what-is-section,
    .how-to-section,
    .why-section {
        padding: 2rem 1rem;
    }

    .highlight-text {
        font-size: 1.1rem;
    }

    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .control-item h4,
    .tips-section h4 {
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .image-content img,
    .control-item,
    .reason-item {
        transition: none;
    }
}

@media (hover: none) {
    .image-content img:hover,
    .control-item:hover,
    .reason-item:hover {
        transform: none;
    }
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: linear-gradient(145deg, var(--surface-color) 0%, var(--primary-color) 100%);
    border-radius: var(--border-radius-default);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(231, 76, 60, 0.05), transparent 60%);
    pointer-events: none;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.faq-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 1rem auto 0;
    border-radius: 3px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.faq-item {
    background: var(--surface-color);
    border-radius: var(--border-radius-default);
    padding: 2rem;
    transition: all 0.3s ease;
    will-change: transform;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--box-shadow-default);
}

.faq-item:hover {
    transform: translateY(-2px);
    background: var(--surface-color-hover);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.faq-item summary {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem 2.5rem 0.5rem 0;
    position: relative;
    list-style: none;
    outline: none;
    transition: color 0.3s ease;
}

.faq-item summary:hover {
    color: var(--secondary-color);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    color: var(--text-color);
    line-height: 1.8;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

.faq-answer p {
    margin-bottom: 0.8rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Responsive Design for FAQ Section */
@media (max-width: 768px) {
    .faq-section {
        padding: 2rem 1rem;
    }

    .faq-section h2 {
        font-size: 2rem;
    }

    .faq-list {
        padding: 0 1rem;
    }

    .faq-item {
        padding: 1.5rem;
    }

    .faq-item summary {
        font-size: 1.1rem;
        padding-right: 2rem;
    }
}

@media (max-width: 480px) {
    .faq-section h2 {
        font-size: 1.75rem;
    }

    .faq-item {
        padding: 1.25rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }
}

/* Accessibility Improvements */
.faq-item summary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.4);
    border-radius: var(--border-radius-default);
}

.faq-item summary:focus:not(:focus-visible) {
    box-shadow: none;
}

/* Motion Reduction */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-item summary,
    .faq-item summary::after {
        transition: none;
    }
}

/* Touch Device Optimization */
@media (hover: none) {
    .faq-item:hover {
        transform: none;
        box-shadow: var(--box-shadow-default);
    }

    .faq-item summary:hover {
        color: var(--text-color);
    }
}

/* Print Styles */
@media print {
    .faq-section {
        background: none;
        padding: 2rem 0;
    }

    .faq-item {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .faq-item summary::after {
        display: none;
    }

    .faq-answer {
        border-top: 1px solid #ddd;
    }
}

/* Game Navigation Buttons */
.game-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.game-nav-button {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff6b6b 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    position: relative;
    overflow: hidden;
}

.game-nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.game-nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
    background: linear-gradient(135deg, #ff6b6b 0%, var(--secondary-color) 100%);
}

.game-nav-button:hover::before {
    transform: translateX(100%);
}

.game-nav-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
}

/* Responsive Design for Game Navigation */
@media (max-width: 768px) {
    .game-nav-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .game-nav-button {
        width: 90%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Accessibility */
.game-nav-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.5), 0 4px 15px rgba(231, 76, 60, 0.4);
}

@media (prefers-reduced-motion: reduce) {
    .game-nav-button {
        transition: none;
    }
    
    .game-nav-button::before {
        display: none;
    }
}

/* Section Scroll Offset */
#what-is,
#how-to-play {
    scroll-margin-top: calc(var(--header-height) + 2rem);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff6b6b 100%);
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
    background: linear-gradient(135deg, #ff6b6b 0%, var(--secondary-color) 100%);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Responsive Design for Back to Top Button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.2rem;
    }
}

/* Accessibility */
.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.5), 0 4px 15px rgba(231, 76, 60, 0.4);
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

/* 更多游戏导航部分 */
.more-games-section {
    margin-top: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background-color: rgba(26, 26, 26, 0.5);
    padding: 2rem 1rem;
    border-radius: 12px;
}

.more-games-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.more-games-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
    margin: 0 auto;
    max-width: 1200px;
}

.game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--surface-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.game-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 3/2;
    background-color: var(--primary-color);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

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

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-now-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff6b6b 100%);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transform: translateY(20px);
    transition: transform 0.4s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    letter-spacing: 1px;
    font-size: 1rem;
    text-transform: uppercase;
}

.game-card:hover .play-now-btn {
    transform: translateY(0);
}

.play-now-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, var(--secondary-color) 100%);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.6);
}

.game-title {
    font-size: 1.1rem;
    padding: 1rem;
    margin: 0;
    text-align: center;
    color: var(--text-color);
    font-weight: 700;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(0deg, var(--surface-color) 0%, rgba(30, 30, 30, 0.9) 100%);
    min-height: 60px;
}

.game-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.game-card:hover .game-title::after {
    opacity: 1;
    width: 60px;
}

@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .game-title {
        font-size: 1rem;
        padding: 0.8rem;
        min-height: 50px;
    }
    
    .more-games-section {
        padding: 1.5rem 1rem;
    }
    
    .play-now-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .more-games-section h2 {
        font-size: 1.5rem;
    }
    
    .game-title {
        font-size: 0.9rem;
        padding: 0.7rem 0.5rem;
        min-height: 45px;
    }
    
    .play-now-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-card,
    .game-image img,
    .game-overlay,
    .play-now-btn,
    .game-title::after {
        transition: none;
    }
    
    .game-card:hover {
        transform: none;
    }
    
    .game-card:hover .game-image img {
        transform: none;
    }
}

/* 改进图片加载优化 */
.game-image.loading {
    background: linear-gradient(90deg, var(--surface-color) 0%, var(--surface-color-hover) 50%, var(--surface-color) 100%);
    background-size: 200% 100%;
    animation: loading-gradient 1.5s ease-in-out infinite;
}

/* 图片错误状态样式 */
.game-image.error {
    background-color: rgba(231, 76, 60, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary-color);
    position: absolute;
}

.image-error-icon i {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
}

@keyframes loading-gradient {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 针对3:2比例的图片容器优化 */
@media (max-width: 1024px) {
    .game-image {
        border-radius: 10px 10px 0 0;
    }
}

@media (max-width: 768px) {
    .game-image {
        border-radius: 8px 8px 0 0;
    }
}

@media (max-width: 480px) {
    .game-image {
        aspect-ratio: 3/2;
    }
    
    .image-error-icon {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-image.loading {
        animation: none;
        background: var(--surface-color);
    }
}