/* ==========================================================================
   TCY Server - Parallax Header Styles
   视差滚动标题区域的所有样式
   ========================================================================== */

/* --- 视差容器 --- */
.parallax-header {
    height: 480px;
    background-image: var(--parallax-bg-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -2rem;
    margin-right: -2rem;
    width: calc(100% + 4rem);
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,0.3), 0 8px 32px rgba(0,0,0,0.08);
    will-change: transform;
}

/* 上方叠加渐变遮罩，提升文字可读性 */
.parallax-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.15) 40%,
        rgba(0,0,0,0.25) 100%
    );
    z-index: 1;
}

/* 底部柔和渐隐 */
.parallax-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(255,255,255,0.4), transparent);
    z-index: 1;
}

/*
 * 视差内层（背景图实际载体）
 * 高度设为容器的 220%，给视差偏移留足空间
 * 初始 top: -30% 让图片顶部（人脸区域）在容器中可见
 * JS 通过 translate3d 移动此层实现视差
 */
.parallax-bg {
    position: absolute;
    top: -20%; left: 0; right: 0;
    height: 200%;
    background-image: var(--parallax-bg-image);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
}

/* --- 内容层 --- */
.parallax-content {
    z-index: 2;
    text-align: center;
    will-change: transform;
}

/* --- 粉白渐变大标题 --- */
.parallax-title {
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: none;
    background: linear-gradient(180deg, #ffffff 20%, #ffc1e3 80%, #f48fb1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 4px 12px rgba(255, 105, 180, 0.45)) drop-shadow(0 1px 2px rgba(0,0,0,0.15));
    letter-spacing: 0.05em;
}

/* --- 副标题 --- */
.parallax-subtitle {
    font-size: 1.6rem;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 36px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    letter-spacing: 0.08em;
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

/* 平板竖屏及以下 */
@media screen and (max-width: 960px) {
    .parallax-header {
        height: 320px;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        border-radius: 12px;
    }

    .parallax-bg {
        top: -20%;
        height: 200%;
    }

    .parallax-title {
        font-size: 3rem !important;
    }

    .parallax-subtitle {
        font-size: 1.1rem;
        padding: 8px 20px;
    }
}

/* 手机竖屏 */
@media screen and (max-width: 600px) {
    .parallax-header {
        height: 240px;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        width: calc(100% + 1rem);
        border-radius: 10px;
    }

    .parallax-bg {
        top: -15%;
        height: 180%;
    }

    .parallax-title {
        font-size: 2.2rem !important;
        letter-spacing: 0.02em;
    }

    .parallax-subtitle {
        font-size: 0.95rem;
        padding: 6px 16px;
    }
}
