/* ============================================================
   亚麻公社主题 — main.css
   响应式布局 + 头部 + 尾部 + 导航 + 组件
   ============================================================ */

/* === 自托管字体 — 思源黑体 === */
@font-face {
    font-family: 'SourceHanSansCN';
    src: url('../fonts/SourceHanSansCN-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SourceHanSansCN';
    src: url('../fonts/SourceHanSansCN-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* === 自托管字体 — 思源宋体 === */
@font-face {
    font-family: 'SourceHanSerifCN';
    src: url('../fonts/SourceHanSerifCN-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SourceHanSerifCN';
    src: url('../fonts/SourceHanSerifCN-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* === 站点头部 === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    /* 背景图横向平铺，缩放高度至 60px 保证铺满 */
    background-image: url('../images/topb.png');
    background-repeat: repeat-x;
    background-position: left center;
    background-size: auto 100%;
    /* 图片未加载时的回退底色 */
    background-color: #3a3028;
}

/* 限制 header 内容区宽度为 1090px */
.site-header .container {
    max-width: 1090px;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
}

/* --- 站点品牌（头部 Logo） --- */
.site-branding {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}

.site-name-link {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-decoration: none;
}

/* Logo 文字回退：白色（配合深色背景图） */
.site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .02em;
}

.site-tagline {
    font-size: .75rem;
    color: rgba(255,255,255,.7);
}

/* 自定义 Logo 图片：按设计稿固定 37px 高，宽度自适应 */
.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding .custom-logo {
    display: block;
    height: 37px;
    width: auto;
    max-width: 151px;
}

/* === 主导航（PC 端） === */
.main-navigation {
    display: flex;
    align-items: center;
}

/* 通用 nav-menu 基础（用于非 header 场景保持不变） */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: .25rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: .45rem .85rem;
    font-size: .95rem;
    color: var(--color-text);
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

/* --- 头部专属导航样式覆盖 --- */
/* li 设为 flex 以便容纳分割线伪元素 */
.site-header .nav-menu {
    gap: 0;
}

.site-header .nav-menu > li {
    display: flex;
    align-items: center;
}

/* 菜单文字：18px 纯白，无背景，思源黑体 Regular */
.site-header .nav-menu > li > a {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #fff;
    padding: 0;
    border-radius: 0;
    background: transparent;
    transition: text-shadow var(--transition);
    white-space: nowrap;
}

/* hover + 当前页/选中项：纯白 + 白色光晕 */
.site-header .nav-menu > li > a:hover,
.site-header .nav-menu .current-menu-item > a,
.site-header .nav-menu .current_page_item > a,
.site-header .nav-menu .current-menu-ancestor > a {
    background: transparent;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,.6);
}

/* 分割线：白色竖线 2×20px，左右各留 16px 间距
   使用 ::after 放置在每个 li（除最后一项）的末尾 */
.site-header .nav-menu > li:not(:last-child)::after {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 2px;
    height: 20px;
    background-color: rgba(255,255,255,.9);
    margin: 0 16px;
    align-self: center;
}

/* 下拉子菜单（深色背景，适配 header） */
.site-header .nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: rgba(40,32,24,.95);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: .4rem 0;
    z-index: 200;
}

.site-header .nav-menu .sub-menu a {
    font-size: 15px;
    padding: .55rem 1rem;
    color: rgba(255,255,255,.85);
}

.site-header .nav-menu .sub-menu a:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
    opacity: 1;
}

.site-header .nav-menu li:hover > .sub-menu,
.site-header .nav-menu li:focus-within > .sub-menu {
    display: block;
}

/* 通用下拉（非 header） */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: .4rem 0;
    z-index: 200;
}

.nav-menu .sub-menu a {
    border-radius: 0;
    padding: .5rem 1rem;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
    display: block;
}

/* 汉堡按钮（移动端）：颜色改为白色适配深色 header */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 8px;
    transition: border-color var(--transition);
}

.menu-toggle:hover { border-color: rgba(255,255,255,.9); }

.menu-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === 站点尾部 === */
.site-footer {
    background: #2c4a39;
    color: #fff;
    margin-top: auto;
}

/* footer 内容区：1090px 居中，上下 50px */
.footer-inner {
    max-width: 1090px;
    margin: 0 auto;
    padding: 50px 1.25rem;
}

/* 重置 footer 内段落的默认下边距 */
.site-footer p { margin-bottom: 0; }

/* --- 两列布局 --- */
.footer-columns {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}

/* 左侧列 */
.footer-col-left {
    flex: 1;
    min-width: 0;
    padding-right: 50px;
}

/* 垂直分割线 */
.footer-col-divider {
    width: 1px;
    flex-shrink: 0;
    background: rgb(255,255,255);
}

/* 右侧列：内容整体垂直居中 */
.footer-col-right {
    flex: 0 0 auto;
    min-width: 300px;
    padding-left: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* --- 左侧各区块 --- */
.footer-block {
    margin-bottom: 20px;
}
.footer-block:last-child { margin-bottom: 0; }

/* 区块1：客服热线 */
.footer-hotline {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    line-height: 1.6;
}

/* 公司名称（加粗，16px） */
.footer-company-name {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 6px;
}

/* 地址 / 电话（常规，14px） */
.footer-company-info {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    line-height: 1.9;
}

/* --- 右侧：导航菜单（同 header 结构，16px） --- */
.footer-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    gap: 0;
}

.footer-nav-menu > li {
    display: flex;
    align-items: center;
}

.footer-nav-menu > li > a {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #fff;
    padding: 0;
    white-space: nowrap;
    transition: text-shadow var(--transition);
}

.footer-nav-menu > li > a:hover,
.footer-nav-menu .current-menu-item > a,
.footer-nav-menu .current_page_item > a {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,.6);
}

/* 菜单项之间白色竖线分割（同 header，高度 16px） */
.footer-nav-menu > li:not(:last-child)::after {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 2px;
    height: 16px;
    background: rgba(255,255,255,.9);
    margin: 0 10px;
    align-self: center;
}

/* --- 右侧：版权文字 --- */
.footer-copyright {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 12px!important;
}

/* --- 右侧：图标图片 --- */
.footer-icons {
    margin-left: -10px;
}

.footer-icons img {
    display: block;
    width: 200px;
    height: 50px;
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
    .footer-col-right { min-width: 260px; }
}

@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
    }
    .footer-col-left {
        padding-right: 0;
        padding-bottom: 30px;
    }
    .footer-col-divider {
        width: 100%;
        height: 1px;
        margin: 0 0 30px 0;
    }
    .footer-col-right {
        padding-left: 0;
        min-width: 0;
    }
    /* 移动端菜单允许换行，隐藏竖线分割 */
    .footer-nav-menu {
        flex-wrap: wrap;
        gap: .3rem .5rem;
    }
    .footer-nav-menu > li:not(:last-child)::after {
        display: none;
    }
}

/* === 文章导航（上/下篇） === */
.post-navigation {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    min-width: 200px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.post-navigation a { color: var(--color-text); }
.post-navigation a:hover { color: var(--color-primary); }

.post-navigation:hover .nav-previous,
.post-navigation:hover .nav-next {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-sm);
}

.nav-label {
    display: block;
    font-size: .75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .25rem;
}

.nav-title { font-weight: 500; }

/* === 搜索表单 === */
.search-form {
    display: flex;
    gap: .5rem;
    align-items: stretch;
}

.search-form .search-field {
    flex: 1;
    min-width: 0;
}

/* === 页面头 === */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}

.page-title { color: var(--color-primary); }

.archive-description {
    margin-top: .5rem;
    color: var(--color-text-muted);
}

/* === 阅读更多 === */
.read-more {
    font-size: .85rem;
    font-weight: 500;
}

/* === 缩略图 === */
.entry-thumbnail {
    margin-bottom: 1.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

/* === 标签 === */
.entry-tags {
    margin-top: 1.5rem;
    font-size: .875rem;
    color: var(--color-text-muted);
}
.entry-tags a {
    display: inline-block;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    padding: .2rem .65rem;
    font-size: .8rem;
    color: var(--color-text-muted);
    margin: .2rem .15rem;
    transition: all var(--transition);
}
.entry-tags a:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

/* === 响应式：平板 <= 1024px === */
@media (max-width: 1024px) {
    .footer-col-right { min-width: 260px; }
}

/* === 响应式：手机 <= 768px === */
@media (max-width: 768px) {
    /* 汉堡按钮显示 */
    .menu-toggle { display: flex; }

    /* 主菜单折叠 */
    .main-navigation {
        position: static;
    }

    /* 菜单收起时隐藏，展开后从 header 底部向下铺开 */
    .site-header .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        /* 深色背景，与 header 风格保持一致 */
        background: rgba(40,32,24,.97);
        border-top: 1px solid rgba(255,255,255,.12);
        box-shadow: 0 8px 24px rgba(0,0,0,.35);
        padding: .5rem 0;
        z-index: 150;
    }

    .site-header .nav-menu.is-open { display: flex; }

    /* 移动端每项独占一行，恢复 block 布局 */
    .site-header .nav-menu > li {
        display: block;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .site-header .nav-menu > li:last-child {
        border-bottom: none;
    }

    /* 文字尺寸手机端略缩，仍保持白色 */
    .site-header .nav-menu > li > a {
        font-size: 16px;
        padding: .75rem 1.25rem;
        display: block;
    }

    /* 移动端隐藏竖向分割线 */
    .site-header .nav-menu > li:not(:last-child)::after {
        display: none;
    }

    /* 移动端子菜单 */
    .site-header .nav-menu .sub-menu {
        position: static;
        background: rgba(255,255,255,.06);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: .25rem 0;
    }

    .site-header .nav-menu .sub-menu a {
        padding: .5rem 2rem;
        font-size: 14px;
    }

    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--color-bg-alt);
        border-radius: var(--radius);
        margin: .25rem 0 .25rem 1rem;
        padding: .25rem 0;
    }

    /* 导航上下篇单列 */
    .post-navigation {
        flex-direction: column;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        min-width: 0;
    }

    /* 搜索表单 */
    .search-form { flex-direction: column; }
    .search-form .search-submit { width: 100%; }
}

/* === 响应式：小屏 <= 480px === */
@media (max-width: 480px) {
    .site-tagline { display: none; }
    .container { padding: 0 1rem; }
    .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   首页 —— Banner 轮播
   ============================================================ */
.home-banner {
    position: relative;
    width: 100%;
    height: 515px;
    overflow: hidden;
    background: #1a1a1a;
}

/* 轮播容器 */
.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 每一张 slide */
.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
}

.banner-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 移动端：按 1920×515 宽高比撑开容器，图片完整显示 */
@media (max-width: 1024px) {
    .home-banner {
        height: 0;
        /* 515 / 1920 = 26.823% */
        padding-top: 26.823%;
        overflow: visible;
    }
    .banner-slider {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .banner-slide img {
        object-fit: contain;
        background: #1a1a1a;
    }
    /* 箭头和圆点随容器位移修正 */
    .banner-dots,
    .banner-arrow {
        position: absolute;
    }
}

/* 导航圆点 */
.banner-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

/* 圆点由 JS 动态生成 */
.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .3s, transform .3s;
}

.banner-dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

/* 只有 1 张时隐藏箭头和圆点 */
.banner-dots:empty,
.banner-arrow.is-hidden {
    display: none;
}

/* 左右切换箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s;
}

.banner-arrow:hover { background: rgba(0,0,0,.65); }

.banner-arrow-prev { left: 20px; }
.banner-arrow-next { right: 20px; }

/* ============================================================
   首页 —— 主体内容三列
   ============================================================ */
.home-content {
    background: #f7f7f7;
    padding: 80px 0 130px;
}

/* 容器宽度：3列×403px + 2间距×15px = 1323px，两侧加 padding 留白 */
.home-content-inner {
    max-width: 1353px;   /* 1323 + 2×15px 外边距 */
    margin: 0 auto;
    padding: 0 15px;
}

/* 三列固定宽度 403px，间距 15px */
.home-columns {
    display: grid;
    grid-template-columns: repeat(3, 403px);
    gap: 15px;
    justify-content: center;
}

/* ---- 列容器 ---- */
.home-col {
    width: 403px;
    height: 526px;
    padding: 25px 22px;
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

/* ---- 标题行 ---- */
.home-col-header {
    display: flex;
    align-items: flex-end;          /* 中英文底对齐 */
    justify-content: space-between;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.home-col-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.home-col-title .title-cn {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #2c4a39;
    line-height: 1.2;
}

.home-col-title .title-sep {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #2c4a39;
    line-height: 1.4;
}

.home-col-title .title-en {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #2c4a39;
    line-height: 1.4;
}

.home-col-more {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #2c4a39;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity .2s;
}
.home-col-more:hover { opacity: .7; color: #2c4a39; }

/* ---- 文章列表：两图上下两端对齐 ---- */
.home-col-posts {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.home-post-item {
    flex: 0 0 auto;
}

.home-post-thumb-link {
    display: block;
    text-decoration: none;
}

/* 图片容器：宽度占满列内容区（431 - 22×2 = 387px），高度 200px */
.home-post-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #ddd;
    border-radius: 10px;
}

.home-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .35s ease;
}

.home-post-thumb-link:hover .home-post-thumb img {
    transform: scale(1.04);
}

/* 无封面图时的占位 */
.home-post-thumb--no-img {
    background: rgba(44,74,57,.12);
}

/* 图片内部底部标题遮罩 */
.home-post-thumb-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: rgba(220,220,220,.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.home-post-thumb-title span {
    display: block;
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #2c4a39;
    line-height: 1.5;
    /* 超出一行显示省略号 */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 暂无内容提示 */
.home-col-empty {
    font-size: 13px;
    color: rgba(44,74,57,.5);
    text-align: center;
    padding-top: 20px;
}

/* ============================================================
   首页响应式
   ============================================================ */
@media (max-width: 1380px) {
    /* 三列改为等比缩放，不再固定 431px */
    .home-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .home-col {
        width: 100%;
        height: auto;
        min-height: 520px;
    }
}

@media (max-width: 1024px) {
    .home-col { min-height: 460px; }
    .home-col-title .title-cn { font-size: 20px; }
}

@media (max-width: 768px) {
    .banner-arrow { width: 36px; height: 36px; }

    .home-content { padding: 50px 0 70px; }

    /* 三列变单列 */
    .home-columns {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-content: stretch;
    }
    .home-col {
        width: 100%;
        height: auto;
        min-height: 0;
    }
    .home-col-posts {
        gap: 16px;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .banner-arrow { display: none; }
    .home-post-thumb { height: 180px; }
}

/* ============================================================
   通用页面模板 — 公共结构
   适用于：品牌介绍 / 在线商城 / 联系我们
   ============================================================ */

/* 全宽外层（无背景色，两侧留白为白色） */
.pg-outer {
    background: transparent;
}

/* 内容包裹：1210px 居中，相对定位以容纳底部背景图 */
.pg-wrap {
    position: relative;
    max-width: 1210px;
    margin: 0 auto;
    padding: 60px 20px 0;
    min-height: 500px;
    background: #f4f4f4;
    box-sizing: border-box;
    /* has-bg 时底部留出背景图的空间，由具体页面按图片高度覆盖 */
}

/* 有背景图时底部留白（默认 300px，各页面可按实际图片高度单独覆盖） */
.pg-wrap.has-bg {
    padding-bottom: 300px;
}

/* 页面正文区 */
.pg-content {
    position: relative;
    z-index: 1;
}

/* 底部背景图：绝对定位到 .pg-wrap 底部，宽度撑满 */
.pg-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
    line-height: 0;     /* 消除 img 底部间隙 */
}

.pg-bg img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- 各页面专属命名空间（后续在此追加各页样式） ---- */

/* ============================================================
   品牌介绍页 (about-us)
   ============================================================ */

/* 覆盖通用 pg-wrap padding */
.pg-wrap--about {
    padding-top: 80px;
    padding-left: 100px;
    padding-right: 100px;
}

/* 正文字体 */
.pg-about-us .about-body {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.85;
}

/* ---- 标题区 ---- */
.about-title-section {
    margin-bottom: 40px;
    /* 英文标题下有足够空间显示中文重叠 */
    line-height: 1;
}

/* 英文标题：思源宋体 Regular 48px #e5e6e5 */
.about-title-en {
    font-family: 'SourceHanSerifCN', 'STSong', 'SimSun', serif;
    font-weight: 700;
    font-size: 48px;
    color: #e5e6e5;
    line-height: 1.1;
    letter-spacing: .04em;
    user-select: none;
}

/* 中文标题：思源宋体 Bold 76px #1d4528，向上覆盖英文 */
.about-title-cn {
    font-family: 'SourceHanSerifCN', 'STSong', 'SimSun', serif;
    font-weight: 700;
    font-size: 76px;
    color: #1d4528;
    line-height: 1;
    margin-top: -20px;   /* 负值使中文与英文重叠 */
}

/* 装饰线：140×5px，#ffbc5d */
.about-title-line {
    width: 140px;
    height: 5px;
    background: #ffbc5d;
    margin-top: 16px;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
    .pg-wrap--about {
        padding-left: 60px;
        padding-right: 60px;
    }
    .about-title-en { font-size: 38px; }
    .about-title-cn { font-size: 58px; margin-top: -22px; }
}

@media (max-width: 768px) {
    .pg-wrap--about {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-top: 50px;
    }
    .about-title-en { font-size: 28px; }
    .about-title-cn { font-size: 44px; margin-top: -16px; }
    .pg-about-us .about-body { font-size: 16px; }
}

/* ============================================================
   在线商城 / 联系我们 — 共用结构
   ============================================================ */

/* ---- 顶部页面标题导航条 ---- */
.pg-topbar {
    width: 100%;
    height: 73px;
    border-bottom: 1px solid rgb(44, 74, 57);
    background: #fff;
    box-sizing: border-box;
}

.pg-topbar__inner {
    max-width: 1210px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.pg-topbar__title {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: #2c4a39;
    margin: 0;
    line-height: 1.2;
}

/* ---- 主体区 padding（同品牌介绍页） ---- */
/* 右上角叠加背景图 tr.png（文件不存在时自动不显示）；底色 #f4f4f4 继承自 .pg-wrap */
.pg-wrap--ribbon {
    padding-top: 80px;
    padding-left: 100px;
    padding-right: 100px;
    padding-bottom: 160px;
    background-image: url('../images/tr.png');
    background-repeat: no-repeat;
    background-position: top right;
}

/* ---- 缎带式标题 ---- */
/* 矩形_6：绿色矩形，需突出到主体内容(灰框)左侧外部 25px
   主体左侧 padding 为 100px，故 margin-left = -(100 + 25) = -125px */
.pg-ribbon-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 200px;
    height: 60px;
    margin-left: -125px;
    margin-bottom: 40px;
    padding: 0 30px 0 40px;
    background: rgb(44, 74, 57);
    box-sizing: border-box;
    /* 右侧上下圆角 */
    border-radius: 0 8px 8px 0;
}

.pg-ribbon-title__text {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 25px;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
}

/* 三角形_1：左下角折角，更深色，24×9 */
.pg-ribbon-title::after {
    content: '';
    position: absolute;
    left: 0;
    top: 100%;
    width: 24px;
    height: 9px;
    background: rgb(25, 47, 35);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ---- 正文内容字体（同品牌介绍页） ---- */
.pg-inner-body {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.85;
}

/* ---- 在线商城：四图 2×2 网格 ---- */
.store-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;   /* 整体水平居中 */
    justify-items: center;
    align-items: end;
    column-gap: 168px;
    row-gap: 100px;
    margin-top: 20px;
}

.store-item {
    display: block;
    transition: transform .25s ease, opacity .25s ease;
}

.store-item:hover {
    transform: translateY(-4px);
    opacity: .85;
}

.store-item img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ---- 联系我们：四块文字 2×2 网格（布局同在线商城） ---- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;   /* 整体水平居中 */
    align-items: start;        /* 内容顶部对齐 */
    column-gap: 168px;
    row-gap: 100px;
    margin-top: 20px;
}

.contact-item {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 标题行：一行、加粗、24px */
.contact-item__title {
    font-weight: 700;
    font-size: 24px;
    color: #2c4a39;
    line-height: 1.4;
    white-space: nowrap;
    margin-bottom: 12px;
}

/* 地址行 / 电话行：16px */
.contact-item__row {
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.9;
}

/* ---- 联系我们页专属覆盖（不影响在线商城等其它页面） ---- */
.pg-wrap--contact.has-bg {
    padding-bottom: 500px;
}

.pg-contact-us .contact-grid {
    column-gap: 68px;
    row-gap: 70px;
}

/* ---- 在线商城 / 联系我们 响应式 ---- */
@media (max-width: 768px) {
    .store-grid,
    .contact-grid {
        column-gap: 60px;
        row-gap: 80px;
    }
    .contact-item__title { font-size: 20px; white-space: normal; }
}

@media (max-width: 480px) {
    .store-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        row-gap: 80px;
    }
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
    .pg-wrap--ribbon {
        padding-left: 60px;
        padding-right: 60px;
    }
    /* 突出 25px：-(60 + 25) */
    .pg-ribbon-title {
        margin-left: -85px;
    }
}

@media (max-width: 768px) {
    .pg-topbar { height: 60px; }
    .pg-topbar__title { font-size: 20px; }

    .pg-wrap--ribbon {
        padding-top: 50px;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .pg-ribbon-title {
        margin-left: -1.25rem;
        padding-left: calc(1.25rem + 15px);
    }

    .pg-inner-body { font-size: 16px; }
}

/* ---- 响应式 ---- */
@media (max-width: 1210px) {
    .pg-wrap {
        max-width: 100%;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 768px) {
    .pg-wrap { padding-top: 40px;padding-bottom:80px; }
    .pg-wrap.has-bg { padding-bottom: 180px; }
}

@media (max-width: 480px) {
    .pg-wrap.has-bg { padding-bottom: 120px; }
}

/* ============================================================
   分类页 — 顶部导航条 + 子分类导航
   ============================================================ */

/* 整体容器：全宽 73px，底部 1px 边框 */
.cat-topbar {
    width: 100%;
    height: 73px;
    border-bottom: 1px solid rgb(44, 74, 57);
    background: #fff;
    box-sizing: border-box;
}

.cat-topbar__inner {
    max-width: 1210px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 32px;
    box-sizing: border-box;
}

/* 左侧：分类名称 */
.cat-topbar__title {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 25px;
    color: #2c4a39;
    margin: 0;
    line-height: 1.2;
    text-decoration: none;
    flex-shrink: 0;
}
.cat-topbar__title:hover { color: #2c4a39; opacity: .75; }

/* 右侧：子分类导航 */
.cat-topbar__nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.cat-subnav {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 32px;
    height: 100%;
}

/* 每个子分类项 */
.cat-subnav__item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.cat-subnav__item a {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #2c4a39;
    text-decoration: none;
    transition: opacity .2s;
    white-space: nowrap;
}


/* 激活状态：底部指示线 76×3px，贴在 topbar 下边框的正上方 */
.cat-subnav__item.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;                /* 贴到 topbar 内底部 = 下边框正上方 */
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 3px;
    background: #2c4a39;
}

/* ---- 分类页占位 / 公共 ---- */
.cat-no-posts {
    text-align: center;
    padding: 40px 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ---- 分类页响应式 ---- */
@media (max-width: 768px) {
    .cat-topbar { height: auto; min-height: 60px; }
    .cat-topbar__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 20px;
        gap: 8px;
    }
    .cat-topbar__title { font-size: 20px; }
    .cat-subnav {
        gap: 20px;
        height: auto;
        flex-wrap: wrap;
    }
    .cat-subnav__item {
        height: auto;
        padding-bottom: 6px;
    }
    .cat-subnav__item a { font-size: 18px; }
    .cat-subnav__item.is-active::after {
        bottom: 0;
        width: 60px;
    }
}

/* ============================================================
   新闻资讯 — 文章列表（交替布局）
   ============================================================ */
.news-list { }

/* 单行文章：左右两栏，间距 80px */
.news-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 80px;
}

/* 偶数行翻转（左文右图） */
.news-row--even {
    flex-direction: row-reverse;
}

/* ---- 图片区 ---- */
.news-row__img {
    width: 472px;
    height: 315px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.news-row__img a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-row__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .35s ease;
}

.news-row__img a:hover img {
    transform: scale(1.04);
}

.news-row__img-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(44,74,57,.1);
}

/* ---- 文字区 ---- */
.news-row__text {
    width: 430px;
    height: 315px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* 文章标题：24px 加粗，自动换行 */
.news-row__title {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #000;
    line-height: 1.5;
    margin: 0;
}

.news-row__title a {
    color: #000;
    text-decoration: none;
    transition: opacity .2s;
}

/* "点击查看详情"：18px */
.news-row__link {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #000;
    text-decoration: none;
    transition: opacity .2s;
    text-align: right;
}
.news-row--even .news-row__link{
    text-align: left;
}

/* ---- 行间分割线 ---- */
.news-divider {
    border: none;
    border-top: 1px solid #000;
    margin: 80px 0;
}

/* 最后一条分割线隐藏 */
.news-list .news-divider:last-child {
    display: none;
}

/* ---- 加载更多按钮 ---- */
.load-more-wrap {
    text-align: center;
    margin: 40px 0 20px;
}

.load-more-btn {
    min-width: 200px;
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
}

.load-more-btn.is-loading {
    opacity: .6;
    pointer-events: none;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
    .news-row { gap: 40px; }
    .news-row__img { width: 380px; height: 253px; }
    .news-row__text { width: auto; flex: 1; height: 253px; min-width: 0; }
}

@media (max-width: 768px) {
    .news-row,
    .news-row--even {
        flex-direction: column;
        gap: 20px;
    }
    .news-row__img { width: 100%; height: auto; aspect-ratio: 472 / 315; }
    .news-row__text { width: 100%; height: auto; gap: 16px; }
    .news-divider { margin: 50px 0; }
    .news-row__title { font-size: 20px; }
}

/* ============================================================
   产品家族 — 卡片网格
   ============================================================ */

/* 三列网格，卡片固定宽度，居中 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 358px);
    justify-content: center;
    gap: 40px 30px;
}

/* ---- 单个卡片 ---- */
.product-card {
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 15px 0 rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow .3s, transform .3s;
    width: 358px;
    height: 509px;
}

.product-card:hover {
    box-shadow: 0 14px 28px 0 rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

/* 横图卡片跨两列：宽 = 358*2 + 30间距 = 746px */
.product-card--wide {
    grid-column: span 2;
    width: auto;
    height: 509px;
}

/* 横图卡片：图片区域与普通卡片同高，保持标题对齐 */
.product-card--wide .product-card__img {
    width: 100%;
    height: 340px;
}

.product-card--wide .product-card__link {
    padding: 40px 40px 30px;
}

.product-card__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 40px 24px 30px;
    box-sizing: border-box;
}

/* 封面图容器 — 固定 230×340，图片完整居中显示 */
.product-card__img {
    width: 230px;
    height: 340px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 横图卡片：图片区域全宽，高度与普通卡片一致 */
.product-card--wide .product-card__img {
    width: 100%;
    height: 340px;
}

.product-card__img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: transform .35s ease;
}

.product-card:hover .product-card__img img {
    transform: scale(1.04);
}

.product-card__img-placeholder {
    width: 230px;
    height: 340px;
    background: rgba(44,74,57,.08);
    border-radius: 8px;
}

/* 产品名称：思源黑体、加粗、24px */
.product-card__name {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #000;
    margin: 40px 0 0;
    line-height: 1.4;
    text-align: center;
    flex-shrink: 0;
}

/* 查看详情：思源黑体、18px */
.product-card__detail {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #000;
    margin: 0;
    transition: opacity .2s;
    text-align: center;
    flex-shrink: 0;
}

.product-card:hover .product-card__detail { opacity: .65; }

/* ---- 产品页响应式 ---- */
@media (max-width: 1024px) {
    .product-card__img { width: 180px; height: 266px; }
    .product-card--wide .product-card__img { height: 220px; }
    .product-card__img-placeholder { width: 180px; height: 266px; }
    .product-card__name { font-size: 20px; margin-top: 30px; }
    .product-card__detail { font-size: 16px; }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .product-card { width: auto; height: auto; }
    .product-card--wide { grid-column: span 2; }
    .product-card__link { padding: 30px 16px 24px; }
    .product-card__img { width: 160px; height: 236px; }
    .product-card__img-placeholder { width: 160px; height: 236px; }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-card--wide { grid-column: span 1; }
    .product-card__link { padding: 24px 16px 20px; }
    .product-card__img { width: 70%; height: auto; aspect-ratio: 23 / 34; }
    .product-card--wide .product-card__img { width: 90%; aspect-ratio: 16 / 9; }
}

/* ============================================================
   美食讲堂 — 两列网格
   ============================================================ */

.food-grid {
    display: grid;
    grid-template-columns: repeat(2, 450px);
    justify-content: space-between;
    gap: 50px 0;
}

/* ---- 单个卡片 ---- */
.food-item {
    width: 450px;
}

/* 封面图：450×320，圆角 20px */
.food-item__img {
    width: 450px;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
}

.food-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.food-item:hover .food-item__img img {
    transform: scale(1.04);
}

.food-item__img-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(44,74,57,.08);
}

/* 文字行：标题在完整宽度内居中，查看详情叠加在右侧 */
.food-item__meta {
    position: relative;
    margin-top: 20px;
}

.food-item__title {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #000;
    line-height: 1.4;
    text-align: center;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.food-item__detail {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity .2s;
}

.food-item:hover .food-item__detail { opacity: .65; }

/* ---- 美食讲堂响应式 ---- */
@media (max-width: 1024px) {
    .food-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    .food-item { width: auto; }
    .food-item__img { width: 100%; height: auto; aspect-ratio: 450 / 320; }
    .food-item__title { font-size: 20px; }
    .food-item__detail { font-size: 16px; }
}

@media (max-width: 768px) {
    .food-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .food-item__img { aspect-ratio: 450 / 320; }
}

@media (max-width: 480px) {
    .food-item__title { font-size: 18px; }
    .food-item__detail { font-size: 15px; }
}

/* ============================================================
   文章详情页
   ============================================================ */

.pg-wrap--article {
    background: #f4f4f4;
    max-width: 1210px;
    margin: 0 auto;
    padding: 60px 100px 80px;
    box-sizing: border-box;
}

/* ---- 文章头部 ---- */
.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #1d4528;
    line-height: 1.4;
    margin: 0 0 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: #888;
}

.article-meta a {
    color: #2c4a39;
    text-decoration: none;
}

.article-meta a:hover { text-decoration: underline; }

/* ---- 封面图 ---- */
.article-cover {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.article-cover img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ---- 正文 ---- */
.article-body {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    word-break: break-word;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1d4528;
    margin: 2em 0 .8em;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c4a39;
    margin: 1.6em 0 .6em;
}

.article-body p { margin: 0 0 1.2em; }

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em auto;
    display: block;
}

.article-body blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    border-left: 4px solid #2c4a39;
    background: rgba(44,74,57,.05);
    color: #555;
    border-radius: 0 8px 8px 0;
}

.article-body ul,
.article-body ol {
    padding-left: 1.6em;
    margin-bottom: 1.2em;
}

.article-body a {
    color: #2c4a39;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- 标签 ---- */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #d9d9d9;
}

.article-tags a {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid #2c4a39;
    border-radius: 20px;
    font-size: 13px;
    color: #2c4a39;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.article-tags a:hover {
    background: #2c4a39;
    color: #fff;
}

/* ---- 上一篇 / 下一篇 ---- */
.article-nav {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #d9d9d9;
}

.article-nav__item {
    flex: 1;
    min-width: 0;
}

.article-nav__next { text-align: right; }

.article-nav__label {
    display: block;
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.article-nav__link {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2c4a39;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    transition: color .2s;
}

.article-nav__link:hover { color: #1d4528; text-decoration: underline; }

/* ---- 相关推荐 ---- */
.related-posts {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #d9d9d9;
}

.related-posts__heading {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1d4528;
    margin: 0 0 30px;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 单个相关文章卡片 — 横向排列 */
.related-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    transition: box-shadow .3s, transform .3s;
}

.related-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    transform: translateY(-3px);
}

.related-card__img {
    width: 100%;
    height: 140px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.related-card__img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s;
}

/* 竖图：完整显示不裁切 */
.related-card__img img.is-portrait {
    width: auto;
    max-height: 100%;
    object-fit: contain;
}

.related-card:hover .related-card__img img { transform: scale(1.05); }

.related-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(44,74,57,.08);
}

.related-card__text {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.related-card__title {
    font-family: 'SourceHanSansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card__date {
    font-size: 12px;
    color: #aaa;
}

/* ---- 文章详情页响应式 ---- */
@media (max-width: 1024px) {
    .pg-wrap--article { padding: 40px 60px 60px; }
    .article-title { font-size: 28px; }
    .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pg-wrap--article { padding: 30px 20px 50px; }
    .article-title { font-size: 24px; }
    .article-body { font-size: 15px; }
    .article-nav { flex-direction: column; gap: 20px; }
    .article-nav__next { text-align: left; }
    .related-posts__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .related-card__img { height: 120px; }
}

@media (max-width: 480px) {
    .related-posts__grid { grid-template-columns: 1fr; }
    .article-title { font-size: 22px; }
}
