/* ============================================================
   source-jd.css
   视觉语言：京东云开发者社区
   白底 · 京东红强调 · 正常字重 · 紧凑实用
   ============================================================ */

/* ============================================================
   0. Tokens
   ============================================================ */

:root {
    --jd-red: #E1251B;
    --jd-red-bg: rgb(225 37 27 / 0.08);
    --jd-text: #1a1a1a;
    --jd-text-60: #666666;
    --jd-text-40: #999999;
    --jd-border: #e8e8e8;
    --jd-bg: #ffffff;
    --jd-bg-subtle: #f5f5f5;
    --jd-sans: "PingFang SC", -apple-system, "Microsoft YaHei", sans-serif;
    --jd-transition: 0.15s ease;
}

* {
    font-family: "PingFang SC", -apple-system, "Microsoft YaHei", sans-serif !important;
}

/* Theme-level hard disable for Ghost announcement bar */
#announcement-bar-root,
.gh-announcement-bar {
    display: none !important;
}

/* ============================================================
   1. Navigation (matches portal exactly)
   ============================================================ */

.gh-viewport {
    padding-top: 70px;
}

.jd-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 70px;
    background: #000000E5;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: none;}

.jd-nav * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.jd-nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding-inline: 100px;
}

.jd-brand-area {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    flex-shrink: 0;
}

.jd-brand-link {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
    text-decoration: none;
}

.jd-brand-logo {
    height: 30px;
    width: auto;
    display: block;
}
/* NAV_CSS_PART2 */

.jd-brand-text {
    display: block;
    font-family: "JingDongLangZhengTi", "PingFang SC", -apple-system, "Microsoft YaHei", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    line-height: 16px;
    white-space: nowrap;
    padding-bottom: 1px;
}

.jd-nav-right {
    display: flex;
    min-width: 0;
    flex-shrink: 1;
    align-self: stretch;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    gap: 20px;
}

.jd-nav-menu {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 32px;
    min-width: max-content;
}

a.jd-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

span.jd-nav-disabled {
    display: flex;
    align-items: center;
    align-self: stretch;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.92);
    white-space: nowrap;
    opacity: 0.45;
    cursor: not-allowed;
}

.jd-nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: #E65043;
    transition: width 0.3s ease;
}

a.jd-nav-item:hover .jd-nav-underline,
a.jd-nav-item.jd-active .jd-nav-underline {
    width: 100%;
}

a.jd-nav-item:hover {
    color: #ffffff;
}
/* NAV_CSS_PART3 */

.jd-nav-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.jd-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
}

.jd-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 20px;
    border-radius: 9999px;
    background: #ffffff;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
    border: none;
    cursor: pointer;
}

.jd-cta-btn:hover {
    background: #f0f0f0;
    color: #000000;
}

.jd-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

#jd-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1a24;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    min-width: 120px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 100;
}

#jd-user-info { position: relative; }

.jd-dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: background 0.15s ease;
}

.jd-dropdown-link:hover { background: rgba(255,255,255,0.08); }

@media (min-width: 1689px) { .jd-nav-menu { gap: 50px; } }

@media (max-width: 1120px) {
    .jd-nav-inner {
        padding-inline: 24px;
    }
    .jd-brand-text {
        display: none;
    }
    .jd-nav-right {
        gap: 12px;
    }
    .jd-nav-menu {
        gap: 18px;
    }
    a.jd-nav-item,
    span.jd-nav-disabled {
        font-size: 14px;
    }
    .jd-cta-btn {
        padding: 0 14px;
        font-size: 13px;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 836px) {
    .jd-nav { height: 64px; }
    .gh-viewport { padding-top: 64px; }
    .jd-nav-inner {
        padding-inline: 20px;
        justify-content: space-between;
    }
    .jd-brand-area {
        align-items: flex-end;
        gap: 10px;
        min-width: 0;
        flex: 1 1 auto;
    }
    .jd-brand-logo {
        height: 26px;
    }
    .jd-brand-text {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
        line-height: 1;
        padding-bottom: 1px;
    }
    .jd-nav-right {
        display: flex;
        flex: 0 0 auto;
        margin-left: 12px;
        gap: 0;
        align-items: center;
    }
    .jd-nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px 16px 18px;
        background: rgba(11, 11, 14, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 60;
    }
    .jd-nav.is-open .jd-nav-menu {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .jd-nav-item,
    span.jd-nav-disabled {
        height: auto;
        padding: 12px 2px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 14px;
    }
    .jd-nav-underline {
        display: none;
    }
    .jd-cta-btn {
        height: 30px;
        padding: 0 14px;
        font-size: 13px;
        letter-spacing: 0.08em;
    }
    .jd-menu-toggle {
        display: inline-flex;
    }
    .jd-nav-actions > #jd-login-btn,
    .jd-nav-actions > #jd-user-info {
        display: none !important;
    }
    .jd-user-trigger {
        font-size: 13px;
        gap: 4px;
    }
    #jd-username-text {
        display: none;
    }
}

@media (max-width: 552px) {
    .jd-nav { height: 56px; }
    .gh-viewport { padding-top: 56px; }
    .jd-nav-inner { padding-inline: 12px; }
    .jd-brand-logo {
        height: 22px;
    }
    .jd-brand-text {
        font-size: 12px;
    }
    .jd-cta-btn {
        height: 28px;
        padding: 0 12px;
        font-size: 12px;
    }
    .jd-nav-menu {
        top: 56px;
        padding: 10px 12px 16px;
    }
    .jd-menu-toggle {
        width: 30px;
        height: 30px;
    }
}

/* ============================================================
   1b. Footer (matches portal exactly)
   ============================================================ */

.jd-footer {
    position: relative;
    width: 100%;
    padding: 48px 0 20px;
    background: #000000;
    color: #ffffff;
}

.jd-footer * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", -apple-system, "Microsoft YaHei", sans-serif;
}

.jd-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: clamp(24px, 4.6vw, 100px);
}

.jd-footer-logo-col { width: 160px; flex-shrink: 0; }
.jd-footer-logo { height: 28px; width: auto; object-fit: contain; }

.jd-footer-col {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jd-footer-contact { width: 260px; }

.jd-footer-col-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
}

.jd-footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.jd-footer-link {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.jd-footer-link:hover { opacity: 0.8; }

.jd-footer-link-disabled {
    color: rgba(255,255,255,0.55);
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.jd-footer-link-disabled:hover { opacity: 0.6; }

.jd-footer-qr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 2px;
}

.jd-footer-qr-img {
    height: 80px;
    width: 80px;
    border-radius: 4px;
    background: #fff;
    object-fit: cover;
}

.jd-footer-qr-caption {
    max-width: 200px;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,0.55);
}

.jd-footer-copyright {
    margin-top: 32px;
    padding-inline: 16px;
    padding-top: 8px;
    text-align: center;
}

.jd-footer-copyright p {
    max-width: 1100px;
    margin-inline: auto;
    word-break: break-word;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
}

@media (max-width: 1120px) {
    .jd-footer { padding: 32px 0 16px; }
    .jd-footer-inner {
        flex-direction: column;
        gap: 28px;
    }
    .jd-footer-logo-col { display: none; }
    .jd-footer-col {
        width: auto;
    }
    /* Switch to 2-col grid for link columns */
    .jd-footer-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
        max-width: 520px;
        margin-inline: auto;
    }
    .jd-footer-contact {
        grid-column: 1 / -1;
        width: 100%;
    }
    .jd-footer-qr-img { height: 64px; width: 64px; }
    .jd-footer-copyright { margin-top: 24px; }
}

@media (max-width: 552px) {
    .jd-footer { padding-top: 32px; }
}

@media (max-width: 767px) {
    .jd-footer .jd-footer-inner {
        width: auto;
        max-width: none;
        margin-inline: 0;
        padding-inline: 20px !important;
    }

    .jd-footer .jd-footer-copyright {
        padding-inline: 20px;
    }

    .jd-footer .jd-footer-copyright p {
        width: auto;
        max-width: none;
        margin-inline: 0;
    }
}



/* ============================================================
   1b. Article / page feature image（封面约 0.8 倍宽，居中）
   ============================================================ */

.post-template .gh-article-image,
.page-template .gh-article-image {
    max-width: 80%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
}

/* ============================================================
   2. Homepage editorial layout
   ============================================================ */

.jd-home-news {
    padding: 56px 0 88px;
    background: #fff;
}

.jd-home-news-inner,
.jd-archive-news-inner {
    width: min(1240px, calc(100% - 72px));
    max-width: 100%;
    margin-inline: auto;
}

.jd-home-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.78fr);
    gap: clamp(40px, 4vw, 72px);
    align-items: start;
}

.jd-home-news-heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.jd-home-news-kicker {
    font-size: 1.02rem;
    font-weight: 700;
    color: #7a7a7a;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.jd-home-news-title {
    margin: 0;
    font-size: clamp(2.3rem, 2vw, 3.1rem);
    font-weight: 700;
    color: #121212;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.jd-feature-stack-item {
    border-top: 1px solid #d7d7d7;
}

.jd-feature-stack-item + .jd-feature-stack-item {
    margin-top: 28px;
}

.jd-feature-stack-link {
    display: grid;
    gap: 20px;
    padding: 24px 0 0;
    color: inherit;
    text-decoration: none;
}

.jd-feature-stack-item.is-hero .jd-feature-stack-link {
    gap: 24px;
}

.jd-feature-stack-media {
    margin: 0;
    width: 680px;
    max-width: 100%;
    justify-self: start;
    overflow: hidden;
    background: #ececec;
}

.jd-feature-stack-item.is-hero .jd-feature-stack-media,
.jd-feature-stack-item.is-card .jd-feature-stack-media {
    aspect-ratio: auto;
}

.jd-feature-stack-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.jd-feature-stack-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.jd-feature-stack-item.is-hero .jd-feature-stack-body {
    max-width: 760px;
}

.jd-feature-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 100%;
}

.jd-feature-stack-tag span {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #585858;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f3f3f3;
    line-height: 1.35;
}

.jd-feature-stack-meta,
.jd-more-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: #767676;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jd-more-news-meta {
    margin-bottom: 10px;
}

.jd-feature-stack-title {
    margin: 0;
    color: #111;
    line-height: 1.14;
    transition: color 0.2s ease;
}

.jd-feature-stack-item.is-hero .jd-feature-stack-title {
    font-size: clamp(1.6rem, 1.1vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.jd-feature-stack-item.is-card .jd-feature-stack-title {
    font-size: clamp(1.6rem, 1.1vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.jd-feature-stack-item.is-text .jd-feature-stack-title {
    font-size: clamp(1.6rem, 1.1vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.jd-feature-stack-link:hover .jd-feature-stack-title,
.jd-more-news-link:hover .jd-more-news-title-item,
.jd-archive-news-link:hover .jd-archive-news-item-title {
    color: var(--jd-red);
}

.jd-home-news-more {
    position: sticky;
    top: 88px;
    padding-left: clamp(24px, 2.4vw, 40px);
    border-left: 1px solid #e1e1e1;
}

.jd-more-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jd-more-news-item {
    border-top: 1px solid #e4e4e4;
}

.jd-more-news-link {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding-top: 18px;
    color: inherit;
    text-decoration: none;
}

/* 无封面：整宽排版，标题自然换行，不占缩略图列 */
.jd-more-news-link.jd-more-news-link--no-image {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.jd-more-news-link--no-image .jd-more-news-title-item {
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.jd-more-news-media {
    margin: 0;
    overflow: hidden;
    aspect-ratio: auto;
    background: #efefef;
}

.jd-more-news-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.jd-more-news-title-item {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 680;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #161616;
    transition: color 0.2s ease;
}

.jd-more-news-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    padding: 0 16px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #c7c7c7;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #151515 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.jd-more-news-button:hover {
    color: #fff !important;
    background: #151515;
    border-color: #151515;
}

.jd-home-news-empty {
    padding: 24px 0 0;
    border-top: 1px solid #d7d7d7;
    font-size: 1.45rem;
    color: #666;
}

.jd-archive-news {
    padding: 32px 0 96px;
    background: #fff;
    --archive-pad-t: 26px;
    --archive-pad-b: 24px;
    --archive-pad-x: 24px;
    --archive-meta-line: 1.2rem;
    --archive-stack-gap: 12px;
    --archive-title-2lh: calc(1.8rem * 1.3 * 2);
    --archive-body-3lh: calc(1.3rem * 1.65 * 3);
}

.jd-archive-news-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d9d9d9;
}

.jd-archive-news-title {
    margin: 0;
    font-size: clamp(3rem, 2.4vw, 4rem);
    font-weight: 720;
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: #121212;
}

.jd-archive-news-description {
    max-width: 62ch;
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.7;
    color: #6d6d6d;
}

.jd-archive-news-list {
    column-count: 2;
    column-gap: 32px;
}

.jd-archive-news-item {
    min-width: 0;
    margin: 0 0 32px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.jd-archive-news-link {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: calc(
        var(--archive-pad-t) + var(--archive-pad-b) + var(--archive-meta-line) +
            var(--archive-stack-gap) + var(--archive-title-2lh) + var(--archive-stack-gap) +
            var(--archive-body-3lh)
    );
    gap: 0;
    padding: var(--archive-pad-t) var(--archive-pad-x, 20px) var(--archive-pad-b);
    border: 1px solid #e2e2e2;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.jd-archive-news-link:hover {
    border-color: #cbcbcb;
    box-shadow: 0 16px 32px -28px rgba(0, 0, 0, 0.38);
    transform: translateY(-1px);
}

.jd-archive-news-body {
    min-width: 0;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--archive-stack-gap);
}

.jd-archive-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.jd-archive-news-date,
.jd-archive-news-author,
.jd-archive-news-meta-separator {
    font-size: 1.02rem;
    font-weight: 600;
    color: #777;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jd-archive-news-item-title {
    margin: 0;
    max-width: none;
    font-size: clamp(1.6rem, 1.15vw, 1.95rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.025em;
    color: #111;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.jd-archive-news-excerpt {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
    font-size: 1.3rem;
    line-height: 1.65;
    color: #666;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    word-break: break-word;
    max-height: var(--archive-body-3lh, calc(1.3rem * 1.65 * 3));
}

.jd-archive-news-pagination {
    display: flex;
    justify-content: flex-start;
    margin-top: 28px;
    padding-top: 20px;
}

.jd-archive-news-pagination .pagination {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 1.2rem;
}

.jd-archive-news-pagination .page-number {
    color: #666;
    min-width: auto;
    order: 2;
}

.jd-archive-news-pagination .newer-posts,
.jd-archive-news-pagination .older-posts {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #cfcfcf;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #171717 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.jd-archive-news-pagination .newer-posts {
    order: 1;
}

.jd-archive-news-pagination .older-posts {
    order: 3;
}

.jd-archive-news-pagination .newer-posts:hover,
.jd-archive-news-pagination .older-posts:hover {
    background: #111;
    border-color: #111;
    color: #fff !important;
}

@media (max-width: 991px) {
    .jd-home-news-grid {
        grid-template-columns: 1fr;
    }

    .jd-home-news-more {
        position: static;
        top: auto;
        padding-left: 0;
        border-left: 0;
    }

    .jd-archive-news-list {
        column-count: 1;
    }

    .jd-archive-news {
        --archive-pad-b: 22px;
    }
}

@media (max-width: 767px) {
    .jd-home-news {
        padding: 28px 0 48px;
    }

    .jd-home-news-heading {
        gap: 8px;
        margin-bottom: 24px;
    }

    .jd-home-news-title {
        font-size: 2.1rem;
        line-height: 1.1;
    }

    .jd-feature-stack-item + .jd-feature-stack-item {
        margin-top: 20px;
    }

    .jd-feature-stack-link {
        gap: 18px;
        padding-top: 18px;
    }

    .jd-feature-stack-item.is-hero .jd-feature-stack-link {
        gap: 20px;
    }

    .jd-feature-stack-body {
        gap: 8px;
    }

    .jd-feature-stack-item.is-hero .jd-feature-stack-title,
    .jd-feature-stack-item.is-card .jd-feature-stack-title,
    .jd-feature-stack-item.is-text .jd-feature-stack-title {
        font-size: 1.72rem;
        line-height: 1.22;
    }

    .jd-more-news-link {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 16px;
    }

    .jd-feature-stack-item.is-card .jd-feature-stack-media,
    .jd-more-news-media {
        aspect-ratio: auto;
    }

    .jd-feature-stack-meta,
    .jd-more-news-meta {
        font-size: 1.05rem;
    }

    .jd-more-news-title-item {
        font-size: 1.3rem;
        line-height: 1.42;
    }

    .jd-more-news-button {
        width: 100%;
        margin-top: 20px;
    }

    .jd-archive-news {
        padding: 24px 0 48px;
        --archive-title-2lh: calc(1.54rem * 1.32 * 2);
        --archive-body-3lh: calc(1.24rem * 1.6 * 3);
        --archive-pad-t: 20px;
        --archive-pad-b: 18px;
        --archive-pad-x: 18px;
    }

    .jd-archive-news-list {
        column-count: 1;
    }

    .jd-archive-news-title {
        font-size: 2.6rem;
    }

    .jd-archive-news-item-title {
        font-size: 1.54rem;
    }

    .jd-archive-news-excerpt {
        font-size: 1.24rem;
        max-height: var(--archive-body-3lh);
    }
}

.jd-auth-login {
    height: 32px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 700;
    color: #111 !important;
    letter-spacing: 0.06em;
    background: #fff;
}

.jd-auth-login:hover {
    opacity: 1;
    background: #f2f4f8;
}

.jd-auth-trigger {
    padding: 0.75rem 1.4rem;
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

.jd-auth-trigger:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

.jd-auth-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 160px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(18, 18, 26, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
}

.jd-auth-dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1.2rem 1.6rem;
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.88) !important;
    transition: background 0.18s ease;
}

.jd-auth-dropdown-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

#gh-navigation .gh-search {
    display: none !important;
}

#gh-navigation .gh-burger {
    display: none;
    width: 44px;
    height: 44px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

#gh-navigation .gh-burger:hover {
    background: rgba(255, 255, 255, 0.1);
}

#gh-navigation .gh-burger svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 991px) {
    .jd-brand-tagline {
        font-size: 1rem;
    }

    .jd-brand-subline {
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .gh-outer {
        padding-inline: 0;
    }

    .gh-inner,
    .gh-container,
    .gh-main,
    .jd-home-news-inner,
    .jd-archive-news-inner {
        width: calc(100% - 40px);
        max-width: 560px;
        margin-inline: auto;
    }

    .jd-home-news {
        width: 100%;
    }

    .gh-viewport {
        padding-top: 64px;
    }

    #gh-navigation {
        height: 64px;
    }

    #gh-navigation .gh-navigation-inner {
        display: block;
        height: 100%;
        padding-inline: 16px;
    }

    #gh-navigation .gh-navigation-brand {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        height: 100%;
        gap: 10px;
    }

    #gh-navigation .gh-navigation-logo {
        gap: 10px;
        min-width: 0;
    }

    #gh-navigation .gh-navigation-logo img {
        height: 32px;
        max-height: 32px !important;
    }

    .jd-brand-copy {
        display: none;
    }

    #gh-navigation .gh-burger {
        display: inline-flex;
        justify-self: end;
    }

    #gh-navigation .gh-navigation-actions {
        display: none;
    }

    .jd-auth-user {
        display: none !important;
    }

    .jd-portal-link {
        display: none;
    }

    .jd-auth-login {
        height: 30px;
        padding: 0 12px;
        font-size: 1.1rem;
        letter-spacing: 0.08em;
    }

    #gh-navigation .gh-navigation-menu {
        position: fixed;
        top: 64px;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        visibility: hidden;
        min-height: calc(100vh - 64px);
        padding: 24px 20px 32px;
        opacity: 0;
        background: rgba(15, 15, 22, 0.985);
        transition: opacity 0.24s ease, visibility 0.24s ease;
        pointer-events: none;
        overflow-y: auto;
        z-index: 40;
    }

    #gh-navigation .nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        width: 100%;
        max-width: 560px;
        margin-inline: auto;
        height: auto;
    }

    #gh-navigation .gh-navigation-menu > .nav + .nav {
        margin-top: 8px;
    }

    #gh-navigation .nav li {
        width: 100%;
    }

    #gh-navigation .nav a {
        width: 100%;
        height: auto;
        padding: 1.2rem 0;
        font-size: 1.6rem;
        letter-spacing: 0.08em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    #gh-navigation .gh-navigation-menu .jd-auth-login {
        display: inline-flex !important;
        width: 100%;
        max-width: 560px;
        min-height: 44px;
        margin: 20px auto 0;
        justify-content: center;
        border-radius: 999px;
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: 0.06em;
    }

    #gh-navigation .nav li::after {
        display: none;
    }

    .is-open#gh-navigation {
        height: 64px;
        overflow: visible;
    }

    .is-open#gh-navigation .gh-navigation-menu {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .jd-home-news-grid,
    .jd-archive-news-header,
    .jd-archive-news-pagination {
        width: 100%;
    }

    .jd-home-news-more,
    .jd-home-news-featured,
    .jd-feature-stack-link,
    .jd-more-news-link,
    .jd-archive-news-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .jd-home-news {
        padding: 16px 0 36px;
    }

    .jd-home-news-title {
        font-size: 1.8rem;
    }

    .jd-feature-stack-item.is-hero .jd-feature-stack-title,
    .jd-feature-stack-item.is-card .jd-feature-stack-title,
    .jd-feature-stack-item.is-text .jd-feature-stack-title {
        font-size: 1.58rem;
    }

    .jd-feature-stack-tag span {
        font-size: 1rem;
        padding: 2px 8px;
    }

    #gh-navigation .gh-navigation-inner {
        padding-inline: 12px;
    }

    #gh-navigation .gh-burger {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 552px) {
    .gh-inner,
    .gh-container,
    .gh-main,
    .jd-home-news-inner,
    .jd-archive-news-inner,
    .post-template .gh-container-inner {
        width: calc(100% - 24px);
    }

    .jd-footer .jd-footer-inner {
        padding-inline: 12px !important;
    }

    .jd-footer .jd-footer-copyright {
        padding-inline: 12px;
    }

    .jd-footer .jd-footer-copyright p {
        width: auto;
        max-width: none;
    }
}

/* ============================================================
   1b. Header title — 设计感
   ============================================================ */

.gh-header.is-classic .gh-header-inner {
    align-items: flex-start !important;
    text-align: left !important;
    padding-block: 80px;
    padding-left: 4vw !important;
}

.jd-landing-text {
    max-width: 38.2%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jd-landing-label {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--jd-red);
    opacity: 0.9;
}

.jd-landing-desc {
    font-size: 1.5rem;
    color: #444;
    margin-top: 4px;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.gh-header-title {
    font-size: clamp(3.2rem, 5vw, 6rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    color: #1a1a1a !important;
    line-height: 1.1 !important;
}

/* ============================================================
   2. Page shell
   ============================================================ */

.gh-section-page {
    padding-top: 0;
    padding-bottom: 80px;
}

.post-template .gh-main {
    padding-bottom: 56px;
}

.post-template .gh-related-read-more {
    margin-bottom: 56px;
}

/* ============================================================
   2. Hero — 栏目头部
   ============================================================ */

.jd-hero {
    padding-top: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--jd-border);
}

.jd-hero-label {
    display: inline-block;
    font-family: var(--jd-sans);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--jd-text-40);
    margin-bottom: 8px;
}

.jd-hero-title {
    font-family: var(--jd-sans);
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--jd-text);
    margin-bottom: 10px;
}

.jd-hero-desc {
    font-family: var(--jd-sans);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--jd-text-60);
    max-width: 60ch;
}

/* ============================================================
   3. Section label — 带红线的区块标题
   ============================================================ */

.jd-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-family: var(--jd-sans);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--jd-text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--jd-red);
}

/* ============================================================
   4. Shared atoms
   ============================================================ */

.jd-tag {
    display: inline-block;
    font-family: var(--jd-sans);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--jd-red);
    background: var(--jd-red-bg);
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.gh-article-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.gh-article-breadcrumb-link,
.gh-article-breadcrumb-separator {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--color-secondary-text);
}

.gh-article-breadcrumb .gh-article-tag {
    margin-bottom: 0;
}

.jd-date {
    font-family: var(--jd-sans);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--jd-text-40);
}

/* ============================================================
   5. Featured — 精选区块
   ============================================================ */

.jd-featured {
    padding-top: 40px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--jd-border);
}

.jd-featured-grid {
    display: grid;
    grid-template-columns: 5fr 3fr;
    grid-template-rows: repeat(3, auto);
    column-gap: 56px;
    align-items: start;
}

/* Lead */
.jd-feat-lead {
    grid-column: 1 / 2;
    grid-row: 1 / 4;
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
    padding-right: 48px;
    border-right: 1px solid var(--jd-border);
    text-decoration: none;
    color: inherit;
}

.jd-feat-lead-img {
    margin: 0 0 20px;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 2px;
    background: var(--color-lighter-gray, #ececec);
}

.jd-feat-lead-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.jd-feat-lead:hover .jd-feat-lead-img img {
    transform: scale(1.03);
}

.jd-feat-lead-title {
    font-family: var(--jd-sans);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--jd-text);
    margin-bottom: 10px;
    transition: color var(--jd-transition);
}

.jd-feat-lead:hover .jd-feat-lead-title {
    color: var(--jd-red);
}

.jd-feat-lead-excerpt {
    font-family: var(--jd-sans);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--jd-text-60);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Side items */
.jd-feat-item {
    grid-column: 2 / 3;
    display: flex;
    gap: 14px;
    padding: 0 0 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--jd-border);
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.jd-feat-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 40px;
}

.jd-feat-item-img {
    flex-shrink: 0;
    width: 88px;
    height: 66px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--color-lighter-gray, #ececec);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jd-feat-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.jd-feat-item:hover .jd-feat-item-img img {
    transform: scale(1.05);
}

.jd-feat-item-body {
    flex: 1;
    min-width: 0;
}

.jd-feat-item-title {
    font-family: var(--jd-sans);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--jd-text);
    transition: color var(--jd-transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jd-feat-item:hover .jd-feat-item-title {
    color: var(--jd-red);
}

/* ============================================================
   6. Index — 目录列表
   ============================================================ */

.jd-index {
    padding-top: 40px;
}

.jd-index-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jd-index-item {
    border-bottom: 1px solid var(--jd-border);
}

.jd-index-item:first-child {
    border-top: 1px solid var(--jd-border);
}

.jd-index-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    text-decoration: none;
    color: inherit;
}

.jd-index-link:hover .jd-index-title {
    color: var(--jd-red);
}

.jd-index-num {
    font-family: var(--jd-sans);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--jd-text-40);
    width: 32px;
    text-align: right;
    flex-shrink: 0;
}

.jd-index-body {
    flex: 1;
    min-width: 0;
}

.jd-index-body .jd-tag {
    margin-bottom: 4px;
}

.jd-index-title {
    font-family: var(--jd-sans);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--jd-text);
    transition: color var(--jd-transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jd-index-excerpt {
    font-family: var(--jd-sans);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--jd-text-40);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jd-index-img {
    flex-shrink: 0;
    width: 72px;
    height: 54px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--color-lighter-gray, #ececec);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jd-index-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.jd-index-link:hover .jd-index-img img {
    transform: scale(1.06);
}

.jd-index-date {
    font-family: var(--jd-sans);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--jd-text-40);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   7. Homepage featured feed
   ============================================================ */

.gh-featured {
    padding-top: 0;
    padding-bottom: 0;
}

.gh-featured-inner {
    padding-top: 56px;
    padding-bottom: 56px;
}

.gh-featured-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--jd-sans);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--jd-text);
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d9d9d9;
}

.gh-featured-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.78fr);
    grid-template-rows: repeat(4, auto);
    column-gap: 56px;
    align-items: start;
}

.gh-featured-main {
    grid-column: 1 / 2;
    grid-row: 1 / 5;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid var(--jd-border);
    padding-right: 40px;
}

.gh-featured-main-image {
    margin: 0 0 20px;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 2px;
    background: var(--color-lighter-gray, #ececec);
}

.gh-featured-main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.gh-featured-main:hover .gh-featured-main-image img {
    transform: scale(1.03);
}

.gh-featured-main-tag {
    display: inline-block;
    font-family: var(--jd-sans);
    font-size: 1rem;
    font-weight: 600;
    color: #585858;
    background: #f3f3f3;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gh-featured-main-title {
    font-family: var(--jd-sans);
    max-width: 20ch;
    font-size: clamp(2.4rem, 2vw, 3rem);
    font-weight: 720;
    line-height: 1.12;
    color: var(--jd-text);
    margin-bottom: 12px;
    transition: color var(--jd-transition);
    letter-spacing: -0.04em;
}

.gh-featured-main:hover .gh-featured-main-title {
    color: var(--jd-red);
}

.gh-featured-main-excerpt {
    font-family: var(--jd-sans);
    max-width: 58ch;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--jd-text-60);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-featured-main-meta {
    margin-top: auto;
    font-family: var(--jd-sans);
    font-size: 1.02rem;
    font-weight: 600;
    color: #767676;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gh-featured-side-card {
    grid-column: 2 / 3;
    display: flex;
    gap: 16px;
    padding: 0 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--jd-border);
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.gh-featured-side-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.gh-featured-side-image {
    flex-shrink: 0;
    width: 96px;
    height: 72px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--color-lighter-gray, #ececec);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gh-featured-side-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gh-featured-side-card:hover .gh-featured-side-image img {
    transform: scale(1.05);
}

.gh-featured-side-body {
    flex: 1;
    min-width: 0;
}

.gh-featured-side-tag {
    display: inline-block;
    font-family: var(--jd-sans);
    font-size: 1rem;
    font-weight: 600;
    color: #585858;
    background: #f3f3f3;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gh-featured-side-title {
    font-family: var(--jd-sans);
    font-size: 1.45rem;
    font-weight: 680;
    line-height: 1.35;
    color: var(--jd-text);
    transition: color var(--jd-transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-featured-side-card:hover .gh-featured-side-title {
    color: var(--jd-red);
}

.gh-featured-side-date {
    display: block;
    font-family: var(--jd-sans);
    font-size: 1.02rem;
    font-weight: 600;
    color: #767676;
    margin-top: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ============================================================
   8. Empty state
   ============================================================ */

.jd-empty,
.gh-featured-empty,
.gh-home-section-empty {
    padding: 32px 0;
    font-family: var(--jd-sans);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--jd-text-40);
    border-top: 1px solid var(--jd-border);
}

/* Old section 9 footer removed — new footer CSS is in section 1b above */

/* ============================================================
   10. Responsive
   ============================================================ */

@media (max-width: 991px) {
    .jd-featured-grid,
    .gh-featured-hero {
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
    }

    .jd-feat-lead,
    .gh-featured-main {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        border-right: none;
        padding-right: 0;
        padding-bottom: 32px;
        border-bottom: 1px solid var(--jd-border);
        margin-bottom: 32px;
    }

    .jd-index-date { display: none; }

    .jd-footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .jd-footer-logo-column {
        width: auto;
    }

    .jd-footer-columns {
        flex-wrap: wrap;
        gap: 40px;
        justify-content: flex-start;
    }

    .jd-footer-contact {
        width: 100%;
        max-width: 260px;
    }

    .jd-footer-contact-shell {
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .jd-hero { padding-top: 28px; padding-bottom: 24px; }
    .jd-hero-title { font-size: 2.2rem; }

    .jd-index-img,
    .jd-index-date { display: none; }
    .jd-index-title { font-size: 1.4rem; }

    .gh-footer {
        margin-top: 88px;
        padding: 40px 0 0;
    }

    .gh-footer .gh-footer-inner {
        width: calc(100% - 40px);
        padding-inline: 0;
    }

    .jd-footer-logo-column {
        display: none;
    }

    .jd-footer-columns {
        display: grid;
        width: 100%;
        max-width: 520px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 24px;
        justify-content: center;
    }

    .jd-footer-column {
        width: auto;
        gap: 12px;
    }

    .jd-footer-column h5,
    .jd-footer-contact h5 {
        font-size: 1.4rem;
    }

    .jd-footer-contact-wechat {
        display: none;
    }

    .jd-footer-contact {
        width: 100%;
        max-width: none;
        gap: 16px;
    }

    .jd-footer-contact-shell {
        gap: 12px;
    }

    .jd-footer-qr img {
        width: 64px;
        height: 64px;
    }

    .jd-footer-qr-caption {
        max-width: 220px;
    }

    .jd-footer-bottom {
        padding: 16px 0;
    }
}

@media (max-width: 640px) {
    .gh-section-page { padding-bottom: 48px; }

    .jd-featured-grid,
    .gh-featured-hero {
        grid-template-columns: 1fr;
    }

    .jd-feat-lead,
    .gh-featured-main {
        grid-column: 1 / 2;
    }

    .jd-index-link {
        padding: 14px 0;
        gap: 12px;
    }
}

/* ============================================================
   Multi-ratio: Ghost Source cards & header (override screen.css)
   Full image visible; letterboxing uses --color-lighter-gray
   ============================================================ */

.gh-card-link {
    gap: 26px;
}

.gh-container.is-list .gh-card-link {
    gap: 30px;
}

.gh-container.is-grid .gh-feed {
    row-gap: calc(var(--grid-gap) * 1.85);
}

.gh-card-image {
    aspect-ratio: auto;
    width: 100%;
    background-color: var(--color-lighter-gray);
}

.gh-card-image img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.gh-header.is-magazine .gh-header-inner > .gh-card .gh-card-image {
    aspect-ratio: auto;
}

.gh-header.is-highlight .gh-header-left .gh-card .gh-card-image {
    aspect-ratio: auto;
}

.gh-featured-feed .gh-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-lighter-gray);
}

.gh-featured-feed .gh-card-image img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gh-container.is-list .gh-card-image {
    aspect-ratio: auto;
    width: 220px;
    max-height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-lighter-gray);
}

.gh-container.is-list .gh-card-image img {
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
}

@container list-feed (width < 600px) {
    .gh-container.is-list .gh-card-image {
        width: 160px;
        max-height: 240px;
    }

    .gh-container.is-list .gh-card-image img {
        max-height: 240px;
    }
}

@media (max-width: 767px) {
    .post-template .gh-container {
        margin-top: 72px;
    }

    .post-template .gh-container-inner {
        width: calc(100% - 40px);
        max-width: 560px;
        margin: 0 auto;
    }

    .post-template .gh-container .gh-container-title {
        margin-bottom: 18px;
    }

    .post-template .gh-container.is-grid .gh-feed {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .post-template .gh-container.is-grid .gh-card::before,
    .post-template .gh-container.is-grid .gh-card::after {
        display: none;
    }

    .post-template .gh-container.is-grid .gh-card-link {
        gap: 16px;
    }

    .post-template .gh-container.is-grid .gh-card-title {
        font-size: 2rem;
        line-height: 1.25;
    }

    .post-template .gh-container.is-grid .gh-card-excerpt {
        font-size: 1.4rem;
        line-height: 1.5;
    }

    .post-template .gh-container.is-grid .gh-card-meta {
        gap: 8px;
        font-size: 1.25rem;
        line-height: 1.5;
        flex-wrap: wrap;
    }

    .post-template .gh-container.is-grid .gh-card-image {
        aspect-ratio: 16 / 10;
        max-height: none;
        overflow: hidden;
    }

    .post-template .gh-container.is-grid .gh-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
