/* ==========================================================================
   远行者科技 · 内页移动端精修
   适用：使用旧模板（tem/10001）的存量页面
   原则：只在窄屏生效，不碰桌面端，不改任何页面结构，可整批回滚
   ========================================================================== */

@media (max-width: 860px) {

    /* ----------------------------------------------------------------------
       1. 竖版长图不再占满整屏
       新闻与案例里常见手机截图、海报类竖图，原尺寸铺满后一张图就吃掉一屏，
       读者要滑很久才见到正文。限制最大高度，并按比例居中。
       ---------------------------------------------------------------------- */

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

    /* 连续两张图之间留出呼吸空间 */
    .article-content img + img {
        margin-top: .75rem;
    }

    /* ----------------------------------------------------------------------
       2. 正文阅读节奏
       字号从 16px 提到 17px，段落间距略放大；标题与上文拉开，避免黏连。
       ---------------------------------------------------------------------- */

    .article-content {
        font-size: 1.0625rem;
        line-height: 1.92;
    }

    .article-content p {
        margin-bottom: 1.15rem;
    }

    .article-content h2 {
        margin-top: 1.85rem;
        margin-bottom: .85rem;
        font-size: 1.25rem;
    }

    .article-content h3 {
        margin-top: 1.45rem;
        margin-bottom: .7rem;
        font-size: 1.1rem;
    }

    .article-content ul,
    .article-content ol {
        padding-left: 1.35rem;
    }

    .article-content li {
        margin-bottom: .45rem;
    }

    /* 正文里的引用与分割线 */
    .article-content blockquote {
        margin: 1.25rem 0;
        padding: .85rem 1rem;
        border-left: 3px solid #6D2DCC;
        background: #f6f5fa;
        border-radius: 0 .4rem .4rem 0;
    }

    /* ----------------------------------------------------------------------
       3. 列表页卡片图
       统一 4:3 裁切，避免不同尺寸的图把卡片撑成参差不齐的高度。
       ---------------------------------------------------------------------- */

    .thumb-4x3 {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    /* ----------------------------------------------------------------------
       4. 页脚长链接不撑破版面
       ---------------------------------------------------------------------- */

    .footer-linklist {
        line-height: 2.1;
    }

    .footer-copyright {
        word-break: break-all;
    }

    /* ----------------------------------------------------------------------
       5. 正文数据表：窄屏横向滚动，不撑破版面
       新版 GEO 文章每篇至少一张数据表，旧模板没有表格样式，
       表格会按内容宽度硬撑，导致整页出现横向滚动条。
       用法：文章里的 <table> 外层套 <div class="table-wrap">。
       ---------------------------------------------------------------------- */

    .article-content .table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 1rem 0 1.25rem;
    }

    .article-content .table-wrap > table {
        min-width: 560px;
        margin: 0;
        font-size: 0.875rem;
    }

    .article-content .table-wrap th,
    .article-content .table-wrap td {
        white-space: nowrap;
    }
}

/* 尊重系统的减少动效设置 */
@media (prefers-reduced-motion: reduce) {
    .article-content img {
        transition: none;
    }
}
