@charset "utf-8";
/* ============================================================
   fold-carousel.css  ——  折纸手风琴轮播（独立模块）
   与全站样式零冲突：所有选择器都以 .fold-carousel 为根
   不改 css.css，不引 jQuery，不用 CSS 变量（兼容老内核）
   ============================================================ */

.fold-carousel {
    position: relative;
    width: 1800px;
    /* 舞台 770 + 底部 34 给页码，页码不压卡片 */
    height: 804px;
    margin: 0 auto;
    overflow: hidden;
    outline: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.fold-stage {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 770px;
    overflow: visible;
    /* 透视：1400px 决定折叠的"厚度感"，越小越夸张 */
    -webkit-perspective: 1400px;
    perspective: 1400px;
    -webkit-perspective-origin: 50% 46%;
    perspective-origin: 50% 46%;
}

.fold-track {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* 初始化时禁掉一切过渡，避免首帧从屏幕外飞进来 */
.fold-track.fold-no-anim .fold-panel {
    -webkit-transition: none !important;
    transition: none !important;
}

/* ---------- 折面 ---------- */
.fold-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 308px;
    height: 770px;
    margin-left: -154px;
    margin-top: -385px;
    list-style: none;
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: -webkit-transform .85s cubic-bezier(.25, .8, .25, 1), opacity .85s ease;
    transition: transform .85s cubic-bezier(.25, .8, .25, 1), opacity .85s ease;
    will-change: transform, opacity;
    outline: 1px solid transparent; /* 防 3D 边缘锯齿 */
}

.fold-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #060a14;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.fold-card img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    -webkit-user-drag: none;
    pointer-events: none; /* 点击热区交给整个折面，避免 hover 抖动 */
}

/* ---------- 折痕：只做"折叠棱"上的一道受光边 ----------
   谁盖在上面，折痕就画在谁的边上：
   中心卡盖左右两侧 → is-both
   左侧卡盖更外一张 → is-left
   右侧卡盖更外一张 → is-right                          */
.fold-crease {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    -webkit-transition: opacity .45s ease;
    transition: opacity .45s ease;
}

/* 用户要求「不要任何颜色，只显示原图」：
   原先画在接缝上的 3px 暖金折棱已整段移除，.fold-crease 恒为透明。
   折纸感只保留在卡片**外侧**的黑色投影里，不压在图上。 */

/* ---------- 侧面压暗：只压外缘，中间保亮（保证字还能扫） ---------- */
.fold-shade {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    -webkit-transition: opacity .85s ease;
    transition: opacity .85s ease;
}

.fold-shade.is-left {
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 1) 0, rgba(0, 0, 0, .32) 26%, rgba(0, 0, 0, 0) 58%);
    background: linear-gradient(to right, rgba(0, 0, 0, 1) 0, rgba(0, 0, 0, .32) 26%, rgba(0, 0, 0, 0) 58%);
}

.fold-shade.is-right {
    background: -webkit-linear-gradient(right, rgba(0, 0, 0, 1) 0, rgba(0, 0, 0, .32) 26%, rgba(0, 0, 0, 0) 58%);
    background: linear-gradient(to left, rgba(0, 0, 0, 1) 0, rgba(0, 0, 0, .32) 26%, rgba(0, 0, 0, 0) 58%);
}

/* ---------- 深度投影：盖在上面的卡，向被盖的那一侧压出阴影 ---------- */
.fold-panel .fold-card {
    box-shadow: 0 30px 64px rgba(0, 0, 0, .72);
}

.fold-panel.is-cover-l .fold-card {
    box-shadow:
        -26px 28px 40px -16px rgba(0, 0, 0, .88),
        0 30px 64px rgba(0, 0, 0, .72);
}

.fold-panel.is-cover-r .fold-card {
    box-shadow:
        26px 28px 40px -16px rgba(0, 0, 0, .88),
        0 30px 64px rgba(0, 0, 0, .72);
}

.fold-panel.is-cover-l.is-cover-r .fold-card {
    box-shadow:
        -26px 28px 40px -16px rgba(0, 0, 0, .88),
        26px 28px 40px -16px rgba(0, 0, 0, .88),
        0 30px 64px rgba(0, 0, 0, .72);
}

/* ---------- 左右箭头 ---------- */
.fold-btn {
    position: absolute;
    top: 385px;
    z-index: 20;
    display: block;
    width: 58px;
    height: 58px;
    margin-top: -29px;
    cursor: pointer;
    opacity: .82;
    -webkit-transition: opacity .3s ease, -webkit-transform .3s ease;
    transition: opacity .3s ease, transform .3s ease;
}

.fold-btn img {
    display: block;
    width: 100%;
    height: auto;
}

.fold-btn:hover {
    opacity: 1;
}

.fold-btn.fold-prev {
    left: 196px;
}

.fold-btn.fold-next {
    right: 196px;
}

/* ---------- 页码（预览页用，合并时可留可删） ---------- */
.fold-counter {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font: 13px/28px "Microsoft YaHei", sans-serif;
    letter-spacing: 2px;
    color: rgba(198, 166, 108, .72);
    pointer-events: none;
}

.fold-counter em {
    font-style: normal;
    color: rgba(240, 214, 168, .95);
}

/* ---------- 老内核 / 无 3D 环境降级：平铺 5 张 ---------- */
@supports not (transform-style: preserve-3d) {
    .fold-stage {
        -webkit-perspective: none;
        perspective: none;
    }

    .fold-track {
        width: 1420px;
        left: 190px;
        display: block;
    }

    .fold-panel {
        width: 253px;
        height: 631px;
        margin-left: 0;
        margin-top: 0;
        left: 0;
        top: 69px;
        opacity: 1 !important;
    }
}

/* ------------------------------------------------------------
   主站补丁（只在 index.htm 生效，预览页不受影响）
   css.css 第 626/627 行有 .gameIntro img{transition:all .5s}
   与 .gameIntro img:hover{transform:scale(1.02)}，
   直接作用到折面里的 img，会撕碎折面姿态、并抢占过渡时序。
   这里用更高特异性把它按死，且只影响折面内的图片。
   ------------------------------------------------------------ */
.gameIntro .fold-carousel .fold-card img,
.gameIntro .fold-carousel .fold-card img:hover {
    -webkit-transform: none;
    transform: none;
    -webkit-transition: none;
    transition: none;
}