/* 首页幻灯片容器 - 只在首页显示 */
.header-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 998;
}

/* 幻灯片项 */
.header-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.header-slide.active {
    opacity: 1;
}

/* 悬浮文字 - 只在首页显示 
.header-floating-text {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    text-align: center;
    width: 100%;
    background-color: transparent;
    font-family: "avenir-next-world", sans-serif;
    color: white;
    padding: 15px 0;
    pointer-events: none;
}

.header-floating-text .line1 {
    font-size: 70px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.header-floating-text .line2 {
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}*/

/* 响应式调整 - 只在首页生效 */
/* 当屏幕宽度 ≤ 1200px 时，让幻灯片容器按图片比例自适应 */
@media (max-width: 1200px) {
    .header-slideshow {
        position: relative;        /* 如果原有定位干扰布局，可改为 relative，但需测试 */
        height: auto;              /* 取消固定高度 */
        min-height: unset;         /* 移除最小高度限制 */
        aspect-ratio: 1684 / 834;  /* 设置与图片完全相同的宽高比 */
        width: 100%;               /* 保持全宽 */
    }

    /* 幻灯片项继承容器的高度，背景图依然使用 cover 填满 */
    .header-slide {
        position: absolute;        /* 如果容器改为 relative，子元素 absolute 仍可覆盖 */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;              /* 高度由父容器 aspect-ratio 决定 */
        background-size: cover;    /* 比例匹配时不会裁剪 */
        background-position: center;
    }
}