 /* ========== 强制横屏核心样式 ========== */
 html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Loading 满屏遮罩（始终竖屏） */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  z-index: 99999;
    /* 禁用任何 transform 继承 */
  transform: none !important;
}

.loading-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 
   当 body 拥有 .force-landscape 类时（即检测到竖屏时），
   强制将页面旋转 90 度并撑满屏幕 
*/
.force-landscape {
    position: fixed;
    width: 100vh !important;  /* 宽度变为视口高度 */
    height: 100vw !important; /* 高度变为视口宽度 */
    top: 0;
    left: 0;              /* 初始位置修正 */
    transform-origin: 0 0;    /* 旋转原点设为左上角 */
    /* 旋转90度，并向左平移一个视口高度，使其回到可视区域 */
    transform: rotate(90deg) translateY(-100%); 
    overflow: hidden;
    z-index: 99999;
}

.force-landscape .thumb-view {
    width: 100vh !important; /* 视觉宽度 = 原始高度 */
    z-index: 9999;
}
.swiper-container {
    width: 100% !important;
    height: 100% !important;
}
/* 确保内部容器在强制横屏下也能正确计算尺寸 */
body.force-landscape .start-layer,
body.force-landscape .wrap {
    width: 100%;
    height: 100%;
}
body.force-landscape .btn-hd {
    display: block;
    /* 可根据实际样式调整定位/尺寸 */
  }
/* 确保 Swiper 容器在强制横屏下宽度 > 高度 */
body.force-landscape .thumb-view {
    width: 100vh; /* 视觉宽度 = 原始高度 */
    height: 50vh; /* 固定高度，避免 auto */
}

body.force-landscape .swiper-container {
    width: 100% !important;
    height: 100% !important;
    /* 禁用 Swiper 内部 height:auto */
    overflow: hidden;
}

/* ========== 开场引导层样式优化 ========== */
.start-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mainbg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../images/start_bg2.jpg) no-repeat center center;
    background-size: cover; /* 【关键】撑满屏幕 */
    z-index: 1;
}

.title01, .title02, .title03, .title04, .btn-enter {
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* 标题具体位置 (建议改用相对单位 vw/vh 以适配不同屏幕) */
.title01 {
    position: absolute;
    width: 60%;
    max-width: 1229px;
    height: 10%;
    left: 50%;
    margin-left: -30%;
    transform: translateX(-50%);
    top: 10%;
    background: url(../images/01.png) center top no-repeat;
    background-size: contain;
}
.title02 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: -40%; 
    top: 25%;
    width: 80%;
    max-width: 1613px;
    height: 20vh;
    background: url(../images/02.png) center top no-repeat;
    background-size: contain;
}
.title03 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: -20%;
    bottom: 13%;
    width: 40%;
    max-width: 698px;
    height: 5vh;
    background: url(../images/03.png) center top no-repeat;
    background-size: contain;
}
.title04 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 5%;
    width: 40%;
    margin-left: -19%;
    max-width: 646px;
    height: 5vh;
    background: url(../images/04.png) center top no-repeat;
    background-size: contain;
}

.btn-enter {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 15vw;
    max-width: 274px;
    height: 40vh;
    max-height: 399px;
    background: url(../images/btn.png) center top no-repeat;
    background-size: contain;
    cursor: pointer;
    opacity: 0.7;
    text-indent: -99999999999999px;
    overflow: hidden;
    z-index: 99999999999999;
    animation: btnFloat 2s ease-in-out 0.8s infinite alternate;
}

.btn-skip {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    z-index: 10000;
    display: none; /* 初始隐藏 */
}

/* 视频层：置于底层 */
.start-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 【关键】视频撑满屏幕 */
    z-index: 2;
    display: none;
}

.start-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    display: none;
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.anim-item {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes btnFloat {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-15px); }
    100% { transform: translateX(-50%) translateY(0); }
}

/* ========== 主界面样式 ========== */
.wrap {
    width: 100%;
    height: 100%;
    position: relative;
    display: none;
}
/* 返回首页按钮 */
.btn-home {
  position: absolute;
  top: 20px;
  left: 30px;
  z-index: 10000;
  width: 40px;
  height: 40px;
  background: url(../images/backhome2.png) center top no-repeat;
  background-size: 40px 40px;
  cursor: pointer;
  text-indent: -99999999999999px;
  overflow: hidden;
   /* 添加动画 */
  animation: shake 1.5s ease-in-out infinite;
  /* 确保 transform 不被覆盖 */
  transform-origin: center;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

.main-img-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 【关键】视频撑满 */
    z-index: 1;
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 【关键】图片撑满 */
    z-index: 0;
    display: none;
}

.thumb-view {
    position: absolute;
    bottom: -5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1200px;
    height: 50vh;
    max-height: 632px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.thumb-view.visible {
    opacity: 1;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumb-item {
    max-width: 100%;
    max-height: 100%;
    opacity: 0.8;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
}

.swiper-slide-active .thumb-item {
    opacity: 1;
    transform: scale(1);
}

.video-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
    z-index: 99999;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 内容视频保持比例，避免裁剪重要信息 */
}

.btn-back {
    position: absolute;
    top: 20px;
    right: 40px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    z-index: 10000;
}
.btn-hd {
    position: absolute;
    width: 80px;
    z-index: 10;
    height: 70px;
    right: 20px;
    top: 10px;
    background: url(../images/hd.gif) center top no-repeat;
    background-size: 80px 70px;
    display: none;
}


.btn-video-control {
    position: absolute;
    bottom: 50px;
    right: 20px;
    cursor: pointer;
    display: none; /* 初始隐藏，等视频加载后再显示 */
    z-index: 10000000000000000; /* 确保按钮在最上层 */
}