/* 容器样式 */
.parallax-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0px auto;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transform-style: preserve-3d;
    perspective: 1000px;
   
}

/* 封面图片样式 */
.cover-image {
    width: 100%;
    height: 65vh;
    min-height: 380px;
    max-height: 380px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    transform-origin: center;
    will-change: transform;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;

}

/* 标题样式 */
.cover-title {
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 3;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    padding: 20px;
    border-radius: 10px;
    /*
    backdrop-filter: blur(5px);
    */
    max-width: 80%;
}

.cover-title h1 {
    font-size: 3rem;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
}

.cover-title .subtitle {
    font-size: 1.2rem;
    margin: 10px 0 0;
    font-weight: 300;
    letter-spacing: 1px;
}

/* 彩虹效果容器 */
.rainbow-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.17, 0.67, 0.21, 0.99);
    transform-style: preserve-3d;
}

/* 彩虹基础样式 */
.rainbow-layer {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100%;
    animation: rainbowFlow linear infinite;
    opacity: 0.8;
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 500 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,80 C100,30 150,90 250,50 C350,10 400,70 500,30" fill="black"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 500 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,80 C100,30 150,90 250,50 C350,10 400,70 500,30" fill="black"/></svg>');
    mask-size: 500px 100px;
    transition: all 0.5s cubic-bezier(0.17, 0.67, 0.21, 0.99);
    will-change: transform;
}

/* 彩虹颜色层 */
.rainbow-layer {
    left: 0;
    background: linear-gradient(90deg, 
        rgba(255,0,0,0.7),
        rgba(255,165,0,0.7),
        rgba(255,255,0,0.7),
        rgba(0,255,0,0.7),
        rgba(0,127,255,0.7),
        rgba(0,0,255,0.7),
        rgba(75,0,130,0.7));
    animation-duration: 20s;
    transform-origin: bottom center;
}

/* 彩虹流动动画 */
@keyframes rainbowFlow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 悬停效果(简化版) */
.parallax-container:hover {
    transform: translateY(-3px);
}

.parallax-container:hover .rainbow-effect {
    height: 130px;
    opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cover-image {
        height: 26vh;
        min-height: 200px;
    }
    
    .cover-title h1 {
        font-size: 2.2rem;
    }
    
    .cover-title .subtitle {
        font-size: 1rem;
    }
    
    .rainbow-effect {
        height: 80px;
    }
    
    .parallax-container:hover .rainbow-effect {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .cover-image {
        height: 26vh;
        min-height: 180px;
    }
    
    .cover-title h1 {
        font-size: 1.8rem;
    }
    
    .cover-title .subtitle {
        font-size: 0.9rem;
    }
    
    .rainbow-effect {
        height: 60px;
    }
    
    .parallax-container:hover .rainbow-effect {
        height: 80px;
    }
}