/* ==========================================================
   内页统一顶部 Banner
   基准：关于我们
   使用页面：关于我们 / 联系我们 / 加盟招商
   仅“文案 + 图片”按页面不同，结构、间距、字体全站统一
========================================================== */

.page-banner,
.page-banner * {
    box-sizing: border-box;
}

.page-banner {
    position: relative;

    width: 100%;
    min-height: 500px;

    overflow: hidden;

    /* 图片未上传时作为兜底底色 */
    background-color: #2b191a;

    background-image: var(--page-banner-image, none);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    isolation: isolate;
}

/*
 * Banner 图片
 * 三页均预留该节点，当前未上传图片时不渲染
 */
.page-banner-media {
    position: absolute;
    z-index: 1;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/*
 * 各页 banner 图片
 * 图片上传后，在对应选择器里补 url() 即可，例如：
 *
 * .page-banner--about   { --page-banner-image: url("/uploads/about/company-building.jpg"); }
 * .page-banner--contact { --page-banner-image: url("/uploads/about/contact-banner.jpg"); }
 * .page-banner--join    { --page-banner-image: url("/uploads/about/join-banner.jpg"); }
 * .page-banner--profile { --page-banner-image: url("/uploads/about/profile-banner.jpg"); }
 *
 * 也可在模板里给 {assign name="page_banner_image"} 赋值，渲染 <img class="page-banner-media">
 */

/* 深色遮罩：保证文案在图片上依然可读 */
.page-banner::before {
    content: "";

    position: absolute;
    z-index: 2;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background:
        linear-gradient(
            90deg,
            rgba(15, 23, 42, .68) 0%,
            rgba(15, 23, 42, .46) 42%,
            rgba(15, 23, 42, .20) 100%
        );
}

/* ==========================================================
   1200 可操作区域
========================================================== */

.page-banner-container {
    position: relative;
    z-index: 3;

    width: 1200px;
    max-width: calc(100% - 40px);

    margin: 0 auto;
}

.page-banner-main {
    display: flex;
    align-items: center;

    min-height: 420px;

    padding-top: 68px;
    padding-bottom: 50px;
}

.page-banner-content {
    width: 660px;
    max-width: 70%;
}

.page-banner-label {
    margin-bottom: 15px;

    color: rgba(255, 255, 255, .72);

    font-size: 14px;
    font-weight: 400;

    line-height: 1.6;

    letter-spacing: 2px;
}

.page-banner-title {
    margin: 0;

    color: #ffffff;

    font-size: 48px;
    font-weight: 500;

    line-height: 1.25;

    letter-spacing: -1px;
}

.page-banner-slogan {
    margin-top: 14px;

    color: rgba(255, 255, 255, .88);

    font-size: 21px;
    font-weight: 400;

    line-height: 1.65;
}

.page-banner-desc {
    max-width: 620px;

    margin: 22px 0 0;

    color: rgba(255, 255, 255, .82);

    font-size: 16px;
    font-weight: 400;

    line-height: 1.9;
}

/* ==========================================================
   Banner 内面包屑
========================================================== */

.page-banner-breadcrumb {
    width: 100%;

    margin: 0;
    padding-top: 22px;
}

.page-banner-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    min-height: 24px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.page-banner-breadcrumb-list li {
    display: flex;
    align-items: center;

    min-width: 0;

    color: rgba(255, 255, 255, .55);

    font-size: 13px;
    line-height: 1.6;
}

.page-banner-breadcrumb-list li + li::before {
    content: "";

    flex: 0 0 auto;

    width: 6px;
    height: 6px;

    margin: 0 10px;

    border-top: 1px solid rgba(255, 255, 255, .35);
    border-right: 1px solid rgba(255, 255, 255, .35);

    transform: rotate(45deg);
}

.page-banner-breadcrumb-list a {
    display: inline-flex;
    align-items: center;

    min-width: 0;

    color: rgba(255, 255, 255, .72);

    text-decoration: none;

    transition: color .18s ease;
}

.page-banner-breadcrumb-list a:hover {
    color: #ffffff;
}

.page-banner-breadcrumb-home i {
    margin-right: 5px;

    font-size: 15px;
}

/* ==========================================================
   Banner 内操作按钮
========================================================== */

.page-banner-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}

.page-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 42px;

    padding: 0 22px;

    border-radius: 4px;

    font-size: 14px;

    text-decoration: none;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.page-banner-btn-primary {
    background: #ffffff;
    color: #3f2d2c;
}

.page-banner-btn-primary:hover {
    background: #f7f2f1;

    transform: translateY(-2px);
}

.page-banner-btn-secondary {
    border: 1px solid rgba(255, 255, 255, .22);

    background: rgba(255, 255, 255, .07);

    color: #ffffff;
}

.page-banner-btn-secondary:hover {
    background: rgba(255, 255, 255, .12);
}

.page-banner-btn i {
    margin-left: 6px;

    font-size: 16px;
}

/* ==========================================================
   Banner 底部子栏目导航（三页统一）
========================================================== */

.page-subnav-wrap {
    position: absolute;
    z-index: 4;

    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;

    border-top: 1px solid rgba(255, 255, 255, .22);

    background: rgba(15, 23, 42, .16);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.page-subnav-container {
    width: 1200px;
    max-width: calc(100% - 40px);

    margin: 0 auto;
}

.page-subnav {
    display: flex;
    align-items: stretch;

    width: 100%;

    margin: 0;
    padding: 0;

    overflow-x: auto;

    list-style: none;

    scrollbar-width: none;
}

.page-subnav::-webkit-scrollbar {
    display: none;
}

.page-subnav-item {
    position: relative;

    flex: 0 0 auto;

    margin: 0;
    padding: 0;
}

.page-subnav-link {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 150px;
    height: 80px;

    padding: 0 30px;

    color: rgba(255, 255, 255, .86);

    font-size: 15px;
    font-weight: 400;

    line-height: 1;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color .18s ease,
        background-color .18s ease;
}

.page-subnav-link:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, .07);
}

.page-subnav-link.is-active {
    color: #ffffff;
}

/* 当前子栏目：文字下方短色块（与顶部导航一致） */
.page-subnav-link.is-active .page-subnav-text {
    position: relative;
}

.page-subnav-link.is-active .page-subnav-text::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -16px;

    width: 100%;
    min-width: 18px;
    height: 3px;

    /* 深色 Banner 上主题色几乎不可见，这里用白色 */
    background: #ffffff;

    transform: translateX(-50%);
}

/* ==========================================================
   1200 以下
========================================================== */

@media screen and (max-width: 1240px) {

    .page-banner-container,
    .page-subnav-container {
        width: auto;
        max-width: none;

        margin: 0 20px;
    }

}

/* ==========================================================
   平板
========================================================== */

@media screen and (max-width: 992px) {

    .page-banner {
        min-height: 440px;
    }

    .page-banner-main {
        min-height: 360px;

        padding-top: 20px;
        padding-bottom: 70px;
    }

    .page-banner-content {
        width: 100%;
        max-width: 80%;
    }

    .page-banner-title {
        font-size: 38px;
    }

    .page-subnav-link {
        min-width: auto;

        height: 64px;

        padding: 0 24px;
    }

}

/* ==========================================================
   手机
========================================================== */

@media screen and (max-width: 768px) {

    .page-banner-container,
    .page-subnav-container {
        margin: 0 15px;
    }

    .page-banner {
        min-height: 390px;
    }

    .page-banner-media {
        object-position: center center;
    }

    .page-banner-main {
        min-height: 326px;

        padding: 25px 0 72px;
    }

    .page-banner-content {
        max-width: 100%;
    }

    .page-banner-breadcrumb {
        padding-top: 16px;
    }

    .page-banner-label {
        margin-bottom: 10px;

        font-size: 11px;
    }

    .page-banner-title {
        font-size: 30px;

        line-height: 1.3;
    }

    .page-banner-slogan {
        margin-top: 10px;

        font-size: 17px;
    }

    .page-banner-desc {
        margin-top: 15px;

        font-size: 14px;

        line-height: 1.8;
    }

    .page-banner-actions {
        margin-top: 24px;
    }

    .page-subnav-container {
        margin: 0;
    }

    .page-subnav {
        padding: 0 15px;
    }

    .page-subnav-link {
        height: 64px;

        padding: 0 20px;

        font-size: 14px;
    }

}

/* ==========================================================
   小屏手机
========================================================== */

@media screen and (max-width: 520px) {

    .page-banner-breadcrumb-list li {
        font-size: 12px;
    }

    .page-banner-breadcrumb-list li + li::before {
        margin: 0 7px;
    }

    .page-banner-actions {
        align-items: stretch;
        flex-direction: column;

        width: 100%;
    }

    .page-banner-btn {
        width: 100%;
    }

}
