/* 新天骄二十三周年庆典 - 设计稿 1920x1080，兼容 IE10 */

html, body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", SimSun, "宋体", sans-serif;
    background: #0a0604;
    color: #f5e6c8;
    overflow: hidden;
    position: relative;
}

body.hidden {
    overflow: hidden;
}

.clearfix:after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
}

.clearfix {
    *zoom: 1;
}

img {
    border: none;
    vertical-align: top;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    opacity: 0.9;
    filter: alpha(opacity=90);
}

/* ========== 页面舞台 1920x1080 ========== */
.years23-page {
    position: relative;
    width: 1920px;
    height: 1080px;
    margin: 0 auto;
    overflow: hidden;
}

.stage {
    position: relative;
    width: 1920px;
    height: 1080px;
    overflow: hidden;
    background: #0a0604;
}

/* ========== 主视觉 ========== */
.hero-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 1920px;
    height: 1080px;
    z-index: 1;
}

.hero-bg {
    display: block;
    width: 1920px;
    height: 1080px;
}

/* PC 主视觉视频背景（移动端由 .pc-only 隐藏，改用静态图） */
.hero-video {
    position: absolute;
    left: 0;
    top: 0;
    width: 1920px;
    height: 1080px;
    object-fit: cover;
    background: #0a0604;
    z-index: 0;
}

/* Logo 已按需求去掉，保留选择器避免旧缓存残留样式报错 */
.hero-logo,
.theme-logo {
    display: none !important;
}

.hero-title {
    position: absolute;
    left: 50%;
    /* 相对原位置下移约标题高度的 30% */
    top: 106px;
    margin-left: -380px;
    width: 760px;
    height: auto;
    z-index: 2;
}

.btn-enter {
    position: absolute;
    left: 50%;
    /* 上移：铺满缩放时底部会被裁切，避免「查看详情」被挡住 */
    bottom: 120px;
    margin-left: -64px;
    width: 129px;
    height: 135px;
    z-index: 3;
    cursor: pointer;
    -webkit-animation: tipBounce 1.6s ease-in-out infinite;
    animation: tipBounce 1.6s ease-in-out infinite;
}

.btn-enter img {
    display: block;
    width: 129px;
    height: 135px;
}

@-webkit-keyframes tipBounce {
    0%, 100% { bottom: 120px; }
    50% { bottom: 136px; }
}

@keyframes tipBounce {
    0%, 100% { bottom: 120px; }
    50% { bottom: 136px; }
}

.hero-layer.is-hidden .btn-enter {
    display: none;
}

/* 主题层打开时隐藏主视觉 Logo，避免与主题头叠影；视频继续播放作背景 */
.hero-layer.is-hidden .hero-logo {
    display: none !important;
}

/* ========== 活动主题层 ========== */
.theme-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 1920px;
    height: 1080px;
    z-index: 2;
    visibility: hidden;
    background: transparent;
}

.theme-layer.is-ready {
    visibility: visible;
}

.theme-bg {
    display: block;
    width: 1920px;
    height: 1080px;
}

/* PC：主题层不铺静态底图，透出 hero 层视频背景 */
.theme-bg.pc-only {
    display: none !important;
}

/* 底部压暗 */
.theme-mask {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1920px;
    height: 483px;
    background: url(../images/mask_bottom.png) no-repeat center bottom;
    background-size: 1920px 483px;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transition: opacity 0.45s ease;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 1;
}

.theme-layer.is-open .theme-mask {
    opacity: 0.92;
    filter: alpha(opacity=92);
}

.theme-header {
    position: absolute;
    left: 0;
    top: 0;
    width: 1920px;
    height: 360px;
    z-index: 3;
    pointer-events: none;
}

.theme-logo {
    position: absolute;
    left: 48px;
    top: 52px;
    width: 160px;
    height: auto;
}

.theme-title {
    position: absolute;
    left: 50%;
    /* 相对原位置下移约标题高度的 30% */
    top: 106px;
    margin-left: -380px;
    width: 760px;
    height: auto;
}

/* 主题内容：自下而上 */
.theme-body {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1920px;
    height: 720px;
    z-index: 4;
    -webkit-transform: translateY(110%);
    -ms-transform: translateY(110%);
    transform: translateY(110%);
    -webkit-transition: -webkit-transform 0.55s ease;
    transition: transform 0.55s ease;
}

.theme-layer.is-open .theme-body {
    -webkit-transform: translateY(20px);
    -ms-transform: translateY(20px);
    transform: translateY(20px);
}

.theme-arrow {
    position: absolute;
    top: 80px;
    width: 120px;
    height: 280px;
    z-index: 8;
    cursor: pointer;
    /* 保证箭头热区可点，不被模块层挡住 */
    pointer-events: auto;
}

.theme-arrow img {
    display: block;
    width: 120px;
    height: auto;
    pointer-events: none;
}

.theme-arrow-left {
    left: 100px;
}

.theme-arrow-right {
    right: 100px;
}

/* 模块视口：一次展示最多 3 个，数量由接口决定，可滑动 */
.module-viewport {
    width: 1377px;
    margin: 40px auto 0;
    overflow: hidden;
    position: relative;
    z-index: 4;
}

.module-list {
    width: 1377px; /* 实际宽度由 JS 按卡片数量设置 */
    position: relative;
    z-index: 4;
    -webkit-transition: -webkit-transform 0.35s ease;
    transition: transform 0.35s ease;
}

.module-item {
    float: left;
    width: 425px;
    margin: 0 17px;
    cursor: pointer;
}

/* 仅内容图上浮，黄色描边框保持原位 */
.module-pic {
    position: relative;
    width: 425px;
  
    overflow: hidden;
    border: 2px solid #e8c76a;
    box-sizing: border-box;
    background: #000;
}

.module-pic-img {
    display: block;
    width: 100%;
    height: 100%;
    -webkit-transition: -webkit-transform 0.25s ease;
    transition: transform 0.25s ease;
    -webkit-transform-origin: center center;
    -ms-transform-origin: center center;
    transform-origin: center center;
}

.module-item:hover .module-pic-img,
.module-item.is-active .module-pic-img {
    -webkit-transform: scale(1.08);
    -ms-transform: scale(1.08);
    transform: scale(1.08);
}

.module-bar {
    position: relative;
    width: 423px;
    height: 45px;
    margin: 6px auto 0;
    background: url(../images/content_title_bg.png?v=1) no-repeat center center;
    background-size: 423px 45px;
    line-height: 45px;
    overflow: hidden;
    z-index: 2;
}

.module-bar-label {
    display: block;
    margin: 0 110px 0 48px;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 切图已含「查看详情」按钮，此处只做透明热区，避免双重叠画 */
.module-bar-btn {
    position: absolute;
    right: 6px;
    top: 0;
    width: 104px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    font-size: 14px;
    color: transparent;
    text-indent: -9999px;
    overflow: hidden;
    cursor: pointer;
    z-index: 3;
    background: none;
    background-color: transparent;
    background-image: none;
    border: none;
    -webkit-border-radius: 0;
    border-radius: 0;
    box-sizing: border-box;
    text-shadow: none;
}

.module-desc {
    width: 423px;
    height: 124px;
    margin: 6px auto 0;
    padding: 14px 18px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.7);
    background-image: url(../images/content_desc_bg.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 423px 124px;
    font-size: 14px;
    line-height: 22px;
    color: #e8d9b8;
    overflow: hidden;
    position: relative;
    z-index: 1;
    /* IE8-9 无 rgba 时的回退 */
    *background-color: #000;
}

/* 分页菱形（仅主题页） */
.theme-dots {
    text-align: center;
    margin-top: 18px;
    height: 36px;
    line-height: 36px;
    position: relative;
    z-index: 5;
}

.theme-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 8px;
    vertical-align: middle;
    background: url(../images/tab_off.png) no-repeat center center;
    background-size: 18px 18px;
    /* IE10 无 background-size 时用固定尺寸图 */
    *display: inline;
    *zoom: 1;
}

.theme-dot:hover,
.theme-dot.active {
    background-image: url(../images/tab_on.png);
}

/* ========== 弹窗 ========== */
.dialog-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 1920px;
    height: 1080px;
    z-index: 20;
    display: none;
}

.dialog-layer.is-open {
    display: block;
}

.dialog-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.72;
    filter: alpha(opacity=72);
    cursor: pointer;
}

.dialog-box {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 995px;
    height: 569px;
    margin-left: -497px;
    margin-top: -284px;
    z-index: 2;
}

.dialog-close {
    position: absolute;
    /* 关闭按钮在弹窗外侧 5px */
    right: -40px;
    top: -5px;
    width: 35px;
    height: 35px;
    z-index: 3;
    cursor: pointer;
}

.dialog-close img {
    display: block;
    width: 35px;
    height: 35px;
}

.dialog-panel {
    position: relative;
    width: 995px;
    height: 569px;
    background: url(../images/dialog_frame.png) no-repeat center center;
    background-size: 995px 569px;
    overflow: hidden;
}

.dialog-title {
    position: absolute;
    left: 48px;
    top: 16px;
    width: 215px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    font-size: 16px;
    color: #f5e6c8;
    z-index: 2;
    background: url(../images/dialog_title_bg.png) no-repeat center center;
    background-size: 215px 38px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 12px;
    box-sizing: border-box;
}

.dialog-scroll {
    position: absolute;
    left: 78px;
    top: 70px;
    width: 840px;
    height: 430px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 2;
}

.dialog-text {
    font-size: 16px;
    line-height: 28px;
    color: #3a2a1a;
    padding: 0 12px 16px;
    word-wrap: break-word;
}

/* 弹框与内容区图片：最大宽度 100%，左右居中 */
.dialog-text img,
.dialog-scroll img,
.module-desc img {
    max-width: 100%;
    width: auto !important;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* PC / 手机资源切换（选择器需足够具体，避免被后续 img/video 规则盖住） */
.m-only,
img.m-only,
a.m-only {
    display: none !important;
}

.pc-only,
img.pc-only,
video.pc-only,
a.pc-only,
span.pc-only,
div.pc-only {
    display: block;
}

video.pc-only.hero-video {
    display: block;
}

/* ========== 移动端（设计参考 640 宽） ========== */
@media screen and (max-width: 768px) {
    html, body {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        position: relative;
        background: #0a0604;
    }

    .pc-only,
    img.pc-only,
    video.pc-only,
    a.pc-only,
    span.pc-only,
    div.pc-only {
        display: none !important;
    }

    /* 明确隐藏 PC 背景视频，避免移动端空白或自动播放失败 */
    .hero-video,
    video.hero-video {
        display: none !important;
    }

    .m-only,
    img.m-only,
    a.m-only {
        display: block !important;
    }

    .years23-page {
        width: 100%;
        height: auto;
        min-height: 100%;
        margin: 0;
        overflow: visible;
        position: relative;
    }

    .stage {
        width: 100%;
        height: auto;
        min-height: 100vh;
        overflow: visible;
        background: #0a0604;
    }

    /* ---- 主视觉：本轮主视觉背景图铺满，Logo/标题分层叠放 ---- */
    .hero-layer {
        position: relative;
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        background: #0a0604;
    }

    .hero-bg.m-only {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        object-position: center top;
        z-index: 1;
    }

    .hero-layer .hero-logo.m-only {
        left: 3.2%;
        top: 1.8%;
        width: 16.5%; /* 缩小 Logo，给主标题留空 */
        height: auto;
        z-index: 3;
    }

    .hero-layer .hero-title.m-only {
        left: 50%;
        /* 置于 Logo 下方，避免与 Logo 火焰区域重叠 */
        top: 16%;
        margin-left: -38%;
        width: 76%;
        height: auto;
        z-index: 2;
    }

    .btn-enter {
        left: 50%;
        bottom: 8.5%;
        margin-left: -10.1%;
        width: 20.2%; /* 129/640 */
        height: auto;
        z-index: 3;
        -webkit-animation: tipBounceM 1.6s ease-in-out infinite;
        animation: tipBounceM 1.6s ease-in-out infinite;
    }

    .btn-enter img.m-only {
        width: 100%;
        height: auto;
    }

    @-webkit-keyframes tipBounceM {
        0%, 100% { bottom: 8.5%; }
        50% { bottom: 10.5%; }
    }

    @keyframes tipBounceM {
        0%, 100% { bottom: 8.5%; }
        50% { bottom: 10.5%; }
    }

    .hero-layer.is-hidden .btn-enter {
        display: none;
    }

    /* ---- 内容页 ---- */
    .theme-layer {
        position: relative;
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        display: none;
        background: #0a0604;
        overflow: hidden;
    }

    .theme-layer.is-ready,
    .theme-layer.is-open {
        display: block;
        visibility: visible;
    }

    .theme-bg.m-only {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        z-index: 0;
    }

    .theme-mask {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 62%; /* 706/1140 */
        background: url(../images/m_mask_bottom.png) no-repeat center bottom;
        background-size: 100% 100%;
        opacity: 1;
        filter: alpha(opacity=100);
        z-index: 1;
        pointer-events: none;
    }

    .theme-header {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        /* 铺满功能页，使 Logo/主标题的 top% 相对整屏生效 */
        height: 100%;
        min-height: 0;
        padding-top: 0;
        box-sizing: border-box;
        z-index: 3;
        pointer-events: none;
    }

    .theme-logo {
        position: absolute;
        left: 3.2%;
        top: 6%; /* 功能页 Logo 下移 */
        width: 16.5%;
        z-index: 3;
    }

    .theme-title.m-only {
        position: absolute;
        left: 50%;
        /* 功能页主标题随 Logo 同步下移 */
        top: 20%;
        margin: 0 0 0 -38%;
        width: 76%;
        z-index: 2;
    }

    .theme-body {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 64%;
        padding: 0 0 4%;
        box-sizing: border-box;
        z-index: 4;
        -webkit-transform: translateY(110%);
        -ms-transform: translateY(110%);
        transform: translateY(110%);
        opacity: 1;
        filter: alpha(opacity=100);
        -webkit-transition: -webkit-transform 0.45s ease;
        transition: transform 0.45s ease;
    }

    .theme-layer.is-open .theme-body {
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }

    .theme-arrow {
        display: block;
        position: absolute;
        top: 8%;
        width: 12%;
        height: auto;
        z-index: 6;
    }

    .theme-arrow img {
        display: block;
        width: 100%;
        height: auto;
    }

    .theme-arrow-left {
        left: 1%;
    }

    .theme-arrow-right {
        right: 1%;
    }

    /* 居中大卡 + 两侧小卡露出 */
    .module-viewport {
        width: 100%;
        margin: 0;
        overflow: hidden;
        position: relative;
        z-index: 4;
    }

    .module-list {
        width: 300vw; /* 实际宽度由 JS 按卡片数量设置 */
        position: relative;
        left: 0;
        -webkit-transition: -webkit-transform 0.35s ease;
        transition: transform 0.35s ease;
        *zoom: 1;
    }

    .module-item {
        float: left;
        width: 44.5vw; /* 未选 285/640 */
        max-width: none;
        margin: 8vw 2vw 0;
        padding: 0;
        box-sizing: border-box;
        text-align: center;
        opacity: 0.72;
        filter: alpha(opacity=72);
        -webkit-transition: margin 0.35s ease, width 0.35s ease, opacity 0.35s ease;
        transition: margin 0.35s ease, width 0.35s ease, opacity 0.35s ease;
    }

    .module-item.is-active {
        width: 61.1vw; /* 选中 391/640 */
        margin-top: 0;
        opacity: 1;
        filter: alpha(opacity=100);
    }

    .module-item:hover .module-pic-img,
    .module-item.is-active .module-pic-img {
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
    }

    .module-pic {
        width: 100%;
        height: 0;
        padding-bottom: 89.1%; /* 254/285 */
        margin: 0 auto;
        border: 1px solid #e8c76a;
        box-sizing: border-box;
        background: #000;
        overflow: hidden;
        position: relative;
    }

    .module-item.is-active .module-pic {
        padding-bottom: 89.3%; /* 349/391 */
        border: 2px solid #e8c76a;
    }

    .module-pic-img {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 两侧小卡只露图；标题栏 / 详情仅中间大卡展示 */
    .module-item .module-bar,
    .module-item .module-desc {
        display: none;
    }

    .module-item.is-active .module-bar {
        display: block;
        width: 100%;
        height: 0;
        padding-bottom: 10.4%; /* 40/385 */
        margin: 1.8vw auto 0;
        background: url(../images/m_title_bar.png) no-repeat center center;
        background-size: 100% 100%;
        line-height: normal;
        position: relative;
        overflow: hidden;
        z-index: 2;
    }

    .module-item.is-active .module-bar-label {
        position: absolute;
        left: 14%;
        right: 32%;
        top: 0;
        bottom: 0;
        margin: 0;
        font-size: 13px;
        color: #fff;
        line-height: 2.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
    }

    /* 手机端同样：切图自带按钮，仅保留透明点击热区 */
    .module-item.is-active .module-bar-btn {
        position: absolute;
        right: 1%;
        top: 0;
        width: 30%;
        height: 100%;
        min-height: 0;
        line-height: normal;
        text-indent: -9999px;
        overflow: hidden;
        cursor: pointer;
        z-index: 3;
        font-size: 12px;
        color: transparent;
        text-align: center;
        background: none;
        background-color: transparent;
        background-image: none;
        border: none;
        -webkit-border-radius: 0;
        border-radius: 0;
        box-sizing: border-box;
        text-shadow: none;
        display: block;
        padding-top: 0;
    }

    .module-item.is-active .module-desc {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 1.6vw auto 0;
        padding: 2.8vw 3.2vw;
        box-sizing: border-box;
        background-color: transparent;
        background-image: url(../images/m_desc_on.png);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 100% 100%;
        font-size: 12px;
        line-height: 20px;
        color: #e8d9b8;
        overflow: hidden;
        max-height: 18vw;
        position: relative;
        z-index: 1;
    }

    .theme-dots {
        margin-top: 3vw;
        height: auto;
        line-height: normal;
        text-align: center;
        position: relative;
        z-index: 5;
    }

    .theme-dot {
        width: 4.4vw; /* 28/640 */
        height: 4.4vw;
        min-width: 14px;
        min-height: 14px;
        max-width: 28px;
        max-height: 28px;
        margin: 0 1.5vw;
        background: url(../images/m_tab_off.png) no-repeat center center;
        background-size: 100% 100%;
    }

    .theme-dot:hover,
    .theme-dot.active {
        background-image: url(../images/m_tab_on.png);
    }

    /* ---- 弹窗：竖版卷轴 486x840 ---- */
    .dialog-layer {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
    }

    .dialog-mask {
        background: #000;
        opacity: 0.82;
        filter: alpha(opacity=82);
    }

    .dialog-box {
        left: 50%;
        top: 50%;
        width: 76%; /* 486/640 */
        max-width: 486px;
        height: auto;
        margin-left: 0;
        margin-top: 0;
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    .dialog-panel {
        width: 100%;
        height: 0;
        padding-bottom: 172.8%; /* 840/486 */
        background: url(../images/m_dialog_frame.png) no-repeat center center;
        background-size: 100% 100%;
        overflow: hidden;
    }

    .dialog-title {
        left: 50%;
        top: 6.8%;
        width: 45.7%; /* 222/486 */
        max-width: 222px;
        height: 4.6%;
        min-height: 28px;
        margin-left: -22.85%;
        line-height: 28px;
        font-size: 13px;
        color: #f5e6c8;
        background: url(../images/m_dialog_title_bg.png) no-repeat center center;
        background-size: 100% 100%;
        padding: 0 8px;
        box-sizing: border-box;
        text-align: center;
    }

    .dialog-scroll {
        left: 11%;
        top: 13%;
        width: 78%;
        height: 74%;
    }

    .dialog-text {
        font-size: 13px;
        line-height: 22px;
        color: #3a2a1a;
    }

    .dialog-text img,
    .dialog-scroll img,
    .module-desc img {
        max-width: 100%;
        width: auto !important;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .dialog-close {
        right: -5px;
        top: -5px;
        width: 35px;
        height: 35px;
    }

    .dialog-close img.m-only {
        width: 35px;
        height: 35px;
    }
}
