/* Banner 样式 - 不影响全局 body */
.banner {
    width: 100%;
    min-height: 360px;
    background: linear-gradient(90deg, #6a85b6 0%, #a77dc2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

/* 核心循环动画：1秒放大出现 → 3秒停留 → 消失 → 循环 */
@keyframes popInOut {
    0% {
        opacity: 0;
        transform: scale(0.8); /* 初始缩小状态 */
    }
    20% { /* 0-1秒：放大+显示（总时长5秒，20%=1秒） */
        opacity: 1;
        transform: scale(1);
    }
    80% { /* 1-4秒：停留（20%-80%=3秒） */
        opacity: 1;
        transform: scale(1);
    }
    100% { /* 4-5秒：消失 */
        opacity: 0;
        transform: scale(0.8);
    }
}

/* 渐变文字样式 */
.gradient-text {
    background: linear-gradient(90deg, #fff, #fde047);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 2px rgba(0,0,0,0.1);
}

/* 标题：5秒一轮循环，无延迟 */
.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 600;
    animation: popInOut 5s infinite ease-in-out;
}

/* 标题豆子图标：同步标题动画，尺寸适配 */
.bean-icon {
    color: #fde047;
    margin-left: 8px;
    font-size: 44px;
    animation: popInOut 5s infinite ease-in-out;
}

/* 文案：5秒一轮，延迟0.5秒启动（错开标题） */
.banner p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0; /* 初始隐藏 */
    animation: popInOut 5s infinite ease-in-out 0.5s;
}

/* 文案豆子小图标：同步文案动画 */
.small-bean {
    color: #fde047;
    margin-left: 5px;
    font-size: 20px;
    animation: popInOut 5s infinite ease-in-out 0.5s;
}

/* 按钮：移除循环动画，始终显示 */
.banner button {
    padding: 18px 48px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
    opacity: 1; /* 始终显示 */
    transition: all 0.3s; /* 仅保留hover过渡 */
}

/* 按钮悬浮效果：仅保留交互强化 */
.banner button:hover {
    background: linear-gradient(90deg, #1d4ed8, #1e40af);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.8);
}

/* 背景光效：慢节奏循环，衬托主体 */
.banner::before, .banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(80px);
    opacity: 0.7;
    animation: float 15s infinite ease-in-out;
}
.banner::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: 200px;
}
.banner::after {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: 200px;
    animation-delay: 2s;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}