
/* 消除白边基础设置 */
html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; }
img, video { display: block; border: none; }

.main-slider { position: relative; width: 100%; height: 100vh; overflow: hidden; background: #000; }
.slider-track { display: flex; width: 200%; height: 100%; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.slide { width: 50%; height: 100%; position: relative; overflow: hidden; }

/* 视频样式 */
.bg-video { width: 100%; height: 100%; object-fit: cover; }

/* 自定义播放/暂停按钮样式 */
.video-controls {
    position: absolute;
    left: 4%;
    bottom: 40px; /* 位于分页器下方或避开分页器 */
    z-index: 110;
    opacity: 0;
    transition: opacity 0.3s;
}

/* 仅在鼠标悬浮在视频区域时显示按钮 */
.video-slide:hover .video-controls {
    opacity: 1;
}

.play-btn {
    background: rgba(0, 51, 102, 0.8);
    color: #fff;
    border: 2px solid #fff;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.play-btn:hover {
    background: #3498db;
    transform: scale(1.05);
}

/* 其它元素样式保持不变 */
.hero-banner { background: url('//ueeshop.ly200-cdn.com/u_file/UPBD/UPBD914/2604/27/photo/-3.jpg') no-repeat center 20% / cover; }
.hero-content {
    position: absolute;
    top: 35%;
    left: 4%;
    transform: translateY(-50%);
    z-index: 5;
    width: 60%;
}
.slogan{
font-size: 14px;
font-weight: 600;
letter-space: 2em;
color: #666666;
}
.main-title { 
    font-size: clamp(40px, 4.5vw, 68px); 
    font-weight: 900; 
    color: #004a99; 
    line-height: 1.1; 
    margin-bottom: 25px; 
letter-space: 2em;
}
strong {
    font-weight: 600;  
}
.description { 
    font-size: clamp(14px, 1vw, 18px); 
    color: #333; 
    line-height: 1.6; 
    margin-bottom: 40px; 
    max-width: 650px;
}
.btn-group { display: flex; flex-direction: column; gap: 12px; }
.btn-group { display: flex; flex-direction: column; gap: 12px; }

.btn-main {
    width: clamp(240px, 14vw, 320px); 
    height: clamp(45px, 3.8vw, 50px); 
    background: #003366; 
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50px; text-decoration: none; font-weight: 600;
    font-size: clamp(13px, 16px, 20px);
}

.btn-sub-row { display: flex; gap: 10px; }

.btn-sub {
    min-width: clamp(140px, 10vw, 180px); 
    padding: 0 20px; 
    width: auto; 
    height: clamp(36px, 3.5vw, 42px); 
    color: #fff; 
    border-radius: 50px;
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 600;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

/* 新增：专门缩短第一个按钮 */
.btn-short {
    /* 覆盖掉 min-width，改小一点 */
    min-width: 110px !important; 
    /* 如果还想更短，可以适当减小左右内边距 */
    padding: 0 15px; 
}
.navy { background: #002244; }
.blue { background: #3498db; }

.btn-partner {
    position: absolute;
    top: 20px;
    right: 4%;
    background: #003366;
    color: #fff;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* 基础过渡 + 去除下划线 */
.btn-main,
.btn-sub,
.btn-partner {
    transition: all 0.3s ease;
    text-decoration: none;
}

/* 主按钮 hover：背景变白，文字变深蓝 */
.btn-main:hover {
    background: #ffffff;
    color: #003366;
    transform: translateY(-2px);
}

/* 深蓝副按钮 hover：背景变白，文字变深蓝 */
.navy:hover {
    background: #ffffff;
    color: #002244;
    transform: translateY(-2px);
}

/* 浅蓝副按钮 hover：背景变白，文字变浅蓝 */
.blue:hover {
    background: #ffffff;
    color: #3498db;
    transform: translateY(-2px);
}

/* 右侧 For Partners 按钮 hover：背景变白，文字变深蓝 */
.btn-partner:hover {
    background: #ffffff;
    color: #003366;
    transform: translateY(-2px);
}

/* 保险：去除所有按钮 hover 时的下划线 */
.btn-main:hover,
.btn-sub:hover,
.btn-partner:hover {
    text-decoration: none;
}
.custom-pagination { position: absolute; left: 4%; bottom: 115px; display: flex; gap: 10px; z-index: 100; }
.pg-dot { width: 12px; height: 6px; background: rgba(255, 255, 255, 0.4); border-radius: 10px; cursor: pointer; transition: 0.4s; }
.pg-dot.active { width: 45px; background: #3498db; }
.bottom-info-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: clamp(65px, 5vh, 95px); display: flex; z-index: 20; }
.info-dark { flex: 3; background: rgba(0, 51, 102, 0.95); display: flex; align-items: center; justify-content: space-evenly; }
.info-light { flex: 1.5; background: rgba(41, 128, 185, 0.95); display: flex; align-items: center; justify-content: space-evenly; }
.cert-item { display: flex; align-items: center; gap: 8px; color: #fff; font-size: clamp(15px, 1.1vw, 22px); }
.cert-icon { height: 1.3em; }
.cert-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.3); }


/* ==========================================
   2. 移动端兼容性调整 (< 768px)
   ========================================== */
@media (max-width: 768px) {
    .hero-banner { 
        background: url('//ueeshop.ly200-cdn.com/u_file/UPBD/UPBD914/2604/30/photo/-222.jpg') no-repeat center center / cover; 
    }

    .hero-content {
        width: 90%;
        left: 5%;
        /* 关键调整：将 top 从 40% 调至 52%，向下挪动整体内容 */
        top: 30%; 
        transform: translateY(-50%);
        padding-bottom: 0; 
    }

    .main-title { font-size: 26px; margin-bottom: 15px; }
    .description { font-size: 13px; margin-bottom: 25px; line-height: 1.4; }
    .slogan { font-size: 12px; margin-bottom: 5px; }

    /* 右上角按钮在手机端稍微缩小，防止占据太多空间 */
    .btn-partner {
        padding: 8px 20px;
        font-size: 12px;
        top: 15px;
    }

    /* 证书栏修复：钉在底部 */
    .bottom-info-overlay {
        flex-direction: column;
        height: auto;
        position: absolute;
        bottom: 0;
    }
    .info-dark, .info-light {
        padding: 8px 10px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .cert-divider { display: none; }
    .cert-item { font-size: 11px; }
    .cert-icon { height: 1.1em; }

    /* 按钮组调整 */
    .btn-main { width: 100%; height: 48px; font-size: 16px; }
    .btn-sub { flex: 1; min-width: 0 !important; font-size: 11px; height: 38px; }

    /* 分页器位置调高，避开证书栏 */
    .custom-pagination { bottom: 135px; }

    /* 强制横屏逻辑 */
    @media (orientation: portrait) {
        .video-slide .bg-video {
            width: 100vh;
            height: 100vw;
            transform: rotate(90deg);
            transform-origin: center;
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: -50vw;
            margin-left: -50vh;
            object-fit: cover;
        }
        .video-controls {
            transform: rotate(90deg);
            bottom: 50% !important;
            left: 20px !important;
            opacity: 1;
        }
    }
}
