:root {
    --primary-color: #4a90e2;
    --text-color: #333;
    --bg-color: #f5f5f5;
}

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

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-color);
    background-color: var(--bg-color);
    background: #f5f5f5 !important;
    color: #333 !important;
}

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

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.site-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.site-description {
    color: #666;
    margin-bottom: 1rem;
}

.main-nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

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

/* Main Content Styles */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Game Grid Styles */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-content {
    padding: 1rem;
}

.game-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.game-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Category Grid Styles */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.category-card > p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Category Games Styles */
.category-games {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-game-card {
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.category-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.category-game-content {
    padding: 0.8rem;
}

.category-game-content h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.category-game-content p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* Footer Styles */
.footer {
    background-color: white;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        flex-direction: column;
    }

    .nav-link {
        text-align: center;
    }

    .category-games {
        grid-template-columns: 1fr;
    }
    
    .category-game-image {
        height: 150px;
    }
}

/* Error Message Styles */
.error {
    color: #dc3545;
    text-align: center;
    padding: 1rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Game Actions Styles */
.game-actions {
    margin-top: 2rem;
    text-align: center;
}

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    min-width: 200px;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #357abd 0%, #4a90e2 100%);
}

.play-button:hover::before {
    left: 100%;
}

.play-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* 添加响应式样式 */
@media (max-width: 768px) {
    .play-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-width: 180px;
    }
}

/* === 简洁白色卡片风格游戏详情页样式 === */
.game-detail-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    margin: 3rem auto;
    max-width: 900px;
    padding: 2.5rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.game-detail-logo {
    flex: 0 0 220px;
    width: 220px;
    height: 220px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #e3e8ee;
}

.game-detail-logo img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.game-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.game-detail-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #333;
    margin-bottom: 0.2em;
    letter-spacing: 1px;
}

.game-detail-category {
    display: inline-block;
    font-size: 1rem;
    color: #fff;
    background: #4a90e2;
    border-radius: 6px;
    padding: 0.2em 0.8em;
    margin-left: 1em;
    font-weight: 700;
    letter-spacing: 1px;
}

.game-detail-desc {
    font-size: 1.15rem;
    color: #444;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.2em 1.5em;
    border: 1px solid #e3e8ee;
    min-height: 80px;
}

.game-actions {
    margin-top: 1.5rem;
    text-align: left;
}

.play-button {
    display: inline-block;
    background: #4a90e2;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    border: none;
    box-shadow: 0 2px 8px rgba(74,144,226,0.10);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.play-button:hover {
    background: #357abd;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(74,144,226,0.18);
}
.play-button:active {
    background: #4a90e2;
    color: #fff;
    transform: scale(0.98);
}

@media (max-width: 900px) {
    .game-detail-container {
        flex-direction: column;
        align-items: center;
        padding: 1.2rem;
    }
    .game-detail-logo {
        width: 140px;
        height: 140px;
    }
    .game-detail-info {
        width: 100%;
    }
}

.game-detail-header-flex {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    margin: 3rem auto 2.5rem auto;
    max-width: 1000px;
    justify-content: center;
}

.game-detail-logo {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    background: #ffd600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.game-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-detail-info-card {
    flex: 1;
    background: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-width: 0;
    align-items: center;
}
.game-detail-logo-in-card {
    width: 100% !important;
    max-width: 700px !important;
    min-width: 180px;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 2rem auto !important;
    padding: 0 !important;
}
.game-detail-logo-in-card img {
    width: 100% !important;
    height: auto !important;
    max-width: 700px !important;
    max-height: 700px !important;
    object-fit: contain !important;
    display: block !important;
    background: none !important;
    margin: 0 auto;
}
@media (max-width: 700px) {
    .game-detail-logo-in-card {
        width: 160px !important;
        margin-bottom: 1.2rem !important;
    }
}

.game-detail-title {
    font-size: 2rem;
    font-weight: 900;
    color: #222;
    margin-bottom: 0.5em;
}

.game-detail-desc {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 0.5em;
}

.game-detail-meta {
    font-size: 1rem;
    color: #888;
    margin-bottom: 0.5em;
}

.game-detail-tags {
    margin-bottom: 0.5em;
}

.game-tag {
    display: inline-block;
    background: #e3f0fc;
    color: #357abd;
    border-radius: 4px;
    padding: 0.2em 0.8em;
    font-size: 0.95em;
    margin-right: 0.5em;
    margin-bottom: 0.2em;
}

@media (max-width: 900px) {
    .game-detail-header-flex {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin: 1.5rem auto 1.5rem auto;
        padding: 0 0.5rem;
    }
    .game-detail-logo {
        width: 100px;
        height: 100px;
        font-size: 1.3rem;
    }
    .game-detail-info-card {
        padding: 1.2rem 1rem;
    }
    .game-detail-logo-in-card {
        width: 110px;
        height: 110px;
    }
}

/* 详情页主容器美化 */
#gameDetail {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 3rem auto 2.5rem auto;
    padding: 0 1.5rem;
}

.game-detail-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #357abd;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-align: center;
}

.game-detail-logo-in-card {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #ffd600 60%, #ffe066 100%);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    box-shadow: 0 6px 32px rgba(255,214,0,0.13), 0 2px 8px rgba(0,0,0,0.08);
}

.game-detail-logo-in-card img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.game-detail-desc {
    font-size: 1.15rem;
    color: #333;
    background: #f7fafd;
    border-radius: 10px;
    padding: 1.2em 1.5em;
    border: 1px solid #e3e8ee;
    margin-bottom: 1.2em;
    text-align: center;
}

.game-detail-meta {
    font-size: 1rem;
    color: #888;
    margin-bottom: 0.7em;
    text-align: center;
}

.game-detail-tags {
    margin-bottom: 1.2em;
    text-align: center;
}

.game-tag {
    display: inline-block;
    background: #e3f0fc;
    color: #357abd;
    border-radius: 6px;
    padding: 0.3em 1em;
    font-size: 1em;
    margin: 0 0.3em 0.3em 0;
    font-weight: 500;
    box-shadow: 0 1px 4px #e3f0fc;
}

.game-actions {
    margin: 2.2rem 0 1.5rem 0;
    text-align: center;
}

.play-button {
    display: inline-block;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    padding: 1.2rem 3.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 2px;
    border: none;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.18);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.play-button:hover {
    background: linear-gradient(135deg, #357abd 0%, #4a90e2 100%);
    color: #eaf6ff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px #4a90e288;
}
.play-button:active {
    background: #357abd;
    color: #fff;
    transform: scale(0.98);
}

/* 下方内容分隔 */
.game-detail-content {
    width: 100%;
    margin-top: 2.5rem;
    border-top: 1.5px solid #e3e8ee;
    padding-top: 2.5rem;
}

@media (max-width: 900px) {
    #gameDetail {
        padding: 0 0.5rem;
    }
    .game-detail-logo-in-card {
        width: 120px;
        height: 120px;
        border-radius: 18px;
    }
    .play-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

.category-tabs {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.2rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    border-bottom: 2.5px solid #e3e8ee;
    background: none;
}
.category-tab {
    background: none;
    color: #357abd;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.7em 2.2em 0.5em 2.2em;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: color 0.18s, border-bottom 0.18s, background 0.18s;
    margin-bottom: -2px;
    position: relative;
    background: none;
}
.category-tab.active, .category-tab:hover {
    color: #222;
    border-bottom: 3px solid #357abd;
    background: #f5faff;
}
.category-tab:active {
    color: #4a90e2;
}
@media (max-width: 600px) {
    .category-tabs {
        gap: 0.5rem;
    }
    .category-tab {
        font-size: 1rem;
        padding: 0.5em 1.2em 0.4em 1.2em;
    }
}

#categoryGames.game-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 2rem !important;
}
@media (max-width: 1200px) {
    #categoryGames.game-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 900px) {
    #categoryGames.game-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 600px) {
    #categoryGames.game-grid {
        grid-template-columns: 1fr !important;
    }
}

.game-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin: 2.5rem 0;
    position: relative;
    padding-left: 40px;
}
.game-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #4a90e2 0%, #e3e8ee 100%);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
.timeline-date {
    min-width: 90px;
    font-size: 1.1rem;
    color: #4a90e2;
    font-weight: bold;
    background: #f5faff;
    border-radius: 16px;
    padding: 0.5em 1.2em;
    box-shadow: 0 2px 8px #e3f0fc;
    position: absolute;
    left: -110px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
}
@media (max-width: 700px) {
    .game-timeline {
        padding-left: 0;
    }
    .game-timeline::before {
        display: none;
    }
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }
    .timeline-date {
        position: static;
        transform: none;
        margin-bottom: 0.5rem;
        text-align: left;
    }
}