/**
 * Banner样式二 CSS
 * 带背景图片、标题、搜索框和关键词链接
 *
 * @package GoodBase
 * @since 1.0.0
 */

.home-banner2 {
    margin-top: 0px;
    margin-bottom: 8px;
    padding: 0;
    position: relative;
}

.banner2-background {
    position: relative;
    width: 100%;
    min-height: 500px; /* 默认值，会被内联样式覆盖 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 视频背景样式 */
.banner2-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.banner2-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.banner2-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.banner2-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #fff;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.banner2-subtitle {
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 1rem 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

.banner2-search {
    margin: 0.5rem 0;
}

.banner2-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.banner2-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 25px;
    font-size: 16px;
    background: transparent;
    color: #333;
}

.banner2-search-input::placeholder {
    color: #999;
}

.banner2-search-button {
    background: #333;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.banner2-search-button:hover {
    background: #000;
    transform: scale(1.05);
}

.banner2-search-button svg {
    width: 20px;
    height: 20px;
}

.banner2-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.banner2-keyword-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.banner2-keyword-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner2-background {
        min-height: 400px;
    }
    
    .banner2-content {
        padding: 20px 20px;
    }
    
    .banner2-title {
        font-size: 2.5rem;
    }
    
    .banner2-subtitle {
        font-size: 1rem;
    }
    
    .banner2-search-form {
        max-width: 100%;
    }
    
    .banner2-search-input {
        padding: 6px 12px;
		font-size: 12px;
    }
    
    .banner2-search-button {
        width: 40px;
        height: 40px;
    }
    
    .banner2-keywords {
        gap: 0.5rem;
    }
    
    .banner2-keyword-link {
        font-size: 12px;
        padding: 6px 12px;
    }
}

