/* Game-inspired color palette */
:root {
    --game-primary: #FF6B6B;     /* 活力红色 */
    --game-secondary: #4ECDC4;   /* 清新蓝绿 */
    --game-accent: #FFE66D;      /* 明亮黄色 */
    --game-purple: #6C5CE7;      /* 梦幻紫色 */
    --game-pink: #FF78B9;        /* 可爱粉色 */
    --game-blue: #45AAF2;        /* 天空蓝 */
    --game-green: #26DE81;       /* 活力绿 */
    --game-orange: #FFA502;      /* 温暖橙色 */
    --game-gray1: #A4B0BE;
    --game-gray2: #CED6E0;
    --game-gray3: #DFE4EA;
    --game-gray4: #F1F2F6;
    --dark-background: #2F3542;
    --light-background: #FFFFFF;
    --text-primary: #2F3542;
    --text-secondary: #57606F;
    --text-tertiary: #747D8C;
    --glass-background: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--game-gray4) 0%, var(--light-background) 100%);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--game-blue);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--game-primary);
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Glass Effect */
.glass-header, .glass-footer {
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px var(--glass-shadow);
}

.glass-header.scrolled {
    background: var(--light-background);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    color: var(--game-primary);
    text-align: center;
    text-shadow: 2px 2px 0 var(--game-accent);
    animation: float 3s ease-in-out infinite;
}

h2 {
    font-size: 2.5rem;
    color: var(--game-purple);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 0 var(--game-gray2);
}

h3 {
    font-size: 1.5rem;
    color: var(--game-secondary);
}

p {
    margin-bottom: 1.5rem;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    padding-left: 0;
}

.logo img {
    height: 45px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.logo h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--game-primary);
    text-align: left;
    text-shadow: 1px 1px 0 var(--game-accent);
    white-space: nowrap;
}

nav {
    margin-left: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 2rem;
}

.nav-link {
    color: var(--game-purple);
    font-weight: 700;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--game-primary), var(--game-pink));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Game Section */
.game-section {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--game-gray4) 0%, var(--light-background) 100%);
}

.game-section .container {
    max-width: 1500px;
    padding: 0 10px;
}

.game-layout {
    display: flex;
    gap: 1.5rem;
    margin-top: 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.game-main {
    flex: 1;
    min-width: 0;
    flex-basis: 80%;
    background: var(--light-background);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.game-main:hover {
    transform: translateY(-5px);
}

.game-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: var(--game-gray4);
    border-radius: 10px;
    overflow: hidden;
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--game-gray4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.game-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.game-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--light-background);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.play-button span {
    color: var(--game-primary);
    font-weight: 700;
    font-size: 1.4rem;
}

.game-container.loaded .loading-overlay {
    display: none;
}

.game-controls {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--game-gray4);
    border-radius: 10px;
}

.control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key {
    background: var(--light-background);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mouse-icon {
    width: 24px;
    height: 24px;
}

/* Recommended Games */
.recommended-games {
    width: 250px;
    min-width: 250px;
    flex: 0 0 auto;
    background: var(--light-background);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.recommended-games h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.game-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.game-card {
    background: var(--game-gray4);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.game-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.game-card-overlay span {
    color: var(--light-background);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    background: var(--game-primary);
    border-radius: 50px;
}

.game-title {
    display: block;
    padding: 0.75rem;
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: var(--light-background);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

.about-image img {
    max-width: 85%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--game-gray4) 0%, var(--light-background) 100%);
}

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

.feature {
    background: var(--light-background);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--game-gray4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

/* Tips Section */
.tips-section {
    padding: 5rem 0;
    background: var(--light-background);
}

.tips-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tip {
    background: var(--game-gray4);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tip:hover {
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
}

.footer-logo h4 {
    color: var(--game-primary);
    margin: 0;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.footer-contact a {
    color: var(--game-primary);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.legal-info {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
}

.legal-link {
    color: var(--game-primary);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-layout {
        flex-direction: column;
        max-width: 100%;
    }

    .game-main {
        flex-basis: 100%;
        width: 100%;
    }

    .recommended-games {
        width: 100%;
        min-width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 1.5rem;
    }
    
    .about-image img {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        width: 95%;
    }

    nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--light-background);
        padding: 1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .game-controls {
        flex-direction: column;
        gap: 1rem;
    }

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

    .footer-logo {
        align-items: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .game-section {
        padding: 6rem 0 3rem;
    }

    .feature, .tip {
        padding: 1.5rem;
    }
}

/* 导航栏样式 */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--light-background);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px var(--glass-shadow);
}

.glass-header.scrolled {
    background: var(--light-background);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.search-box {
    display: flex;
    align-items: center;
    background: var(--game-gray4);
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem;
    width: 200px;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-box button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }
}

/* 游戏信息部分 */
.game-info-section {
    padding: 60px 0;
    background: var(--light-background);
}

.game-info-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.info-tabs {
    background: var(--light-background);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #eee;
    background: var(--light-background);
}

.tab-btn {
    padding: 16px 24px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--game-primary);
    border-bottom: 2px solid var(--game-primary);
}

.tab-content {
    padding: 24px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

.about-text h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature {
    padding: 20px;
    background: var(--game-gray4);
    border-radius: 8px;
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    font-size: 14px;
}

.tips-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tip {
    padding: 20px;
    background: var(--game-gray4);
    border-radius: 8px;
}

.tip h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tip p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 评论部分 */
.comments-section {
    background: var(--light-background);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 24px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.comments-header h3 {
    font-size: 20px;
    color: var(--text-primary);
}

.sort-comments {
    padding: 8px 12px;
    border: 1px solid var(--game-gray2);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.comment {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--game-gray2);
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: var(--game-primary);
    color: var(--light-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 500;
    color: var(--text-primary);
}

.comment-time {
    color: var(--text-tertiary);
    font-size: 14px;
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reply-btn {
    padding: 6px 12px;
    border: 1px solid var(--game-gray2);
    border-radius: 4px;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.reply-btn:hover {
    background: var(--game-gray4);
}

.vote-buttons {
    display: flex;
    gap: 8px;
}

.vote-btn {
    padding: 4px 8px;
    border: 1px solid var(--game-gray2);
    border-radius: 4px;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.vote-btn:hover {
    background: var(--game-gray4);
}

.add-comment {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--game-gray2);
}

.add-comment h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-form input {
    padding: 12px;
    border: 1px solid var(--game-gray2);
    border-radius: 6px;
    font-size: 14px;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--game-primary);
    color: var(--light-background);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--game-primary);
    opacity: 0.9;
}

.send-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

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

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

    .features-grid,
    .tips-content {
        grid-template-columns: 1fr;
    }

    .comment {
        flex-direction: column;
    }

    .comment-avatar {
        align-self: flex-start;
    }

    .comment-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}