/**
 * 首页头部宣传图区域样式 - 重新设计简洁版本
 * 左侧主图 + 右侧四张小图的清晰布局
 */

/* ==========================================================================
   基础布局结构
   ========================================================================== */

.tk-header {
    position: relative;
    padding-top: 90px;
    background-color: rgba(248, 248, 248);
}

.header-banner {
    display: flex;
    max-width: 1180px;
    margin: 0 auto;
    height: 350px; /* 改为350px */
}

/* ==========================================================================
   左侧主图区域
   ========================================================================== */

.main-banner {
    flex: 1;
    height: 350px; /* 改为350px */
    min-height: 350px;
    margin-right: 10px; /* 用margin替代gap */
}

.main-banner a {
    display: block;
    width: 100%;
    height: 100%;
}

.main-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ==========================================================================
   右侧四张小图区域
   ========================================================================== */

.side-banners {
    flex: 1;
    height: 350px; /* 改为350px */
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.banner-row {
    flex: 1;
    display: flex;
    height: calc((350px - 10px) / 2); /* 精确计算每行高度：(350-10)/2 = 170px */
    min-height: 170px;
}

.banner-row:first-child {
    margin-bottom: 10px; /* 上下行间距 */
}

.banner-item {
    flex: 1;
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
}

.banner-item:first-child {
    margin-right: 10px; /* 左右间距 */
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.banner-item:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   右侧小图悬停效果和标题覆盖层
   ========================================================================== */

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    color: white;
    border-radius: 0 0 8px 8px;
}

.banner-tag {
    display: inline-block;
    padding: 2px 6px;
    background: #ff5c5c;
    color: white;
    font-size: 12px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.banner-title {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ==========================================================================
   确保布局稳定性
   ========================================================================== */

/* 清除可能的浮动影响 */
.header-banner::after {
    content: "";
    display: table;
    clear: both;
}

/* 防止图片拖拽 */
.header-banner img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ==========================================================================
   移动端简化 (暂时保留基础响应式)
   ========================================================================== */

@media (max-width: 768px) {
    .header-banner {
        flex-direction: column;
        height: auto;
    }
    
    .main-banner {
        height: 200px;
        min-height: 200px;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .side-banners {
        height: auto;
        min-height: auto;
    }
    
    .banner-row {
        height: 120px;
        min-height: 120px;
    }
    
    .banner-row:first-child {
        margin-bottom: 8px;
    }
    
    .banner-item:first-child {
        margin-right: 8px;
    }
}