/* Banner Styles */
.banner {
    position: relative;
    min-height: 100vh; /* 使用min-height确保在内容较多时仍能覆盖全屏 */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://glassspiritbottles.com/image/zhuyao/1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 视差滚动效果 */
    background-repeat: no-repeat;
    z-index: 1;
    animation: zoomEffect 20s infinite alternate ease-in-out;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0; /* 初始状态为透明，由动画控制显示 */
}

.banner-title {
    font-size: clamp(2.5rem, 6vw, 4rem); /* 响应式字体大小 */
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem); /* 响应式字体大小 */
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border: none;
}

.btn-primary:hover, .btn-primary:focus {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    outline: none;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: white;
    color: #333;
    transform: translateY(-3px);
    outline: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 0.8;
}

.scroll-indicator span {
    margin-bottom: 10px;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    animation: arrowMove 1.5s infinite;
}

@keyframes arrowMove {
    0% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(5px);
    }
    100% {
        transform: rotate(45deg) translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

/* 确保页面没有默认边距，避免出现滚动条 */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 针对不同屏幕尺寸的响应式调整 */
@media (max-width: 768px) {
    .banner-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 80%;
        max-width: 250px;
        padding: 12px 20px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .banner-title {
        margin-bottom: 15px;
    }
    
    .banner-subtitle {
        margin-bottom: 30px;
    }
}
