/* N2Games 网站样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    height: 118px;
    transform: translateX(-50%);
    background: #336FF8;
    z-index: 1112;
    transition: background-color 0.3s linear;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: white;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    width: 100%;
}

.logo {
    height: 40px;
    position: relative;
}

.logo img {
    height: 100%;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-black {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 100%;
    width: auto;
}

.navbar.scrolled .logo-black {
    opacity: 1;
}

.navbar.scrolled .logo-white {
    opacity: 0;
}

.nav-menu {
    position: relative;
    display: flex;
    padding-right: 36px;
    flex-grow: 0;
    margin-left: auto;
    list-style: none;
}

.nav-menu .item {
    padding: 0 36px;
    cursor: pointer;
    font-size: 18px;
}

.nav-menu .item a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-menu .item a {
    color: #333;
}

.menu-icon {
    display: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* 主要内容区域 */
.main-content {
    margin-top: 118px;
}

/* Hero 区域 */
.hero-section {
    height: calc(100vh - 118px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transform: scale(1.25);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    font-size: 14px;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-indicator p {
    display: block;
    margin-top: 20px;
}

.mouse-icon {
    width: 30px;
    height: 40px;
    margin: 10px auto;
    display: block;
}

/* Two section 样式 */
.two {
    position: relative;
    width: 100%;
    height: 413px;
    background: url('images/two_bg.jpg') no-repeat 50%;
    background-size: auto 100%;
    text-align: center;
}

.two .text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
}

.two .text .title {
    font-size: 40px;
    line-height: 44px;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #000000;
    margin: 0;
}

.two .text .icon {
    display: block;
    margin: 40px auto 0;
    width: 48px;
    height: 48px;
    background: url('images/arrow_right.png') no-repeat 50%;
    background-size: 100%;
    transition: all 0.3s linear;
    transition-delay: 0.4s;
    opacity: 0;
    transform: translateY(40%);
}

.two.ani .text .icon {
    opacity: 1;
    transform: translateY(0);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 公司介绍轮播区域 */
.company-carousel {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.show {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 分页器样式 */
.pagination {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    height: 30px;
    z-index: 10;
}

.navigation-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 25px;
    height: 25px;
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    margin-right: 10px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.selected {
    transform: scale(1.5);
}

/* 箭头样式 */
.arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow::before {
    content: '';
    width: 0;
    height: 0;
}

.left-arrow::before {
    border-width: 8px 12px 8px 0;
    margin-left: -2px;
}

.right-arrow {
    right: 20px;
}

.right-arrow::before {
    border-width: 8px 0 8px 12px;
    margin-right: -2px;
}

.arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.arrow.disable {
    opacity: 0.3;
    cursor: not-allowed;
}

.arrow.disable:hover {
    transform: translateY(-50%) scale(1);
}

/* 全屏轮播移动端适配 */
@media (max-width: 768px) {
    .company-carousel {
        width: 100vw;
        height: 100vh;
    }
    
    .arrow {
        width: 50px;
        height: 50px;
    }
    
    .left-arrow {
        left: 20px;
    }
    
    .left-arrow::before {
        border-width: 6px 10px 6px 0;
    }
    
    .right-arrow {
        right: 20px;
    }
    
    .right-arrow::before {
        border-width: 6px 0 6px 10px;
    }
    
    .pagination {
        bottom: 60px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .navigation-dots {
        gap: 8px;
    }
}

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

.company-card {
    background: white;
    border-radius: 15px;
    padding: 60px 40px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.company-card:hover {
    transform: translateY(-10px);
}

.company-logo {
    height: 80px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    max-height: 100%;
    max-width: 200px;
    object-fit: contain;
}

.company-logo.text-logo {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
}

.company-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.company-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
}

/* 游戏区域 */
.game-section {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ColorBANG游戏区域点击效果 */
#products {
    transition: transform 0.3s ease, filter 0.3s ease;
}

#products:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

#products:active {
    transform: scale(0.98);
}

/* 轮播区域标题 */
.carousel-title {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.carousel-title img {
    height: 160px;
    width: auto;
}

/* 中心放大轮播图样式 */
.carousel-3d-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 80vh;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-3d {
    position: relative;
    width: 90vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease-in-out;
}

.carousel-item {
    position: absolute;
    transition: all 0.6s ease-in-out;
    cursor: pointer;
}

.carousel-item .card-background {
    position: absolute;
    top: -60px;
    left: 10px;
    right: 10px;
    bottom: -60px;
    background-image: url('images/card-bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.carousel-item .banner-image {
    position: relative;
    color: transparent;
    width: 100%;
    height: auto;
    z-index: 2;
    display: block;
}

/* 轮播项定位和大小 - 只显示3张 */
.carousel-item.center {
    transform: translateX(0) scale(1.3);
    z-index: 5;
    width: 750px;
}

.carousel-item.left {
    transform: translateX(-350px) scale(0.9);
    z-index: 3;
    width: 650px;
}

.carousel-item.right {
    transform: translateX(350px) scale(0.9);
    z-index: 3;
    width: 650px;
}

.carousel-item.hidden-left,
.carousel-item.hidden-right,
.carousel-item.far-hidden {
    transform: translateX(0) scale(0);
    z-index: 0;
    width: 0;
    opacity: 0;
    visibility: hidden;
}

/* 轮播分页器 */
.swiper-pagination {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

.swiper-pagination-bullet {
    border-radius: 0;
    width: 12px;
    height: 12px;
    background-color: #acc3ff;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 0 25px;
}

.swiper-pagination-bullet.swiper-pagination-bullet-active {
    width: 16px;
    height: 16px;
    background-color: transparent;
    box-shadow: 0 0 0 4px #fff;
}

/* 轮播控制箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.carousel-arrow.prev {
    left: calc(50% - 630px);
    background-image: url('images/arrow-left.png');
}

.carousel-arrow.next {
    right: calc(50% - 630px);
    background-image: url('images/arrow-right.png');
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 0.8;
}

/* Join Us 区域 */
.joinus {
    width: 100%;
    height: 1080px;
    background: url('images/five_bg.jpg') no-repeat 50%;
    background-size: cover;
}

.joinus .content {
    margin: 0 auto;
    padding-top: 340px;
    padding-left: 30px;
    width: 1400px;
    max-width: 90%;
}

.joinus .content .text {
    margin-bottom: 72px;
}

.joinus .content .text p {
    color: #fff;
    font-size: 26px;
    line-height: 38px;
    transition: all 0.4s linear;
    transform: translateY(30%);
    transition-delay: 0.3s;
    opacity: 0;
}

.joinus.ani .content .text p {
    transform: translateY(0);
    opacity: 1;
}

.joinus .content .text h1 {
    margin-bottom: 24px;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #fff;
    font-size: 130px;
    line-height: 110px;
    transition: all 0.4s linear;
    transform: translateY(-30%);
    opacity: 0;
}

.joinus.ani .content .text h1 {
    transform: translateY(0);
    opacity: 1;
}

.joinus .content .look {
    display: inline-block;
    padding: 0 50px;
    height: 98px;
    color: #fff;
    font-size: 48px;
    line-height: 98px;
    border: 1px solid #fff;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s linear;
    transform: translateX(20%);
    transition-delay: 0.6s;
    opacity: 0;
}

.joinus.ani .content .look {
    transform: translateX(0);
    opacity: 1;
}

.joinus .content .look:hover {
    background: #fff;
    color: #333;
}

/* 页脚 */
.footer {
    width: 100%;
    height: 382px;
    background-color: #000;
    color: #ccc;
}

.footer .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding-top: 100px;
    width: 1170px;
    max-width: 90%;
}

.footer .content .logo {
    width: 216px;
    height: 84px;
    background: url('images/footer_logo.png') no-repeat 50%;
    background-size: auto 100%;
}

.footer .content .text h1 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 19px;
    line-height: 35px;
}

.footer .content .text .facebook {
    display: flex;
    margin-bottom: 21px;
    width: 130px;
    text-decoration: none;
    color: inherit;
}

.footer .content .text .facebook i {
    margin-right: 10px;
    width: 27px;
    height: 27px;
    background: url('images/footer_facebook.png') no-repeat 50%;
    background-size: auto 100%;
}

.footer .content .text .facebook p {
    color: #707070;
    font-size: 16px;
    line-height: 27px;
    margin: 0;
}

.footer .content .text .url {
    display: flex;
    align-items: center;
    color: #707070;
    font-size: 16px;
    line-height: 27px;
    gap: 15px;
    margin-bottom: 15px;
}

.footer .content .text .url a {
    color: #707070;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .content .text .url a:hover {
    color: #fff;
}

.footer .content .text .url .separator {
    color: #707070;
    font-size: 16px;
}

.footer .content .text .url .logout-menu {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.footer .content .text .url .logout-menu span {
    color: #707070;
    font-size: 16px;
    line-height: 27px;
}

.footer .content .text .url .logout-menu .icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMgNC41TDYgNy41TDkgNC41IiBzdHJva2U9IiM3MDcwNzAiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+') no-repeat center;
    background-size: contain;
}

.footer .content .text .url .logout-menu .box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 150px;
    height: 102px;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 10px;
    display: none;
    z-index: 10;
}

.footer .content .text .url .logout-menu:hover .box {
    display: block;
}

.footer .content .text .url .logout-menu .box .item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
}

.footer .content .text .url .logout-menu .box .item img {
    width: 27px;
    height: 27px;
    margin-right: 8px;
}

.footer .content .text .url .logout-menu .box .item span {
    font-size: 14px;
}

.footer .content .text .url .logout-menu .box .item:hover {
    color: #fff;
}

.footer .content .text .company-name {
    color: #707070;
    font-size: 16px;
}

/* ==================== 隐私政策页面样式 ==================== */

/* 隐私政策主容器 */
.privacy-main {
    min-height: 100vh;
    background-color: #F8F8F8;
    padding-top: 118px;
}

/* 隐私政策容器 */
.privacy-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 60px 50px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 隐私政策页面标题区域 */
.privacy-header {
    margin-bottom: 40px;
}

.privacy-header h1 {
    margin-bottom: 32px;
    padding-bottom: 24px;
    font-size: 20px;
    line-height: 28px;
    color: #242424;
    text-align: center;
    font-weight: 500;
    border-bottom: 1px solid #ebebeb;
}

.privacy-header .company-info p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
    line-height: 1.5;
}

/* 隐私政策内容区域 */
.privacy-content {
    color: #333;
}

/* 隐私政策各个章节 */
.privacy-section {
    margin-bottom: 30px;
}

/* 章节标题样式 */
.privacy-section h2 {
    margin-top: 32px;
    margin-bottom: 16px !important;
    font-size: 16px;
    line-height: 26px;
    font-weight: 500;
    color: #000;
}

.privacy-section h3 {
    margin-top: 32px;
    margin-bottom: 16px !important;
    font-size: 16px;
    line-height: 26px;
    font-weight: 500;
    color: #000;
}

/* 段落样式 */
.privacy-section p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 24px;
    color: #333;
}

/* 列表样式 */
.privacy-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.privacy-section li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 24px;
    color: #333;
    list-style-type: disc;
}

/* 强调文本样式 */
.privacy-section strong {
    font-weight: bold;
    color: #000;
}

/* 隐私政策页面导航栏样式调整 */
body:has(.privacy-main) .navbar {
    background-color: #326EF7 !important;
}

body:has(.privacy-main) .navbar .logo-white {
    display: block !important;
}

body:has(.privacy-main) .navbar .logo-black {
    display: none !important;
}

/* 隐私政策页面滚动时也保持白色logo */
body:has(.privacy-main) .navbar.scrolled .logo-white {
    display: block !important;
    opacity: 1 !important;
}

body:has(.privacy-main) .navbar.scrolled .logo-black {
    display: none !important;
    opacity: 0 !important;
}

body:has(.privacy-main) .navbar .nav-menu .item a {
    color: #ffffff !important;
}

body:has(.privacy-main) .navbar .nav-menu .item a:hover {
    color: #ffffff !important;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .carousel-title img {
        height: 70px;
    }
    
    .carousel-3d-container {
        height: 70vh;
    }
    
    .carousel-item.center {
        width: 500px;
    }
    
    .carousel-item.left, .carousel-item.right {
        width: 380px;
    }
    
    .carousel-item.left {
        transform: translateX(-380px) scale(0.85);
    }
    
    .carousel-item.right {
        transform: translateX(380px) scale(0.85);
    }

    .carousel-arrow.prev {
        left: calc(50% - 280px);
    }

    .carousel-arrow.next {
        right: calc(50% - 280px);
    }
}

@media (max-width: 1440px) {
    .joinus .content {
        width: 95%;
        padding-left: 20px;
    }
}

@media (max-width: 1200px) {
    .footer .content {
        width: 95%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-icon {
        display: block;
        margin-left: auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .company-card {
        padding: 40px 20px;
    }

    .game-card {
        padding: 40px 30px;
    }

    .game-title {
        font-size: 2.5rem;
    }

    .join-title {
        font-size: 2.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .hero-section {
        background-attachment: scroll;
    }

    .game-section {
        background-attachment: scroll;
    }

    .carousel-title img {
        height: 60px;
    }
    
    .carousel-3d-container {
        height: 60vh;
    }
    
    .carousel-item.center {
        width: 400px;
    }
    
    .carousel-item.left, .carousel-item.right {
        width: 300px;
    }
    
    .carousel-item.left {
        transform: translateX(-300px) scale(0.8);
    }
    
    .carousel-item.right {
        transform: translateX(300px) scale(0.8);
    }

    .carousel-arrow {
        width: 50px;
        height: 50px;
    }

    .carousel-arrow.prev {
        left: calc(50% - 200px);
    }

    .carousel-arrow.next {
        right: calc(50% - 200px);
    }

    .joinus {
        height: 80vh;
    }
    
    .joinus .content {
        padding-top: 200px;
        padding-left: 15px;
    }
    
    .joinus .content .text h1 {
        font-size: 80px;
        line-height: 70px;
    }
    
    .joinus .content .text p {
        font-size: 20px;
        line-height: 30px;
    }
    
    .joinus .content .look {
        font-size: 32px;
        height: 70px;
        line-height: 70px;
        padding: 0 30px;
    }

    .footer {
        height: auto;
        padding-bottom: 30px;
    }
    
    .footer .content {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 50px;
        gap: 30px;
    }
    
    .footer .content .logo {
        width: 180px;
        height: 70px;
    }
    
    .footer .content .text {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .carousel-title img {
        height: 50px;
    }
    
    .carousel-title {
        top: 8%;
    }
    
    .carousel-3d-container {
        height: 50vh;
    }
    
    .carousel-item.center {
        width: 300px;
    }
    
    .carousel-item.left, .carousel-item.right {
        width: 220px;
    }
    
    .carousel-item.left {
        transform: translateX(-220px) scale(0.75);
    }
    
    .carousel-item.right {
        transform: translateX(220px) scale(0.75);
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow.prev {
        left: calc(50% - 150px);
    }

    .carousel-arrow.next {
        right: calc(50% - 150px);
    }

    .joinus .content .text h1 {
        font-size: 60px;
        line-height: 50px;
    }
    
    .joinus .content .text p {
        font-size: 18px;
        line-height: 26px;
    }
    
    .joinus .content .look {
        font-size: 24px;
        height: 60px;
        line-height: 60px;
        padding: 0 25px;
    }

    .footer .content .logo {
        width: 150px;
        height: 58px;
    }
    
    .footer .content .text h1 {
        font-size: 16px;
    }
    
    .footer .content .text .facebook p,
    .footer .content .text .url {
        font-size: 14px;
    }

    /* 隐私政策页面响应式 */
    .privacy-header h1 {
        margin-bottom: 24px;
        padding-bottom: 18px;
        font-size: 18px;
        line-height: 24px;
    }
    
    .privacy-container {
        padding: 30px 15px;
    }
    
    .privacy-section h2,
    .privacy-section h3 {
        margin-top: 24px;
        margin-bottom: 12px !important;
        font-size: 15px;
        line-height: 22px;
    }
    
    .privacy-section p,
    .privacy-section li {
        margin-bottom: 6px;
        font-size: 13px;
        line-height: 20px;
    }
}
