/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f7f7;
}

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

h1, h2, h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

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

button {
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #e74c3c;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #c0392b;
}

/* 头部样式 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 7px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-left: 12px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    font-size: 0.85rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 游戏容器样式 */
.game-container {
    padding: 20px 0;
    background-color: #fff;
}

/* 专门为游戏区域优化的容器样式 */
.game-container .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
}

.game-wrapper {
    width: 98%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.game-frame-container {
    flex: 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 5px;
}

#game-iframe {
    width: 100%;
    height: 520px;
    border: none;
    display: block;
}

/* 游戏导航栏样式 */
.game-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #2c3e50;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.game-title {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.game-controls button {
    background-color: transparent;
    color: white;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.game-controls button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.game-controls i {
    font-size: 18px;
}

/* 游戏列表样式 */
.game-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    align-self: stretch;
    height: 572px;
    overflow-y: auto;
    padding: 0;
    align-content: flex-start;
    max-width: 20%;
}

/* 隐藏滚动条但保留功能 */
.game-list::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.game-card {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    margin-bottom: 0;
    /* 默认隐藏所有游戏卡片 */
    display: none;
}

/* 只显示已实现的游戏卡片 */
.game-card.available {
    display: block;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.game-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-card .game-title {
    color: #2c3e50;
    font-size: 12px;
    text-align: center;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.95);
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 4px 2px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.game-card .game-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background-color: #e74c3c;
    color: white;
    font-size: 0.5rem;
    padding: 2px 4px;
    border-radius: 6px;
    font-weight: bold;
}

/* 游戏介绍区域样式 - 改为浅色系 */
.game-intro {
    padding: 50px 0;
    background-color: #f7f9fc;
    position: relative;
    overflow: hidden;
}

/* 主标题样式 */
.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
}

.game-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern-bg.png') repeat;
    opacity: 0.05;
    z-index: 0;
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.game-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.game-intro p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    color: #555;
}

.game-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
    gap: 30px;
}

.feature {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: white;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(52, 152, 219, 0.2);
}

.feature i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
    display: block;
    text-align: center;
}

.feature h3 {
    font-size: 1.3rem;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #2c3e50;
    text-align: center;
}

.feature p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0;
}

.cta-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3498db;
    margin-top: 30px;
}

/* 关于游戏部分 */
.about {
    padding: 60px 0;
    background-color: white;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h4v4H0V0zm4 4h4v4H4V4zm4-4h4v4H8V0zm4 0h4v4h-4V0zm0 4h4v4h-4V4zm0 4h4v4h-4V8zm-4 4h4v4H8v-4zm-4 0h4v4H4v-4zm-4 0h4v4H0v-4z" fill="%233498db" fill-opacity="0.03" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.6;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.about .content {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.about .text {
    flex: 1;
}

.about .text h3 {
    color: #3498db;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about .text p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}

.about .image {
    flex: 1;
    text-align: center;
}

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

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

/* 游戏说明部分 */
.instructions {
    padding: 60px 0;
    background-color: #f8fafc;
    position: relative;
}

.instructions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M10 0v20L0 10 10 0zm10 0v20l-10-10 10-10z" fill="%233498db" fill-opacity="0.02" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.7;
    z-index: 0;
}

.instructions .container {
    position: relative;
    z-index: 1;
}

.instructions h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.instruction-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.instruction-item {
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.08);
}

.instruction-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.instruction-item h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.instruction-item p, .instruction-item ul {
    color: #555;
    line-height: 1.7;
}

.instruction-item ul {
    padding-left: 20px;
    margin-top: 15px;
}

.instruction-item ul li {
    margin-bottom: 8px;
}

.instruction-item strong {
    color: #2c3e50;
}

/* 页脚样式 - 减小尺寸到四分之一 */
footer {
    background-color: #1a2530;
    color: #ecf0f1;
    padding: 10px 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h4v4H0V0zm4 4h4v4H4V4zm4-4h4v4H8V0zm4 0h4v4h-4V0zm0 4h4v4h-4V4zm0 4h4v4h-4V8zm-4 4h4v4H8v-4zm-4 0h4v4H4v-4zm-4 0h4v4H0v-4z" fill="%23ffffff" fill-opacity="0.03" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.5;
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.footer-info, .footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-info h3, .footer-links h3 {
    color: white;
    margin-bottom: 5px;
}

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

.footer-links ul li {
    margin-bottom: 3px;
}

.footer-links ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
}

/* 页面内容样式 - 用于隐私政策、服务条款和常见问题页面 */
.page-content {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-content h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
}

.content-block {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.content-block h3 {
    color: #e74c3c;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-block p, .content-block ul, .content-block ol {
    margin-bottom: 15px;
}

.content-block ul, .content-block ol {
    padding-left: 20px;
}

.content-block ul li, .content-block ol li {
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 7px;
        justify-content: center;
    }

    nav ul li {
        margin: 0 5px;
    }

    .about .content {
        flex-direction: column;
    }

    .game-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    
    .game-card .game-title {
        font-size: 0.6rem;
        padding: 3px;
    }
    
    .game-card .game-badge {
        font-size: 0.5rem;
        padding: 2px 4px;
    }
    
    #game-iframe {
        height: 360px;
    }

    .game-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .game-intro h2 {
        font-size: 1.8rem;
    }

    nav ul li {
        margin: 0 3px;
    }

    .game-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    #game-iframe {
        height: 280px;
    }
}

/* 新增教程部分样式 */
.tutorial {
    padding: 60px 0;
    background-color: white;
    position: relative;
}

.tutorial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h4v4H0V0zm4 4h4v4H4V4zm4-4h4v4H8V0zm4 0h4v4h-4V0zm0 4h4v4h-4V4zm0 4h4v4h-4V8zm-4 4h4v4H8v-4zm-4 0h4v4H4v-4zm-4 0h4v4H0v-4z" fill="%233498db" fill-opacity="0.03" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.7;
    z-index: 0;
}

.tutorial .container {
    position: relative;
    z-index: 1;
}

.tutorial h3 {
    color: #2c3e50;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.tutorial-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tutorial-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.08);
}

.tutorial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(52, 152, 219, 0.15);
}

.tutorial-item h4 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tutorial-item p {
    color: #555;
    line-height: 1.7;
}

/* 游戏特色部分 */
.unique {
    padding: 70px 0;
    background-color: #f8fafc;
    position: relative;
}

.unique::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M10 0v20L0 10 10 0zm10 0v20l-10-10 10-10z" fill="%233498db" fill-opacity="0.02" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.7;
    z-index: 0;
}

.unique .container {
    position: relative;
    z-index: 1;
}

.unique h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.unique-content {
    margin-top: 30px;
}

.unique-points ul {
    list-style-type: none;
    padding: 0;
}

.unique-points ul li {
    background-color: white;
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.08);
}

.unique-points ul li:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(52, 152, 219, 0.15);
}

.unique-points ul li strong {
    color: #3498db;
    margin-right: 5px;
    font-size: 1.1rem;
}

/* 讨论部分 */
.discuss {
    padding: 60px 0;
    background: linear-gradient(to bottom, #2c3e50, #34495e);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.discuss::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h4v4H0V0zm4 4h4v4H4V4zm4-4h4v4H8V0zm4 0h4v4h-4V0zm0 4h4v4h-4V4zm0 4h4v4h-4V8zm-4 4h4v4H8v-4zm-4 0h4v4H4v-4zm-4 0h4v4H0v-4z" fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.8;
    z-index: 1;
}

.discuss .container {
    position: relative;
    z-index: 2;
}

.discuss h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.discuss p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1.1rem;
}

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

.social-links a {
    display: inline-block;
    padding: 12px 30px;
    background-color: #f39c12;
    color: white;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background-color: white;
    color: #3498db;
    text-decoration: none;
    transform: scale(1.05);
    border-color: transparent;
}

/* 头部导航栏激活状态 */
nav ul li.active a {
    color: #e74c3c;
}

nav ul li.active a::after {
    width: 100%;
}

/* 底部导航栏激活状态 */
.footer-links ul li.active a {
    color: white;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .game-wrapper {
        flex-direction: column;
    }
    
    .game-frame-container {
        flex: 0 0 100%;
        width: 100%;
        order: 1;
    }
    
    .game-list {
        flex: 0 0 100%;
        height: auto;
        order: 2;
        width: 100%;
        margin-top: 20px;
        grid-template-columns: repeat(6, 1fr);
    }
    
    .game-list.left {
        order: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .game-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    
    .game-card .game-title {
        font-size: 0.6rem;
        padding: 3px;
    }
    
    .game-card .game-badge {
        font-size: 0.5rem;
        padding: 2px 4px;
    }
    
    #game-iframe {
        height: 360px;
    }
}

@media (max-width: 480px) {
    .game-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    #game-iframe {
        height: 280px;
    }
}

/* 开发中页面样式 */
.coming-soon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh;
    background-color: #f8fafc;
    text-align: center;
    padding: 20px;
}

.coming-soon h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.coming-soon p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.coming-soon .return-btn {
    background-color: #3498db;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.coming-soon .return-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

/* 为左侧游戏列表添加右边距，为右侧游戏列表添加左边距 */
.game-list.left {
    padding-right: 5px;
}

.game-list.right {
    padding-left: 5px;
} 