@charset "utf-8";
/* ==========================================================================
 * 房产知识 · 文章详情页（/xxx-article/{id}.html → Index/detail.html）专项优化 v1
 * 覆盖「过户服务 → 相关百科 / 相关问答」进入的所有文章页
 * 仅本页加载（body.article-page 作用域），不影响站内其他页面
 * 只做呈现层调整，不改动任何业务逻辑与接口数据
 *
 * 【为什么需要这个文件】
 * 该页用到的 .index_width25 / .index_top_img / .index_top_text / .left_wz /
 * .right_title / .right_time / .right_img / .baike_list / .rele_title 这些类，
 * 在公共 style.css 里**根本没有定义**（同类样式只存在于 home-beautify.css /
 * service-beautify.css，且被 body.home-page / body.service-page 作用域锁住）。
 * 所以这一页的 8 个服务入口和相关百科列表是「裸奔」的，排列混乱。
 * ========================================================================== */

/* ---------- 0. 基础 ---------- */
body.article-page {
    background: #f5f6f8;
}
body.article-page .index_block,
body.article-page .user_function,
body.article-page .baike_list,
body.article-page a.index_width25 {
    box-sizing: border-box;
}

/* ---------- 1. 顶部 8 个过户服务入口 ----------
 * 原状：a.index_width25 没有任何宽度约束，只是 flex 容器里的裸 <a> + 原尺寸图片，
 * 8 个图标大小不一、换行错乱。改为 4×2 网格。 */
body.article-page .index_block {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    margin: 10px 12px 0 !important;
    padding: 10px 6px !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(31, 39, 51, .05);
}
body.article-page a.index_width25 {
    width: 25%;
    margin: 0 0 6px;
    padding: 8px 2px;
    display: block;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s, transform .12s;
}
body.article-page a.index_width25:active {
    background: #fff6ef;
    transform: scale(.94);
}
body.article-page a.index_width25 .index_top_img {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff7f1;
    overflow: hidden;
}
body.article-page a.index_width25 .index_top_img img {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
}
body.article-page a.index_width25 .index_top_text {
    margin-top: 6px;
    font-size: 12px;
    color: #4a5058;
    line-height: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 2. 文章标题 ---------- */
body.article-page .art_h1 {
    width: auto;
    margin: 14px 12px 0;
    padding: 16px 16px 12px;
    background: #fff;
    border-radius: 12px 12px 0 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 28px;
    color: #1a1a1a;
    text-align: left;
    letter-spacing: .2px;
}
/* 标题下方跟一条浅分割线，和正文连成一张卡 */
body.article-page .art_h1::after {
    content: '';
    display: block;
    height: 1px;
    margin: 12px -16px -12px;
    background: #f0f1f3;
}

/* ---------- 3. 文章正文 ----------
 * 原来：宽度只有 90%、无内边距、行高继承 35px（过大且无段落间距）。
 * 正文内容还带一处被截断的行内样式 font-family:"，导致 p 上的字号丢失。 */
body.article-page .art_body {
    width: auto !important;
    margin: 0 12px !important;
    padding: 14px 16px 18px !important;
    background: #fff;
    border-radius: 0 0 12px 12px;
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    text-align: left;
    word-break: break-word;
    overflow-wrap: break-word;
}
body.article-page .art_body p {
    margin: 0 0 14px !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
    color: #333;
}
body.article-page .art_body span {
    font-size: 15px !important;
    line-height: 1.9 !important;
}
/* 【关键修复】原 .user_function img{max-width:85%; height:75%}
 * height:75% 是相对父容器高度的百分比，会把文章配图纵向压扁变形。
 * 改为按宽度等比缩放。 */
body.article-page .art_body img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 12px auto !important;
    border-radius: 8px;
    background: #f2f3f5;
}
body.article-page .art_body div[style*="text-align:center"] {
    text-align: center !important;
}
/* 正文里的表格不留横向溢出 */
body.article-page .art_body table {
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}
body.article-page .art_body td,
body.article-page .art_body th {
    padding: 6px 8px;
    border: 1px solid #eceef1;
    font-size: 13px !important;
    line-height: 1.7 !important;
}
/* 正文里的链接 */
body.article-page .art_body a {
    color: #ff6e00;
    text-decoration: none;
}

/* ---------- 4. 底部导流图 ---------- */
body.article-page .art_banner {
    display: block;
    margin: 12px 12px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(31, 39, 51, .05);
}
body.article-page .art_banner img {
    display: block;
    width: 100% !important;
    height: auto;
    border-radius: 0;
}

/* ---------- 5. 「相关百科」标题 ---------- */
body.article-page .rele_title {
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    margin: 20px 12px 10px !important;
    padding: 0 0 0 10px !important;
    position: relative;
    border-bottom: none !important;
    font-size: 17px !important;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: .3px;
}
body.article-page .rele_title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ff9a3c, #ff6e00);
}

/* ---------- 6. 相关百科列表 ----------
 * 原状：left_wz 70% 与 right_img 30% 都用 float，无 box-sizing；
 * 右侧时间 .right_time 在公共样式里没定义 → 和标题一样大，主次不分。 */
body.article-page .baike_list {
    width: auto !important;
    margin: 0 12px 10px !important;
    padding: 0 !important;
    background: #fff;
    border-bottom: none !important;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(31, 39, 51, .05);
    overflow: hidden;
    transition: transform .12s;
}
body.article-page .baike_list:active {
    transform: scale(.99);
}
body.article-page .baike_list > a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
}
/* 左侧文字区：去掉 float，改 flex 自适应 */
body.article-page .baike_list .left_wz {
    float: none !important;
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 12px;
}
body.article-page .baike_list .right_title {
    width: auto !important;
    margin: 0 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    color: #222;
    text-align: left;
    /* 标题最多两行，超出省略，避免把卡片撑高不齐 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
body.article-page .baike_list .right_time {
    margin-top: 6px;
    font-size: 12px;
    line-height: 16px;
    color: #9aa2ad;
}
/* 右侧缩略图：固定方形 + 等比裁切，多张列表高度才一致 */
body.article-page .baike_list .right_img {
    float: none !important;
    width: 84px !important;
    height: 64px;
    flex: 0 0 84px;
    overflow: hidden;
    border-radius: 8px;
    background: #f2f3f5;
}
body.article-page .baike_list .right_img img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

/* ---------- 7. 底部留白（避开固定底栏与 iPhone 手势条） ---------- */
body.article-page .art_bottom_space {
    height: calc(70px + env(safe-area-inset-bottom, 0px));
}
