/* ============================================================
   听心树 — 单页 / 文档页  v4.0
   ============================================================ */

.zh_doc_layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    align-items: flex-start;
}

/* ===== 文章卡 ===== */
.zh_doc_article {
    background: #fff;
    border: 1px solid var(--zh-border);
    border-radius: var(--zh-radius-lg);
    overflow: hidden;
    box-shadow: var(--zh-shadow-sm);
}
.zh_doc_head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 28px 36px 22px;
    border-bottom: 1px solid var(--zh-border);
    background: linear-gradient(120deg, #F4FAF8 0%, #FDF7F3 100%);
}
.zh_doc_head_icon {
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 15px;
    background: var(--zh-grad-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: 0 8px 20px rgba(45, 110, 100, .22);
}
.zh_doc_head h2 {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 700;
    color: var(--zh-text-primary);
    line-height: 1.45;
}
.zh_doc_head_meta {
    display: flex;
    align-items: center;
    gap: 8px 18px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--zh-text-muted);
}
.zh_doc_head_meta span { display: inline-flex; align-items: center; gap: 6px; }
.zh_doc_head_meta i { color: var(--zh-primary-mid); font-size: 11.5px; }

/* 富文本 */
.zh_doc_content {
    padding: 30px 36px 36px;
    font-size: 15px;
    line-height: 2.05;
    color: var(--zh-text-body);
    word-break: break-word;
}
.zh_doc_content > *:first-child { margin-top: 0; }
.zh_doc_content p { margin: 0 0 16px; }
.zh_doc_content h1, .zh_doc_content h2,
.zh_doc_content h3, .zh_doc_content h4 {
    color: var(--zh-text-primary);
    font-weight: 700;
    line-height: 1.5;
    margin: 30px 0 13px;
    padding-left: 14px;
    position: relative;
}
.zh_doc_content h1::before, .zh_doc_content h2::before,
.zh_doc_content h3::before, .zh_doc_content h4::before {
    content: "";
    position: absolute;
    left: 0; top: .28em; bottom: .28em;
    width: 4px;
    border-radius: 3px;
    background: var(--zh-grad-coral);
}
.zh_doc_content h1 { font-size: 21px; }
.zh_doc_content h2 { font-size: 19px; }
.zh_doc_content h3 { font-size: 17px; }
.zh_doc_content h4 { font-size: 15.5px; }
.zh_doc_content ul, .zh_doc_content ol { padding-left: 24px; margin: 0 0 16px; }
.zh_doc_content li { margin-bottom: 8px; }
.zh_doc_content li::marker { color: var(--zh-primary); }
.zh_doc_content a { color: var(--zh-primary); text-decoration: underline; }
.zh_doc_content a:hover { color: var(--zh-coral-hover); }
.zh_doc_content img { max-width: 100%; height: auto; border-radius: var(--zh-radius-md); margin: 14px 0; }
.zh_doc_content blockquote {
    margin: 18px 0;
    padding: 14px 22px;
    border-left: 3px solid var(--zh-primary);
    background: var(--zh-primary-ghost);
    border-radius: 0 var(--zh-radius-sm) var(--zh-radius-sm) 0;
}
.zh_doc_content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.zh_doc_content th, .zh_doc_content td {
    border: 1px solid var(--zh-border);
    padding: 10px 14px;
    font-size: 14px;
}
.zh_doc_content th { background: var(--zh-bg-tint); color: var(--zh-text-primary); font-weight: 600; }
.zh_doc_content hr { border: none; border-top: 1px solid var(--zh-border); margin: 26px 0; }
.zh_doc_empty {
    text-align: center;
    padding: 52px 20px;
    color: var(--zh-text-muted);
    font-size: 14px;
}
.zh_doc_empty i { display: block; font-size: 30px; margin-bottom: 12px; color: var(--zh-border-strong); }

/* 表格横向滚动包裹 */
.zh_doc_content .zh_table_scroll { overflow-x: auto; }

/* ===== 右侧栏 ===== */
.zh_doc_side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.zh_doc_card {
    background: #fff;
    border: 1px solid var(--zh-border);
    border-radius: var(--zh-radius-lg);
    overflow: hidden;
}
.zh_doc_card_head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 15px 20px;
    background: var(--zh-bg-tint);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--zh-text-primary);
    border-bottom: 1px solid var(--zh-border);
}
.zh_doc_card_head i { color: var(--zh-primary); font-size: 13px; }
.zh_doc_card_body { padding: 14px 18px 18px; }

.zh_doc_nav { list-style: none; margin: 0; padding: 0; }
.zh_doc_nav li { margin-bottom: 7px; }
.zh_doc_nav li:last-child { margin-bottom: 0; }
.zh_doc_nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--zh-radius-sm);
    font-size: 13.5px;
    color: var(--zh-text-body);
    transition: all .22s ease;
}
.zh_doc_nav a i { font-size: 11px; color: var(--zh-text-muted); }
.zh_doc_nav a:hover { background: var(--zh-primary-ghost); color: var(--zh-primary); }
.zh_doc_nav a:hover i { color: var(--zh-primary); }
.zh_doc_nav a.zh_active {
    background: var(--zh-primary);
    color: #fff;
    font-weight: 600;
}
.zh_doc_nav a.zh_active i { color: #fff; }

/* 联系块 */
.zh_doc_contact { display: flex; flex-direction: column; }
.zh_doc_contact_item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--zh-border);
}
.zh_doc_contact_item:last-child { border-bottom: none; }
.zh_doc_contact_icon {
    width: 32px; height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--zh-primary-soft);
    color: var(--zh-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
}
.zh_doc_contact_label { font-size: 11.5px; color: var(--zh-text-muted); letter-spacing: 1px; }
.zh_doc_contact_value { font-size: 13.5px; font-weight: 600; color: var(--zh-text-primary); line-height: 1.6; word-break: break-all; }
.zh_doc_contact_value.zh_big { font-size: 19px; color: var(--zh-coral-hover); letter-spacing: .3px; }

/* CTA */
.zh_doc_cta {
    background: var(--zh-grad-deep);
    border-radius: var(--zh-radius-leaf);
    padding: 24px 22px;
    text-align: center;
    color: rgba(234, 244, 241, .7);
    position: relative;
    overflow: hidden;
}
.zh_doc_cta::after {
    content: "";
    position: absolute;
    right: -40px; top: -40px;
    width: 150px; height: 150px;
    border-radius: 62% 38% 55% 45%;
    background: rgba(155, 201, 138, .1);
}
.zh_doc_cta h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: #fff; position: relative; z-index: 2; }
.zh_doc_cta p { margin: 0 0 16px; font-size: 12.5px; line-height: 1.75; position: relative; z-index: 2; }
.zh_doc_cta .zh_btn { position: relative; z-index: 2; }

/* 响应式 */
@media (max-width: 1024px) {
    .zh_doc_layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .zh_doc_side { position: static; }
}
@media (max-width: 768px) {
    .zh_doc_head { padding: 20px 18px 16px; gap: 12px; }
    .zh_doc_head_icon { width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }
    .zh_doc_head h2 { font-size: 18px; }
    .zh_doc_content { padding: 22px 18px 26px; font-size: 14.5px; line-height: 1.95; }
}
