/* ============================================================
   Immersive Page Styles
   ============================================================ */

:root {
    --imm-primary: #017fff;
    --imm-bg: #0a0a0f;
    --imm-text: #ffffff;
    --imm-text-muted: #aabbcc;
    --imm-radius: 24px;
    --imm-section-gap: 0px;
}

.imm-page {
    background-color: var(--imm-bg);
    overflow-x: hidden;
}

/* ============================================================
   BLOCK 1: HERO / BANNER
   ============================================================ */

.imm-hero {
    position: relative;
    width: 100vw;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    height: 800px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: 100% auto !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #0a0e1a;
    padding: 0 0 100px;
    overflow: hidden;
}

/* 背景图片层 - 放大动画目标 */
.imm-hero__bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    /* 初始状态 */
    transform: scale(1);
    transform-origin: center center;
}

/* 放大动画 - 自动循环 */
.imm-hero--animated .imm-hero__bg-layer {
    animation: immBannerZoom 12s ease-in-out infinite;
}

@keyframes immBannerZoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* 移动端关闭放大动画 */
@media (max-width: 767px) {
    .imm-hero--animated .imm-hero__bg-layer {
        animation: none !important;
        transform: scale(1) !important;
    }
}

/* 暗色遮罩 - 已移除 */
.imm-hero__overlay {
    display: none;
}

/* 文字内容 */
.imm-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 1440px;
}

.imm-hero__title {
    font-size: 4rem !important;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 20px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.imm-hero__subtitle {
    font-size: 2rem!important;
    color: #fff!important;
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0,0,0,0.4);
    margin: 0 0 90px;
}

/* ============================================================
   BLOCK 2 & 3: 通用区块样式
   每栏高度基于1920设计稿，PC端800px
   ============================================================ */

.imm-section {
    position: relative;
    width: 100%;
    background-color: #0c131b;
}

/* 通用区块高度 - 800px（基于1920设计稿） */
.imm-arc__stage,
.imm-arc__slides,
.imm-dome__stage,
.imm-dome__slides,
.imm-sphere__stage,
.imm-sphere__slides,
.imm-xr__stage,
.imm-xr__slides,
.imm-tunnel__stage,
.imm-tunnel__slides,
.imm-ceiling__stage,
.imm-ceiling__slides {
    height: 800px !important;
    min-height: 800px !important;
    max-height: 800px !important;
}

.imm-arc__img-wrap {
    height: 800px !important;
    min-height: 800px !important;
    max-height: 800px !important;
}

/* 通用按钮 — flex布局下自然对齐，不再绝对定位 */
.imm-section__btn {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    transform: none;
    margin-top: 100px;
    align-items: center;
    justify-content: center;
    padding: 12px 64px 12px 32px;
    font-size: 18px;
    font-weight: 300;
    color: #fff;
    background: linear-gradient(90deg, #007eff 0%, #00469b 100%);
    border: 2px solid #fff;
    border-radius: 999px;
    text-decoration: none;
    z-index: 15;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    white-space: nowrap;
    pointer-events: auto;
}

.imm-section__btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

/* 右侧伪类箭头容器（绝对定位在按钮右侧） */
.imm-section__btn-arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* 箭头尖端 */
.imm-section__btn-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: translate(-30%, -40%) rotate(45deg);
    box-sizing: border-box;
}

/* 箭头横线 */
.imm-section__btn-arrow::after {
    content: '';
    position: absolute;
    top: 54%;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: #ffffff;
    transform: translateY(50%);
}

/* ============================================================
   BLOCK 2: ARC CAVE
   ============================================================ */

.imm-arc {
    padding: 60px 0 80px;
}

.imm-arc__stage {
    position: relative;
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    background: #111;
    min-height: 480px;
    max-height: 620px;
}

/* Slides 容器 */
.imm-arc__slides {
    position: relative;
    width: 100%;
    min-height: 480px;
    max-height: 620px;
}

.imm-arc__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.imm-arc__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* 图片容器（3D 视差目标） */
.imm-arc__img-wrap {
    width: 100%;
    height: 100%;
    min-height: 480px;
    max-height: 620px;
    overflow: hidden;
    will-change: transform;
}

.imm-arc__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.1s linear;
    will-change: transform;
}

.imm-arc__img-wrap--empty .imm-arc__placeholder {
    width: 100%;
    min-height: 480px;
    background: linear-gradient(135deg, #111 0%, #1a1f2e 100%);
}

/* 内容容器：与页眉对齐 max-width:1234px padding:0 40px */
.imm-arc__info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 0 32px 0;
    background: url('/wp-content/themes/milestrong/assets/images/icons/arccave_titlebg.png') bottom left / 100% auto no-repeat;
    z-index: 5;
    pointer-events: none;
}

.imm-arc__content-wrapper {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 1440px;
    height: auto;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.imm-arc__info-inner {
    flex: 1;
    pointer-events: auto;
}

.imm-arc__title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.imm-arc__desc {
    font-size: 14px;

    color: #fff
    margin: 0 0 10px;
    max-width: 600px;
    line-height: 1.6;
}

.imm-arc__desc p { margin: 0; }

.imm-arc__tag {
    font-size: 18px;
    color: #ffffff;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* 导航箭头（ARC CAVE，在 stage 外部） */
.imm-arc__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 0 0;
}

.imm-arc__nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--imm-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.imm-arc__nav-btn:hover {
    background: transparent;
    color: #fff;
}

/* 圆点指示器 — 隐藏 */
.imm-arc__dots,
.imm-dome__dots {
    display: none;
}

/* MARKETS 风格通用导航组件 */
.imm-markets-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 0;
}

.imm-markets-nav__inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #232324;
    border-radius: 25px;
}

.imm-markets-nav__bg {
    display: block;
    max-height: 30px;
    width: auto;
}

.imm-markets-nav__lr {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 75%;
    width: auto;
    pointer-events: none;
}

.imm-markets-nav__btn {
    position: absolute;
    top: 0;
    width: 45%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 5;
    padding: 0;
}

.imm-markets-nav__btn--prev {
    left: 0;
}

.imm-markets-nav__btn--next {
    right: 0;
}

.imm-markets-nav__btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ============================================================
   BLOCK 3: DOME — Panolens 穹顶全景（多图轮播）
   ============================================================ */

.imm-dome {
    padding: 0 0 80px;
}

.imm-dome__stage {
    position: relative;
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    background: #050810;
    height: 560px;
    cursor: grab;
}

.imm-dome__stage:active { cursor: grabbing; }

/* Slides 容器 */
.imm-dome__slides {
    position: relative;
    width: 100%;
    height: 560px;
    border-radius: 0;
    overflow: hidden;
}

.imm-dome__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.imm-dome__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Panolens canvas 容器：撑满 slide，覆盖在背景图上层 */
.imm-dome__canvas-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: grab;
}

.imm-dome__canvas-wrap:active {
    cursor: grabbing;
}

/* canvas 本身由 Panolens 注入，确保全屏，允许鼠标事件 */
.imm-dome__canvas-wrap canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: auto !important;
    background: transparent !important;
}

/* 静态背景图（始终显示，Panolens 加载期间作为占位） */
.imm-dome__bg-fallback {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* 移动端降级静态图（保留兼容旧代码） */
.imm-dome__mobile-fallback {
    display: none;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* 静态图模式（VR 关闭） */
.imm-dome__static-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.imm-dome__static-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 占位背景 */
.imm-dome__placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #050810 0%, #0d1a2e 100%);
    z-index: 1;
}

/* 左下角文字覆盖（与 ARC CAVE 一致） */
.imm-dome__info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 120px 0 40px 0;
    background: url('/wp-content/themes/milestrong/assets/images/icons/arccave_titlebg.png') bottom left / 100% auto no-repeat;
    z-index: 5;
    pointer-events: none;
}

/* Dome区块内容容器：与页眉对齐 */
.imm-dome__content-wrapper {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 1440px;
    height: auto;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.imm-dome__info-inner {
    flex: 1;
    pointer-events: auto;
}

.imm-dome__title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.imm-dome__desc {
    font-size: 14px;

    color: #fff
    margin: 0 0 10px;
    max-width: 600px;
    line-height: 1.6;
}

.imm-dome__desc p { margin: 0; }

.imm-dome__tag {
    font-size: 20px;

    color: rgb(255, 255, 255);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* 导航箭头（与 ARC CAVE 一致，在 stage 外部） */
.imm-dome__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 0 0;
}

.imm-dome__nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--imm-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.imm-dome__nav-btn:hover {
    background: transparent;
    color: #fff;
}

/* 圆点指示器（已合并到上方统一隐藏） */

/* VR 提示（在 stage 内顶部，z-index 高于 canvas） */
.imm-dome__vr-hint {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.55);
    color: rgba(255,255,255,0.85);
    font-size: 20px;

    padding: 7px 18px;
    border-radius: 20px;
    z-index: 30;
    backdrop-filter: blur(6px);
    pointer-events: none;
    white-space: nowrap;
    animation: immFadeOut 3s ease-out 3s forwards;
}

@keyframes immFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* ============================================================
   TABLET (768px - 1024px)
   ============================================================ */

@media (max-width: 1024px) {
    .imm-hero__title { font-size: 40px; }
    .imm-hero__subtitle { font-size: 17px; }

    .imm-arc__stage,
    .imm-dome__stage {
        width: 100%;
        height: 420px;
    }

    .imm-arc__slides { min-height: 420px; max-height: 420px; }
    .imm-dome__slides { height: 420px; border-radius: var(--imm-radius); }

    .imm-arc__title,
    .imm-dome__title { font-size: 28px; }

    .imm-arc__info,
    .imm-dome__info { padding: 80px 0 32px 0; }

    .imm-section__btn {
        padding: 12px 28px;
        font-size: 17px;
    }
}

/* ============================================================
   MOBILE (< 768px)
   ============================================================ */

@media (max-width: 767px) {
    /* Hero */
    .imm-hero {
        height: 400px;
    }

    /* 移动端关闭放大动画 */
    .imm-hero--animated.imm-hero--mobile-no-anim .imm-hero__bg-layer {
        animation: none !important;
        transform: scale(1) !important;
    }

    .imm-hero__title { font-size: 26px; letter-spacing: 0.02em; }
    .imm-hero__subtitle { font-size: 14px; }

    /* ARC / DOME */
    .imm-arc { padding: 32px 0 48px; }
    .imm-dome { padding: 0 0 48px; }

    .imm-arc__stage,
    .imm-dome__stage {
        width: 100%;
        border-radius: 0;
        height: 280px;
    }

    .imm-arc__slides { min-height: 280px; max-height: 280px; }
    .imm-dome__slides { height: 280px; border-radius: 0; }

    .imm-arc__img-wrap {
        min-height: 260px;
        max-height: 360px;
    }

    /* 移动端：隐藏 Panolens canvas，bg-fallback 自动作为背景 */
    .imm-dome__canvas-wrap { display: none !important; }

    .imm-arc__title,
    .imm-dome__title { font-size: 22px; }

    .imm-arc__desc,
    .imm-dome__desc { font-size: 13px; }

    .imm-arc__tag,
    .imm-dome__tag { font-size: 12px; }

    .imm-arc__info,
    .imm-dome__info { padding: 60px 0 56px 0; }

    .imm-section__btn {
        padding: 10px 22px;
        font-size: 15px;
    }

    .imm-markets-nav { padding: 12px 0 0; }
    .imm-markets-nav__bg { max-height: 26px; }
}

/* ============================================================
   BLOCK 4 & 5: SPHERE / XR STUDIO — 复用 DOME 样式
   ============================================================ */

.imm-sphere { padding: 0 0 80px; }
.imm-xr     { padding: 0 0 80px; }

.imm-sphere__stage,
.imm-xr__stage {
    position: relative;
    width: 100%;
    background: #050810;
    height: 560px;
}

.imm-sphere__slides,
.imm-xr__slides {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
}

/* SPHERE: canvas 覆盖在背景图上，Three.js 球体渲染在此 */
.imm-sphere__canvas-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: auto;
}
.imm-sphere__canvas-wrap canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* XR: 背景图需要 overflow hidden 防止视差溢出 */
.imm-xr__slides { overflow: hidden; }
.imm-xr__info   { will-change: transform; pointer-events: none; }
.imm-xr .imm-section__btn { will-change: transform; pointer-events: auto; }

.imm-sphere__slide,
.imm-xr__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.imm-sphere__slide.is-active,
.imm-xr__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.imm-sphere__bg,
.imm-xr__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
}

.imm-sphere__placeholder,
.imm-xr__placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #050810 0%, #0d1a2e 100%);
    z-index: 1;
}

/* Sphere/XR区块内容容器：与页眉对齐，flex垂直居中 */
.imm-sphere__info,
.imm-xr__info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 120px 0 40px 0;
    background: url('/wp-content/themes/milestrong/assets/images/icons/arccave_titlebg.png') bottom left / 100% auto no-repeat;
    z-index: 5;
    pointer-events: none;
}

.imm-sphere__content-wrapper,
.imm-xr__content-wrapper {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 1440px;
    height: auto;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.imm-sphere__info-inner,
.imm-xr__info-inner {
    flex: 1;
    pointer-events: auto;
}

.imm-sphere__title,
.imm-xr__title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.imm-sphere__desc,
.imm-xr__desc {
    font-size: 14px;

    color: #fff
    margin: 0 0 10px;
    max-width: 600px;
    line-height: 1.6;
}

.imm-sphere__desc p,
.imm-xr__desc p { margin: 0; }

.imm-sphere__tag,
.imm-xr__tag {
    font-size: 20px;

    color: rgb(255, 255, 255);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.imm-sphere__nav,
.imm-xr__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 0 0;
}

.imm-sphere__nav-btn,
.imm-xr__nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--imm-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.imm-sphere__nav-btn:hover,
.imm-xr__nav-btn:hover {
    background: transparent;
    color: #fff;
}

/* Tablet */
@media (max-width: 1024px) {
    .imm-sphere__stage,
    .imm-xr__stage { height: 420px; }

    .imm-sphere__slides,
    .imm-xr__slides { height: 420px; }

    .imm-sphere__title,
    .imm-xr__title { font-size: 28px; }

    .imm-sphere__info,
    .imm-xr__info { padding: 80px 0 32px 0; }
}

/* Mobile */
@media (max-width: 767px) {
    .imm-sphere { padding: 0 0 48px; }
    .imm-xr     { padding: 0 0 48px; }

    .imm-sphere__stage,
    .imm-xr__stage { height: 280px; }

    .imm-sphere__slides,
    .imm-xr__slides { height: 280px; }

    .imm-sphere__title,
    .imm-xr__title { font-size: 22px; }

    .imm-sphere__desc,
    .imm-xr__desc { font-size: 13px; }

    .imm-sphere__tag,
    .imm-xr__tag { font-size: 12px; }

    .imm-sphere__info,
    .imm-xr__info { padding: 60px 0 56px 0; }

    .imm-sphere__nav-btn,
    .imm-xr__nav-btn { width: 34px; height: 34px; }
}

/* ============================================================
   BLOCK 6 & 7: TUNNEL / CEILING — 多图轮播，复用 DOME/XR 结构
   ============================================================ */

.imm-tunnel { padding: 0 0 80px; }
.imm-ceiling { padding: 0 0 80px; }

/* Slides 容器 */
.imm-tunnel__slides,
.imm-ceiling__slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* 单个 Slide */
.imm-tunnel__slide,
.imm-ceiling__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.imm-tunnel__slide.is-active,
.imm-ceiling__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.imm-tunnel__stage,
.imm-ceiling__stage {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    background: #050810;
    cursor: crosshair;
}

.imm-tunnel__bg,
.imm-ceiling__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.imm-tunnel__placeholder,
.imm-ceiling__placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #050810 0%, #0d1a2e 100%);
    z-index: 1;
}

/* Three.js canvas 覆盖层 */
.imm-tunnel__canvas-wrap,
.imm-ceiling__canvas-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.imm-tunnel__canvas-wrap canvas,
.imm-ceiling__canvas-wrap canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* TUNNEL: 鼠标视差由 stage 接收，canvas 层隐藏（不再用 Three.js） */
.imm-tunnel__stage { cursor: default; overflow: hidden; }
.imm-tunnel__canvas-wrap { display: none !important; }
/* CEILING: 纯 scale 推拉，canvas 层隐藏 */
.imm-ceiling__canvas-wrap { display: none !important; }
.imm-ceiling__stage { cursor: default; overflow: hidden; }

#tunnelAnimLayer {
    transform-origin: center center;
}

/* 前景抠图层：走廊+人物，底部居中固定，z-index 高于 canvas(2) 低于 info(5) */
.imm-tunnel__foreground {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background-image: url('/wp-content/themes/milestrong/assets/images/tunnel-foreground.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    z-index: 4;
    pointer-events: none;
}

#ceilingAnimLayer {
    transform-origin: center center;
}

/* Tunnel/Ceiling区块内容容器：与页眉对齐 */
.imm-tunnel__info,
.imm-ceiling__info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 120px 0 40px 0;
    background: url('/wp-content/themes/milestrong/assets/images/icons/arccave_titlebg.png') bottom left / 100% auto no-repeat;
    z-index: 5;
    pointer-events: none;
}

/* info 内部的 content-wrapper 改为相对定位居中，与页眉对齐 */
.imm-tunnel__info .imm-tunnel__content-wrapper,
.imm-ceiling__info .imm-ceiling__content-wrapper {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 1440px;
    height: auto;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.imm-tunnel__info-inner,
.imm-ceiling__info-inner {
    flex: 1;
    pointer-events: auto;
}

.imm-tunnel__title,
.imm-ceiling__title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.imm-tunnel__desc,
.imm-ceiling__desc {
    font-size: 14px;

    color: #fff
    margin: 0 0 10px;
    max-width: 600px;
    line-height: 1.6;
}

.imm-tunnel__desc p,
.imm-ceiling__desc p { margin: 0; }

.imm-tunnel__tag,
.imm-ceiling__tag {
    font-size: 20px;

    color: rgba(255,255,255,0.65);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Tablet */
@media (max-width: 1024px) {
    .imm-tunnel__stage,
    .imm-tunnel__slides,
    .imm-ceiling__stage,
    .imm-ceiling__slides { height: 420px !important; min-height: 420px !important; max-height: 420px !important; }

    .imm-tunnel__title,
    .imm-ceiling__title { font-size: 28px; }

    .imm-tunnel__info,
    .imm-ceiling__info {
        padding: 80px 0 32px 0;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .imm-tunnel { padding: 0 0 48px; }
    .imm-ceiling { padding: 0 0 48px; }

    .imm-tunnel__stage,
    .imm-tunnel__slides,
    .imm-ceiling__stage,
    .imm-ceiling__slides { height: 280px !important; min-height: 280px !important; max-height: 280px !important; }

    /* 移动端隐藏 Three.js canvas */
    .imm-tunnel__canvas-wrap,
    .imm-ceiling__canvas-wrap { display: none !important; }

    .imm-tunnel__title,
    .imm-ceiling__title { font-size: 22px; }

    .imm-tunnel__desc,
    .imm-ceiling__desc { font-size: 13px; }

    .imm-tunnel__tag,
    .imm-ceiling__tag { font-size: 12px; }

    .imm-tunnel__info,
    .imm-ceiling__info {
        padding: 60px 0 56px 0;
    }
}


/* ============================================================
   BLOCK 8: CONTACT US
   ============================================================ */

.imm-contact {
    padding: 80px 0 100px;
    width: 100%;
}

.imm-contact__inner {
    max-width: 1440px;
}

.imm-contact__header {
    text-align: center;
    margin-bottom: 48px;
}

.imm-contact__title {
    font-size: 80px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.imm-contact__title-blue {
    color: #1a7fff;
}

.imm-contact__subtitle {
    font-size: 14px;

    font-weight: 600;
    color: #e0e0e0;
    margin: 0 0 12px;
}

.imm-contact__desc {
    font-size: 14px;

    color: #9ca3af;
    margin: 0;
    line-height: 1.6;
}

/* 双列表单网格 */
.imm-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 32px;
}

.imm-contact__col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: stretch;
}

/* textarea 撑满右列剩余高度 */
.imm-contact__col .imm-contact__textarea {
    flex: 1;
    min-height: 80px;
}

/* 输入框 — 胶囊圆角 */
.imm-contact__input {
    width: 100%;
    padding: 14px 24px;
    background: #1b1a22;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.imm-contact__input::placeholder { color: rgba(255,255,255,0.35); }
.imm-contact__input:focus { border-color: rgba(0,126,255,0.5); }

/* 文本域 — 圆角矩形 */
.imm-contact__textarea {
    width: 100%;
    padding: 14px 24px;
    background: #1b1a22;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    color: #fff;
    font-size: 15px;
    outline: none;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.imm-contact__textarea::placeholder { color: rgba(255,255,255,0.35); }
.imm-contact__textarea:focus { border-color: rgba(0,126,255,0.5); }

/* 验证码行 */
.imm-contact__captcha-wrap {
    position: relative;
}

.imm-contact__input--captcha {
    padding-right: 130px;
}

#imm-captcha-img {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 34px;
    border-radius: 6px 20px 20px 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}

#imm-captcha-img:hover { opacity: 0.8; }

/* 提交按钮区 */
.imm-contact__submit-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.imm-contact__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 600px;
    padding: 16px 60px;
    font-size: 21px;
    font-weight: 300;
    color: #fff;
    background: linear-gradient(90deg, #007eff 0%, #00469b 100%);
    border: 2px solid #fff;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    white-space: nowrap;
}

.imm-contact__submit:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.5);
}

.imm-contact__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 斜箭头 — 与首页 submit 完全一致 */
.imm-contact__arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    right: 30px;
    transform: rotate(-45deg);
}

.imm-contact__arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: translate(-30%, -40%) rotate(45deg);
}

.imm-contact__arrow::after {
    content: '';
    position: absolute;
    top: 54%;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: #ffffff;
    transform: translateY(50%);
}

/* Spinner */
#imm-submit-spinner {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 30px;
    animation: immSpin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes immSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* 隐私声明 */
.imm-contact__privacy {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ---- Tablet (768px - 1024px) ---- */
@media (max-width: 1024px) {
    .imm-contact { padding: 60px 0 80px; }
    .imm-contact__inner { padding: 0 32px; }
    .imm-contact__title { font-size: 56px; }
    .imm-contact__submit { min-width: 400px; font-size: 18px; }
}

/* ---- Mobile (< 768px) ---- */
@media (max-width: 767px) {
    .imm-contact { padding: 48px 0 64px; }
    .imm-contact__inner { padding: 0 20px; }
    .imm-contact__title { font-size: 40px; }
    .imm-contact__subtitle { font-size: 16px; }
    .imm-contact__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .imm-contact__submit {
        min-width: 0;
        width: 100%;
        font-size: 17px;
        padding: 14px 24px;
    }
}
