/* 官网主题 - 深紫岩 + 琥珀金 */
:root {
    --ink: #1c1826;
    --ink-soft: #2e2840;
    --brand: #5c4d8a;
    --accent: #c9893a;
    --accent-light: #f0d4a8;
    --teal: #3d7a72;
    --paper: #f7f5f1;
    --paper-alt: #edeae4;
    --white: #ffffff;
    --text: #2a2635;
    --muted: #6b6578;
    --line: #d8d2c8;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 8px 28px rgba(28, 24, 38, 0.08);
    --header-h: 68px;
    --ease: 0.25s ease;
    --max: 1140px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--paper);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand);
    transition: color var(--ease);
}

a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 760px;
}

/* ========== 头部导航 ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
}

.site-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-logo {
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.02em;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px 6px;
    min-width: 0;
}

.nav-link {
    padding: 6px 10px;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid transparent;
    line-height: 1.3;
}

.nav-link:hover {
    color: var(--ink);
    background: var(--paper);
    border-color: var(--line);
}

.nav-link.z2e1fcthis {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    margin: 0 auto;
    transition: var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
    overflow: hidden;
}

/* ========== 首页 Banner ========== */
.page-home main {
    padding-top: var(--header-h);
}

.banner {
    background: var(--ink);
    color: var(--white);
    padding: 48px 0 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 40px;
}

.banner-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light);
    border: 1px solid rgba(201, 137, 58, 0.45);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.banner-copy h1 {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 14px;
}

.banner-lead {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 12px;
}

.banner-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.banner-text strong {
    color: var(--accent-light);
    font-weight: 600;
}

.banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: var(--ink);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--ink);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.banner-media {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink-soft);
}

.banner-media img {
    width: 100%;
    aspect-ratio: 7 / 5;
    object-fit: cover;
}

.metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric {
    background: var(--ink-soft);
    padding: 20px 16px;
    text-align: center;
}

.metric strong {
    display: block;
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 4px;
}

.metric span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

/* ========== 通用区块 ========== */
.section {
    padding: 64px 0;
}

.section-light {
    background: var(--white);
}

.section-alt {
    background: var(--paper-alt);
}

.section-dark {
    background: var(--ink-soft);
    color: var(--white);
}

.section-dark .section-head h2,
.section-dark .section-head p,
.section-dark .contact-box h3,
.section-dark .contact-box p {
    color: var(--white);
}

.section-dark .section-label {
    color: var(--accent-light);
    border-color: rgba(201, 137, 58, 0.4);
}

.section-knowledge {
    background: var(--white);
}

.section-faq {
    background: var(--paper-alt);
}

.section-articles {
    background: var(--paper);
    padding-bottom: 72px;
}

.section-head {
    margin-bottom: 36px;
}

.section-head-center {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--brand);
    border: 1px solid var(--line);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    background: var(--paper);
}

.section-head h2 {
    font-size: clamp(22px, 3vw, 28px);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.3;
}

.section-head p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
    max-width: 640px;
}

.section-head-center p {
    margin-left: auto;
    margin-right: auto;
}

/* 分栏与卡片 */
.split-block {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
}

.split-reverse {
    direction: rtl;
}

.split-reverse > * {
    direction: ltr;
}

.split-main p {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 15px;
}

.split-main strong {
    color: var(--ink);
}

.check-list {
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    background: var(--paper);
}

.check-list li {
    position: relative;
    padding: 10px 0 10px 22px;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.check-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 2px;
}

.card-row {
    display: grid;
    gap: 20px;
}

.card-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.info-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
    background: var(--white);
    min-height: 0;
}

.info-card.accent-top {
    border-top: 3px solid var(--accent);
}

.info-card h3 {
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
}

.info-card strong {
    color: var(--ink);
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.step-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 18px;
    background: var(--white);
}

.step-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}

.step-card h3 {
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.contact-box {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 22px 20px;
    background: rgba(0, 0, 0, 0.15);
}

.contact-box h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--accent-light);
}

.contact-box p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.knowledge-card {
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius);
    padding: 22px 20px;
    background: var(--paper);
}

.knowledge-card h3 {
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 8px;
}

.knowledge-card p {
    font-size: 14px;
    color: var(--muted);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--brand);
    font-size: 18px;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--ease);
}

.faq-a p {
    padding: 0 18px 16px;
    font-size: 14px;
    color: var(--muted);
}

/* 首页文章 */
.article-grid-home {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.article-card-home {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    min-width: 0;
}

.article-card-thumb {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--paper-alt);
}

.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    padding: 12px 14px 14px;
}

.article-card-body h3 {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.article-card-body h3 a {
    color: var(--ink);
    text-decoration: none;
}

.article-card-body h3 a:hover {
    color: var(--brand);
}

.article-card-meta {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
}

.articles-more {
    text-align: center;
    margin-top: 28px;
}

.articles-more a {
    font-weight: 600;
    text-decoration: none;
    color: var(--brand);
}

/* ========== 页脚 ========== */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    font-size: 15px;
    color: var(--accent-light);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
    font-size: 13px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-copy {
    text-align: center;
    padding-top: 24px;
    font-size: 12px;
    line-height: 1.8;
}

.footer-copy a {
    color: var(--accent-light);
}

.friend-links {
    background: var(--paper-alt);
    border-top: 1px solid var(--line);
    padding: 24px 0;
}

.friend-links h3 {
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 12px;
}

.friend-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.friend-links a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

/* ========== 列表页 / 内容页 ========== */
.page-list main,
.page-article main,
.page-main {
    padding-top: var(--header-h);
}

.page-banner {
    padding: 36px 0 32px;
    background: var(--ink);
    color: var(--white);
}

.page-banner h1 {
    font-size: clamp(22px, 3.5vw, 30px);
    line-height: 1.35;
    margin-bottom: 10px;
    word-break: break-word;
}

.page-breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.page-breadcrumb a {
    color: var(--accent-light);
    text-decoration: none;
}

.page-breadcrumb .sep {
    margin: 0 8px;
    opacity: 0.5;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    padding: 36px 20px 56px;
    align-items: start;
}

.page-content {
    min-width: 0;
}

.listbox {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
}

.article-list {
    list-style: none;
}

.article-list-item {
    display: flex;
    gap: 20px;
    padding: 22px 20px;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-list-thumb {
    flex: 0 0 200px;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.article-list-thumb img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.article-list-body {
    flex: 1;
    min-width: 0;
}

.article-list-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-list-title a {
    color: var(--ink);
    text-decoration: none;
}

.article-list-title a:hover {
    color: var(--brand);
}

.article-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.article-list-intro {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
}

.pagebar {
    margin-top: 24px;
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.pagebar .z2e1fcpages {
    width: 100%;
    overflow-x: auto;
}

.pagebar .z2e1fcpages ul,
.pagebar .pagelist {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.pagebar .z2e1fcpages a,
.pagebar .pagelist a,
.pagebar .z2e1fcpages span,
.pagebar .pagelist span {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    white-space: nowrap;
}

.pagebar .z2e1fcpages a:hover,
.pagebar .pagelist a:hover,
.pagebar .thisclass,
.pagebar .page-this {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

/* 内容页 */
.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.article-meta-bar a {
    color: var(--brand);
    text-decoration: none;
}

.article-detail {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    background: var(--white);
    min-width: 0;
}

.article-litpic {
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

.article-body {
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-gallery-item {
    margin: 18px 0;
    text-align: center;
}

.article-gallery-item img {
    border-radius: 8px;
    border: 1px solid var(--line);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.tags-label {
    font-weight: 600;
    color: var(--ink);
}

.z2e1fcmeta-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.z2e1fctagitem a {
    padding: 5px 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    color: var(--brand);
}

.article-prenext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 13px;
}

.prenext-next {
    text-align: right;
}

.section-subtitle {
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.related-list {
    list-style: none;
}

.related-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.related-item:last-child {
    border-bottom: none;
}

.related-thumb {
    flex: 0 0 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.related-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.related-body {
    flex: 1;
    min-width: 0;
}

.related-body h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.related-body h3 a {
    color: var(--ink);
    text-decoration: none;
}

.related-body p {
    font-size: 13px;
    color: var(--muted);
}

/* 侧栏 */
.page-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    min-width: 0;
}

.sidebar-block {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    background: var(--white);
}

.sidebar-title {
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand);
}

.sidebar-list {
    list-style: none;
}

.sidebar-item {
    margin-bottom: 10px;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-thumb-link {
    display: flex;
    gap: 10px;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    min-width: 0;
}

.sidebar-thumb-link:hover {
    background: var(--paper);
    border-color: var(--line);
}

.sidebar-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-info {
    flex: 1;
    min-width: 0;
}

.sidebar-item-title {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-thumb-link:hover .sidebar-item-title {
    color: var(--brand);
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
    .site-nav .nav-link {
        font-size: 11px;
        padding: 5px 8px;
    }

    .article-grid-home {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .banner-grid {
        grid-template-columns: 1fr;
    }

    .split-block,
    .split-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .card-row-3,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .card-row-2,
    .knowledge-grid {
        grid-template-columns: 1fr;
    }

    .metrics-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
    }

    .article-grid-home {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 58px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 12px 16px 24px;
        background: var(--white);
        overflow-y: auto;
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: var(--ease);
        border-top: 1px solid var(--line);
        z-index: 999;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .site-nav .nav-link {
        width: 100%;
        padding: 12px 14px;
        font-size: 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        white-space: normal;
        text-align: left;
    }

    .site-logo {
        max-width: 140px;
        font-size: 15px;
    }

    .section {
        padding: 48px 0;
    }

    .banner {
        padding-top: 32px;
    }

    .banner-actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .article-list-item {
        flex-direction: column;
    }

    .article-list-thumb {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .article-prenext {
        grid-template-columns: 1fr;
    }

    .prenext-next {
        text-align: left;
    }

    .related-item {
        flex-direction: column;
    }

    .related-thumb {
        flex: none;
        max-width: 160px;
    }

    .article-detail {
        padding: 20px 16px;
    }

    .article-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .metrics-bar {
        grid-template-columns: 1fr 1fr;
    }

    .article-grid-home {
        grid-template-columns: 1fr;
    }

    .steps-row {
        grid-template-columns: 1fr;
    }

    .page-layout {
        padding-left: 14px;
        padding-right: 14px;
    }

    .pagebar .z2e1fcpages a,
    .pagebar .pagelist a {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (hover: none) {
    .article-card-home:hover {
        transform: none;
    }
}

@media print {
    .site-header,
    .nav-toggle,
    .friend-links {
        display: none;
    }

    body {
        background: #fff;
    }
}
