
/* CSS Reset and Basic Setup */
:root {
--primary-yellow: #FFC107;
--primary-blue: #0d6efd;
--primary-red: #DC3545;
--primary-green: #198754;
--primary-purple: #6F42C1;
--bg-color: #F8F9FA; /* Light gray background */
--content-bg-color: #FFFFFF; /* White content background */
--text-color: #212529; /* Dark text */
--text-muted: #6C757D; /* Muted gray text */
--border-color: #DEE2E6; /* Light gray border */
--container-width: 1200px;
}

* {margin: 0;padding: 0;box-sizing: border-box;}
body {font-family: 'Inter', sans-serif;background-color: var(--bg-color);color: var(--text-color);line-height: 1.6;}
/* Container 容器 */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1140px;
}

/* 响应式容器宽度 */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Row 行 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* 基础列样式 */
[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* col- 基础列（移动设备优先） */
.col- {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

/* col-1 到 col-12 */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* col-md- 中等屏幕及以上 (≥768px) */
@media (min-width: 768px) {
    .col-md- {
        flex-basis: 0;
        flex-grow: 1;
        max-width: 100%;
    }
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}
a {color: var(--primary-blue);text-decoration: none;transition: color 0.3s ease;}
a:hover {    color: #000;}
h1, h2, h3, h4 {margin-bottom: 1rem;font-weight: 700;color: var(--text-color);}

/* Header Navigation */
.main-header {padding: 10px 0; background:#fff;}
.main-header .container {display: flex;    justify-content: space-between;align-items: center;}
.logo {font-weight: 900;font-size: 1.5rem;color: var(--text-color); display:flex; align-items:center;}
.logo img {max-width: 82px; display:block; padding-right:1rem;}
.logo i {margin-right: 8px;    color: var(--primary-blue);}
.main-nav ul {list-style: none;display: flex;gap: 25px;}
.main-nav a {color: var(--text-muted);font-weight: 700;font-size: 0.9rem;text-transform: uppercase;letter-spacing: 1px;}
.main-nav a:hover, .main-nav a.active {color: var(--text-color);}

/* Banner Section */
.banner {text-align: center;padding: 100px 0; background:#222c37;}
.banner h1 {font-size: 3.5rem; font-weight: 900; letter-spacing: -2px; color:#fff; margin-bottom: 20px;}
.banner p {font-size: 1.2rem;color: var(--text-muted);max-width: 600px;margin: 0 auto 30px;}
.banner-buttons {display: flex;justify-content: center;gap: 15px;margin-bottom: 40px;}
.btn {padding: 12px 28px;border-radius: 8px;font-weight: 700;text-transform: uppercase;border: none;cursor: pointer;transition: all 0.3s ease;}
.btn-primary {background-color: var(--primary-blue);color: #fff;}
.btn-primary:hover {    background-color: #0B5ED7;    color: #fff;    transform: translateY(-3px);}
.btn-secondary {background-color: var(--content-bg-color);color: var(--text-color);border: 1px solid var(--border-color);}

.btn-secondary:hover {background-color: var(--text-color);color: var(--content-bg-color);transform: translateY(-3px);}
.box-red i {color: var(--primary-red);}
.box-blue i {color: var(--primary-blue);}
.box-green i {color: var(--primary-green);}
.box-purple i {color: var(--primary-purple);}
/* Main Content Section */
.main-content {padding: 80px 0; background-color:#fff;}
.section-title {font-size: 2.5rem;font-weight: 900;margin-bottom: 50px;}
/* Featured Game Section */


/* About Us Section */
.about-section {display: grid;grid-template-columns: 2fr 1fr;gap: 40px;align-items: center;margin-bottom: 80px;}
.about-text h2 {font-size: 2rem;}

.about-image-placeholder {background: linear-gradient(45deg, var(--primary-purple), var(--primary-blue));border-radius: 12px;min-height: 300px;display: flex;align-items: center;justify-content: center;font-size: 2rem;font-weight: 900;color: #fff;}

/* Dev Blog Section */
.blog-post-card {background-color: var(--content-bg-color);border: 2px solid var(--border-color);transition: all 0.3s ease;display:block;}
.blog-post-card:hover {border-color:#222c37;}
.blog-post-card img {    width: 100%;    height: 200px;    object-fit: cover;}
.blog-post-content {padding: 12px;}
.blog-post-content .category {    font-size: 0.8rem;    font-weight: 700;    color: var(--primary-yellow);text-transform: uppercase;    margin-bottom: 10px;}
.blog-post-content h3 {font-size: 1.3rem;margin-bottom: 10px;}
.blog-post-content .read-more {font-weight: 700;}
.blog-summary {font-size:14px; color:#757575;}
/* Footer */
.main-footer {background-color: #111;color: #ccc;padding: 40px 0;}
.main-footer a {    color: #ccc;transition: color 0.3s ease;}
.main-footer a:hover {color: #fff;}
.footer-top {display: flex;justify-content: space-between;align-items: center;margin-bottom: 20px;}
.footer-social {display: flex;align-items: center;gap: 20px;}
.footer-social p {font-weight: 700;margin: 0;}
.footer-social-icons {display: flex;gap: 15px;}
.footer-social-icons a {font-size: 1.5rem;}
.footer-subscribe-form {display: flex;gap: 10px;}
.footer-subscribe-form input {background-color: #333;border: 1px solid #555;color: #fff;padding: 10px 15px;border-radius: 8px;width: 250px;}
.footer-subscribe-form input::placeholder {color: #888;}
.btn-subscribe {
background-color: var(--primary-blue);
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 8px;
font-weight: 700;
cursor: pointer;
transition: background-color 0.3s ease;
}

.btn-subscribe:hover {
    background-color: #0B5ED7;
}

.footer-divider {
border-top: 1px solid #444;
margin: 30px 0;
}

.footer-legal-links {
text-align: center;
margin-bottom: 30px;
}

.footer-legal-links ul {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
}

.footer-legal-links a {
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-bottom {
display: flex;
justify-content: space-between;
align-items: flex-end;
color: #888;
}

.footer-address p {
margin: 0;
font-size: 0.9rem;
line-height: 1.5;
}

.footer-logo-placeholder {
font-weight: 900;
font-size: 1.5rem;
letter-spacing: 1px;
color: #666;
}


/* Responsive Design */
@media (max-width: 992px) {
.banner h1 {
    font-size: 2.8rem;
}

.info-boxes {
    grid-template-columns: repeat(2, 1fr);
}

.featured-game {
    flex-direction: column;
}

.featured-game-image img {
    width: 100%;
    height: 300px;
}

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

.footer-top {
    flex-direction: column;
    gap: 20px;
}
}

@media (max-width: 768px) {
.main-header .container {
    flex-direction: column;
    gap: 15px;
}

.banner h1 {
    font-size: 2.2rem;
}

.banner-buttons {
    flex-direction: column;
}
.footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-subscribe-form {
    flex-direction: column;
    width: 100%;
}

    .footer-subscribe-form input {
        width: 100%;
    }
}


.single-post-container {
    padding-top: 50px;
    padding-bottom: 50px;
}

.single-post-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    text-align: center;
}

.single-post-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 900;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-meta span {
    margin-right: 20px;
}

.post-meta i {
    margin-right: 5px;
}

.single-post-thumbnail {
    margin-bottom: 30px;
    text-align: center;
}

.single-post-thumbnail img {
    max-width: 100%;
    height: auto;
}

.single-post-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color);
}

.single-post-content p {
    margin-bottom: 1rem;
}

.single-post-content h2, .single-post-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--content-bg-color);
}

.author-avatar img {
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
}

.author-details h3 {
    margin: 0;
    font-size: 1.5rem;
}

.author-details p {
    margin: 0;
    color: var(--text-muted);
}

.related-posts {
    margin-top: 80px;
}

.related-posts .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: left;
}

.related-post-card {
    display: block;
    text-align: center;
    background-color: var(--content-bg-color);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.related-post-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.related-post-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.related-post-card h4 {
    font-size: 1rem;
    margin: 0;
}

.game-layout {margin: 0 auto;}
.game-item {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}
.game-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-item:hover .game-bg {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 3rem 2rem 2rem;
    color: white;
}

.game-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.game-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.game-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.game-status {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 2px solid;
}

.status-coming {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-color: #ffc107;
}

.status-available {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border-color: #28a745;
}

.game-button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}
.game-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* 新增的样式 */
.game-status {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 2px solid;
    display: inline-block;
}

.status-coming {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-color: #ffc107;
}

@media (max-width: 768px) {
    .game-item {
        height: 300px;
        margin-bottom: 2rem;
    }
    .section-title {
        font-size: 26px;
        font-weight: 900;
        margin-bottom: 1rem;
    }
    .game-title {
        font-size: 2rem;
    }

    .game-description {
        display:none;
    }

    .game-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }

    .game-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .game-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .game-item {
        height: 250px;
    }

    .game-title {
        font-size: 1.5rem;
    }

    .game-actions {
        width: 100%;
    }

    .game-button {
        width: 100%;
    }
}