/* ============================================
   【紧急覆盖】禁用 swiper-full 的 100vh 强制规则
   页面 section 仍带 swiper-full class，必须强制覆盖
   ============================================ */
.modules-swiper.swiper-full,
.admin-bar .modules-swiper.swiper-full {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.modules-swiper.swiper-full .slide-img {
    min-height: 0 !important;
    height: 0 !important;
}

/* ============================================
   Hero Slider — 原生 CSS 轮播样式
   替代 swiper-full 全屏轮播，自定义 absolute + opacity 淡入淡出
   ============================================ */

/* ── 轮播外层 wrap ── */
.hero-slider-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    /* 顶部留出导航栏高度（约64px），使轮播不被导航遮挡 */
    padding-top: 64px;
    box-sizing: border-box;
}

/* ── 轮播主体 ── */
.hero-slider {
    position: relative;
    width: 100%;
    max-height: 696px;       /* 760 - 64 = 696，腾出导航高度 */
    height: 696px;           /* 固定高度，使子元素有高度参照 */
    overflow: hidden;
    background: #0a1528;
}

/* ── 单个 slide：回到文档流，高度撑满父容器 ── */
.hero-slide {
    position: absolute;  /* 绝对定位覆盖，但 */
    inset: 0;            /* 撑满父容器 696px */
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
    display: flex;
    align-items: center;  /* 内容垂直居中 */
}

.hero-slide.hero-slide--active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

/* ── 背景图片：用 img 标签覆盖整个父级，绕过 Ezoic lazyload ── */
.hero-slide-img {
    position: absolute;
    inset: -20px;            /* 上下左右各扩展20px，防止留边 */
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    animation: heroSlideZoom 8s ease-in-out infinite alternate;
}

@keyframes heroSlideZoom {
    from { transform: scale(1.00); }
    to   { transform: scale(1.05); }
}

/* ── 三层渐变遮罩 ── */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(6, 21, 37, 0.55) 0%,
        rgba(13, 34, 64, 0.35) 50%,
        rgba(6, 21, 37, 0.55) 100%
    );
}

/* ── 文字内容（z-index 4）── */
.hero-content {
    position: relative;
    z-index: 4;
    max-width: 1200px;
    width: 100%;
    padding: 0 40px 0 60px;  /* 左侧60px，右侧40px */
    box-sizing: border-box;
}

/* Eyebrow 标签 */
.hero-eyebrow {
    display: inline-block;
    font-size: 37px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7cc8f8;
    margin-bottom: 14px;
    padding: 5px 14px;
    border: 1px solid rgba(124, 200, 248, 0.6);
    border-radius: 2px;
}

/* 主标题 */
.hero-content h1 {
    margin: 0 0 20px;
    font-size: 50px;
    line-height: 1.25;
    color: #ffffff;
    font-weight: 700;
}

/* 描述文字 */
.hero-desc {
    margin: 0 0 30px;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* 按钮组 */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: #2563eb;
    color: #fff;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.hero-btn:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}

/* ── 指示器（底部居中）── */
.hero-indicators {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-indicator {
    display: block;
    width: 32px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.hero-indicator--active {
    width: 48px;
    background: #ffffff;
}

/* ── 左右箭头 ── */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-arrow--prev { left: 20px; }
.hero-arrow--next { right: 20px; }

/* ── 内容对齐方式 ── */
.hero-content.align-center {
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
}

.hero-content.align-center .hero-actions {
    justify-content: center;
}

.hero-content.align-left {
    padding-left: clamp(20px, 5vw, 30em);
}

.hero-content.align-right {
    margin-left: auto;
    right: 0;
    text-align: right;
}

.hero-content.align-right .hero-actions {
    justify-content: flex-end;
}

/* ── 响应式 ── */
@media (max-width: 1024px) {
    .hero-slider-wrap { padding-top: 56px; }
    .hero-slider { max-height: 544px; }
    .hero-content h1 { font-size: 38px; }
    .hero-eyebrow { font-size: 28px; }
    .hero-desc { font-size: 17px; }
    .hero-content { padding: 0 30px 0 40px; }
}

@media (max-width: 768px) {
    .hero-slider-wrap { display: none; }
}
