/* ============================================================
 * Richitek 单页栏目 (lists_single.htm) 专用样式
 * 结构：左侧产品栏(left.htm) + 右侧标题 + 富文本正文
 * 布局：流式 Flex，无绝对定位，无高度补偿 JS，移动端自适应
 * ============================================================ */

/* ---------- 变量 ---------- */
.rtk-sg-layout {
    --sg-font: Source Han Sans, Geneva, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --sg-primary: #0066cc;
    --sg-primary-light: #00a8ff;
    --sg-text: #333;
    --sg-text-sub: #777;
}

/* ---------- 面包屑：与 1680px 布局容器同宽对齐（ID 选择器压过 header.css 后加载的同权重规则） ---------- */
#smv_AreaMainWrapper .rtk-crumb-row {
    max-width: 1680px;
    padding-left: 24px;
    padding-right: 24px;
}

/* ---------- PC 端布局 ---------- */
.rtk-sg-layout {
    max-width: 1680px;
    margin: 0 auto;
    padding: 24px 24px 48px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    font-family: var(--sg-font);
}

/* 左侧产品栏（left.htm 结构保持不变，仅参与 flex 布局） */
.rtk-sg-layout .col-left {
    flex: 0 0 240px;
}

/* 右侧主体 */
.rtk-sg-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---------- 页面标题 ---------- */
.rtk-sg-title {
    font-family: var(--sg-font);
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #eef2f7;
    position: relative;
}

.rtk-sg-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 64px;
    height: 2px;
    background: linear-gradient(90deg, var(--sg-primary), var(--sg-primary-light));
}

/* ---------- 富文本正文 ---------- */
.rtk-sg-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--sg-text);
    word-wrap: break-word;
}

.rtk-sg-content p {
    margin: 0 0 14px;
}

/* 保留后台编辑器写入的列表层级 */
.rtk-sg-content ul,
.rtk-sg-content ol {
    list-style: revert;
    padding-left: 40px;
    margin: 0 0 14px;
}

.rtk-sg-content li {
    list-style: revert;
    margin: 0 0 6px;
}

.rtk-sg-content img {
    max-width: 100% !important;
    height: auto !important;
}

.rtk-sg-content a {
    color: var(--sg-primary);
}

.rtk-sg-content h2,
.rtk-sg-content h3,
.rtk-sg-content h4 {
    color: #1a1a1a;
    line-height: 1.4;
    margin: 24px 0 12px;
}

/* ---------- 响应式（PC 端窄屏 / 平板，≤1000px 由移动端模板接管） ---------- */
@media (max-width: 1180px) {
    .rtk-sg-layout {
        gap: 20px;
        padding: 20px 16px 40px;
    }

    .rtk-sg-layout .col-left {
        flex: 0 0 210px;
    }

    .rtk-sg-title {
        font-size: 22px;
    }
}

/* ============================================================
 * 移动端适配（≤1000px，与全站 pc-show/mobile-show 切换断点一致）
 * 单套代码响应式：隐藏侧栏，正文自适应（参数取自原移动端区块）
 * ============================================================ */
@media (max-width: 1000px) {
    /* 轮播图高度适配（特异性对齐 banner.css 的 div.pc-banners 前缀） */
    div.pc-banners .carousel-container {
        height: 340px;
    }

    /* 布局：隐藏侧边栏，主体单列全宽 */
    .rtk-sg-layout {
        display: block;
        padding: 14px 12px 24px;
    }

    .rtk-sg-layout .col-left {
        display: none !important;
    }

    .rtk-sg-title {
        font-size: 20px;
        margin: 6px 0 14px;
        padding-bottom: 10px;
    }

    .rtk-sg-title::after {
        width: 48px;
    }

    /* 富文本正文：参数取自原 rtk-sgm-content */
    .rtk-sg-content {
        font-size: 14px;
        line-height: 1.75;
    }

    .rtk-sg-content p {
        margin: 0 0 12px;
    }

    .rtk-sg-content ul,
    .rtk-sg-content ol {
        list-style: revert;
        padding-left: 26px;
        margin: 0 0 12px;
    }

    .rtk-sg-content li {
        list-style: revert;
        margin: 0 0 5px;
    }

    .rtk-sg-content img {
        max-width: 100% !important;
        height: auto !important;
    }

    .rtk-sg-content h2,
    .rtk-sg-content h3,
    .rtk-sg-content h4 {
        color: #1a1a1a;
        line-height: 1.4;
        margin: 18px 0 10px;
    }

    /* 后台正文内的 48px 大标题在移动端收小，避免撑破屏幕 */
    .rtk-sg-content [style*="font-size:48px"],
    .rtk-sg-content [style*="font-size: 48px"] {
        font-size: 24px !important;
    }
}

/* 小屏进一步压紧间距 */
@media (max-width: 360px) {
    .rtk-sg-layout {
        padding: 10px 10px 20px;
    }

    .rtk-sg-content {
        font-size: 13px;
    }

    .rtk-sg-content [style*="font-size:48px"],
    .rtk-sg-content [style*="font-size: 48px"] {
        font-size: 21px !important;
    }
}
