/* =============================================== */
/* 1. 全局重置和基础样式 */
/* =============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* =============================================== */
/* 2. 页面主体样式 */
/* =============================================== */
body {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: #334155;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* =============================================== */
/* 3. 浮动动画（未使用，保留备用） */
/* =============================================== */
@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, 20px) rotate(90deg); }
    50% { transform: translate(0, 40px) rotate(180deg); }
    75% { transform: translate(-20px, 20px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* =============================================== */
/* 4. 内容容器 - 限制最大宽度，水平居中 */
/* =============================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* =============================================== */
/* 8. 主内容区域 */
/* =============================================== */
main {
    min-height: calc(100vh - 160px);
    padding: 20px 0;
}

/* =============================================== */
/* 9. 页面切换动画（多页面应用效果） */
/* =============================================== */
.page-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.page-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 顶部装饰线 */
.company-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #8b5cf6, #3b82f6, #0ea5e9, transparent);
}

.company-intro h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #334155;
    font-weight: 700;
}

.company-intro p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 20px;
    text-align: justify;
}

.company-intro_center {
    text-align: center;
    margin: 0 auto;
}

/* =============================================== */
/* 12. 背景图展示区域（全宽背景图轮播） */
/* =============================================== */
.background-showcase {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.background-item,
.bg-image,
.background-showcase { border-radius: 0 !important; }

.bg-image, .bg-image1 {
    width: 100%;
    height: auto;
    display: block;
}

.background-item {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* =============================================== */
/* 13. 移动端核心适配（1080标准宽度）- 使用CSS变量缩放 */
/* =============================================== */
@media (max-width: 1080px) {
    
    /* 13.1 下载按钮区域 */
   .download-buttons {
        position: absolute;
        bottom: calc(10px * var(--mobile-scale));
        left: 50%;
        transform: translateX(-50%);      /* 只居中，不scale */
        margin-top: 0;
        padding-bottom: 0;
        gap: calc(30px * var(--mobile-scale));
    }

    /* 13.2 按钮尺寸 */
    .down-btn {
        width: calc(278px * var(--mobile-scale));
        height: calc(90px * var(--mobile-scale));
    }

    .down-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 12px;
    }

    /* 13.3 新闻区域 */
    /* 13.3 新闻区域 */
    .news-section-wrapper {
        position: absolute;
        top: calc(200px * var(--mobile-scale));
        left: 50%;
        transform: translateX(-50%) ;
        transform-origin: top center;
        display: flex;
        width: 90%;
        max-width: 1080px;
        padding: 0;
        align-items: center;
        z-index: 5;
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    }

    .news-item-title {
        font-size: calc(8px  * var(--mobile-scale))!important;

        }

    .news-item-date {
        font-size: calc(6px * var(--mobile-scale))!important;
    }

    .news-item {
        padding: calc(20px * var(--mobile-scale)) calc(25px * var(--mobile-scale))!important;
    }
        
    /* 左列：轮播图 */
    .news-section-wrapper > div:first-child {
        width: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    margin-top: calc(-200px * var(--mobile-scale));
    }

    /* 右列：新闻列表 */
    .news-section-wrapper > div:last-child {
        width: 50%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        overflow: hidden;
    }

    /* 13.4 轮播图和新闻列表尺寸 - 只在这里做缩放 */
    .simple-news-carousel {
        width: calc(340px * var(--mobile-scale));
        height: calc(340px * var(--mobile-scale));
        flex-shrink: 0;
        border-radius: 15px;
        overflow: hidden;
    }

    .news-list-container {
        width: calc(540px * var(--mobile-scale));
        height: calc(540px * var(--mobile-scale));
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        overflow-y: auto;
    }

    /* 13.5 底部轮播区域 */
    .background-item:nth-child(3) .carousel-section {
        position: absolute !important;
        top: 30% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(var(--mobile-scale)) !important;
        transform-origin: center center;
        width: calc(900px * var(--mobile-scale)) !important;
        max-width: 90vw !important;
    }

}

 @media (max-width: 700px) {
    .news-layout {
        flex-direction: column;
        align-items: center;
        position: relative;
        margin-top: 20px;
        top: auto;
        transform: scale(var(--mobile-scale));
        transform-origin: top center;
    }

    .company-intro_center p {
        font-size: 0.7rem;
    }

  .company-intro_center p:last-child {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .company-intro_center p:last-child a {
        width: 50%;
    }

    .separator {
        display: none;
    }
   .company-intro_center p:last-child .policy-link {
        white-space: nowrap;
        font-size: 0.5rem;
    }
    
}




/* =============================================== */
/* 14. 屏幕宽度大于1080px时固定尺寸（不缩放） */
/* =============================================== */
@media (min-width: 1081px) {
    .download-buttons {
        bottom: 100px;
        gap: 100px;
    }
    .down-btn {
        width: 278px;
        height: 90px;
    }
    .simple-news-carousel{
        width: 340px;
        height: 340px;
    }
    .news-list-container {
        width: 480px;
        height: 340px;
    }
    .background-item:nth-child(3) .carousel-section {
        width: 900px !important;
    }
    
    /* =============================================== */
    /* PC端新闻区域定位 */
    /* =============================================== */
    .news-section-wrapper {
        position: absolute;
        top: 250px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        width: 90%;
        max-width: 1920px;
        padding: 0;
        align-items: center;
        z-index: 5;
    }

    .news-section-wrapper > div:first-child {
        width: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .news-section-wrapper > div:last-child {
        width: 50%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        overflow: hidden;
        margin-top: 50px;
    }
       .news-item-title {
        font-size: 0.9rem;
        color: #334155;
        font-weight: 600;
        flex: 1;
    }

    .news-item-date {
        font-size: 0.9rem;
        color: #94a3b8;
        white-space: nowrap;
    }
    
}

/* =============================================== */
/* 15. PC端下载按钮样式 */
/* =============================================== */
.download-buttons {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10%;
    padding-bottom: -20px;
    z-index: 10;
}

.down-btn {
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.down-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.down-btn:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

/* =============================================== */
/* 16. 游戏特色和新闻资讯图片 */
/* =============================================== */
.game_features, .news_information {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    width: 80%;
    max-width: 800px;
}

.game_features img, .news_information img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* =============================================== */
/* 17. 页脚样式 */
/* =============================================== */
footer {
    background: white;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* =============================================== */
/* 18. 主轮播图样式（第三个背景图中的三张图片轮播） */
/* =============================================== */
.carousel-section {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 85%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 85%;
    max-width: 1200px;
    margin: 0;
    overflow: hidden;
    border-radius: 15px;
    background: transparent;
    height: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 40px;
    height: 100%;
}

/* 三张图片的不同样式：左小右小，中间大 */
.carousel-slide img {
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.carousel-slide img:nth-child(1) {
    width: 30%;
    height: 85%;
    transform: scale(0.9);
    opacity: 0.85;
    margin-right: 10px;
}

.carousel-slide img:nth-child(2) {
    width: 35%;
    height: 85%;
    transform: scale(1);
    margin: 0 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.carousel-slide img:nth-child(3) {
    width: 30%;
    height: 85%;
    transform: scale(0.9);
    opacity: 0.85;
    margin-left: 10px;
}

/* 左右导航按钮图标 */
.carousel-nav img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* 指示点容器 */
.carousel-indicators-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #738158;
    transform: scale(1.2);
}

/* =============================================== */
/* 19. 新闻详情页面样式 */
/* =============================================== */
.news-content {
    max-width: 1000px;
    margin: 40px auto 60px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-title {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.news-subtitle {
    font-size: 1.6rem;
    color: #738158;
    margin-bottom: 20px;
}

.news-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.section-title {
    font-size: 1.8rem;
    color: #738158;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* =============================================== */
/* 20. 首页新闻轮播+新闻列表并排布局 */
/* =============================================== */
.news-layout {
    position: absolute;
    top: 1200px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    display: flex;
    gap: 40px;
    z-index: 5;
    align-items: flex-start;
}

/* 新闻轮播图容器 */
.simple-news-carousel {
    flex: 0 0 auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.simple-carousel-track {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.simple-carousel-slide {
    width: 25%;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* 使用伪元素背景图片实现轮播图 */
.simple-carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* 四张轮播图背景图片 */
.simple-carousel-slide[data-slide="0"]::before { background-image: url('../images/news_01.png'); }
.simple-carousel-slide[data-slide="1"]::before { background-image: url('../images/news_02.png'); }
.simple-carousel-slide[data-slide="2"]::before { background-image: url('../images/news_03.png'); }
.simple-carousel-slide[data-slide="3"]::before { background-image: url('../images/news_04.png'); }

/* 新闻列表容器 */
.news-list-container {
    flex: 0 0 auto;
    max-width: 100%;
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-list {
    flex: 1;
    overflow-y: auto;
}

/* 单个新闻条目 */
.news-item {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}


.news-item-content {
    display: flex;
    align-items: baseline;
    gap: 30px;
    flex: 1;
}
.news-item-icon {
    margin-left: 20px;
}
/* 轮播图底部指示点 */
.simple-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.simple-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #000;
    cursor: pointer;
}

.simple-indicator.active {
    background: #738158;
    transform: scale(1.2);
}
/* =============================================== */
/* 公司简介底部区域 */
/* =============================================== */
.company-intro-wrapper {
    width: 100%;
    background: #0f2926;
    padding: 40px 0;
    margin-top: -3%;
}

.company-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo-image {
    width: 120px;
    height: auto;
}

.company-intro_center {
    text-align: center;
    color: #94a3b8;
    font-size: 0.5rem;
    line-height: 1.8;
}

.company-intro_center p {
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
}

.policy-link {
    color: #8badc3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-link:hover {
    color: #ffffff;
}