/* =========================================================
   BYTECLIC BLOG CSS
   File: public/css/blog.css
   Purpose:
   1. Blog listing page: /blog
   2. Blog detail page: /post/xxx
   ========================================================= */


/* =========================================================
   01. Shared Container
========================================================= */

.bc-blog-container,
.bc-blog-show-container {
    width: min(1480px, calc(100% - 72px));
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   02. Blog Listing Hero
   与 Services 页面统一：正红背景 + 斜切色块 + 居中标题
========================================================= */

.bc-blog-hero {
    position: relative;

    padding: 210px 0 130px;

    text-align: center;

    overflow: hidden;

    color: #ffffff;

    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.16), transparent 30%),
        radial-gradient(circle at 72% 30%, rgba(255, 177, 74, 0.12), transparent 32%),
        radial-gradient(circle at 76% 78%, rgba(90, 0, 0, 0.24), transparent 36%),
        linear-gradient(135deg, #f35a4a 0%, #e8342f 44%, #bd1630 100%) !important;
}

/* 首页 / Services 同款斜切红色光带 */
.bc-blog-hero::before {
    content: "";
    position: absolute;

    left: -18%;
    top: 42%;

    z-index: 0;

    width: 145%;
    height: 360px;

    background: linear-gradient(
        90deg,
        rgba(255, 116, 88, 0.58),
        rgba(255, 74, 58, 0.30)
    );

    transform: rotate(-13deg);

    box-shadow: 0 40px 90px rgba(120, 0, 0, 0.16);

    pointer-events: none;
}

/* 右侧深红光影 */
.bc-blog-hero::after {
    content: "";
    position: absolute;

    right: -260px;
    bottom: -260px;

    z-index: 0;

    width: 620px;
    height: 620px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(80, 0, 0, 0.26),
        transparent 68%
    );

    transform: none;

    pointer-events: none;
}

/* 内容压到背景上方 */
.bc-blog-hero .bc-blog-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* 小标题 */
.bc-blog-hero .bc-eyebrow,
.bc-blog-hero .bc-eyebrow.red {
    margin: 0 auto 18px;

    color: rgba(255, 255, 255, 0.92) !important;

    text-align: center;
    letter-spacing: .18em;
}

/* 主标题 */
.bc-blog-hero h1 {
    max-width: 980px;
    margin: 0 auto;

    color: #ffffff !important;

    text-align: center;

    font-size: clamp(58px, 6vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.065em;
    font-weight: 950;

    text-shadow: 0 18px 36px rgba(80, 0, 0, 0.12);
}

/* 如果标题里以后加 span，可以做黑色强调 */
.bc-blog-hero h1 span {
    color: #171717 !important;
}

/* 描述文字 */
.bc-blog-hero > .bc-blog-container > p:last-child {
    max-width: 760px;
    margin: 30px auto 0;

    color: rgba(255, 255, 255, 0.90) !important;

    text-align: center;

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

/* =========================================================
   03. Blog Listing Section
========================================================= */

.bc-blog-list-section {
    position: relative;
    padding: 62px 0 112px;
    background: #ffffff;
}

.bc-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}


/* =========================================================
   04. Blog Listing Card
========================================================= */

.bc-blog-card {
    overflow: hidden;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow:
        0 22px 64px rgba(15, 23, 42, 0.075),
        0 1px 0 rgba(15, 23, 42, 0.04);
    transition:
        transform .26s ease,
        box-shadow .26s ease,
        border-color .26s ease;
}

.bc-blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(17, 24, 39, 0.18);
    box-shadow:
        0 32px 84px rgba(15, 23, 42, 0.13),
        0 14px 34px rgba(232, 52, 47, 0.06);
}

.bc-blog-card:first-child {
    grid-column: span 2;
}

.bc-blog-card-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #f2f0ec;
    text-decoration: none;
}

.bc-blog-card:first-child .bc-blog-card-image {
    aspect-ratio: 16 / 9;
}

.bc-blog-card-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition:
        transform .42s ease,
        filter .42s ease;
}

.bc-blog-card:hover .bc-blog-card-image img {
    transform: scale(1.055);
    filter: saturate(1.04) contrast(1.02);
}

.bc-blog-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 18% 16%, rgba(232, 52, 47, 0.16), transparent 36%),
        linear-gradient(135deg, #f4f2ee 0%, #e8e5df 100%);
}

.bc-blog-card-placeholder span {
    color: #222222;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bc-blog-card-body {
    padding: 25px 25px 30px;
}

.bc-blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    color: #7a7a7a;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.bc-blog-meta span {
    display: inline-flex;
    align-items: center;
}

.bc-blog-meta span:first-child {
    color: #111111;
}

.bc-blog-meta span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    margin-right: 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.28);
}

.bc-blog-card h2 {
    margin: 0;
    color: #111111;
    font-size: clamp(21px, 1.42vw, 28px);
    line-height: 1.04;
    letter-spacing: -0.046em;
    font-weight: 920;
}

.bc-blog-card:first-child h2 {
    max-width: 780px;
    font-size: clamp(34px, 3.1vw, 54px);
    line-height: .96;
    letter-spacing: -0.068em;
}

.bc-blog-card h2 a {
    color: inherit;
    text-decoration: none;
    transition: color .18s ease;
}

.bc-blog-card h2 a:hover {
    color: #e8342f;
}

/* 不显示列表页文章简介 */
.bc-blog-card-body > p,
.bc-blog-card p:not(.bc-eyebrow) {
    display: none !important;
}


/* =========================================================
   05. Blog Empty State
========================================================= */

.bc-blog-empty {
    max-width: 720px;
    padding: 70px;
    border-radius: 32px;
    background: #f7f6f3;
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.bc-blog-empty h2 {
    margin: 10px 0 12px;
    color: #111111;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.055em;
}

.bc-blog-empty p {
    margin: 0;
    color: #666666;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   06. Pagination
========================================================= */

.bc-pagination {
    margin-top: 64px;
    display: flex;
    justify-content: center;
}

.bc-pagination nav {
    width: 100%;
}

.bc-pagination > nav > div:first-child {
    display: none;
}

.bc-pagination > nav > div:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.bc-pagination p {
    display: none !important;
}

.bc-pagination span,
.bc-pagination a {
    text-decoration: none !important;
}

.bc-pagination a,
.bc-pagination span[aria-current="page"] > span,
.bc-pagination span[aria-disabled="true"] > span {
    min-width: 42px;
    height: 42px;
    padding: 0 15px;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: 760 !important;
    line-height: 1 !important;
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: all .2s ease;
}

.bc-pagination a:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 24, 39, 0.24) !important;
    color: #111111 !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.bc-pagination span[aria-current="page"] > span {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.bc-pagination span[aria-disabled="true"] > span {
    opacity: .42;
    cursor: not-allowed;
    box-shadow: none;
}


/* =========================================================
   07. Blog Detail Hero
========================================================= */

.bc-blog-show-hero {
    padding: 154px 0 62px;
    background:
        radial-gradient(circle at 16% 22%, rgba(232, 52, 47, 0.07), transparent 30%),
        linear-gradient(180deg, #fffdfc 0%, #ffffff 100%);
}

.bc-blog-show-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    color: #777777;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bc-blog-show-kicker a {
    color: #e8342f;
    text-decoration: none;
}

.bc-blog-show-kicker a:hover {
    color: #111111;
}

.bc-blog-show-kicker span {
    color: #777777;
}

.bc-blog-show-hero h1 {
    max-width: 1180px;
    margin: 0;
    color: #101010;
    font-size: clamp(44px, 6.5vw, 92px);
    line-height: .94;
    letter-spacing: -0.072em;
    font-weight: 950;
}

.bc-blog-show-category {
    margin: 24px 0 0;
    color: #5f6368;
    font-size: 18px;
    line-height: 1.6;
}


/* =========================================================
   08. Blog Detail Cover
========================================================= */

.bc-blog-show-cover {
    padding: 18px 0 58px;
    background: #ffffff;
}

.bc-blog-show-cover img {
    width: 100%;
    display: block;
    border-radius: 34px;
    object-fit: cover;
    max-height: 680px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
}


/* =========================================================
   09. Blog Detail Content Layout
========================================================= */

.bc-blog-show-content-section {
    padding: 34px 0 94px;
    background: #ffffff;
}

.bc-blog-show-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 88px;
    align-items: start;
}

.bc-blog-show-sidebar {
    position: sticky;
    top: 110px;
}

.bc-blog-show-sidecard {
    padding: 26px;
    border-radius: 26px;
    background: #f7f6f3;
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.bc-blog-show-sidecard p {
    margin: 0 0 10px;
    color: #e8342f;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bc-blog-show-sidecard h3 {
    margin: 0 0 14px;
    color: #111111;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.bc-blog-show-sidecard span {
    color: #777777;
    font-size: 14px;
}

.bc-blog-back-link {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: background .18s ease, color .18s ease;
}

.bc-blog-back-link:hover {
    background: #e8342f;
    color: #ffffff;
}

.bc-blog-show-content {
    width: 100%;
    max-width: none;
    color: #252525;
    font-size: 18px;
    line-height: 1.82;
}

.bc-blog-show-content > * {
    max-width: 900px;
}

.bc-blog-show-content h2 {
    margin: 0 0 24px;
    color: #111111;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
    letter-spacing: -0.056em;
    font-weight: 920;
}

.bc-blog-show-content h3 {
    margin: 46px 0 16px;
    color: #111111;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.bc-blog-show-content p {
    margin: 0 0 22px;
}

.bc-blog-show-content ul {
    margin: 24px 0 32px;
    padding-left: 22px;
}

.bc-blog-show-content li {
    margin-bottom: 12px;
}

.bc-blog-show-content a {
    color: #e8342f;
}

.bc-blog-show-content figure,
.bc-blog-show-content img,
.bc-blog-show-content .bc-imported-case-image {
    max-width: 100%;
}

.bc-blog-show-content figure {
    margin: 0 0 34px;
}

.bc-blog-show-content figure img,
.bc-blog-show-content .bc-imported-case-image img,
.bc-blog-show-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}


/* =========================================================
   10. Blog Detail CTA
========================================================= */

.bc-blog-show-cta {
    padding: 0 0 106px;
    background: #ffffff;
}

.bc-blog-show-cta-inner {
    padding: 56px;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 12%, rgba(232, 52, 47, 0.18), transparent 34%),
        linear-gradient(135deg, #111111 0%, #262626 100%);
}

.bc-blog-show-cta-inner p {
    margin: 0 0 14px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bc-blog-show-cta-inner h2 {
    max-width: 860px;
    margin: 0 0 28px;
    font-size: clamp(30px, 4.2vw, 60px);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 920;
}

.bc-blog-show-cta-inner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    transition: background .18s ease, color .18s ease;
}

.bc-blog-show-cta-inner a:hover {
    background: #e8342f;
    color: #ffffff;
}


/* =========================================================
   11. Responsive
========================================================= */

@media (min-width: 1600px) {
    .bc-blog-container,
    .bc-blog-show-container {
        width: min(1580px, calc(100% - 96px));
    }

    .bc-blog-show-content > * {
        max-width: 960px;
    }
}

@media (max-width: 1280px) {
    .bc-blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bc-blog-card:first-child {
        grid-column: span 2;
    }

    .bc-blog-show-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 56px;
    }
}

@media (max-width: 980px) {
    .bc-blog-container,
    .bc-blog-show-container {
        width: min(100% - 40px, 1480px);
    }

    .bc-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bc-blog-card:first-child {
        grid-column: span 2;
    }

    .bc-blog-show-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .bc-blog-show-sidebar {
        position: static;
    }

    .bc-blog-show-content > * {
        max-width: 100%;
    }
}

@media (max-width: 680px) {
    .bc-blog-container,
    .bc-blog-show-container {
        width: min(100% - 32px, 1480px);
    }

    .bc-blog-hero {
        padding: 136px 0 88px;
    }

    .bc-blog-hero::after {
        bottom: -66px;
        height: 104px;
        transform: rotate(-4deg);
    }

    .bc-blog-hero h1 {
        font-size: 46px;
        letter-spacing: -0.06em;
    }

    .bc-blog-hero p {
        font-size: 15px;
    }

    .bc-blog-list-section {
        padding: 46px 0 82px;
    }

    .bc-blog-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .bc-blog-card:first-child {
        grid-column: span 1;
    }

    .bc-blog-card:first-child h2 {
        font-size: 30px;
    }

    .bc-blog-card-body {
        padding: 22px;
    }

    .bc-blog-card h2 {
        font-size: 24px;
    }

    .bc-blog-show-hero {
        padding: 132px 0 48px;
    }

    .bc-blog-show-hero h1 {
        font-size: 42px;
        letter-spacing: -0.06em;
    }

    .bc-blog-show-cover {
        padding-bottom: 42px;
    }

    .bc-blog-show-cover img {
        border-radius: 24px;
    }

    .bc-blog-show-content-section {
        padding: 18px 0 76px;
    }

    .bc-blog-show-content {
        font-size: 16px;
        line-height: 1.76;
    }

    .bc-blog-show-content h2 {
        font-size: 34px;
    }

    .bc-blog-show-content h3 {
        font-size: 26px;
    }

    .bc-blog-show-cta {
        padding-bottom: 78px;
    }

    .bc-blog-show-cta-inner {
        padding: 34px 26px;
        border-radius: 26px;
    }
}