/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Banner主容器样式 */
.banner-container {
    position: relative;
    width: 100%;
    height: 180px; /* 标准banner高度 */
    overflow: hidden;
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4); /* 粉蓝色渐变 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景图形样式 */
.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2; /* 降低背景图透明度 */
    z-index: 1;
}

.banner-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 内容区域样式 */
.banner-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

/* 文案区域样式 */
.banner-text {
    flex: 1;
    color: white;
    padding-right: 30px;
}

.banner-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.banner-description {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* 按钮区域样式 */
.banner-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: white;
    color: #3498db;
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid white;
}

/* 按钮图标样式 */
.btn-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.search-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23ff6b9d'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
}

.category-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z'/%3E%3C/svg%3E");
}

/* 视觉元素样式 */
.banner-visual {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* 交互动效 */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
    background-color: #f8f9fa;
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.banner-visual:hover img {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .banner-container {
        height: 10rem;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-description {
        font-size: 0.875rem;
    }
    
    .banner-visual {
        width: 6.25rem;
        height: 6.25rem;
    }
}

@media (max-width: 768px) {
    .banner-container {
        height: 8.75rem;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 0 0.9375rem;
    }
    
    .banner-text {
        padding-right: 0;
        margin-bottom: 0.9375rem;
    }
    
    .banner-title {
        font-size: 1.375rem;
        margin-bottom: 0.375rem;
    }
    
    .banner-description {
        font-size: 0.8125rem;
        margin-bottom: 0.9375rem;
    }
    
    .banner-buttons {
        justify-content: center;
    }
    
    .banner-visual {
        width: 5rem;
        height: 5rem;
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 7.5rem;
    }
    
    .banner-title {
        font-size: 1.125rem;
    }
    
    .banner-description {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .banner-buttons {
        gap: 0.5rem;
    }
    
    .banner-visual {
        display: none; /* 在移动端隐藏视觉元素 */
    }
}

@media (max-width: 375px) {
    .banner-container {
        height: 6.25rem;
    }
    
    .banner-title {
        font-size: 1rem;
    }
    
    .banner-description {
        font-size: 0.6875rem;
        margin-bottom: 0.625rem;
    }
    
    .btn {
        padding: 0.3125rem 0.625rem;
        font-size: 0.6875rem;
    }
    
    .banner-buttons {
        gap: 0.5rem;
    }
    
    .btn-icon {
        width: 0.875rem;
        height: 0.875rem;
    }
}