/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header and Navigation */
header {
    background-color: white;
    padding: 20px 0;
    position: fixed;
    height: 110px;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 10px solid #B82424;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    margin-left: 22px;
}

.logo img {
    width: 178px;
    height: 64px;
}

#mobile-menu {
    width: 50px;
    height: 34px;
    margin-right: 30px;
}

.mobile-nav-links {
    position: fixed;
    top: 0;
    right: -460px;
    /* 初始隐藏在屏幕外 */
    width: 460px;
    height: 100%;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease-in-out;
    z-index: 100;
    list-style: none;
    gap: 60px;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 60px;
    margin-bottom: 10px;
}

.mobile-nav-links .mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 110px;
}

#mobile-menu-close {
    width: 50px;
    height: 34px;
    margin-right: 30px;
}

.mobile-nav-links li {
    margin-bottom: 60px;
    text-align: center;
}

.mobile-nav-links a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-size: 30px;
    padding: 8px 16px;
    transition: color 0.3s;
    padding-bottom: 10px;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-size: 30px;
    padding: 8px 16px;
    transition: color 0.3s;
    padding-bottom: 10px;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active,
.nav-links a:hover,
.nav-links a.active {
    color: #B82424;
}

.mobile-nav-links a.active::after {
    content: "";
    position: absolute;
    left: -110px;
    bottom: -14px;
    width: 320px;
    height: 4px;
    background-color: #B82424;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background-color: #B82424;
}

.mobile-nav-links a.active::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #B82424;
}

.nav-links a.active::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 4px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #B82424;
}

/* Main Content */
main {
    margin-top: 110px;
}

.mobile-gameSwiper {
    width: 100%;
    height: auto;
    position: relative;
}

.gameSwiper {
    display: none;
    width: 100%;
    height: auto;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-button-prev,
.swiper-button-next {
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    transition: all 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-prev {
    left: 10%;
}

.swiper-button-next {
    right: 10%;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

.swiper-button-prev {
    background-image: url('../images/next_L.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.swiper-button-next {
    background-image: url('../images/next_R.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.swiper-pagination {
    position: absolute;
    bottom: 10px !important;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 4px !important;
    background: #fff;
    opacity: 0.5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #B82424;
    /* 活动状态颜色 */
}

/* Company Introduction Page */
.company-intro {
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.company-content {
    margin: 120px 0;
    align-items: center;
}

.company-images {
    flex: 1;
    grid-template-columns: repeat(2, 1fr);
}

.company-images-title {
    position: relative;
    left: -20px;
    height: 44px;
    color: #B82424;
    margin: 0;
    border-left: 6px solid #B82424;
    padding-left: 20px;
    font-size: 44px;
    line-height: 1;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.company-images-title::after {
    content: "INTRODUCE";
    position: relative;
    color: #f8f0f0;
    font-family: 'Sarasa-UI-SC-Bold';
    font-size: 44px;
    font-weight: 500;
    letter-spacing: 2px;
    left: -55px;
    top: -65px;
    z-index: -1;
}

.company-image {
    margin-top: 50px;
}

.company-image img {
    width: 100%;
}

.company-text {
    margin-top: 40px;
    flex: 1;
}

.motto {
    font-size: 30px;
    margin-bottom: 32px;
    color: #4E4E4E;
}

.description {
    font-size: 22px;
    line-height: 2;
    margin-bottom: 32px;
    color: #5F5F5F;
}

.vision {
    font-size: 22px;
    color: #5F5F5F;
}

.company-info {
    background-color: #f5f5f5;
    padding: 32px;
    text-align: center;
}

.info-container {
    max-width: 800px;
    margin: 0 auto;
}

.info-container p {
    margin: 8px 0;
    color: #666;
}

/* Footer */
footer {
    height: 220px;
    width: 100%;
    background-color: #000;
    color: #979797;
    text-align: center;
    justify-content: center;
    font-size: 18px;
    display: flex;
    flex-direction: column;
}

footer a {
    text-decoration: none;
    color: #979797;
}

.footer-text {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px auto;
    gap: 15px;
}

.beian-logo {
    position: relative;
    top: 2px;
    right: 2px;
    width: 15px;
}

@media screen and (min-width: 480px) {
    .company-images-title::after {
        left: -230px;
        top: -25px;
    }
}

@media screen and (min-width: 768px) {
    .mobile-nav-links {
        display: none;
    }

    .nav-links {
        display: flex;
    }

    .mobile-gameSwiper {
        display: none;
    }

    .gameSwiper {
        display: block;
    }

    .logo {
        margin-left: 0;
    }

    #mobile-menu {
        display: none;
    }

    .company-content {
        margin: 150px auto;
        display: flex;
        gap: 100px;
    }

    .company-images-title {
        left: 0;
    }

    .company-text {
        margin-top: 140px;
    }
}

@media screen and (min-width: 1920px) {
    .company-content {
        margin: 300px auto;
        display: flex;
        gap: 100px;
    }

    .company-image img {
        width: 497px;
        height: 328px;
    }
}