/**
 * 首页第3张卡片改造样式（仅移动端加载）
 * 蓝色渐变 banner + 应用图标堆叠（仿同行"查看更多游戏"）
 * PC 端不加载此文件，保留主题原始卡片
 */

/* 让含 game-download 链接的卡片独占一行（full-width banner） */
.header-slider-card .flex1.bafu-home-full {
    flex-basis: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 8px;
}

/* 卡片容器变蓝色渐变 banner */
.bafu-home-banner {
    background: linear-gradient(65deg, #a2f4ff 0%, #41c0ff 100%) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    min-height: 64px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    position: relative;
    overflow: visible;
    box-shadow: 0 6px 16px rgba(65,192,255,0.25);
    border: 0 !important;
}

/* 图标堆叠区（靠左上角，图标重叠） */
.bafu-home-icons {
    position: relative;
    min-height: 38px;
    flex: 0 0 auto;
    align-self: flex-start;        /* 整体靠上对齐 */
}
.bafu-home-icons img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;                       /* 由 inline style 覆盖 left 偏移 */
    box-shadow: 2px 0 6px rgba(255,255,255,0.6), 0 1px 3px rgba(0,0,0,0.15);
    object-fit: cover;
    background: #fff;
    border: 2px solid #fff;
}

/* 文字区 */
.bafu-home-text {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-left: auto;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bafu-home-arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 20px;
    font-weight: bold;
    vertical-align: middle;
}

/* 小屏手机 */
@media (max-width: 480px) {
    .bafu-home-banner { padding: 10px 12px !important; min-height: 52px; }
    .bafu-home-icons { min-height: 34px; }
    .bafu-home-icons img { width: 34px; height: 34px; border-radius: 7px; }
    .bafu-home-text { font-size: 14px; }
    .bafu-home-arrow { font-size: 18px; }
}

@media (max-width: 360px) {
    .bafu-home-icons { min-height: 30px; }
    .bafu-home-icons img { width: 30px; height: 30px; border-radius: 6px; }
    .bafu-home-text { font-size: 13px; }
    .bafu-home-arrow { font-size: 16px; }
}
