/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
}

/* 主容器 */
.main-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* 通用section样式 */
.section {
    width: 100%;
    min-height: 100vh;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    flex-direction: column-reverse;
}

/* 根据背景图比例调整各部分高度 */
.section-1 {
    height: 100vh;
}

.section-2 {
    height: 100vh;
}

.section-3 {
    height: 100vh;
}

.section-4 {
    height: 100vh;
}

/* 导航条样式 */
.navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    height: 80px;
    background-image: url('./images/nav.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-left {
    flex: 0 0 auto;
}

.nav-center {
    flex: 1;
    justify-content: center;
    gap: 20px;
}

.nav-right {
    flex: 0 0 auto;
}

.fac-button {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.fac-button:hover {
    transform: scale(1.05);
}

.nav-link {
    color: #ffd700;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffd700;
}

.nav-separator {
    color: #ffd700;
    font-size: 10px;
    font-weight: bold;
}

.login-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.login-btn:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 浮窗样式 */
.floating-window {
    position: absolute;
    top: 100px;
    right: 20px;
    width: 200px;
    height: 445px;
    background-image: url('./images/fu_1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;

    width: 100%;
    height: 100%;
    justify-content: flex-start;
    align-items: center;
    margin-top: 250px;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 160px;
}

.floating-btn:hover {
    transform: translateX(-5px) scale(1.05);
}

.btn-icon {
    width: 100%;
    height: auto;
    max-width: 160px;
    object-fit: contain;
}

/* 底部按钮区域 */
.bottom-buttons {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 8;
    justify-content: center;
    align-items: center;
}

.bottom-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.bottom-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.bottom-btn-icon {
    height: 100%;
    width: auto;
    object-fit: contain;
}


/* 第二部分文字链接区域 */
.text-links-section {
    position: absolute;
    right: 19%;
    top: 55%;
    transform: translateY(-50%);
    z-index: 10;
    width: 503px;
}

.text-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.text-link:hover {
    color: #fff;
}

.text-link:last-child {
    border-bottom: none;
}

.text-title {
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    margin-right: 15px;
}

.text-date {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
}

/* 第二部分图片 */
.section2-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 45%;
    left: 20%;
    
}

.guanggao-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    max-height: 500px;
    object-fit: contain;
    display: block;
    z-index: 1;
}

/* 第三部分轮播图 */
.career-section {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 90%;
    height: 60vh;
    padding: 2%;
    z-index: 10;
}

.career-carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    overflow: unset;
    border-radius: 1vw;
    z-index: 1;
}

.career-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.career-item.active {
    opacity: 1;
}

.career-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    transform: scale(1.2);
}

.career-buttons {
    display: flex;
    gap: 1.5vw;
    justify-content: center;
    align-items: center;
    margin-top: -1.5vw;
    position: absolute;
    z-index: 15;
    top: 87%;
    left: 56%;
}

.career-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: transform 0.3s ease;
}

.career-btn:hover {
    transform: scale(1.05);
}

.career-btn-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.career-btn .active-img {
    display: block;
}

.career-btn .inactive-img {
    display: none;
}

.career-btn:not(.active) .active-img {
    display: none;
}

.career-btn:not(.active) .inactive-img {
    display: block;
}

/* 内容容器 */
.content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    max-width: 800px;
    margin: 0 20px;
    margin-top: auto;
    margin-bottom: auto;
}

.content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* 各个部分的背景图片 */
.section-1 {
    background-image: url('./images/base_1.jpg');
}

.section-2 {
    background-image: url('./images/base_2.jpg');
}

.section-3 {
    background-image: url('./images/base_3.jpg');
}

.section-4 {
    background-image: url('./images/base_4.jpg');
}

.section-5 {
    background-image: url('./images/base_5.jpg');
    height: 30vh;
    min-height: 30vh;
}

/* 第四部分游戏亮点轮播图 */
.game-highlights-section {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38%;
    max-width: 1200px;
    z-index: 10;
    box-sizing: border-box;
}

.game-highlights-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.game-highlights-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1200px;
    perspective-origin: center center;
    overflow: visible;
    box-sizing: border-box;
}

.game-highlight-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.game-highlight-item.current {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}

.game-highlight-item.previous {
    opacity: 0.8;
    transform: translateX(-20%) scale(0.8);
    z-index: 1;
}

.game-highlight-item.following {
    opacity: 0.8;
    transform: translateX(20%) scale(0.8);
    z-index: 1;
}

.game-highlight-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* border-radius: 20px; */
    box-shadow: none;
    border: none;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.game-highlight-item.current .game-highlight-image {
    box-shadow: none;
    border: none;
    filter: brightness(1.05) contrast(1.02);
}

.game-highlight-item.previous .game-highlight-image,
.game-highlight-item.following .game-highlight-image {
    box-shadow: none;
    border: none;
    filter: brightness(0.8) contrast(0.9);
}

.game-highlights-indicators {
    display: none;
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    gap: 15px;
    z-index: 10;
    box-sizing: border-box;
}

.game-highlight-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.game-highlight-dot::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.game-highlight-dot:hover {
    background: rgba(255, 215, 0, 0.6);
    transform: scale(1.2);
}

.game-highlight-dot:hover::before {
    border-color: rgba(255, 215, 0, 0.6);
}

.game-highlight-dot.current {
    background: rgba(255, 215, 0, 1);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.game-highlight-dot.current::before {
    border-color: rgba(255, 215, 0, 1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.game-highlight-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.game-highlight-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.game-highlight-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.game-highlight-btn-prev {
    left: -185px;
}

.game-highlight-btn-next {
    right: -185px;
}

.game-highlight-btn-img {
    width: 60px;
    height: 45px;
    display: block;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.game-highlight-btn:hover .game-highlight-btn-img {
    filter: brightness(1.1);
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
    .main-container {
        width: 100%;
        overflow-x: hidden;
    }
    
    .content h1 {
        font-size: 2rem;
    }
    
    .content p {
        font-size: 1rem;
    }
    
    .content {
        margin: 0 10px;
        padding: 15px;
    }
    
    .section {
        min-height: 50vh;
        width: 100%;
        overflow: hidden;
    }
    
    .section-1 {
        height: 50vh;
    }
    
    .section-2 {
        height: 50vh;
    }
    
    .section-3 {
        height: 50vh;
    }
    
    .section-4 {
        height: 50vh;
    }
    
    .section-5 {
        height: 30vh;
    }
    
    .navigation {
        padding: 8px 15px;
        height: 50px;
    }
    
    .nav-center {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 10px;
    }
    
    .fac-button {
        max-height: 30px;
    }
    
    .login-btn {
        padding: 5px 10px;
        font-size: 9px;
    }
    
    .floating-window {
        width: 80px;
        height: 200px;
        right: 8px;
        top: 60px;
    }
    
    /* 第二部分H5适配 */
    .section2-content {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .text-links-section {
        position: relative;
        width: 80%;
        max-width: none;
        left: 10%;
        transform: none;
        margin-bottom: 10px;
    }
    
    .text-link {
        font-size: 10px;
        padding: 4px 0;
    }
    
    .text-title {
        font-size: 10px;
    }
    
    .text-date {
        font-size: 8px;
    }
    
    .section2-image {
        top: 30%;
        left: 10%;
        width: 80%;
    }
    
    .guanggao-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    /* 第三部分H5适配 */
    .career-section {
        width: 80%;
        max-width: none;
        padding: 2vw;
        top: 50%;
        height: 40vh;
    }
    
    .career-carousel {
        height: 30vh;
        min-width: 70%;
        max-width: 100%;
    }
    
    .career-buttons {
        top: 80%;
        left: 50%;
        transform: translateX(-50%);
        gap: 2vw;
    }
    
    .career-btn-img {
        width: 6vw;
        height: 6vw;
        max-width: 35px;
        max-height: 35px;
    }
    
    /* 第四部分H5适配 */
    .game-highlights-section {
        width: 80%;
        top: 50%;
    }
    
    .game-highlights-wrapper {
        height: 25vh;
        perspective: 40vw;
    }
    
    .game-highlight-btn-prev {
        left: -6vw;
    }
    
    .game-highlight-btn-next {
        right: -6vw;
    }
    
    .game-highlight-btn-img {
        width: 4vw;
        height: 3vw;
        max-width: 35px;
        max-height: 25px;
    }
    
    .game-highlights-indicators {
        bottom: -30px;
        gap: 6px;
    }
    
    .game-highlight-dot {
        width: 8px;
        height: 8px;
    }
    
    /* H5背景图适配 - 铺满等比例缩放 */
    .section-1 {
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .section-2 {
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .section-3 {
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .section-4 {
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .section-5 {
        background-size: cover !important;
        background-position: center center !important;
        height: 25vh;
    }
    
    .floating-buttons {
        gap: 5px;
        margin-top: 100px;
    }
    
    .btn-icon {
        max-width: 60px;
    }
    
    .bottom-buttons {
        bottom: 20px;
        gap: 6px;
    }
    
    .bottom-btn-icon {
        height: 25px;
    }
    
    .text-links-section {
        left: 30px;
        width: 250px;
    }
    
    .text-title {
        font-size: 14px;
    }
    
    .text-date {
        font-size: 12px;
    }
    
    .section2-image {
        padding: 20px;
    }
    
    .guanggao-image {
        max-width: 100%;
    }
    
    .career-section {
        width: 98%;
        padding: 15px;
        max-width: none;
        top: 50%;
    }
    
    .career-carousel {
        height: 250px;
        min-width: 250px;
        max-width: 100%;
    }
    
    .career-buttons {
        top: -5%;
        left: 50%;
        transform: translateX(-50%);
        gap: 10px;
    }
    
    .career-btn-img {
        width: 35px;
        height: 35px;
    }
}

/* 响应式设计 - 小屏幕手机 */
@media (max-width: 480px) {
    .content h1 {
        font-size: 1.5rem;
    }
    
    .content p {
        font-size: 0.9rem;
    }
    
    .content {
        margin: 0 5px;
        padding: 10px;
    }
    
    .section {
        min-height: 10vh;
        margin: 0;
        padding: 0;
    }
    
    .section-1 {
        height: 21vh;
    }
    
    .section-2 {
        height: 30vh;
    }
    
    .section-3 {
        height: 30vh;
    }
    
    .section-4 {
        height: 30vh;
    }
    
    
    .navigation {
        padding: 3px 5px;
        height: 20px;
    }
    
    .nav-center {
        gap: 3px;
    }
    
    .nav-link {
        font-size: 4px;
    }


    .nav-separator {
        font-size: 2px;
    }    
    
    .fac-button {
        max-height: 12px;
    }
    
    .login-btn {
        padding: 2px 4px;
        font-size: 4px;
    }
    
    .floating-window {
        width: 30px;
        height: 75px;
        right: 2px;
        top: 25px;
    }
    
    .floating-buttons {
        gap: 2px;
        margin-top: 40px;
    }
    
    .btn-icon {
        max-width: 25px;
    }
    
    .bottom-buttons {
        bottom: 7px;
        gap: 2px;
    }
    
    /* 第二部分手机端适配 */
    .section2-content {
        padding: 4px;
        gap: 4px;
    }
    
    .text-links-section {
        margin-bottom: 1px;
        width: 34%;
        left: 60%;
        top: 58%;
        transform: translateY(-50%);
        position: absolute
    }
    
    .text-link {
        font-size: 1px;
        padding: 0.25px 0;
        border-bottom: 0.25px solid rgba(255, 255, 255, 0.1);
    }
    
    .text-title {
        font-size: 1px;
        margin-right: 2px;
    }
    
    .text-date {
        font-size: 0.75px;
    }
    
    .section2-image {
        top: 40%;
        left: 0%;
        width: 60%;
    }
    
    
    /* 第三部分手机端适配 */
    .career-section {
        width: 70%;
        padding: 1vw;
        top: 65%;
        height: 30vh;
    }
    
    
    .career-buttons {
        top: 85%;
        left: 67%;
        gap: 1vw;
    }
    
    .career-btn-img {
        width: 3vw;
        height: 3vw;
        max-width: 20px;
        max-height: 20px;
    }
    
    /* 第四部分手机端适配 */
    .game-highlights-section {
        width: 50%;
        top: 65%;
    }
    
    .game-highlights-wrapper {
        height: 15vh;
        perspective: 30vw;
    }
    
    .game-highlight-btn-prev {
        left: -8vw;
    }
    
    .game-highlight-btn-next {
        right: -8vw;
    }
    
    .game-highlight-btn-img {
        width: 2.5vw;
        height: 2vw;
        max-width: 20px;
        max-height: 15px;
    }
    
    .game-highlights-indicators {
        bottom: -20px;
        gap: 4px;
    }
    
    .game-highlight-dot {
        width: 5px;
        height: 5px;
    }
    
    /* 手机端背景图适配 */
    .section-1 {
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .section-2 {
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .section-3 {
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .section-4 {
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .section-5 {
        background-size: cover !important;
        background-position: center center !important;
        height: 10vh;
    }
    
    .bottom-btn-icon {
        height: 10px;
    }
    
    
    
    .text-title {
        font-size: 8px;
    }
    
    .text-date {
        font-size: 9px;
    }
    
    
    .guanggao-image {
        max-width: 80%;
    }
    

    
    .career-carousel {
        height: 350px;
        min-width: 520px;
        margin-bottom: 0;
    }
 
    
    .career-btn-img {
        width: 50px;
        height: 50px;
    }
    
    

    .career-img {
        width: 75%;
        height: 50%;
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
        transform: scale(1.2);
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 0;
}

/* 确保背景图片正确显示 - 仅PC端 */
@media (min-width: 769px) {
    .section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: inherit;
        background-size: cover;
        background-position: center;
        z-index: 1;
    }
}
