/* 基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; }
html, body { height: 100%; }
body { 
    background: #000 url('../img/bjt.jpg') center/cover no-repeat fixed; 
    color: #f8f9fa; 
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部区域 */
header { 
    background: rgba(0, 0, 0, 0.7); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); 
    padding: 12px 0; 
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 40px;
    position: relative;
}
.logo-section { 
    display: flex; 
    align-items: center; 
    flex: 1; 
    min-width: 0;
    justify-content: flex-start;
}
.logo { 
    width: 40px; height: 40px; 
    border-radius: 8px; 
    margin-right: 12px; 
    flex-shrink: 0;
    object-fit: contain;
}
.game-name { 
    font-size: 18px; 
    font-weight: 700; 
    color: #fff; 
    margin-bottom: 2px; 
    display: flex;
    align-items: center;
    gap: 8px;
}
.official-tag {
    background: #1890ff;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.game-intro { font-size: 12px; color: #ccc; }

/* 下载按钮区域 */
.download-btn-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.download-btn { 
    background: #0cc6c6; 
    color: white; border: none; 
    padding: 8px 20px;
    border-radius: 6px; 
    font-size: 14px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* PC端显示app图标 */
.download-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.download-btn:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 4px 12px rgba(12, 198, 198, 0.4); 
    background: #0ab3b3; 
}

/* 主内容区域 */
main { 
    padding: 100px 0 60px;
    position: relative;
    flex: 1;
    width: 100%;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.main-content {
    position: relative;
    z-index: 1;
}

.feature-section { 
    display: flex; 
    align-items: center; 
    margin-bottom: 20px; 
    gap: 10px; 
    min-height: 0;
    overflow: visible;
}
.feature-section:nth-child(even) { flex-direction: row-reverse; }
.feature-text { 
    flex: 1; 
    padding: 0 10px; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: visible;
}
.feature-header { 
    display: flex; 
    align-items: center; 
    margin-bottom: 15px; 
    justify-content: center; 
    width: 100%;
    gap: 10px; 
    min-height: 0;
    overflow: visible;
}
.feature-title { 
    font-size: 32px;
    font-weight: 700; 
    color: #fff; 
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 修改标签样式为偏方形 */
.feature-tag { 
    padding: 6px 16px; 
    border-radius: 8px; /* 改为方形圆角 */
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.feature-tag::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* 扫光效果 */
.feature-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}
.feature-tag:hover::after {
    left: 100%;
}

/* 各标签颜色 */
.feature-section:nth-child(1) .feature-tag { 
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}
.feature-section:nth-child(2) .feature-tag { 
    background: linear-gradient(135deg, #48c78e, #00d1b2);
    box-shadow: 0 4px 15px rgba(72, 199, 142, 0.4);
}
.feature-section:nth-child(3) .feature-tag { 
    background: linear-gradient(135deg, #3b82f6, #4361ee);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.feature-section:nth-child(4) .feature-tag { 
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.feature-image { 
    flex: 1.2;
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden;
    min-height: 0;
}
.feature-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* 普通描述文字样式 */
.feature-description { 
    font-size: 20px; 
    color: #e9ecef;
    text-align: center; 
    max-width: 450px; 
    width: 100%;
    line-height: 1.8;
    font-weight: 500; 
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 打字机效果样式 - 完全修复 */
.typing-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
    min-height: 0;
}

.typing-text {
    font-size: 20px; 
    color: #e9ecef;
    text-align: center; 
    max-width: 450px; 
    width: 100%;
    line-height: 1.8;
    font-weight: 500; 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* 联系客服按钮容器 - 在主容器最下面居中 */
.contact-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
    padding: 20px 0;
}

/* 白色透明联系客服按钮 */
.contact-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px 12px 50px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.contact-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* 右下角浮动二维码容器 */
.floating-qrcode {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 200px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-qrcode-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.floating-qrcode-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.floating-qrcode-image {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fff;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-qrcode-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 网页版链接 */
.web-link {
    display: inline-block;
    color: #0cc6c6;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.web-link:hover {
    color: #0ab3b3;
    text-decoration: underline;
}

/* 底部区域 */
footer { 
    background: rgba(0, 0, 0, 0.8); 
    padding: 20px 0; 
    text-align: center; 
    border-top: 1px solid #333; 
    color: #ccc; 
    backdrop-filter: blur(5px);
    width: 100%;
    flex-shrink: 0;
}

/* 简约透明弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 320px;
    padding: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.25s ease-out;
    position: relative;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 简约标签切换 */
.qr-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.qr-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.qr-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 二维码内容 */
.qr-content {
    position: relative;
}

.qr-item {
    display: none;
    text-align: center;
}

.qr-item.active {
    display: block;
}

/* 二维码图片容器 - 固定尺寸 */
.qr-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.qr-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 无限滚动游戏图片样式 */
.scrolling-games-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow: hidden;
    position: relative;
}

.scrolling-row {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.scrolling-content {
    display: flex;
    gap: 25px;
    width: max-content;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.top-row .scrolling-content {
    animation-name: scrollLeft;
    animation-duration: 15s;
}

.bottom-row .scrolling-content {
    animation-name: scrollRight;
    animation-duration: 18s;
}

.game-item {
    flex-shrink: 0;
    width: 180px; /* 增大尺寸 */
    height: 180px; /* 增大尺寸 */
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 移除所有过渡和悬停效果 */
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 滚动动画 */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* 响应式设计 */
/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    main { 
        padding: 120px 0 60px;
    }
}

/* 移动设备 (768px及以下) */
@media (max-width: 768px) {
    header { padding: 10px 0; }
    .header-container { padding: 0 20px; }
    .logo { width: 35px; height: 35px; margin-right: 10px; }
    .game-name { 
        font-size: 16px; 
        flex-wrap: wrap;
        gap: 6px;
    }
    .game-intro { font-size: 11px; }
    
    .download-btn { 
        padding: 6px 16px; 
        font-size: 12px; 
    }
    
    /* 移动端隐藏app图标 */
    .download-icon {
        display: none;
    }
    
    main { 
        padding: 100px 0 40px;
    }
    
    .feature-section { 
        flex-direction: column; 
        margin-bottom: 60px; 
        gap: 30px; 
    }
    .feature-section:nth-child(even) { flex-direction: column; }
    .feature-text { padding: 0 20px; }
    
    .feature-header { 
        flex-direction: row; 
        justify-content: center;
        margin-bottom: 12px;
        gap: 8px;
    }
    .feature-title { 
        font-size: 26px;
    }
    .feature-tag { 
        font-size: 20px;
        padding: 5px 14px;
    }
    .feature-description { 
        font-size: 18px; 
        max-width: 100%; 
    }
    
    .typing-text {
        font-size: 18px;
        white-space: normal;
    }
    
    .feature-image { 
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        flex: none;
    }
    .feature-image img {
        max-height: 350px;
    }
    
    /* 移动端隐藏浮动二维码 */
    .floating-qrcode {
        display: none;
    }
    
    /* 移动端联系客服按钮保持与PC端一致 */
    .contact-btn {
        padding: 12px 24px 12px 50px;
        font-size: 16px;
    }
    
    .contact-icon {
        left: 20px;
        width: 20px;
        height: 20px;
    }

    /* 移动端弹窗优化 */
    .modal-content {
        width: 280px;
        padding: 20px;
        margin: 20px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .modal-header {
        margin-bottom: 15px;
    }
    
    .qr-tabs {
        margin-bottom: 15px;
    }
    
    .qr-image {
        width: 160px;
        height: 160px;
        margin-bottom: 15px;
    }
    
    /* 移动端游戏图片尺寸调整 */
    .game-item {
        width: 120px; /* 移动端也增大尺寸 */
        height: 120px;
    }
    
    .scrolling-games-container {
        gap: 20px;
    }
    
    .scrolling-content {
        gap: 20px;
    }
    
    .top-row .scrolling-content {
        animation-duration: 12s;
    }
    
    .bottom-row .scrolling-content {
        animation-duration: 14s;
    }
}

/* 小屏移动设备 (480px及以下) */
@media (max-width: 480px) {
    .feature-title { 
        font-size: 24px;
    }
    .feature-tag { 
        font-size: 18px;
        padding: 4px 12px;
    }
    .feature-description { font-size: 17px; }
    .typing-text {
        font-size: 17px;
    }
    .feature-image img {
        max-height: 300px;
    }
    
    .feature-header {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    main { 
        padding: 90px 0 30px;
    }
    
    /* 移动端联系客服按钮保持与PC端一致 */
    .contact-btn {
        padding: 12px 24px 12px 50px;
        font-size: 16px;
    }
    
    .contact-icon {
        left: 20px;
        width: 20px;
        height: 20px;
    }
    
    /* 小屏弹窗优化 */
    .modal-content {
        width: 260px;
        padding: 18px;
        max-height: 75vh;
    }
    
    .qr-image {
        width: 150px;
        height: 150px;
    }
    
    /* 小屏游戏图片尺寸调整 */
    .game-item {
        width: 100px;
        height: 100px;
    }
    
    .scrolling-games-container {
        gap: 15px;
    }
    
    .scrolling-content {
        gap: 15px;
    }
    
    .top-row .scrolling-content {
        animation-duration: 10s;
    }
    
    .bottom-row .scrolling-content {
        animation-duration: 12s;
    }
}

/* 超小屏设备 (360px及以下) */
@media (max-width: 360px) {
    main { 
        padding: 95px 0 25px;
    }
    
    .typing-text {
        font-size: 16px;
    }
    
    /* 超小屏弹窗优化 */
    .modal-content {
        width: 240px;
        padding: 15px;
        max-height: 70vh;
    }
    
    .qr-image {
        width: 140px;
        height: 140px;
    }
    
    /* 超小屏联系客服按钮保持与PC端一致 */
    .contact-btn {
        padding: 12px 24px 12px 50px;
        font-size: 16px;
    }
    
    .contact-icon {
        left: 20px;
        width: 20px;
        height: 20px;
    }
}