/**
 * page-banner.css —— 页面顶部 Banner（背景图 + 深色遮罩 + 大标题 + 胶囊按钮）
 *
 * 2026-11-17：这块原本写在 links-page.css 里、选择器挂在 .page-flink 下，
 * 只给友链页用。现在友链页撤下了 banner（flink.banner: false），改挂到
 * 朋友圈页顶部，于是把样式单独拆出来，两页按需加载（见 header.ejs）。
 *
 * 用法：layout/_partial/page-banner.ejs
 *   <%- partial('_partial/page-banner', { ban: { title, tips, label, btn, link, bg } }) %>
 *
 * 字段与版式同原友链页 banner，一个都没改：
 *   左上小字（tips）→ 大标题（title）→ 底部左统计（label）/ 右胶囊按钮（btn）
 * 选择器不加页面前缀：.lk-banner 这套类名只有本主题的 banner 用，不会撞车。
 * ============================================================ */

.lk-banner {
    position: relative;
    height: 260px;
    margin: 0 0 18px;
    border-radius: var(--vt-border-radius);
    overflow: hidden;
    background-color: var(--vt-bg-color-grey);
    background-position: center 58%;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 6px 20px var(--vt-shadow-color);
}

/* 遮罩：上方压暗保证小字可读，左侧再压一层，让标题落在深色区 */
.lk-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .62) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 62%);
}

.lk-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px 30px;
    box-sizing: border-box;
    color: #fff;
}

.lk-banner-tips {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    opacity: .85;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.lk-banner-title {
    margin: 10px 0 0;
    padding: 0;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: .5px;
    color: #fff;
    border: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}

.lk-banner-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.lk-banner-label {
    font-size: 14px;
    opacity: .9;
}

.lk-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background .25s ease, transform .25s ease;
}

.lk-banner-btn:hover {
    background: rgba(255, 255, 255, .32);
    color: #fff;
    transform: translateX(2px);
}

.lk-banner-btn i {
    font-size: 13px;
}

@media screen and (max-width: 1024px) {
    .lk-banner {
        height: 220px;
    }
}

@media screen and (max-width: 600px) {
    .lk-banner {
        height: 180px;
        margin-bottom: 14px;
    }

    .lk-banner-inner {
        padding: 16px 18px;
    }

    .lk-banner-title {
        font-size: 24px;
    }

    .lk-banner-label {
        font-size: 12px;
    }

    .lk-banner-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
