/* ============================================================
   纬衡官网 GEO/知识课堂页面 公共样式 (quetal 系列)
   ------------------------------------------------------------
   目的：把「正文排版 / 标题层级 / 列表 / 结语 / 相关文章」全部收口到本文件，
        不再依赖每个页面里的内联 <style>，避免样式互相干扰。
   注意：本文件在 basic.css 之后加载，且选择器带 article/main 前缀，
        可覆盖 basic.css 中 .pro-main li / .pro-main a 等全局规则。
   ============================================================ */

/* ---------- 1. 文章容器 ---------- */
.pro-main article {
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

/* ---------- 2. 唯一 H1 ---------- */
.pro-main article h1 {
    font-size: 26px;
    line-height: 1.4;
    color: #1a3a6b;
    margin: 0 0 18px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #6696ff;
}

/* ---------- 3. 摘要 ---------- */
.pro-main .article-abstract {
    background: #f4f8ff;
    border-left: 4px solid #6696ff;
    padding: 14px 18px;
    margin-bottom: 24px;
    border-radius: 0 4px 4px 0;
}
.pro-main .article-abstract p {
    font-size: 15px;
    line-height: 1.9;
    color: #44506b;
    margin: 0;
}

/* ---------- 4. 正文基础 ---------- */
.pro-main article main {
    display: block;
    font-size: 15px;
    line-height: 2;
    color: #333;
}
.pro-main article main p {
    margin: 0 0 12px 0;
}

/* 正文内链接必须保持行内（basic.css 的 .pro-main a 是 block + padding:10px） */
.pro-main article main a {
    display: inline;
    padding: 0;
    color: #1a73e8;
    text-decoration: underline;
}
.pro-main article main a:hover { color: #0b57c4; }

.pro-main article main strong { color: #17345e; font-weight: 700; }
.pro-main article main em { font-style: normal; color: #b45309; }

/* ---------- 5. 标题层级（h2 / h3 / h4 统一） ---------- */
.pro-main article main h2 {
    font-size: 20px;
    line-height: 1.6;
    color: #1a3a6b;
    margin: 28px 0 14px 0;
    padding: 0 0 0 12px;
    border-left: 4px solid #6696ff;
    font-weight: 700;
}
.pro-main article main h2:first-child { margin-top: 0; }

.pro-main article main h3 {
    font-size: 17px;
    line-height: 1.7;
    color: #1f4c85;
    margin: 22px 0 10px 0;
    padding: 0 0 0 10px;
    border-left: 3px solid #a9c6f5;
    font-weight: 700;
}

.pro-main article main h4 {
    font-size: 15.5px;
    line-height: 1.8;
    color: #2f4f7f;
    margin: 16px 0 8px 0;
    padding: 0;
    border: none;
    font-weight: 700;
}

/* ---------- 6. 列表（关键：覆盖 basic.css 的 .pro-main li{float:left;width:282px}） ---------- */
.pro-main article main ul,
.pro-main article main ol {
    float: none;
    width: auto;
    margin: 10px 0 16px 0;
    padding-left: 26px;
    list-style-position: outside;
}
.pro-main article main ul { list-style: disc outside; list-style-type: disc; }
.pro-main article main ol { list-style: decimal outside; list-style-type: decimal; }
.pro-main article main ul ul { list-style: circle outside; list-style-type: circle; margin: 6px 0 6px 0; }

.pro-main article main li {
    float: none;
    width: auto;
    height: auto;
    border: none;
    margin: 0 0 6px 0;
    padding: 0;
    background: transparent;
    line-height: 1.9;
    display: list-item;
    list-style-position: outside;
    /* basic.css 有 li{list-style-type:none}，直接作用在 li 上，会压过 ul 的继承值；
       这里显式继承父级 ul/ol 的类型，才能正常显示 disc / decimal 圆点 */
    list-style-type: inherit;
}
.pro-main article main li:hover { border-color: transparent; }

/* ---------- 7. 引用 / 表格 / 代码 ---------- */
.pro-main article main blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f6f9fe;
    border-left: 4px solid #9dbdf5;
    border-radius: 0 4px 4px 0;
    color: #3c4a63;
}
.pro-main article main blockquote p:last-child { margin-bottom: 0; }

.pro-main article main table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 18px 0;
    font-size: 14px;
}
.pro-main article main th,
.pro-main article main td {
    border: 1px solid #e2e8f2;
    padding: 8px 10px;
    text-align: left;
    line-height: 1.7;
    vertical-align: top;
}
.pro-main article main th { background: #f2f7ff; color: #1a3a6b; font-weight: 700; }
.pro-main article main tr:nth-child(even) td { background: #fafcff; }

.pro-main article main code {
    background: #f4f6fa;
    border: 1px solid #e6ebf3;
    border-radius: 3px;
    padding: 1px 5px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}
.pro-main article main pre {
    background: #f6f8fb;
    border: 1px solid #e6ebf3;
    border-radius: 4px;
    padding: 12px 14px;
    overflow-x: auto;
    margin: 14px 0;
}
.pro-main article main pre code { border: none; background: transparent; padding: 0; }

/* ---------- 8. 品牌尾注（缺品牌段的页面自动补一句背书） ---------- */
.pro-main article main .brand-note {
    margin: 26px 0 0 0;
    padding: 12px 16px;
    background: #f7f9fc;
    border-left: 4px solid #a9c6f5;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    line-height: 1.9;
    color: #4a5568;
}

/* ---------- 9. 结语区块 ---------- */
.pro-main article main .article-conclusion {
    margin: 30px 0 0 0;
    padding: 18px 20px;
    background: linear-gradient(180deg, #f2f7ff 0%, #fafcff 100%);
    border: 1px solid #dbe6f7;
    border-left: 5px solid #1a73e8;
    border-radius: 6px;
}
.pro-main article main .article-conclusion h2.conclusion-title {
    margin: 0 0 10px 0;
    padding: 0;
    border: none;
    font-size: 18px;
    line-height: 1.6;
    color: #1a3a6b;
}
.pro-main article main .article-conclusion p {
    margin: 0 0 10px 0;
    color: #34405a;
}
.pro-main article main .article-conclusion p:last-child { margin-bottom: 0; }

/* 兼容：结语标题未包裹时（正文中段的「结语」小节） */
.pro-main article main h2.conclusion-title {
    margin: 30px 0 12px 0;
    padding: 0 0 0 12px;
    border-left: 4px solid #1a73e8;
    font-size: 19px;
}

/* ---------- 10. 相关文章（原内联样式迁入，保持视觉一致） ---------- */
.related-articles {
    margin-top: 26px;
    padding: 18px 20px;
    background: #f7f9fc;
    border: 1px solid #e6ebf2;
    border-radius: 6px;
}
.related-articles h2 {
    font-size: 17px;
    color: #1a3a6b;
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 4px solid #1a73e8;
    line-height: normal;
}
.pro-main .related-articles ul {
    list-style: none;
    margin: 0;
    padding: 0;
    float: none;
}
.pro-main .related-articles li {
    list-style: none;
    float: none;
    width: auto;
    height: auto;
    border: none;
    margin: 0;
    padding: 5px 0;
    background: transparent;
    display: block;
    border-bottom: 1px dashed #e6ebf2;
}
.pro-main .related-articles li:last-child { border-bottom: none; }
.pro-main .related-articles a {
    display: block;
    padding: 0;
    color: #2f6fb0;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.8;
}
.pro-main .related-articles a:hover { color: #1a73e8; text-decoration: underline; }

/* ---------- 11. 响应式 ---------- */
@media (max-width: 767px) {
    .pro-main article { padding: 16px 14px; }
    .pro-main article h1 { font-size: 21px; }
    .pro-main article main h2 { font-size: 18px; }
    .pro-main article main h3 { font-size: 16px; }
    .pro-main article main { font-size: 14.5px; line-height: 1.9; }
    .pro-main article main table { font-size: 13px; }
}
