/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

.main-header {
    background-color: #5a7de3;
    background-image: url('assets/首页场景.png'); background-size: cover; background-position: center;
    color: white;
    text-shadow: black 0 2px 0;
    padding: 2rem 0;
    text-align: center;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: row;
    gap: 100px;
}

.co-logo{
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

.header-content nav{
    display: flex;
    align-items: center;
    flex-direction: row;
}
.slogan {
    font-style: italic;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-shadow: black 0 2px 0;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-media video {
    width: 100%;
    max-width: 800px;
    margin: 1rem auto;
    border-radius: 8px;
}

.features-section, .gameplay-demo-section, .gallery-section, .contact-section {
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.feature-card {
    text-align: center;
}

.feature-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.video-card {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-card video {
    width: 100%;
    border-radius: 8px 8px 0 0;
    display: block;
}

.video-card h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    background: #f9f9f9;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-section input,
.contact-section textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-section button {
    padding: 0.8rem;
    background: #6e8efb;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-section button:hover {
    background: #5a7de3;
}

.main-footer {
    text-align: center;
    padding: 1.5rem;
    background: #333;
    color: white;
}

/* Banner Container */
.banner-container {
    position: relative;
    width: 60%;
    max-width: 1200px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Banner Slide */
.banner-slide {
    display: none;
    width: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.banner-slide.active {
    display: block;
}

/* Banner Caption */
.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.banner-caption h3 {
    margin: 0;
    font-size: 24px;
}

.banner-caption p {
    margin: 5px 0 0;
    font-size: 16px;
}

/* Banner Navigation Buttons */
.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
    width:45px;
    height:45px;
    transition: background 0.3s ease;
}

.banner-prev {
    left: 10px;
}

.banner-next {
    right: 10px;
}

.banner-prev:hover, .banner-next:hover {
    background: rgba(0, 0, 0, 0.8);
}


/* 响应式布局 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-card h3 {
        font-size: 1rem;
    }
    
    .banner-slide img {
        height: 250px;
    }
    
    .banner-caption h3 {
        font-size: 18px;
    }
    
    .banner-caption p {
        font-size: 14px;
    }
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    line-height: 1.6;
}

/* 游戏按钮样式 */
.game-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.game-button {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #5a7de3;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 各平台按钮品牌色 */
.taptap-button {
    background-color: hsl(167, 91%, 60%);
}

.taptap-button:hover {
    background-color: hsl(167, 91%, 60%);
}

.wechat-button {
    background-color: #07C160;
}

.wechat-button:hover {
    background-color: #06AD56;
}

.douyin-button {
    background-color: #000000;
}

.douyin-button:hover {
    background-color: #333333;
}

.game-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.button-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .game-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .game-button {
        width: 80%;
        justify-content: center;
    }
}