/* Single-post layout, author information and related posts */

/* ==================================================
   SINGLE BLOG POST
   自定义文章详情页
================================================== */

.custom-single-post {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

.custom-single-container {
    width: calc(100% - 40px);
    max-width: 1360px;
    margin-right: auto;
    margin-left: auto;
}


/* ==================================================
   Banner
================================================== */

.custom-single-hero {
    position: relative;
    display: flex;
    align-items: flex-end;

    width: 100%;
    min-height: 520px;
    padding: 170px 0 80px;

    overflow: hidden;

    background-color: #101720;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.custom-single-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(8, 14, 21, 0.90) 0%,
            rgba(8, 14, 21, 0.62) 48%,
            rgba(8, 14, 21, 0.40) 100%
        );
}

.custom-single-hero__inner {
    position: relative;
    z-index: 2;
}

/* Banner 分类标签 */
.custom-single-hero__category {
    display: inline-flex;
    align-items: center;

    min-height: 29px;
    margin: 0 0 17px;
    padding: 6px 14px;

    color: #005732 !important;
    background: rgba(255, 255, 255, 0.94);

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
}

/* Banner 标题 */
.custom-single-hero__title {
    width: 100%;
    max-width: 740px;

    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -1px;
    text-transform: none !important;
}


/* ==================================================
   主体两栏
================================================== */

.custom-single-content {
    width: 100%;
    padding: 58px 0 100px;
    background: #ffffff;
}

.custom-single-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 340px);

    align-items: start;
    gap: 58px;
}

.custom-single-article,
.custom-single-sidebar {
    min-width: 0;
}


/* ==================================================
   作者和文章信息
================================================== */

.custom-single-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    margin: 0 0 32px;
    padding: 0 0 30px;

    border-bottom: 1px solid #e4e9ec;
}

.custom-single-author {
    display: flex;
    align-items: center;
    gap: 13px;
}

.custom-single-author__avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;

    overflow: hidden;
    background: #edf7f2;
    border-radius: 50%;
}

.custom-single-author__avatar img {
    display: block;

    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;

    object-fit: cover;
}

.custom-single-author__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.custom-single-author__name {
    color: #172033;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.custom-single-author__position {
    color: #7d8791;
    font-size: 12px;
    line-height: 1.35;
}

.custom-single-date {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding-left: 23px;

    color: #7d8791;
    border-left: 1px solid #dde3e6;

    font-size: 12px;
    line-height: 1.35;
}


/* ==================================================
   正文排版
================================================== */

.custom-single-entry {
    color: #525d68;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.78;
}

.custom-single-entry > :first-child {
    margin-top: 0 !important;
}

.custom-single-entry p {
    margin: 0 0 20px !important;
}

.custom-single-entry h2 {
    margin: 38px 0 18px !important;

    color: #172033;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none !important;
}

.custom-single-entry h3 {
    margin: 31px 0 14px !important;

    color: #172033;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none !important;
}

.custom-single-entry h4 {
    margin: 25px 0 12px !important;

    color: #172033;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none !important;
}

.custom-single-entry ul,
.custom-single-entry ol {
    margin: 0 0 22px 23px !important;
}

.custom-single-entry li {
    margin-bottom: 8px;
}

.custom-single-entry img {
    height: auto !important;
    margin-top: 15px;
    margin-bottom: 25px;
    border-radius: 10px;
}

.custom-single-entry blockquote {
    margin: 28px 0 !important;
    padding: 20px 25px;

    color: #33443c;
    background: #f3f8f5;

    border-left: 4px solid #005732;
}


/* ==================================================
   返回 Blog
================================================== */

.custom-single-footer {
    margin-top: 45px;
    padding-top: 28px;

    border-top: 1px solid #e4e9ec;
}

.custom-single-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #176844 !important;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}

.custom-single-back:hover {
    color: #004d2d !important;
}


/* ==================================================
   右侧栏
================================================== */

.custom-single-sidebar {
    position: sticky;
    top: 105px;
}

.custom-single-sidebar__company {
    margin-bottom: 29px;
}

.custom-single-sidebar__cta {
    margin-top: 31px;
}


/* UX Block 外层清理 */
.custom-single-sidebar .section {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.custom-single-sidebar .row {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.custom-single-sidebar .col {
    padding-right: 0 !important;
    padding-left: 0 !important;
}


/* ==================================================
   相关文章
================================================== */

.custom-single-sidebar__title {
    margin: 0 0 17px !important;

    color: #172033;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none !important;
}

.custom-single-related__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.custom-single-related__item {
    margin: 0 !important;
    padding: 0 !important;
}

.custom-single-related__link {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 13px;

    color: inherit !important;
    text-decoration: none !important;
}

.custom-single-related__image {
    width: 82px;
    height: 58px;

    overflow: hidden;
    background: #edf0f2;
    border-radius: 7px;
}

.custom-single-related__image img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.custom-single-related__link:hover
.custom-single-related__image img {
    transform: scale(1.06);
}

.custom-single-related__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #edf0f2;
}

.custom-single-related__content {
    min-width: 0;
}

.custom-single-related__category {
    display: block;

    margin-bottom: 4px;

    color: #398064;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.custom-single-related__title {
    display: -webkit-box;
    overflow: hidden;

    margin: 0 !important;

    color: #26313b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none !important;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.custom-single-related__link:hover
.custom-single-related__title {
    color: #005732;
}