body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
.share-buttons{
    margin: 20px auto;
    text-align: center;
}
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

header .logo {
    display: flex;
    align-items: center;
    padding: 5px 0;
    min-width: 120px;
}

header .logo a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

header .logo a:hover {
    opacity: 0.9;
}

header .logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

header .social-links {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 120px;
    justify-content: flex-end;
}

header .social-links img {
    height: 24px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

header .social-links img:hover {
    opacity: 1;
}

nav {
    margin: 0 20px;
}

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

nav li {
    position: relative;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 700;
}

nav a {
    color: #000;
    text-decoration: none;
    font-size: 20px;
    font-weight: inherit;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #2196F3;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2196F3;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover::after {
    transform: scaleX(1);
}

nav a.active {
    color: #2196F3;
}

nav a.active::after {
    transform: scaleX(1);
}

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

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

footer {
    background: #eeeeef;
    color: #333;
    padding: 40px 0;
    margin-top: 50px;
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-section {
    margin-top: 20px;
    text-align: center;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: #393a3a;
}

.footer-links {
    list-style-type: none; /* 去掉默认的列表样式 */
    padding: 0; /* 去掉内边距 */
    margin: 0; /* 去掉外边距 */
    display: flex; /* 使用 flexbox 布局 */
    flex-wrap: wrap; /* 允许换行 */
    justify-content: flex-start; /* 左对齐 */
}

.footer-links li {
    margin-right: 15px; /* 链接之间的间距 */
}

.footer-links a {
    text-decoration: none; /* 去掉下划线 */
    color: #2196F3; /* 链接颜色 */
}

.footer-links a:hover {
    text-decoration: underline; /* 鼠标悬停时添加下划线 */
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    color: #333;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.social-link i {
    width: 24px;
    height: 24px;
}

.footer-section p {
    color: #333;
    font-size: 0.9rem;
    margin: 0;
}

.game-module {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(227px, 1fr));
    gap: 20px;
    padding: 40px;
    background: #fff;
    margin: 20px auto;
    max-width: 1200px;
}

.game-module-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    width: 260px;
    margin: 0 auto;
}

.game-module-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-module-item img {
    width: 260px;
    height: 170px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    aspect-ratio: 260/170;
}

.game-module-item h3 {
    padding: 15px;
    margin: 0;
    text-align: center;
    color: #333;
    font-size: 1.1em;
}

.game-module-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-module-item a:hover {
    text-decoration: none;
}

.game-module-item.hidden {
    display: none;
}

/* 游戏分类样式 */
.game-categories {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.categories-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.category-tags {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    flex-wrap: nowrap;
    max-width: calc(100% - 80px);
}

.category-tag {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
}

.category-tag:hover {
    background: #f5f5f5;
}

.category-tag.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.more-categories {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    white-space: nowrap;
    color: #2196F3;
    font-weight: 500;
}

.more-categories:hover {
    background: #f5f5f5;
}

/* About页面样式 */
.about-page {
    padding: 40px 0;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-intro h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    color: #666;
}

.our-mission {
    background: #f8f9fa;
    padding: 40px;
    margin: 40px 0;
    border-radius: 8px;
    text-align: center;
}

.our-mission h2 {
    color: #2196F3;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-item h3 {
    color: #2196F3;
    margin-bottom: 15px;
}

.faq-list {
    max-width: 800px;
    margin: 40px auto;
}

.faq-item {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #333;
    margin-bottom: 10px;
}

/* Contact页面样式 */
.contact-page {
    padding: 40px 0;
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.contact-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    max-width: 600px;
}

.contact-info {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-items {
    display: grid;
    gap: 20px;
}

.info-item h3 {
    color: #2196F3;
    margin-bottom: 10px;
}

.info-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #2196F3;
}

.contact-form {
    width: 100%;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #1976D2;
}

.social-connect {
    text-align: center;
    margin-top: 60px;
}

.social-connect .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    color: #666;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #2196F3;
    border-color: #2196F3;
}

/* 宣传语样式 */
.slogan {
    min-width: 200px;
    text-align: right;
}

.slogan p {
    margin: 0;
    color: #2196F3;
    font-weight: 700;
    font-size: 1.1em;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .slogan {
        display: none;
    }
}

/* banner样式 */
.banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    margin: 0 auto;
    max-width: 1300px;
    height: 300px; /* 设置高度 */
    background: linear-gradient(45deg, rgba(33, 150, 243, 0.8), rgba(255, 64, 129, 0.8));
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.game-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.icon {
    font-size: 2em;
    animation: bounce 2s infinite;
}

.text {
    font-size: 3em;
    font-weight: bold;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #fff;
}
.game-controls ul li{
    list-style: none;

}
.text-title {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; /* 替换为实际字体 */
    font-size: 36px; /* 适合的字号 */
    font-weight: 700; /* 加粗 */
    color: #080714; /* 深紫色 */
    line-height: 1.5; /* 行高适中 */
    text-align: center; /* 居中对齐 */
    margin: 20px 0; /* 上下边距 */
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

nav {
    margin: 0 20px;
    width: 300px;
    /* overflow-x: auto; */
    margin-left: 80px;
}
.game-frame-wrapper{
    height: 250px !important;
}