/* 活动专题页样式 - 像素级还原 */
body {
    overflow: hidden;
    background-color: #ac1e0c;
}

.activity-page {
    font-family: '微软雅黑', 'Microsoft YaHei', Arial, sans-serif;
    overflow-x: hidden;
    background: #000;
    margin: 0;
    padding: 0;
}

/* 鼠标跟随效果 - 直接复制目标网站实现 */
.cursor-follow {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    display: block;
    left: 10px;
    top: 10px;
    will-change: transform;
    transition: width 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                height 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-width 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background-color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
    background-color: transparent;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    opacity: 1;
}

/* 鼠标悬停在可交互元素上时的效果 */
.cursor-follow.hover {
    width: 60px;
    height: 60px;
    border-width: 2px;
    border-color: rgba(255, 215, 0, 1);
    background-color: rgba(255, 215, 0, 0.08);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}


/* 上半部分：大屏图 */
.top-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
 
}

.top-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 1;
}

.top-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 视频不可播放/未加载时的兜底图 */
.top-banner-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.scroll-btn-wrapper {
    position: absolute;
    left: 50%;
    bottom: 100px;
    transform: translateX(-50%);
    z-index: 6;
    cursor: pointer;
    animation: bounceDown 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.scroll-btn-wrapper:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-btn {
    display: block;
    width: auto;
    height: auto;
    max-width: 200px;
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(15px);
    }
}

/* 下半部分：多层次内容区域 */
.bottom-section {
    position: relative;
    width: 100%;
    height:980px;
   
    background:#ac1e0c;
    z-index: 5;
}

/* 图层基础样式 */
.layer {
    position: absolute;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* 添加transition，让动画在滚动停止后平滑执行 */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* 使用GPU加速 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.layer-img {

    height: auto;
    display: block;
    pointer-events: none;
}

/* 全宽图层 */
.layer-hongpao,
.layer-bottom-bg,
.layer-huabian {
    width: 100%;
    left: 0;
}

/* 最底层：红包背景 */
.layer-hongpao {
    top: -113px;
    left: 0;
    z-index: 1;
    transform: translateY(0);
    width: 100%;
}

/* 底部背景（上边沿遮住部分hongpao.png） */
.layer-bottom-bg {
    top: -888px;
    left: 0;
    z-index: 2;
    transform: translateY(0);
    width: 100%;
    height: auto;
    /* 使用负的margin-top让上边沿遮住hongpao.png */
    margin-top: -200px;
}

/* 花边层 */
.layer-huabian {
    top: -32px;
    left: 0;
    z-index: 3;
    transform: translateY(0);
    width: 100%;
}

/* 中间内容层 */
.layer-mid {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: auto;
    height: auto;
    max-width: 70%;
    min-width: 600px;
}

/* 左下角：马 */
.layer-ma {
    bottom: 8%;
    left: 3%;
    z-index: 5;
    width: auto;
    height: auto;
    transform: translateY(0);
    max-width: 25%;
}

/* 左上角：炮 */
.layer-pao {
    top: 8%;
    left: 3%;
    z-index: 5;
    width: auto;
    height: auto;
    transform: translateY(0);
    max-width: 25%;
}

/* 左边：窗花 */
.layer-chuanghua {
    top: 15%;
    left: 81%;
    z-index: 5;
    width: auto;
    height: auto;
    transform: translateY(0);
    max-width: 25%;
}

/* 四个按钮：定位在mid.png周围的四个角 */
.btn {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    animation: sway 3s ease-in-out infinite;
    transition: filter 0.3s ease, transform 0.3s ease;
    width: auto;
    height: auto;
}

.btn:hover {
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.btn:hover .btn-img {
    transform: scale(1.15);
}

.btn-img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    pointer-events: none;
}

/* 按钮上下晃动动画 - 柔和效果 */
@keyframes sway {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* 按钮定位：根据mid.png的四个角，精确像素定位 */
.btn-1 {
    top: 20%;
    left: 9%;
    animation-delay: 0s;
    
}

.btn-3 {
    top: 20%;
    left: 78%;
    animation-delay: 0.5s;
   
}

.stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
}

.btn-2 {
    top: 60%;
    left: 26%;
    animation-delay: 1s;
  
}

.btn-4 {
    top: 60%;
    left: 56%;
    animation-delay: 1.5s;
    
}

/* 弹框样式 */
.activity-dialog-wrapper {
    position: relative;
    padding: 30px;
    /* 给“顶部外露标题”留出内容区空间 */
    padding-top: 70px;
    text-align: left;
    max-width: 88%;
    margin: 0 auto;

}

.dialog-title {
    /* 标题图片/标题块定位到弹框顶部外边 */
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translate(-50%, -100%);
    margin: 0;
    font-size: 28px;
    color: #8b4513;
    font-weight: bold;
    text-align: center;
    z-index: 2;
}

/* 如果标题是图片，保持自适应 */
.dialog-title img {
    display: block;
    max-width: 100%;
    height: auto;
}

.dialog-content {
    color: #333;
    font-size: 16px;
    line-height: 2;
    text-align: left;
}

/* 普通内容区图片样式（不包含轮播容器） */
.dialog-content:not(.dialog-content-slider) img {
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.dialog-content p {
    text-indent: 2em;
    margin-bottom: 15px;
}

.mod-dialog-main {
    line-height: 2;
}
/* 弹框主容器样式 */
.activity-dialog .mod-dialog-main {
    max-width:1251px;
    width: 90%;
    background: url('../images/box.png') no-repeat center center;
    background-size: 100% 100%;
    padding: 80px 60px;
    box-sizing: border-box;
    min-height: 784px;
    /* 允许标题露出弹框外边 */
    overflow: visible;
}

#activity-dialog-4 .mod-dialog-content {
    width: 85%;
    margin: 0 auto;
    
}

.dialog4-panels {

    overflow-y: auto;
}

#video-dialog-3 .mod-dialog-close1 {
    position: static;
}

#activity-dialog-4 .dialog-title {
    top: 74px;
}

#activity-dialog-4 .mod-dialog-main img {
    display: block;
    margin: 10px auto;
}

/* 第一个弹框单独使用 pic-hxys 作为背景 */
#activity-dialog-1 .mod-dialog-main {
    background: none;
    background-size: 100% 100%;
    padding:0;
}

#activity-dialog-1 .activity-dialog-wrapper {
    padding:0;
}

.pic-desc {
    position: absolute;
    color:#fff;
    top: 25%;
    right: 10%;
    width:110px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    line-height: 1.2;
    column-count: 2;
    column-gap: 10px;
    z-index: 5;
}

#activity-dialog-1 .dialog-title {
    top:73px;
}

/* 第三个弹框单独使用 pic-lmjs 作为背景 */
#activity-dialog-3 .mod-dialog-main {
    background: url('../images/pic-lmjs.png') no-repeat center center;
    background-size: 100% 100%;
}
#activity-dialog-3 .dialog-title {
    top: 80px;
}

/* 第三个弹框内的“立即观看”按钮定位到右下角 */
.dialog-content-video {
    position: relative;
    width: 100%;
    min-height: 200px;
}

.dialog-content-video .dialog-video-btn {
    position: absolute;
    right: 61px;
    top: 464px;
    cursor: pointer;
    display: block;
    max-width: 200px;
}

.dialog-content-video .dialog-video-btn:hover {
    transform: scale(1.05);
}

/* 第一个弹框内 pic-hxys 轮播 */
.dialog-content-slider {
    position: relative;
    width: 100%;
    min-height: 300px;
}

.dialog-slider-images {
    position: relative;
    width: 100%;
}

.dialog-slider-img {
    display: none!important;
    width: 100%;
    height: auto;
}

.dialog-slider-img.active {
    display: block!important;;
}


#activity-dialog-1 .dialog-content-video {
    position: absolute;
    bottom:12%;
    right:10%;
    width:auto;
    min-height: auto;
    z-index: 6;
}
#activity-dialog-1 .dialog-content-video  img {
    position: static;
}

.dialog-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    z-index: 3;
}

.dialog-slider-prev {
    left: 10px;
    animation: slider-prev-hint 1.2s ease-in-out infinite;
}

.dialog-slider-next {
    right: 10px;
    animation: slider-next-hint 1.2s ease-in-out infinite;
}

.dialog-slider-btn img {
    display: block;
  
    height: auto;
}

@keyframes slider-prev-hint {
    0%, 100% {
        transform: translate(-4px, -50%);
        opacity: 1;
    }
    50% {
        transform: translate(2px, -50%);
        opacity: 0.9;
    }
}

@keyframes slider-next-hint {
    0%, 100% {
        transform: translate(4px, -50%);
        opacity: 1;
    }
    50% {
        transform: translate(-2px, -50%);
        opacity: 0.9;
    }
}

/* 第四个弹框 tab 样式 */
.dialog4-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    margin-bottom: 24px;
}

.dialog4-tab {
    padding: 6px 14px;
    background: rgba(255, 247, 220, 0.9);
    color: #8b4513;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    width: 180px;
    height:60px;
    text-align: center;
    line-height: 57px;
    background: url(../images/tab_off.png) no-repeat;
}

.dialog4-tab:hover {
    background: #f6e1b5;
    background: url(../images/tab_on.png) no-repeat;
}

.dialog4-tab.active {

    color: #fff;
    background: url(../images/tab_on.png) no-repeat;
}

.dialog4-panels {
    margin-top: 10px;
}

.dialog4-panel {
    display: none;
}

.dialog4-panel.active {
    display: block;
}

.dialog4-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.dialog4-table th,
.dialog4-table td {
    border: 1px solid #d3b58b;
    padding: 6px 8px;
    text-align: center;
}

.dialog4-table th {
    background: rgba(200, 138, 58, 0.9);
    color: #fff;
}

#activity-dialog-2 .dialog-title {
    top:96px;
}

.mod-dialog-content img {
    display: block;
    margin: 10px auto;
    max-width: 100%;
}
.mod-dialog-content video {
    max-width: 800px;
}
#activity-dialog-2 .mod-dialog-content {
    margin: 0 10%;
}


/* 移动端适配 */
@media screen and (max-width: 768px) {
    .pic-desc {
        display: none;
    }
    #activity-dialog-1 .dialog-content-video {
        top:100%;
        left:50%;
    }
    .dialog4-tabs {
        display: block;
    }

    .dialog4-tab {
        background: none;
        width:auto;
        height:auto;
        padding:6px;
        display: inline-block;
        line-height: 1;
    }
    
    .dialog4-tab.active {
        background: #8b4513;
        color:#fff;
    }

    .mod-dialog-content video {
        max-width: 100%;
    }

    .mod-dialog-content img {
        max-width: 100%;
    }
    .dialog-slider-prev img {
        width:30px;
    }
    
    .dialog-slider-next img {
        width:30px;
    }


    .dialog-content-video .dialog-video-btn {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        top: 306px;

    }

    .dialog-title {
        display: none;
    }
    #stage1 {
        display: none;
    }

    .btn-box {
        display: flex;
        position: static;
        justify-content: center;
    }

    .bottom-section {
        background: unset!important;
        height: auto;
    }

    .dialog4-panels {
        max-height: none;
    }

    .top-section {
        height: 100vh;
        min-height: 600px;
    }
    
    .top-banner-img {
        object-fit: cover;
        object-position: center;
    }
    
    .scroll-btn-wrapper {
        bottom: 50px;
    }
    
    .scroll-btn {
        max-width: 150px;
    }
    
    .bottom-section {
        min-height: auto;
        padding-bottom: 80px;
        text-align: center;
    }
    
    .layer-mid {
        max-width: 85%;
        min-width: auto;
        top: 45%;
    }
    
    .layer-ma,
    .layer-pao,
    .layer-chuanghua {
        max-width: 28%;
    }
    
    .layer-ma {
        bottom: 5%;
        left: 2%;
    }
    
    .layer-pao {
        top: 5%;
        left: 2%;
    }
    
    .layer-chuanghua {
        top: 12%;
        left: 2%;
    }
    
    .btn {
        position: static!important;
        display: inline-block;
        max-width: 120px;
        width: 40%;
        margin: 10px 5px;
    }
    
    .cursor-follow {
        display: none !important;
    }
    
    .activity-dialog .mod-dialog-main {
        width: 95%;
        padding: 40px 25px;
        background: #fff;
        background-image: none;
        min-height: auto;
    }
    
    .dialog-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .dialog-content {
        font-size: 14px;
    }
    
    .activity-dialog-wrapper {
        padding: 20px;
    }
}

/* 小屏幕适配 */
@media screen and (max-width: 480px) {
    .top-section {
        min-height: 500px;
    }
    
    .scroll-btn {
        max-width: 120px;
    }
    
    .scroll-btn-wrapper {
        bottom: 40px;
    }
    
    .layer-mid {
        max-width: 90%;
        top: 40%;
    }
    
    .layer-ma,
    .layer-pao,
    .layer-chuanghua {
        max-width: 30%;
    }
    

    
    .btn-1 {
        top: 15%;
        left: 8%;
    }
    
    .btn-2 {
        top: 15%;
        right: 8%;
    }
    
    .btn-3 {
        bottom: 15%;
        left: 8%;
    }
    
    .btn-4 {
        bottom: 15%;
        right: 8%;
    }
}

/* 超小屏幕适配 */
@media screen and (max-width: 360px) {
  
    
    .layer-mid {
        max-width: 95%;
    }
}
