/* ========== Hero 开屏渐变动画 ========== */

/* 渐变背景动画 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        -45deg,
        #FDFBF8,
        #F9F7F2,
        #F5F1E8,
        #EFE8DC,
        #E8DCC8,
        #EFE8DC,
        #F5F1E8,
        #F9F7F2
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 100%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 0%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 浮动光晕效果 */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(238, 220, 180, 0.15) 0%,
        transparent 70%
    );
    animation: floatHalo 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatHalo {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(10%, 10%) scale(1.1);
    }
    66% {
        transform: translate(-10%, 5%) scale(0.9);
    }
}

/* 内容层确保在动画上层 */
.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 0;
}

.hero__eyebrow {
    opacity: 0;
    animation: fadeInUp 0.9s ease forwards;
    animation-delay: 0.08s;
}

/* 标题淡入上浮动画 */
.hero__title {
    font-size: var(--hero-title);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--micro-spacing);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

.hero__subtitle {
    font-size: 24px;
    font-weight: var(--font-light);
    color: var(--text-secondary);
    letter-spacing: 4px;
    margin-bottom: var(--element-spacing);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.4s;
}

.hero__tagline {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: var(--micro-spacing);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
}

.hero__tagline--en {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: var(--font-light);
    letter-spacing: 2px;
    margin-bottom: var(--block-spacing);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
}

/* 按钮组动画 */
.hero__actions {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1s;
}

.hero__trust {
    opacity: 0;
    animation: fadeInUp 0.95s ease forwards;
    animation-delay: 0.78s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮悬停效果增强 */
.hero__btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero__btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero__btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero__btn:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero {
        background-size: 300% 300%;
        animation-duration: 12s;
    }
    
    .hero::before {
        animation-duration: 15s;
    }
    
    .hero__title {
        font-size: 48px;
    }
    
    .hero__subtitle {
        font-size: 18px;
        letter-spacing: 2px;
    }
    
    .hero__tagline {
        font-size: 16px;
    }
    
    .hero__tagline--en {
        font-size: 14px;
    }
}
