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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.8;
    font-size: 16px;
}

a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #e74c3c;
}

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

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

header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    font-size: 32px;
    font-weight: 900;
    color: #e74c3c;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-block;
    padding: 5px 0;
}

.logo .brand-main {
    color: #e74c3c;
    font-weight: 900;
}

.logo .brand-sub {
    color: #2c3e50;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2c3e50;
}

.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    background-color: #e74c3c;
    color: #ffffff;
    padding: 14px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.hero-btn:hover {
    background-color: #c0392b;
    color: #ffffff;
}

.breadcrumb {
    background-color: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumb ol li {
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb ol li a {
    color: #2c3e50;
}

.breadcrumb ol li a:hover {
    color: #e74c3c;
}

.breadcrumb ol li + li:before {
    content: ">";
    margin-right: 8px;
    color: #adb5bd;
}

.main-content {
    padding: 50px 0;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #e74c3c;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card-img {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 14px;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.card-body p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.card-body .read-more {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
}

.features {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.feature-item p {
    font-size: 14px;
    color: #6c757d;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #2c3e50;
}

.article-content h3 {
    font-size: 20px;
    margin: 25px 0 12px;
    color: #2c3e50;
}

.article-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar ul li a {
    font-size: 14px;
    color: #495057;
}

.sidebar ul li a:hover {
    color: #e74c3c;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #e74c3c;
    color: #ffffff;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #c0392b;
}

footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ffffff;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #bdc3c7;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-col p {
    color: #bdc3c7;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}

.floating-promo {
    position: fixed;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-promo a {
    display: block;
    background-color: #e74c3c;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s;
    white-space: nowrap;
}

.floating-promo a:hover {
    background-color: #c0392b;
    color: #ffffff;
}

.floating-util {
    position: fixed;
    right: 15px;
    top: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-util a {
    display: block;
    background-color: #ffffff;
    color: #2c3e50;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    white-space: nowrap;
}

.floating-util a:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

.floating-cta {
    position: fixed;
    right: 20px;
    top: 80px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-cta a {
    display: block;
    background-color: #e74c3c;
    color: #ffffff;
    padding: 16px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    transition: all 0.3s;
    white-space: nowrap;
    text-decoration: none;
    border: 2px solid #e74c3c;
}

.floating-cta a:hover {
    background-color: #c0392b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.5);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tag {
    display: inline-block;
    background-color: #f8f9fa;
    color: #495057;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.tag:hover {
    background-color: #e74c3c;
    color: #ffffff;
    border-color: #e74c3c;
}

.news-list {
    list-style: none;
}

.news-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li a {
    display: block;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.news-list li a:hover {
    color: #e74c3c;
}

.news-list li .date {
    font-size: 13px;
    color: #adb5bd;
}

.game-category {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.game-category h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.game-category p {
    font-size: 14px;
    color: #6c757d;
}

@media screen and (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .hero h1 {
        font-size: 32px;
    }
}

@media screen and (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        border-bottom: 1px solid #e9ecef;
    }

    nav ul li a {
        display: block;
        padding: 12px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 22px;
    }

    .floating-promo,
    .floating-util {
        display: none;
    }

    .floating-cta {
        top: 70px;
        right: 10px;
        gap: 8px;
    }

    .floating-cta a {
        padding: 12px 20px;
        font-size: 14px;
    }

    .header-inner {
        padding: 12px 0;
    }

    .logo {
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .card-body {
        padding: 15px;
    }
}
