/* 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    background-color: transparent;
    padding-top: 60px; /* 为顶部固定图片预留空间 */
    padding-bottom: 60px; /* 为底部固定图片预留空间 */
}

html {
    background-color: #000000;
}

/* 顶部固定图片 */
.fixed-top {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 540px;
    width: 100%;
    z-index: 100;
    margin-bottom: 10px;
}

.fixed-top img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #000;
}

/* 底部固定图片 */
.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 540px;
    width: 100%;
    z-index: 100;
}

.fixed-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

/* 容器居中 */
.container {
    max-width: 540px; /* H5页面标准宽度 */
    margin: 0 auto;
    position: relative;
    background-color: transparent !important; /* 修复iOS白色背景问题 */
    background: transparent !important;
    min-height: 100vh;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 视频包装容器 - 限制视频背景只在前十行 */
.video-wrapper {
    position: relative;
    width: 100%;
}

/* 更新视频背景样式 */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* 区块样式 */
.section {
    width: 100%;
    text-align: center;
    padding: 5px 15px;
    position: relative;
    z-index: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.section img {
    width: 100%;
    height: auto;
    display: block;
}

/* 第十三行图片特殊样式 - 居中并压缩尺寸 */
.section.no-bg img[src*="10046"] {
    width: 50%;
    margin: 0 auto;
}

.section.no-bg.highlight-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(55, 56, 56, 0.92), rgba(42, 42, 43, 0.92));
    z-index: -1;
    box-shadow: 0 12px 30px rgba(12, 15, 30, 0.35);
}

/* 没有背景的区块样式 - 用于第十一行及之后的内容 */
.no-bg {
    background-color: transparent !important;
    background: transparent !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* 域名列表 */
.domain-list {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
}

.domain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 90%;
    margin: 10px auto;
    padding: 10px 15px;
    background-color: #333;
    border-radius: 5px;
}

.speed-test {
    color: #00ff00;
    font-size: 14px;
    font-weight: bold;
    min-width: 50px;
}

.domain-name {
    color: white;
    font-size: 16px;
    font-weight: bold;
    flex-grow: 1;
    text-align: center;
}

.enter-btn {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    min-width: 80px;
}

.enter-btn:hover {
    background-color: #ff8533;
}

/* 数据展示 */
.data-display {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 0;
}

.data-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.data-number {
    color: #ff6600;
    font-size: 24px;
    font-weight: bold;
}

.data-text {
    color: white;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

/* 跑马灯图标 */
.marquee-icons {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 0;
    overflow: hidden;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    margin-bottom: 10px;
}

.marquee-container:last-child {
    margin-bottom: 0;
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
}

.marquee-content img {
    width: 60px;
    height: 60px;
    margin: 0 10px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 文本行样式 */
.text-line {
    padding: 15px 0;
    text-align: center;
}

.text-line p {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

/* 文字介绍 */
.text-intro {
    padding: 20px 15px;
    text-align: left;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    background: transparent !important;
}

.text-intro p {
    color: white;
    font-size: 14px;
    line-height: 1.6;
}

/* H5 URL 文字样式 */
.h5-url {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px 0;
}

.h5-text {
    color: white;
    text-align: center;
}

.mobile-text {
    font-weight: bold;
    font-size: 30px;
    margin-bottom: 5px;
}

.h5-text-label {
    font-size: 30px;
}

/* 合并的文字和版权信息 */
.combined-text {
    padding-bottom: 80px; /* 为底部固定图片留出空间 */
}

.copyright-text {
    color: white;
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
}

/* 版权信息 */
.copyright {
    padding: 15px 0;
}

/* 底部图片 */
.bottom-image img {
    width: 100%;
    height: auto;
}

/* 客服图标 */
.kefu-icon {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.kefu-svg-container {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kefu-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 102, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0);
    }
}

/* iOS设备特殊处理 */
@supports (-webkit-touch-callout: none) {
    /* 修复iOS设备上的白色背景问题 */
    .container {
        background-color: transparent !important;
        background: transparent !important;
    }
    
    /* 确保视频背景正确显示 */
    .video-background {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* 修复iOS上的白色背景问题 */
    .no-bg, .text-intro {
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        background: transparent !important;
        background-color: transparent !important;
    }
}

/* iOS设备通过JavaScript添加的类 */
.ios-device .no-bg,
.ios-device .text-intro,
.ios-device .section {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* 响应式处理 */
@media (min-width: 768px) {
    .container {
        margin: 0 auto;
    }
    
    .video-background {
        position: fixed;
    }
}