/* =========================================================
   FAQ 详情页
   /static/css/frontend/faq_detail.css
========================================================= */


/* =========================================================
   页面基础
========================================================= */

.faq-detail-page {
    width: 100%;
    min-height: 60vh;
    padding: 26px 0 56px;
    background: #f6f7f9;
    color: #1f2937;
}

.faq-detail-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}


/* =========================================================
   面包屑
========================================================= */

.faq-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 22px;
    color: #8a919c;
    font-size: 14px;
    line-height: 1.6;
}

.faq-detail-breadcrumb a {
    flex: 0 0 auto;
    color: #5f6772;
    text-decoration: none;
}

.faq-detail-breadcrumb a:hover {
    color: #1677ff;
}

.faq-breadcrumb-separator {
    flex: 0 0 auto;
    color: #b0b6bf;
}

.faq-breadcrumb-current {
    min-width: 0;
    overflow: hidden;
    color: #8a919c;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   主体布局
========================================================= */

.faq-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 24px;
}


/* =========================================================
   主内容
========================================================= */

.faq-detail-main {
    min-width: 0;
    padding: 30px 34px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04);
}


/* =========================================================
   头部
========================================================= */

.faq-detail-header {
    padding-bottom: 24px;
    border-bottom: 1px solid #edf0f3;
}

.faq-detail-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 14px;
    padding: 4px 11px;
    border-radius: 16px;
    background: #edf5ff;
    color: #1677ff;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}

.faq-detail-category:hover {
    background: #dcecff;
    color: #0958d9;
}

.faq-detail-title {
    margin: 0;
    color: #182230;
    font-size: 34px;
    line-height: 1.35;
    font-weight: 700;
    word-break: break-word;
}

.faq-detail-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 16px;
    color: #8a919c;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   简短答案
========================================================= */

.faq-short-answer {
    margin-top: 24px;
    padding: 20px 22px;
    border-left: 4px solid #1677ff;
    border-radius: 0 8px 8px 0;
    background: #f2f7ff;
}

.faq-short-answer-label {
    margin-bottom: 8px;
    color: #1677ff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.faq-short-answer-content {
    color: #344054;
    font-size: 16px;
    line-height: 1.85;
    white-space: normal;
}


/* =========================================================
   封面
========================================================= */

.faq-detail-cover {
    margin: 26px 0 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #f3f4f6;
}

.faq-detail-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
    cursor: zoom-in;
}


/* =========================================================
   正文目录
========================================================= */

.faq-content-toc {
    margin-top: 26px;
    padding: 18px 20px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fafbfc;
}

.faq-content-toc-title {
    margin-bottom: 10px;
    color: #344054;
    font-size: 15px;
    font-weight: 600;
}

.faq-content-toc-list {
    display: grid;
    gap: 7px;
}

.faq-content-toc-list a {
    color: #536071;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
}

.faq-content-toc-list a:hover {
    color: #1677ff;
}

.faq-content-toc-list a.is-level-3 {
    padding-left: 18px;
}


/* =========================================================
   富文本正文
========================================================= */

.faq-detail-content {
    margin-top: 28px;
    color: #344054;
    font-size: 16px;
    line-height: 1.9;
    word-break: break-word;
}

.faq-detail-content > *:first-child {
    margin-top: 0;
}

.faq-detail-content > *:last-child {
    margin-bottom: 0;
}

.faq-detail-content p {
    margin: 0 0 18px;
}

.faq-detail-content h2 {
    margin: 34px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf0f3;
    color: #182230;
    font-size: 25px;
    line-height: 1.45;
    font-weight: 650;
    scroll-margin-top: 90px;
}

.faq-detail-content h3 {
    margin: 28px 0 13px;
    color: #253347;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 650;
    scroll-margin-top: 90px;
}

.faq-detail-content h4 {
    margin: 24px 0 12px;
    color: #344054;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 650;
}

.faq-detail-content ul,
.faq-detail-content ol {
    margin: 0 0 20px;
    padding-left: 26px;
}

.faq-detail-content li {
    margin-bottom: 8px;
}

.faq-detail-content a {
    color: #1677ff;
    text-decoration: none;
}

.faq-detail-content a:hover {
    color: #0958d9;
    text-decoration: underline;
}

.faq-detail-content strong {
    color: #182230;
    font-weight: 650;
}

.faq-detail-content blockquote {
    margin: 22px 0;
    padding: 16px 20px;
    border-left: 4px solid #98a2b3;
    background: #f8f9fa;
    color: #536071;
}

.faq-detail-content blockquote p:last-child {
    margin-bottom: 0;
}

.faq-detail-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 22px auto;
    border-radius: 7px;
    cursor: zoom-in;
}

.faq-detail-content figure {
    max-width: 100%;
    margin: 24px auto;
}

.faq-detail-content figure img {
    margin: 0 auto;
}

.faq-detail-content figcaption {
    margin-top: 8px;
    color: #8a919c;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.faq-detail-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    background: #ffffff;
}

.faq-detail-content th,
.faq-detail-content td {
    padding: 11px 12px;
    border: 1px solid #dfe3e8;
    text-align: left;
    vertical-align: top;
}

.faq-detail-content th {
    background: #f5f7fa;
    color: #344054;
    font-weight: 600;
}

.faq-detail-content pre {
    max-width: 100%;
    margin: 22px 0;
    padding: 16px;
    overflow-x: auto;
    border-radius: 7px;
    background: #172033;
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.7;
}

.faq-detail-content code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #f0f2f5;
    color: #c7254e;
    font-size: 0.92em;
}

.faq-detail-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}


/* =========================================================
   联系提示
========================================================= */

.faq-detail-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 38px;
    padding: 22px 24px;
    border: 1px solid #dbe8f8;
    border-radius: 9px;
    background: #f4f8fd;
}

.faq-detail-help h2 {
    margin: 0;
    color: #223149;
    font-size: 19px;
    line-height: 1.45;
}

.faq-detail-help p {
    margin: 7px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}

.faq-detail-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 20px;
    border-radius: 6px;
    background: #1677ff;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
}

.faq-detail-contact-btn:hover {
    background: #0958d9;
    color: #ffffff;
}


/* =========================================================
   底部操作
========================================================= */

.faq-detail-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #edf0f3;
}

.faq-back-list,
.faq-back-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 15px;
    border: 1px solid #d8dde5;
    border-radius: 6px;
    background: #ffffff;
    color: #536071;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
}

.faq-back-list:hover,
.faq-back-top:hover {
    border-color: #1677ff;
    color: #1677ff;
}


/* =========================================================
   侧栏
========================================================= */

.faq-detail-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 84px;
}

.faq-sidebar-card {
    padding: 20px;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
}

.faq-sidebar-title {
    margin: 0 0 15px;
    padding-bottom: 11px;
    border-bottom: 1px solid #edf0f3;
    color: #253347;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 650;
}

.faq-sidebar-info-list {
    display: grid;
    gap: 12px;
}

.faq-sidebar-info-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    color: #8a919c;
    font-size: 13px;
    line-height: 1.6;
}

.faq-sidebar-info-item strong,
.faq-sidebar-info-item a {
    color: #344054;
    font-weight: 500;
    text-align: right;
    text-decoration: none;
}

.faq-sidebar-info-item a:hover {
    color: #1677ff;
}

.faq-sidebar-description {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.75;
}

.faq-sidebar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    margin-top: 16px;
    border: 1px solid #1677ff;
    border-radius: 6px;
    color: #1677ff;
    font-size: 14px;
    text-decoration: none;
    box-sizing: border-box;
}

.faq-sidebar-link:hover {
    background: #1677ff;
    color: #ffffff;
}


/* =========================================================
   侧栏目录
========================================================= */

.faq-sidebar-toc-list {
    display: grid;
    gap: 9px;
}

.faq-sidebar-toc-list a {
    display: block;
    color: #536071;
    font-size: 13px;
    line-height: 1.6;
    text-decoration: none;
}

.faq-sidebar-toc-list a:hover,
.faq-sidebar-toc-list a.is-active {
    color: #1677ff;
}

.faq-sidebar-toc-list a.is-level-3 {
    padding-left: 14px;
    color: #7a8390;
}


/* =========================================================
   图片预览
========================================================= */

.faq-image-viewer {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.86);
    box-sizing: border-box;
}

.faq-image-viewer.is-open {
    display: flex;
}

.faq-image-viewer img {
    display: block;
    max-width: 94vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.faq-image-viewer-close {
    position: absolute;
    top: 14px;
    right: 20px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
}


/* =========================================================
   平板
========================================================= */

@media (max-width: 980px) {

    .faq-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .faq-detail-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: static;
    }

    .faq-sidebar-toc {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   手机
========================================================= */

@media (max-width: 640px) {

    .faq-detail-page {
        padding: 18px 0 36px;
    }

    .faq-detail-container {
        width: min(100% - 20px, 1200px);
    }

    .faq-detail-breadcrumb {
        margin-bottom: 15px;
        font-size: 13px;
    }

    .faq-detail-main {
        padding: 21px 17px;
        border-radius: 8px;
    }

    .faq-detail-title {
        font-size: 26px;
        line-height: 1.4;
    }

    .faq-detail-meta {
        gap: 10px 16px;
        margin-top: 12px;
    }

    .faq-short-answer {
        margin-top: 20px;
        padding: 16px;
    }

    .faq-detail-cover {
        margin-top: 20px;
    }

    .faq-content-toc {
        margin-top: 20px;
        padding: 15px;
    }

    .faq-detail-content {
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.85;
    }

    .faq-detail-content h2 {
        margin-top: 29px;
        font-size: 22px;
    }

    .faq-detail-content h3 {
        margin-top: 24px;
        font-size: 19px;
    }

    .faq-detail-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .faq-detail-help {
        display: block;
        margin-top: 30px;
        padding: 18px;
    }

    .faq-detail-contact-btn {
        width: 100%;
        margin-top: 16px;
        box-sizing: border-box;
    }

    .faq-detail-bottom-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .faq-back-list,
    .faq-back-top {
        width: 100%;
        box-sizing: border-box;
    }

    .faq-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .faq-sidebar-toc {
        grid-column: auto;
    }

    .faq-image-viewer {
        padding: 20px 10px;
    }

}

/* =========================
   FAQ 顶部图片 + 简答
========================= */

.faq-summary-box {

    display:flex;
    gap:30px;
    align-items:flex-start;
    margin-bottom:30px;

}


.faq-summary-image {

    flex:none;
    margin:0;

}


.faq-summary-image img {

    width:300px;
    height:300px;
    object-fit:cover;
    border-radius:8px;

}


.faq-summary-content {

    flex:1;

}



.faq-short-answer {

    background:#f8fafc;
    border-radius:8px;
    padding:20px;

}


.faq-short-answer-label {

    font-size:18px;
    font-weight:600;
    margin-bottom:12px;

}

/* 手机 */

@media(max-width:768px){

    .faq-summary-box {

        flex-direction:column;

    }


    .faq-summary-image img {

        width:100%;
        height:auto;

    }

}