/* Article layouts use scoped selectors to coexist with the theme utility styles. */
.article-page .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.article-page { --article-blue: #3056d3; --article-ink: #1d2939; --article-muted: #778293; --article-line: #e9edf3; --article-paper: #fff; background: #f6f8fb; color: var(--article-ink); padding: 124px 0 80px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.article-page, .article-page * { box-sizing: border-box; }
.article-page .article-shell { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.article-page a { color: inherit; text-decoration: none; transition: color .2s, background-color .2s; }
.article-page a:hover { color: var(--article-blue); }
.article-page a:focus-visible { outline: 2px solid var(--article-blue); outline-offset: 4px; }
.article-page .article-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; color: var(--article-muted); font-size: 13px; line-height: 1.8; }
.article-page .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 28px; }
.article-page .article-main { min-width: 0; }
.article-page .archive-heading { margin-bottom: 32px; }
.article-page .article-eyebrow { color: var(--article-blue); font-size: 13px; font-weight: 600; }
.article-page .archive-heading h1 { margin: 10px 0; font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.article-page .archive-description { max-width: 760px; color: var(--article-muted); font-size: 15px; line-height: 1.9; }
.article-page .article-list { display: grid; gap: 20px; }
.article-page.article-section { padding: 80px 0; }
.article-page .article-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.article-page .article-section-heading h2 { margin: 10px 0 12px; font-size: clamp(28px, 3vw, 36px); font-weight: 700; line-height: 1.4; }
.article-page .article-section-heading p { margin: 0; color: var(--article-muted); font-size: 15px; line-height: 1.9; }
.article-page .article-all-link { flex-shrink: 0; color: var(--article-blue); font-size: 14px; font-weight: 600; line-height: 1.8; }
.article-page .article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article-page .article-grid .archive-card { display: flex; flex-direction: column; padding: 0; gap: 0; overflow: hidden; }
.article-page .article-grid .archive-card-image { width: 100%; aspect-ratio: 16 / 10; border-radius: 0; }
.article-page .article-grid .archive-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.article-page .article-grid .article-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-page .article-grid .archive-excerpt { -webkit-line-clamp: 2; }
.article-page .article-grid .article-read-more { margin-top: auto; padding-top: 4px; }
.article-page .archive-card, .article-page .article-detail, .article-page .article-widget, .article-page .article-empty { border: 1px solid var(--article-line); border-radius: 14px; background: var(--article-paper); box-shadow: 0 4px 20px rgba(25, 42, 70, .025); }
.article-page .archive-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding: 24px; }
.article-page .archive-card-image { display: block; align-self: start; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 9px; background: #edf2fc; }
.article-page .archive-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-page .archive-card-image:hover img { transform: scale(1.04); }
.article-page .article-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(135deg, #edf2ff, #e2eafa); }
.article-page .article-placeholder svg { width: 56px; height: 56px; stroke: #879dd9; stroke-width: 1.5; }
.article-page .archive-card-body { min-width: 0; }
.article-page .article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--article-muted); font-size: 13px; line-height: 1.8; }
.article-page .archive-card .article-card-title { margin: 9px 0 10px; font-size: 21px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.article-page .archive-excerpt { text-indent: 0; letter-spacing: normal; word-spacing: normal; white-space: normal; max-height: 3.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 16px; color: #667085; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.article-page .article-read-more { color: var(--article-blue); font-size: 13px; font-weight: 600; }
.article-page .article-read-more span { margin-left: 8px; }
.article-page .article-sidebar { display: grid; gap: 22px;position: sticky;top: 1rem; }
.article-page .article-widget { padding: 24px; }
.article-page .article-widget h2 { margin: 0 0 18px; padding-left: 12px; border-left: 3px solid var(--article-blue); font-size: 17px; line-height: 1.3; font-weight: 700; }
.article-page .article-category-list, .article-page .article-recent-list { list-style: none; padding: 0; margin: 0; }
.article-page .article-category-list li { padding: 10px 0; color: var(--article-muted); font-size: 14px; border-bottom: 1px solid var(--article-line); overflow-wrap: anywhere; }
.article-page .article-category-list a { color: var(--article-ink); margin-right: 6px; }
.article-page .article-category-list .children { padding-left: 14px; list-style: none; }
.article-page .article-recent-list { counter-reset: recent; }
.article-page .article-recent-list li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--article-line); counter-increment: recent; }
.article-page .article-recent-list li::before { content: counter(recent, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-size: 11px; font-weight: 600; color: #91a1c2; }
.article-page .article-recent-list li:first-child { padding-top: 0; }
.article-page .article-recent-list li:first-child::before { top: 2px; }
.article-page .article-recent-list a { display: block; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.article-page .article-recent-list time { display: block; margin-top: 6px; color: var(--article-muted); font-size: 12px; }
.article-page .article-widget li:last-child { border-bottom: 0; }
.article-page .article-detail { padding: 40px 44px; }
.article-page .article-title-block { padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid var(--article-line); }
.article-page .article-category { display: flex; flex-wrap: wrap; gap: 8px; }
.article-page .article-category a, .article-page .article-tags a { display: inline-block; padding: 4px 10px; border-radius: 5px; background: #eff3ff; color: var(--article-blue); font-size: 12px; line-height: 1.7; }
.article-page .article-title-block h1 { margin: 16px 0 18px; font-size: clamp(25px, 2.6vw, 34px); font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.article-page .article-cover { margin-bottom: 32px; }
.article-page .article-cover img { display: block; width: 100%; height: auto; border-radius: 9px; }
.article-page .entry-content { color: #424d5e; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.article-page .entry-content > :first-child { margin-top: 0; }
.article-page .entry-content > :last-child { margin-bottom: 0; }
.article-page .entry-content p { margin: 0 0 1.4em; }
.article-page .entry-content h1, .article-page .entry-content h2, .article-page .entry-content h3, .article-page .entry-content h4, .article-page .entry-content h5, .article-page .entry-content h6 { margin: 1.8em 0 .8em; color: var(--article-ink); font-weight: 700; line-height: 1.5; scroll-margin-top: 100px; }
.article-page .entry-content h1 { font-size: 28px; }
.article-page .entry-content h2 { font-size: 24px; border-bottom: 1px solid var(--article-line); padding-bottom: 12px; }
.article-page .entry-content h3 { font-size: 20px; }
.article-page .entry-content h4, .article-page .entry-content h5, .article-page .entry-content h6 { font-size: 17px; }
.article-page .entry-content a { color: var(--article-blue); text-decoration: underline; text-underline-offset: 3px; }
.article-page .entry-content ul, .article-page .entry-content ol { margin: 1em 0 1.5em; padding-left: 1.6em; }
.article-page .entry-content ul { list-style: disc; }
.article-page .entry-content ol { list-style: decimal; }
.article-page .entry-content li { margin: .45em 0; }
.article-page .entry-content li > ul, .article-page .entry-content li > ol { margin: .5em 0; }
.article-page .entry-content img, .article-page .entry-content video { max-width: 100%; height: auto; border-radius: 6px; }
.article-page .entry-content iframe { max-width: 100%; }
.article-page .entry-content figure, .article-page .entry-content .wp-caption { max-width: 100%; margin: 28px 0; }
.article-page .entry-content figcaption, .article-page .entry-content .wp-caption-text { margin-top: 10px; color: var(--article-muted); text-align: center; font-size: 13px; }
.article-page .entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.article-page .entry-content blockquote { margin: 28px 0; padding: 18px 24px; border-left: 3px solid var(--article-blue); border-radius: 0 8px 8px 0; background: #f5f7fc; }
.article-page .entry-content blockquote p:last-child { margin-bottom: 0; }
.article-page .entry-content pre { max-width: 100%; overflow-x: auto; padding: 20px; margin: 24px 0; background: #182235; color: #e2e8f0; border-radius: 8px; font-size: 14px; line-height: 1.75; overflow-wrap: normal; }
.article-page .entry-content code { font-family: Consolas, monospace; }
.article-page .entry-content :not(pre) > code { padding: 2px 5px; background: #edf1f7; color: #b54367; border-radius: 4px; font-size: .9em; }
.article-page .entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article-page .entry-content th, .article-page .entry-content td { padding: 12px 16px; border: 1px solid #dfe5ee; text-align: left; min-width: 100px; }
.article-page .entry-content th { background: #f5f7fb; font-weight: 600; }
.article-page .entry-content hr { margin: 32px 0; border: 0; border-top: 1px solid var(--article-line); }
.article-page .article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--article-line); font-size: 13px; color: var(--article-muted); }
.article-page .post-navigation { margin-top: 22px; }
.article-page .post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.article-page .post-navigation a { display: block; height: 100%; padding: 20px 24px; border: 1px solid var(--article-line); border-radius: 10px; background: var(--article-paper); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.article-page .article-nav-label { display: block; margin-bottom: 6px; color: var(--article-muted); font-size: 12px; }
.article-page .nav-next { grid-column: 2; text-align: right; }
.article-page .pagination .nav-links, .article-page .article-page-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.article-page .page-numbers, .article-page .post-page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--article-line); border-radius: 7px; background: var(--article-paper); font-size: 14px; }
.article-page .page-numbers.current, .article-page .post-page-numbers.current { background: var(--article-blue); color: #fff; border-color: var(--article-blue); }
.article-page .article-empty { padding: 64px 24px; text-align: center; }
.article-page .article-empty h2 { margin-bottom: 12px; font-size: 24px; font-weight: 700; }
.article-page .article-empty p { margin-bottom: 24px; color: var(--article-muted); }
.article-page .article-empty a { color: var(--article-blue); }
@media (max-width: 1100px) { .article-page .article-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; } .article-page .archive-card { grid-template-columns: 160px minmax(0, 1fr); gap: 20px; } .article-page .article-detail { padding: 32px; } }
@media (max-width: 900px) { .article-page .article-layout { grid-template-columns: minmax(0, 1fr); } .article-page .article-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; margin-top: 8px; } }
@media (max-width: 600px) { .article-page { padding: 100px 0 48px; } .article-page .article-shell { width: calc(100% - 32px); } .article-page .article-breadcrumb { margin-bottom: 20px; } .article-page .archive-card { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 18px; } .article-page .archive-card-image { aspect-ratio: 16 / 9; } .article-page .archive-card .article-card-title { font-size: 20px; } .article-page .article-detail { padding: 24px 20px; border-radius: 10px; } .article-page .article-title-block { padding-bottom: 22px; margin-bottom: 24px; } .article-page .entry-content { font-size: 15px; } .article-page .entry-content h2 { font-size: 21px; } .article-page .entry-content blockquote { padding: 16px; } .article-page .article-sidebar { grid-template-columns: minmax(0, 1fr); } .article-page .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); } .article-page .nav-next { grid-column: auto; } }
.dark .article-page { --article-ink: #e5eaf3; --article-muted: #9da9bc; --article-line: #303b50; --article-paper: #1d293c; --article-blue: #93adff; background: #131c2c; }
.dark .article-page .entry-content, .dark .article-page .archive-excerpt { color: #bdc8d9; }
.dark .article-page .article-category a, .dark .article-page .article-tags a, .dark .article-page .entry-content blockquote, .dark .article-page .entry-content th, .dark .article-page .entry-content :not(pre) > code { background: #263650; }
@media (prefers-reduced-motion: reduce) { .article-page a, .article-page .archive-card-image img { transition: none; } }

/* Shared card grid follows the same breakpoints as the article layouts. */
@media (max-width: 900px) {
    .article-page .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .article-page.article-section { padding: 48px 0; }
    .article-page .article-section-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
    .article-page .article-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .article-page .article-grid .archive-card-body { padding: 20px; }
}
