@charset "utf-8";
/* ==========================================================================
   FAQ page (ldcms template: list_faq.html)
   Design source: 1920px mock-up, content column 1520px centered.
   左列分组标题 + 右列问答列表（每行 99px，1px #3f3f3f 分隔线）
   ========================================================================== */

/* ---------- Hero ---------- */
/* 高度 / 垂直居中的基础样式来自 partner.css 的 .page-hero */
.faq-hero h1 {
    margin: 0 0 12px; /* 与博客列表页 hero 保持一致 */
}
.faq-hero .page-breadcrumb {
    font-size: var(--fs-small);
}

/* ---------- Section ---------- */
.faq-sec {
    padding: 30px 0 70px;
    background: #fff;
}

/* 一组 FAQ：左侧分组标题，右侧问答列表 */
.faq-group {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: start;
}
.faq-group + .faq-group {
    margin-top: 50px;
}
.faq-group-title {
    margin: 0;
    font-size: var(--fs-h4);
    line-height: 100px;
    font-weight: 700;
    color: var(--ink);
}
/* 列表顶部留白：让右侧第一条问题行与左列标题形成设计稿中的错位关系 */
.faq-list {
}

/* ---------- Q&A row ---------- */
.faq-item {
    border-bottom: 1px solid #3f3f3f;
}
.faq-q {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 98px; /* + 1px 上边框 = 设计稿 99px 行高 */
    padding: 20px 0;
    text-align: left;
    font-size: var(--fs-body);
    line-height: 27px;
    color: var(--ink);
    background: none;
    border: 0;
    cursor: pointer;
    transition: color .25s;
}
.faq-q:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}
.faq-q-text {
    /* 颜色跟随父级 button，展开时才能一起变红（不能写死颜色） */
    color: inherit;
    font-weight: 700;
}

/* 加号 / 减号：12×12，线宽 3px，避免依赖图片资源 */
.faq-q-icon {
    position: relative;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-right: 20px;
}
.faq-q-icon::before,
.faq-q-icon::after {
    content: "";
    position: absolute;
    background: #14191f;
    transition: background-color .25s, opacity .25s;
}
/* 横线 */
.faq-q-icon::before {
    left: 0;
    top: 4px;
    width: 12px;
    height: 3px;
}
/* 竖线（展开时隐藏 → 变减号） */
.faq-q-icon::after {
    left: 4px;
    top: 0;
    width: 3px;
    height: 12px;
}
.faq-item.is-open .faq-q-icon::before,
.faq-item.is-open .faq-q-icon::after {
    background: var(--red);
}
.faq-item.is-open .faq-q-icon::after {
    opacity: 0;
}

/* 展开态：问题变红加粗 */
.faq-item.is-open .faq-q {
    color: var(--red);
    font-weight: 700;
}
.faq-item.is-open .faq-q-text {
    color: var(--red);
}

/* ---------- Answer ---------- */
/* 顶部边框与收起时问题行的底部共用一条线，避免双线 */
.faq-a {
    border-top: 1px solid #3f3f3f;
}
.faq-a-inner {
    padding: 28px 13px 30px;
    font-size: var(--fs-small);
    line-height: 28px;
    color: #6b6b6c;
}
/* 富文本（content）归一化：覆盖编辑器写入的内联字号 / 行距 / 颜色 */
.faq-a-inner :where(p, span, font, div, li, td) {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    letter-spacing: normal !important;
}
.faq-a-inner p {
    margin: 0;
    text-indent: 0 !important;
}
.faq-a-inner p + p { margin-top: 14px; }
.faq-a-inner img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}
.faq-a-inner a {
    color: var(--red);
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .faq-group { grid-template-columns: 260px minmax(0, 1fr); }
}
@media (max-width: 991px) {
    .faq-group { grid-template-columns: minmax(0, 1fr); }
    .faq-group-title { margin-bottom: 0; }
    .faq-list { padding-top: 26px; }
    .faq-group + .faq-group { margin-top: 60px; }
}
@media (max-width: 767px) {
    .faq-hero { height: 300px; }
    .faq-sec { padding: 56px 0 64px; }
    .faq-group-title { font-size: 22px; line-height: 27px; }
    .faq-list { padding-top: 20px; }
    .faq-q {
        min-height: 76px;
        padding: 16px 0;
        font-size: 16px;
        line-height: 24px;
    }
    .faq-q-icon { margin-right: 14px; }
    .faq-a-inner {
        padding: 20px 2px 22px;
        font-size: 15px;
        line-height: 26px;
    }
}
@media (max-width: 575px) {
    .faq-hero h1 { font-size: 32px; }
}
