/* 文章页面共用布局 */
.inner-page {
    background: #f6f8fa;
}

.inner-page .site-nav {
    border-bottom: 1px solid #edf0f2;
}

.inner-page .site-nav__brand {
    display: block;
}

.article-shell {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 42px;
    color: #8b969e;
    font-size: 14px;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--brand-blue);
}

.breadcrumb--light {
    color: rgb(255 255 255 / 62%);
}

/* 文章列表页头图 */
.article-hero {
    position: relative;
    min-height: 430px;
    padding: 155px 0 90px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgb(4 21 34 / 93%), rgb(10 53 76 / 72%)),
        url('https://xinyueshangya.oss-cn-chengdu.aliyuncs.com//images/20260918/3314/17896966958453.png') center 54% / cover no-repeat;
    color: white;
}

.article-hero::after {
    position: absolute;
    right: -100px;
    bottom: -220px;
    width: 520px;
    height: 520px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 50%;
    content: '';
}

.article-hero .article-shell {
    position: relative;
    z-index: 1;
}

.article-hero__eyebrow {
    margin-bottom: 12px;
    color: #77c9fc;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.28em;
}

.article-hero h1 {
    font-size: clamp(48px, 5vw, 74px);
    font-weight: 500;
    line-height: 1.2;
}

.article-hero h1::after {
    display: block;
    width: 52px;
    height: 3px;
    margin: 24px 0;
    background: var(--brand-blue);
    content: '';
}

.article-hero > .article-shell > p:last-child {
    color: rgb(255 255 255 / 72%);
    font-size: 18px;
}

/* 文章列表 */
.article-list-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: clamp(50px, 6vw, 100px);
    padding-top: 88px;
    padding-bottom: 110px;
}

.article-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dfe6ea;
}

.article-section-heading p,
.article-sidebar__eyebrow,
.article-detail-sidebar__card > p {
    margin-bottom: 5px;
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.article-section-heading h2 {
    font-size: 30px;
}

.article-section-heading > span {
    color: #9aa3aa;
    font-size: 13px;
}

.featured-article {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    min-height: 370px;
    margin-bottom: 28px;
    overflow: hidden;
    background: white;
}

.featured-article__image {
    display: block;
    min-height: 300px;
    overflow: hidden;
}

.featured-article__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-article:hover .featured-article__image img {
    transform: scale(1.03);
}

.featured-article__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 4vw, 58px);
}

.article-meta {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    color: #9aa3aa;
    font-size: 13px;
}

.article-meta span {
    color: var(--brand-blue);
    font-weight: 700;
}

.featured-article h2 {
    margin-bottom: 18px;
    font-size: clamp(25px, 2vw, 34px);
    line-height: 1.45;
}

.featured-article h2 a,
.article-list-item h3 a {
    color: #172a38;
    text-decoration: none;
}

.article-list-item h2,
.article-list-item h3 {
    margin: 5px 0 7px;
    font-size: 21px;
}

.article-list-item h2 a,
.article-list-item h3 a {
    color: #172a38;
    text-decoration: none;
}

.featured-article__content > p {
    color: #76828b;
    font-size: 15px;
    line-height: 1.9;
}

.article-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    margin-top: 28px;
    color: #163e57;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.article-more span {
    color: var(--brand-blue);
    font-size: 20px;
    transition: transform 0.2s;
}

.article-more:hover span {
    transform: translateX(4px);
}

.article-list {
    background: white;
}

.article-list-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 44px;
    gap: 28px;
    align-items: center;
    padding: 34px 38px;
    border-bottom: 1px solid #edf0f2;
    transition: background-color 0.2s;
}

.article-list-item:hover {
    background: #fafdff;
}

.article-list-item > time {
    display: flex;
    flex-direction: column;
    color: #9aa3aa;
    line-height: 1.2;
}

.article-list-item > time strong {
    color: #173f59;
    font-size: 36px;
    font-weight: 500;
}

.article-list-item > time span {
    margin-top: 5px;
    font-size: 12px;
}

.article-category {
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
}

.article-list-item p {
    color: #849099;
    font-size: 14px;
}

.article-list-item__link {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dce7ed;
    border-radius: 50%;
    color: var(--brand-blue);
    font-size: 19px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.article-list-item:hover .article-list-item__link {
    background: var(--brand-blue);
    color: white;
}

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 38px;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
}

.pagination a,
.pagination span,
.pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #dce4e9;
    color: #65737d;
    font-size: 14px;
    text-decoration: none;
}

.pagination .is-current,
.pagination .current {
    border-color: var(--brand-blue);
    background: var(--brand-blue);
    color: white;
}

/* 列表侧栏 */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-sidebar > section {
    padding: 34px;
    background: white;
}

.article-sidebar h2 {
    margin-bottom: 22px;
    font-size: 22px;
}

.category-list {
    list-style: none;
}

.category-list li + li {
    border-top: 1px solid #edf0f2;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    color: #5d6972;
    font-size: 14px;
    text-decoration: none;
}

.category-list a:hover {
    color: var(--brand-blue);
}

.category-list strong {
    color: #adb5ba;
    font-size: 12px;
}

.article-sidebar .sidebar-feature {
    position: sticky;
    top: 105px;
    padding: 40px 34px;
    overflow: hidden;
    background: linear-gradient(145deg, #0c2639, #14668b);
    color: white;
}

.sidebar-feature > p {
    margin-bottom: 22px;
    color: #7ed0ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.sidebar-feature h2 {
    margin-bottom: 12px;
    font-size: 25px;
}

.sidebar-feature > span {
    display: block;
    color: rgb(255 255 255 / 65%);
    font-size: 14px;
    line-height: 1.8;
}

.sidebar-feature a {
    display: inline-block;
    margin-top: 28px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgb(255 255 255 / 50%);
    color: white;
    font-size: 14px;
    text-decoration: none;
}

/* 文章详情页 */
.article-detail-header {
    padding: 150px 5% 90px;
    background:
        radial-gradient(circle at 82% 10%, rgb(70 174 247 / 15%), transparent 24%),
        linear-gradient(135deg, #edf6fb, #fff);
}

.article-reading-width {
    max-width: 1040px;
    margin: 0 auto;
}

.article-detail-header__category {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.article-detail-header h1 {
    color: #142c3d;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 500;
    line-height: 1.3;
}

.article-detail-header h1 + p {
    margin-top: 28px;
    color: #71808a;
    font-size: 19px;
}

.article-detail-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-top: 38px;
    color: #98a3aa;
    font-size: 13px;
}

.article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: clamp(54px, 7vw, 110px);
    padding-top: 88px;
    padding-bottom: 120px;
}

.article-content {
    max-width: 980px;
    margin-left: auto;
}

.article-content > p {
    margin-bottom: 22px;
    color: #5f6e78;
    font-size: 17px;
    line-height: 2.05;
}

.article-content .article-lead {
    margin-bottom: 36px;
    padding-left: 22px;
    border-left: 3px solid var(--brand-blue);
    color: #304958;
    font-size: 19px;
    font-weight: 500;
}

.article-cover {
    margin: 45px 0 52px;
}

.article-cover img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.article-cover figcaption {
    margin-top: 10px;
    color: #a0a8ad;
    font-size: 12px;
    text-align: center;
}

.article-content h2 {
    margin: 50px 0 22px;
    scroll-margin-top: 110px;
    color: #17364a;
    font-size: 28px;
}

.article-content blockquote {
    position: relative;
    margin: 46px 0;
    padding: 34px 42px;
    overflow: hidden;
    background: #edf7fc;
}

.article-content blockquote::before {
    position: absolute;
    top: -26px;
    left: 14px;
    color: rgb(70 174 247 / 20%);
    font-family: Georgia, serif;
    font-size: 110px;
    content: '“';
}

.article-content blockquote p {
    position: relative;
    color: #173f59;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
    padding-top: 28px;
    border-top: 1px solid #e1e7eb;
}

.article-tags span,
.article-tags a {
    padding: 7px 14px;
    background: #edf5f9;
    color: #5c7788;
    font-size: 12px;
    text-decoration: none;
}

.article-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 50px;
    background: #dfe7eb;
    border: 1px solid #dfe7eb;
}

.article-switch > a,
.article-switch > div {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: white;
    color: #293e4c;
    text-decoration: none;
}

.article-switch > a:last-child,
.article-switch > div:last-child {
    text-align: right;
}

.article-switch > a > span,
.article-switch > div > span {
    margin-bottom: 7px;
    color: #9aa4aa;
    font-size: 12px;
}

.article-switch strong,
.article-switch > div > a {
    color: #293e4c;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.related-posts {
    list-style: none;
}

.related-posts li {
    padding: 15px 0;
    border-top: 1px solid #edf0f2;
}

.related-posts time,
.related-posts a {
    display: block;
}

.related-posts time {
    margin-bottom: 5px;
    color: #a0a8ad;
    font-size: 11px;
}

.related-posts a {
    color: #435762;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
}

.related-posts a:hover {
    color: var(--brand-blue);
}

/* 普通页面、归档与 WordPress 正文元素 */
.standard-page__header,
.listing-header {
    padding: 150px 5% 72px;
    background: linear-gradient(135deg, #edf6fb, #fff);
}

.standard-page__header h1,
.listing-header h1 {
    color: #15384f;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 500;
}

.listing-header p {
    margin-bottom: 8px;
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.standard-page__content {
    padding-top: 72px;
    padding-bottom: 100px;
}

.standard-page__content > *,
.article-content > ul,
.article-content > ol,
.article-content > figure,
.article-content > table {
    margin-bottom: 24px;
}

.standard-page__content p,
.standard-page__content li,
.article-content li {
    color: #5f6e78;
    font-size: 17px;
    line-height: 2;
}

.standard-page__content h2,
.standard-page__content h3 {
    margin-top: 42px;
    color: #17364a;
}

.standard-page__content a,
.article-content > p a {
    color: #167bb2;
}

.fallback-list {
    padding-top: 72px;
    padding-bottom: 100px;
}

.fallback-list .article-list-item {
    background: white;
}

.empty-state {
    padding: 80px 30px;
    background: white;
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 10px;
    color: #17364a;
}

.empty-state p {
    color: #88939a;
}

.comments-area {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid #dfe7eb;
}

.comments-area h2,
.comment-reply-title {
    margin-bottom: 24px;
    color: #17364a;
    font-size: 24px;
}

.comment-list {
    list-style: none;
}

.comment-list .comment-body {
    margin-bottom: 18px;
    padding: 24px;
    background: white;
}

.comment-form label {
    display: block;
    margin-bottom: 7px;
    color: #536570;
    font-size: 14px;
}

.comment-form input:not([type='submit']),
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d9e2e7;
    font: inherit;
}

.comment-form .submit {
    padding: 11px 24px;
    border: 0;
    background: var(--brand-blue);
    color: white;
    cursor: pointer;
}

.not-found-page {
    display: grid;
    place-items: center;
    min-height: 75vh;
    padding: 130px 20px 70px;
    background: linear-gradient(135deg, #edf6fb, #fff);
    text-align: center;
}

.not-found-page > div > p {
    color: rgb(70 174 247 / 25%);
    font-size: clamp(100px, 18vw, 220px);
    font-weight: 800;
    line-height: 0.9;
}

.not-found-page h1 {
    margin: 22px 0 10px;
    color: #17364a;
    font-size: 36px;
}

.not-found-page span {
    display: block;
    color: #7f8b93;
}

.not-found-page a {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 28px;
    background: var(--brand-blue);
    color: white;
    text-decoration: none;
}

.admin-bar .site-nav {
    top: 32px;
}

.article-detail-sidebar {
    position: sticky;
    top: 105px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-detail-sidebar__card {
    padding: 30px;
    background: white;
}

.article-detail-sidebar__card h2 {
    margin-bottom: 18px;
    font-size: 20px;
}

.article-detail-sidebar__card nav {
    display: flex;
    flex-direction: column;
}

.article-detail-sidebar__card nav a {
    padding: 12px 0;
    border-top: 1px solid #edf0f2;
    color: #71808a;
    font-size: 14px;
    text-decoration: none;
}

.article-detail-sidebar__card nav a:hover {
    color: var(--brand-blue);
}

.article-detail-sidebar__back {
    padding: 30px;
    background: #102f44;
    color: white;
}

.article-detail-sidebar__back span,
.article-detail-sidebar__back strong {
    display: block;
}

.article-detail-sidebar__back span {
    margin-bottom: 10px;
    color: #75c8f7;
    font-size: 10px;
    letter-spacing: 0.16em;
}

.article-detail-sidebar__back strong {
    font-size: 17px;
}

.article-detail-sidebar__back a {
    display: inline-block;
    margin-top: 22px;
    color: rgb(255 255 255 / 68%);
    font-size: 13px;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .article-list-layout,
    .article-detail-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-sidebar .sidebar-feature,
    .article-detail-sidebar {
        position: static;
    }

    .article-content {
        max-width: 920px;
        margin: 0 auto;
    }

    .article-detail-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .article-shell {
        width: calc(100% - 40px);
    }

    .article-hero {
        min-height: 380px;
        padding: 120px 0 64px;
    }

    .article-hero h1 {
        font-size: 44px;
    }

    .article-list-layout,
    .article-detail-layout {
        padding-top: 56px;
        padding-bottom: 72px;
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article__image {
        min-height: 230px;
    }

    .article-list-item {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 18px;
        padding: 27px 20px;
    }

    .article-list-item > time strong {
        font-size: 29px;
    }

    .article-list-item__link {
        display: none;
    }

    .article-list-item h3 {
        font-size: 18px;
    }

    .article-list-item p {
        display: none;
    }

    .article-sidebar,
    .article-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .article-detail-header {
        padding: 120px 20px 62px;
    }

    .article-detail-header h1 {
        font-size: 38px;
    }

    .article-detail-header h1 + p {
        font-size: 17px;
    }

    .article-content > p {
        font-size: 16px;
        line-height: 1.95;
    }

    .article-content .article-lead {
        font-size: 17px;
    }

    .article-cover {
        margin: 34px 0 40px;
    }

    .article-cover img {
        aspect-ratio: 4 / 3;
    }

    .article-content h2 {
        margin-top: 42px;
        font-size: 24px;
    }

    .article-content blockquote {
        margin: 36px 0;
        padding: 28px 24px;
    }

    .article-content blockquote p {
        font-size: 19px;
    }

    .article-switch {
        grid-template-columns: 1fr;
    }

    .article-switch > a:last-child,
    .article-switch > div:last-child {
        text-align: left;
    }
}

@media (max-width: 782px) {
    .admin-bar .site-nav {
        top: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .featured-article__image img,
    .article-more span {
        transition: none;
    }
}
