@charset "utf-8";
/* ==========================================================================
   质朋站 · 常见问题（FAQ）模块样式
   batch14 · 2026-10-09
   站点主色：红 #da251c / 深红 #d60904 / 文字 #222 #555 #999 / 边框 #ebebeb
   仅作用于 .h-faq-*（首页区块）与 .faq-*（内页），不影响其它页面。
   ========================================================================== */

/* -------------------------------------------------------------------------
   一、首页「常见问题」区块
   ------------------------------------------------------------------------- */
.h-faq {
    width: 100%;
    margin-top: 4%;
    padding: 4% 0 3%;
    background: #f7f8fa;
    box-sizing: border-box;
}
.h-faq-hd {
    float: left;
    max-width: 70%;
}
.h-faq-hd h2 {
    color: #000;
    font-size: 28px;
    letter-spacing: 3px;
    margin: 0;
    display: inline-block;
    font-weight: normal;
}
.h-faq-hd h2:after {
    content: "";
    display: block;
    height: 1px;
    width: 50px;
    background-color: #d60904;
    margin: 10px 0 0;
}
.h-faq-hd p {
    color: #888;
    font-size: 14px;
    margin: 12px 0 0;
    line-height: 1.6;
}
.h-faq-more {
    float: right;
    color: #da251c;
    font-size: 14px;
    border: 1px solid #da251c;
    border-radius: 18px;
    padding: 9px 18px 8px;
    line-height: 1;
    margin-top: 22px;
    transition: all .25s;
}
.h-faq-more:hover {
    background-color: #da251c;
    color: #fff;
}
.h-faq-list {
    clear: both;
    padding-top: 26px;
}
/* 横向滑动：一行 3 张，左右手动拖动 / 点箭头 / 点圆点切换
   注：css.css / swiper.min.css 在 header 中、文档序晚于本文件，故选择器加 .h-faq-list 提升特异性 */
.h-faq-list .h-faq-swiper {
    width: 100%;
    height: auto;
    overflow: hidden;
    /* 上下留白：避免卡片 hover 上浮 / 阴影被 overflow 裁掉（垂直 padding 不影响 Swiper 宽度计算） */
    padding: 6px 0 22px;
}
.h-faq-list .h-faq-swiper .swiper-wrapper {
    height: auto;
    align-items: stretch;
}
.h-faq-list .h-faq-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
}
.h-faq-item {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.h-faq-item:hover {
    border-color: #f0c9c6;
    box-shadow: 0 8px 22px rgba(218, 37, 28, .12);
    transform: translateY(-2px);
}
/* 问题：大字号 / 深黑 / 加粗 */
.h-faq-q {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.55;
    margin: 0;
    font-weight: bold;
}
.h-faq-q span {
    color: #da251c;
    font-weight: bold;
    margin-right: 6px;
}
/* 答案：小字号 / 冷灰 / 常显（与问题形成字号 + 颜色对比） */
.h-faq-a {
    flex: 1;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ececec;
    color: #8a8a8a;
    font-size: 13px;
    line-height: 1.85;
    word-break: break-word;
}
.h-faq-a-mark {
    float: left;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #f2f2f2;
    color: #9a9a9a;
    border-radius: 3px;
    font-size: 11px;
    font-style: normal;
    font-family: Arial, sans-serif;
    margin: 3px 8px 0 0;
}
.h-faq-a p {
    margin: 0 0 8px;
}
.h-faq-a p:last-child {
    margin-bottom: 0;
}
/* 控制条：左右箭头 + 圆点，居中 */
.h-faq-ctrl {
    clear: both;
    text-align: center;
    padding-top: 26px;
    line-height: 0;
    font-size: 0;
}
.h-faq-ctrl > a,
.h-faq-ctrl > div {
    display: inline-block;
    vertical-align: middle;
}
/* 箭头按钮：用 inline-flex 精确居中图标。
   ⚠️ 不能再用 height:38px + line-height:36px 的写法做垂直居中——
   内容盒(38px)比行盒(36px)高，行盒被顶到内容盒顶部，行内的 inline-block 图标随之
   整体上移约 9px（实测箭头中心 y=3109.11 vs 按钮中心 y=3118.11），箭头不在圆心。
   选择器加 .h-faq-ctrl > 前缀，以压过上面那条 `.h-faq-ctrl > a` 的 inline-block。 */
.h-faq-ctrl > .h-faq-prev,
.h-faq-ctrl > .h-faq-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.h-faq-prev,
.h-faq-next {
    width: 38px;
    height: 38px;
    line-height: 1;
    text-align: center;
    border: 1px solid #e6e6e6;
    border-radius: 50%;
    background: #fff;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    transition: all .25s;
}
.h-faq-prev:hover,
.h-faq-next:hover {
    border-color: #da251c;
    background: #da251c;
    color: #fff;
}
/* 禁用态：不用 opacity —— 白底圆环 + #e6e6e6 描边在区块底色(#f7f8fa)上整体降到 40%
   后对比度只剩 7 级左右，圆环会「消失」，只剩一个孤零零的淡箭头，左右两个按钮看起来
   样式不一致。改为保留与启用态完全相同的圆环，只把箭头调浅（清晰可辨的「不可点」）。 */
.h-faq-prev.swiper-button-disabled,
.h-faq-next.swiper-button-disabled {
    background: #fff;
    border-color: #e6e6e6;
    color: #cfcfcf;
    cursor: default;
}
.h-faq-prev.swiper-button-disabled:hover,
.h-faq-next.swiper-button-disabled:hover {
    border-color: #e6e6e6;
    background: #fff;
    color: #cfcfcf;
}
.h-faq-prev i,
.h-faq-next i {
    font-size: 20px;
    line-height: 1;
}
.h-faq-dots {
    margin: 0 16px;
    line-height: 1;
}
.h-faq-dots .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: #d5d5d5;
    opacity: 1;
    margin: 0 5px;
    transition: all .25s;
}
.h-faq-dots .swiper-pagination-bullet-active {
    background: #da251c;
    width: 22px;
    border-radius: 5px;
}

/* -------------------------------------------------------------------------
   二、内页 /faq.html —— 左分类 / 右问答
   ------------------------------------------------------------------------- */
.faq-wrap {
    width: 100%;
    padding: 40px 0 30px;
    background: #f7f8fa;
    box-sizing: border-box;
}
.faq-side {
    width: 23%;
}
.faq-main {
    width: 74%;
}

/* 左：分类导航 */
.faq-side-hd {
    background: #da251c;
    color: #fff;
    font-size: 15px;
    padding: 13px 16px;
    border-radius: 6px 6px 0 0;
    letter-spacing: 1px;
}
.faq-cates {
    background: #fff;
    border: 1px solid #ebebeb;
    border-top: 0;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}
.faq-cates li {
    border-bottom: 1px solid #f2f2f2;
}
.faq-cates li:last-child {
    border-bottom: 0;
}
.faq-cates li a {
    display: block;
    padding: 13px 16px;
    color: #444;
    font-size: 14px;
    line-height: 1.4;
    border-left: 3px solid transparent;
    transition: all .2s;
}
.faq-cates li a span {
    float: right;
    color: #bbb;
    font-size: 12px;
    line-height: 20px;
}
.faq-cates li a:hover {
    color: #da251c;
    background: #fffafa;
}
.faq-cates li.on a {
    color: #da251c;
    background: #fff6f5;
    font-weight: bold;
    border-left-color: #da251c;
}
.faq-cates li.on a span {
    color: #da251c;
}
.faq-side-cta {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    padding: 16px 18px;
}
.faq-cta-t {
    font-size: 14px;
    color: #222;
    font-weight: bold;
    margin-bottom: 10px;
}
.faq-cta-l {
    font-size: 13.5px;
    color: #666;
    line-height: 2.1;
}
.faq-cta-l a {
    color: #666;
}
.faq-cta-l a:hover {
    color: #da251c;
}
.faq-cta-l i {
    color: #da251c;
    width: 16px;
    display: inline-block;
    text-align: center;
    margin-right: 4px;
}

/* 右：标题栏 + 工具 */
.faq-main-hd {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    padding: 14px 20px;
    overflow: hidden;
}
.faq-main-hd h2 {
    float: left;
    font-size: 20px;
    color: #222;
    line-height: 32px;
    margin: 0;
    letter-spacing: 1px;
    font-weight: normal;
}
.faq-main-hd h2 span {
    font-size: 13px;
    color: #999;
    font-weight: normal;
    margin-left: 10px;
    letter-spacing: 0;
}
.faq-tools {
    float: right;
    line-height: 32px;
}
.faq-search {
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    height: 30px;
    line-height: 30px;
    padding: 0 14px;
    font-size: 13px;
    width: 170px;
    outline: none;
    color: #444;
    vertical-align: middle;
    margin: 1px 0 0;
}
.faq-search:focus {
    border-color: #da251c;
}
.faq-tool-btn {
    display: inline-block;
    margin-left: 12px;
    font-size: 13px;
    color: #da251c;
    vertical-align: middle;
}
.faq-tool-btn:hover {
    text-decoration: underline;
}
.faq-cate-intro {
    background: #fff;
    border: 1px solid #ebebeb;
    border-top: 0;
    padding: 12px 20px;
    color: #888;
    font-size: 13.5px;
    line-height: 1.8;
}

/* 右：问答手风琴 */
.faq-list {
    margin-top: 14px;
}
.faq-item {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}
.faq-item.open {
    border-color: #f0c9c6;
    box-shadow: 0 4px 14px rgba(218, 37, 28, .09);
}
.faq-q {
    position: relative;
    padding: 16px 48px 16px 20px;
    cursor: pointer;
    overflow: hidden;
}
.faq-q:hover .faq-q-text {
    color: #da251c;
}
.faq-q-mark {
    float: left;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #da251c;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    margin: 3px 10px 0 0;
    font-family: Arial, sans-serif;
}
.faq-q-text {
    margin-left: 30px;
    font-size: 15px;
    color: #222;
    font-weight: bold;
    line-height: 1.7;
    transition: color .2s;
}
.faq-q-arrow {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #bbb;
    font-size: 18px;
    transition: transform .25s, color .25s;
}
.faq-item.open .faq-q-arrow {
    transform: rotate(180deg);
    color: #da251c;
}
.faq-a {
    display: none;
    padding: 0 20px 18px;
}
.faq-item.open .faq-a {
    display: block;
}
.faq-a-inner {
    border-top: 1px dashed #ebebeb;
    padding-top: 14px;
    overflow: hidden;
}
.faq-a-mark {
    float: left;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #f4f4f4;
    color: #999;
    border-radius: 4px;
    font-size: 12px;
    margin: 3px 10px 0 0;
    font-family: Arial, sans-serif;
}
.faq-a-text {
    margin-left: 30px;
    color: #555;
    font-size: 14px;
    line-height: 1.95;
    word-break: break-word;
}
.faq-a-text p {
    margin: 0 0 8px;
}
.faq-a-text p:last-child {
    margin-bottom: 0;
}
.faq-a-text ul,
.faq-a-text ol {
    margin: 6px 0;
    padding-left: 20px;
}
.faq-a-text a {
    color: #da251c;
}
.faq-empty {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    padding: 50px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* -------------------------------------------------------------------------
   三、移动端
   ------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
    .h-faq-list {
        padding-top: 22px;
    }
}

@media screen and (max-width: 768px) {
    .h-faq {
        padding: 8% 0 6%;
    }
    .h-faq-hd {
        float: none;
        max-width: 100%;
        text-align: center;
    }
    .h-faq-hd h2:after {
        margin: 10px auto 0;
    }
    .h-faq-more {
        float: none;
        display: inline-block;
        margin: 16px 0 0;
    }
    .h-faq-list {
        padding-top: 18px;
    }
    .h-faq-item {
        min-height: 90px;
    }
    .h-faq-ctrl {
        padding-top: 20px;
    }
    .h-faq-prev,
    .h-faq-next {
        width: 34px;
        height: 34px;
        line-height: 32px;
    }
    .h-faq-dots {
        margin: 0 12px;
    }

    .faq-wrap {
        padding: 20px 0;
    }
    .faq-side,
    .faq-main {
        float: none;
        width: 100%;
    }
    .faq-side {
        margin-bottom: 16px;
    }
    .faq-cates {
        max-height: none;
    }
    .faq-main-hd {
        padding: 12px 14px;
    }
    .faq-main-hd h2 {
        float: none;
        font-size: 17px;
        line-height: 1.6;
    }
    .faq-tools {
        float: none;
        margin-top: 10px;
    }
    .faq-search {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 8px;
    }
    .faq-q {
        padding: 14px 40px 14px 14px;
    }
    .faq-q-arrow {
        right: 14px;
        top: 17px;
    }
    .faq-a {
        padding: 0 14px 16px;
    }
}
