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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-width: 320px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== PC端样式 ==================== */
/* PC端头部 */
.pc-header {
    display: block;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 40px;
}

.nav-tabs {
    display: flex;
    gap: 40px;
}

.tab {
    font-size: 16px;
    color: #333;
    padding: 8px 0;
    transition: color 0.3s;
    position: relative;
}

.tab:hover {
    color: #ff3159;
}

.tab.active {
    color: #ff3159;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff3159;
}

.download-btn img {
    height: 36px;
    transition: opacity 0.3s;
}

.download-btn:hover img {
    opacity: 0.8;
}

/* PC端内容区域 */
.pc-content {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    width: 100%;
    position: relative;
}

.content-section img {
    width: 100%;
    display: block;
}

/* 透明悬浮按钮 */
.transparent-btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 290px;
    height: 120px;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

.transparent-btn-1 {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 290px;
    height: 120px;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

/* PC端底部 */
.pc-footer {
    position: relative;
    display: block;
}

.footer-transparent-btn {
    position: absolute;
    bottom: 0;
    left: 65%;
    width: 300px;
    height: 60px;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

.pc-footer img {
    width: 100%;
    display: block;
}

.beian {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: #ccc;
    font-size: 12px;
}

/* ==================== 手机端样式 ==================== */
/* 手机端头部 */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: none;
}

.mobile-header img {
    width: 100%;
    display: block;
}

.menu-btn {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    cursor: pointer;
    background-color: transparent;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ff3159;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 移动端侧边菜单遮罩 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 移动端侧边菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #FF3A7C;
    transition: left 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    padding: 20px;
    padding-left: 38%;
    height: 120px;
}

.mobile-menu-logo {
    height: 106px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: 0.5px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s ease;
    border-radius: 6px;
}

.mobile-menu-close:hover {
    color: #ff3159;
}

.mobile-menu-list {
    list-style: none;
    padding: 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding-top: 50px;
}

.mobile-menu-list li {
}

.mobile-menu-link {
    display: block;
    padding: 16px 20px;
    color: #fff;
    font-size: 33px;
    transition: all 0.3s ease;
}

/* .mobile-menu-link:active {
    background: #f5f5f5;
    color: #ff3159;
} */

.mobile-menu-cta {
    display: block;
    margin: 20px;
    padding: 14px;
    background: #ff3159;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.mobile-menu-cta:active {
    background: #e60000;
}

/* 手机端内容区域 */
.mobile-content {
    display: none;
    padding-top: 60px; /* 为固定头部留出空间 */
}

.mobile-content .content-section {
    position: relative;
}

.mobile-content img:not(.carousel-item) {
    width: 100%;
    display: block;
}

/* 手机端底部 */
.mobile-footer {
    position: relative;
    display: none;
}

.mobile-footer img {
    width: 100%;
    display: block;
}

/* 手机端透明按钮 */
.transparent-btn-mobile {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 290px;
    height: 100px;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

.transparent-btn-1-mobile {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 290px;
    height: 60px;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

.footer-transparent-btn-mobile {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 60px;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

.beian-mobile {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: #ccc;
    font-size: 10px;
}

/* ==================== 轮播图样式 ==================== */
.carousel {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: visible;
    background-color: rgba(18, 18, 18, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 标题样式 */
.carousel > h1 {
    color: #FFFFFF;
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 8px 0;
    text-align: center;
}

.carousel > div:first-of-type {
    color: #FFFFFF;
    font-size: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.carousel-inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 258px;
    height: 357px;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    overflow: hidden;
    padding:20px;
}

.carousel-inner .carousel-item {
    width: 100%;
    height: auto;
    display: none !important;
}

.carousel-inner .carousel-item.active {
    display: block !important;
}

/* 轮播图按钮 - 基础样式 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 左按钮 - 白色背景 + 红色箭头 */
.prev-btn {
    background: #FFFFFF;
    left: 16px;
}

.prev-btn svg {
    color: #ff3159;
}

/* .prev-btn:hover {
    background: #F0F0F0;
} */

/* .prev-btn:active {
    transform: translateY(-50%) scale(0.98);
} */

/* 右按钮 - 红色背景 + 白色箭头 */
.next-btn {
    background: #ff3159;
    right: 16px;
}

.next-btn svg {
    color: #FFFFFF;
}

/* .next-btn:hover {
    background: #E60000;
} */

/* .next-btn:active {
    transform: translateY(-50%) scale(0.98);
} */

/* 轮播图底部CTA按钮 */
.carousel-cta-btn {
    margin-top: 24px;
    padding: 8px 8px;
    background: #ff3159;
    color: #FFFFFF;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.carousel-cta-btn:hover {
    background: #E60000;
}

.carousel-cta-btn:active {
    transform: scale(0.98);
}

/* 轮播图指示点（已隐藏） */
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #888888;
}

.dot.active {
    background: #FFFFFF;
}

/* 移动端适配 */
@media screen and (max-width: 480px) {
    .carousel {
        height: 500px;
    }

    .carousel > h1 {
        font-size: 20px;
    }

    .carousel > div:first-of-type {
        font-size: 12px;
    }

    .carousel-inner {
        width: 220px;
        height: 305px;
    }

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

    .prev-btn {
        left: 8px;
    }

    .next-btn {
        right: 8px;
    }

    .carousel-cta-btn {
        font-size: 13px;
        padding: 8px 8px;
    }
}

/* ==================== 响应式适配 ==================== */
/* 平板及以下尺寸 */
@media screen and (max-width: 1024px) {
    .pc-header {
        display: none;
    }

    .pc-content {
        display: none;
    }

    .pc-footer {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .mobile-content {
        width: 100%;
        display: block;
    }

    .mobile-footer {
        position: relative;
        display: block;
    }

    /* 隐藏PC端透明按钮 */
    .transparent-btn,
    .transparent-btn-1,
    .footer-transparent-btn {
        display: none;
    }

    /* 显示移动端透明按钮 */
    .transparent-btn-mobile,
    .transparent-btn-1-mobile,
    .footer-transparent-btn-mobile {
        display: block;
    }
}

/* PC端（大于1024px） */
@media screen and (min-width: 1025px) {
    /* 显示PC端透明按钮 */
    .transparent-btn,
    .transparent-btn-1,
    .footer-transparent-btn {
        display: block;
    }

    /* 隐藏移动端透明按钮 */
    .transparent-btn-mobile,
    .transparent-btn-1-mobile,
    .footer-transparent-btn-mobile {
        display: none;
    }
}

/* 小屏幕优化 */
@media screen and (max-width: 480px) {
    .header-container {
        padding: 10px 15px;
    }

    .nav-tabs {
        gap: 20px;
    }

    .tab {
        font-size: 14px;
    }
}
