/* 视差英雄区域 */
.parallax-hero {
    /* 布局 */
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 盒模型 */
    margin-bottom: var(--spacing-xl);
    
    /* 视觉 */
    color: white;
    text-align: center;
    
    /* 性能优化 */
    will-change: transform;
    z-index: 1;
}

.parallax-bg {
    /* 布局 */
    position: absolute;
    top: 0;
    left: 0;
    
    /* 盒模型 */
    width: 100%;
    height: 130%;
    
    /* 视觉 */
    background-image: url('../assets/welcome/2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* 动画 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    z-index: -2;
}

.parallax-overlay {
    /* 布局 */
    position: absolute;
    top: 0;
    left: 0;
    
    /* 盒模型 */
    width: 100%;
    height: 100%;
    
    /* 视觉 */
    background: linear-gradient(to bottom, 
        rgba(20, 30, 20, 0.85) 0%, 
        rgba(30, 40, 30, 0.6) 50%,
        rgba(40, 50, 40, 0.3) 100%);
    opacity: 0.9;
    z-index: -1;
}

.parallax-content {
    /* 布局 */
    max-width: 800px;
    padding: var(--spacing-md);
    
    /* 动画 */
    opacity: 0;
    transform: translateY(30px);
    animation: fade-in-up 1.2s var(--ease-out-cubic) 0.3s forwards;
}

/* 标题图片容器 */
.title-image-container {
    /* 布局 */
    position: relative;
    margin: 0 auto var(--spacing-lg);
    
    /* 盒模型 */
    width: 100%;
    max-width: 879px;
    height: auto;
    
    /* 视觉 */
    background: none;
    border: none;
    cursor: pointer;
    
    /* 动画 */
    opacity: 0;
    transform: scale(0.95);
    animation: scale-in 1s var(--ease-out-back) 0.5s forwards;
    transition: transform 0.5s var(--ease-out-back);
}

.title-image {
    /* 盒模型 */
    width: 100%;
    height: auto;
    
    /* 视觉 */
    filter: drop-shadow(var(--shadow-light));
    
    /* 动画 */
    transition: all 0.5s var(--ease-out-back);
}

.title-image-container:hover .title-image {
    transform: scale(1.02);
    filter: drop-shadow(0 15px 30px rgba(157, 182, 140, 0.4));
}

/* SVG装饰层 */
.svg-decoration-layer {
    /* 布局 */
    position: absolute;
    top: 0;
    left: 0;
    
    /* 盒模型 */
    width: 100%;
    height: 100%;
    
    /* 视觉 */
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.svg-decoration {
    width: 100%;
    height: 100%;
    opacity: 0.7;
    filter: drop-shadow(0 5px 15px rgba(157, 182, 140, 0.2));
}

/* 副标题 */
.parallax-subtitle {
    /* 盒模型 */
    margin-bottom: var(--spacing-lg);
    
    /* 视觉 */
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    
    /* 动画 */
    opacity: 0;
    animation: fade-in 1s ease-out 1s forwards;
}

/* 行动号召按钮 */
.parallax-cta {
    /* 布局 */
    display: inline-block;
    position: relative;
    overflow: hidden;
    
    /* 盒模型 */
    padding: 1.2rem 3rem;
    
    /* 视觉 */
    background: linear-gradient(135deg, rgba(90, 130, 90, 0.9) 0%, rgba(110, 150, 110, 0.9) 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-medium);
    
    /* 动画 */
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.8s ease-out 1.2s forwards;
    transition: all 0.4s var(--ease-out-back);
}

.parallax-cta:hover {
    background: linear-gradient(135deg, rgba(110, 150, 110, 0.95) 0%, rgba(130, 170, 130, 0.95) 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-heavy);
    letter-spacing: 1px;
}

/* 滚动指示器 */
.scroll-indicator {
    /* 布局 */
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    
    /* 视觉 */
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    
    /* 动画 */
    animation: bounce-enhanced 2.5s infinite var(--ease-in-out-back);
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator i {
    font-size: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

/* 浮动茶叶元素 */
.floating-tea-element {
    /* 布局 */
    position: absolute;
    
    /* 盒模型 */
    width: 20px;
    height: 20px;
    
    /* 视觉 */
    background: rgba(157, 182, 140, 0.3);
    border-radius: 50%;
    
    /* 动画 */
    pointer-events: none;
    opacity: 0.5;
    z-index: -1;
}

/* 动画关键帧 */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    70% {
        opacity: 0.9;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce-enhanced {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes float-random {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .title-image-container {
        max-width: 700px;
    }
    
    .parallax-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .parallax-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .title-image-container {
        max-width: 500px;
        margin-bottom: var(--spacing-md);
    }
    
    .parallax-cta {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
}

@media (max-width: 576px) {
    .title-image-container {
        max-width: 350px;
    }
    
    .parallax-subtitle {
        font-size: 1rem;
    }
    
    .parallax-cta {
        padding: 0.9rem 2rem;
    }
    
    .scroll-indicator i {
        font-size: 1.5rem;
    }
}