/* ==========================================
   浙江大市场 - 常见问题 / 帮助中心 (faq.css)
   参考中国供应商(gys.cn)、八方资源网(help.b2b168.com)帮助中心：
   搜索 + 热门问题 + 问题分类卡片网格 + 文章弹层
   依赖 common.css
   ========================================== */

.faq-page {
    min-width: 0;
    background: #f5f6f8;
    color: #222;
}

.faq-page .container {
    width: min(1400px, calc(100% - 48px));
}

/* ========== Hero + 搜索 ========== */
.faq-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 60px;
    color: #fff;
    background:
        radial-gradient(circle at 84% 26%, rgba(255, 255, 255, .14) 0 3px, transparent 4px),
        radial-gradient(circle at 90% 70%, rgba(255, 255, 255, .1) 0 5px, transparent 6px),
        linear-gradient(116deg, #ff7a1a 0%, #ff5000 56%, #ed3e00 100%);
    text-align: center;
}

.faq-hero::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: -120px;
    right: -60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.faq-hero_inner {
    position: relative;
    z-index: 1;
}

.faq-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 16px;
}

.faq-breadcrumb a {
    color: rgba(255, 255, 255, .85);
    transition: color .2s;
}

.faq-breadcrumb a:hover {
    color: #fff;
}

.faq-breadcrumb span {
    color: rgba(255, 255, 255, .5);
}

.faq-hero h1 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 9px;
}

.faq-hero_desc {
    font-size: 16px;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 26px;
}

/* 共享 Hero 中的 FAQ 专属内容 */
.faq-page .help-center-hero_content {
    padding-bottom: 34px;
}

.faq-page .help-center-hero h1 {
    margin-bottom: 12px;
}

.faq-page .help-center-hero .faq-hero_desc {
    max-width: 560px;
    margin-bottom: 18px;
    color: #62656b;
}

/* ========== 主体容器 ========== */
.faq-body {
    padding: 40px 0 64px;
}

.faq-section_head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
}

.faq-section_head .faq-bar {
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: linear-gradient(var(--orange), var(--orange-deep));
}

.faq-section_head h2 {
    font-size: 21px;
    font-weight: 700;
    color: #222;
}

.faq-section_head span {
    font-size: 13px;
    color: #9a9fa6;
    margin-left: 2px;
}

/* ========== 热门问题 ========== */
.faq-hot {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 26px 30px 30px;
    margin-bottom: 36px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .04);
}

.faq-hot_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 36px;
}

.faq-hot_item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .18s;
}

.faq-hot_item:hover {
    background: #fafbfc;
}

.faq-hot_rank {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: #c5cad1;
    margin-top: 1px;
}

.faq-hot_item:nth-child(1) .faq-hot_rank,
.faq-hot_item:nth-child(2) .faq-hot_rank,
.faq-hot_item:nth-child(3) .faq-hot_rank {
    background: linear-gradient(135deg, #ff7a1a, #ff5000);
}

.faq-hot_text {
    min-width: 0;
}

.faq-hot_text h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333840;
    margin-bottom: 3px;
    transition: color .18s;
}

.faq-hot_item:hover .faq-hot_text h4 {
    color: var(--orange-deep);
}

.faq-hot_text p {
    font-size: 13px;
    color: #9a9fa6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 问题分类卡片网格 ========== */
.faq-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.faq-cat {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 26px 24px 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .04);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.faq-cat:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(255, 80, 0, .1);
    border-color: var(--orange-line);
}

.faq-cat_head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.faq-cat_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 13px;
    color: var(--orange-deep);
    background: linear-gradient(135deg, #fff3eb, #ffe8d6);
}

.faq-cat_icon :is(svg, img) {
    width: 24px;
    height: 24px;
}

.faq-cat_head h3 {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.faq-cat_head p {
    font-size: 12px;
    color: #9a9fa6;
    margin-top: 2px;
}

.faq-cat_list {
    display: flex;
    flex-direction: column;
}

.faq-cat_q {
    border-bottom: 1px dashed #f0f1f3;
}

.faq-cat_q:last-child {
    border-bottom: 0;
}

.faq-cat_q-text {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 11px 4px;
    font-size: 14px;
    color: #5a6069;
    cursor: pointer;
    transition: color .18s;
}

.faq-cat_q-text::before {
    content: "";
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--orange-line);
    transition: background .18s, transform .18s;
}

.faq-cat_q-text::after {
    content: "";
    margin-left: auto;
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-right: 1.5px solid #c0c4ca;
    border-bottom: 1.5px solid #c0c4ca;
    transform: rotate(45deg);
    transition: transform .2s, border-color .2s;
}

.faq-cat_q-text:hover {
    color: var(--orange-deep);
}

.faq-cat_q-text:hover::before {
    background: var(--orange-deep);
    transform: scale(1.4);
}

.faq-cat_q.is-open>.faq-cat_q-text {
    color: var(--orange-deep);
    font-weight: 600;
}

.faq-cat_q.is-open>.faq-cat_q-text::before {
    background: var(--orange-deep);
}

.faq-cat_q.is-open>.faq-cat_q-text::after {
    border-color: var(--orange-deep);
    transform: rotate(225deg);
}

.faq-answer-data {
    display: none;
    padding: 2px 4px 16px 18px;
    font-size: 13.5px;
    color: #6b7079;
    line-height: 1.85;
}

.faq-cat_q.is-open>.faq-answer-data {
    display: block;
    animation: faqFade .25s ease;
}

.faq-answer-data p {
    margin-bottom: 8px;
}

.faq-answer-data p:last-child {
    margin-bottom: 0;
}

.faq-answer-data a {
    color: var(--orange-deep);
}

.faq-answer-data a:hover {
    text-decoration: underline;
}

@keyframes faqFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 底部求助 ========== */
.faq-support {
    margin-top: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 200px;
    min-height: 168px;
    overflow: hidden;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    background: #fff;
}

/* 左栏：图标+文字 */
.faq-support_left {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px 36px;
}

.faq-support_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f0f4ff;
    color: #3d6fd1;
}

.faq-support_icon :is(svg, img) {
    width: 28px;
    height: 28px;
}

.faq-support_text {
    flex: 1;
    min-width: 0;
}

.faq-support_text h3 {
    margin-bottom: 4px;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.faq-support_text p {
    margin-bottom: 2px;
    color: #737981;
    font-size: 14px;
}

.faq-support_hours {
    font-size: 14px;
    margin-top: 2px;
}

/* 中栏：电话 */
.faq-support_mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* border-left: 1px solid #e8e4e1;
    border-right: 1px solid #e8e4e1; */
    text-decoration: none;
}

.faq-support_phone {
    color: #ff5000;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s;
}

.faq-support_phone:hover {
    color: #e04000;
}

.faq-support_label {
    color: #9a9da3;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* 右栏：二维码 */
.faq-support_right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: #fffaf7;
}

.faq-support_qr-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.faq-support_qr-text {
    margin-top: 9px;
    color: #8a8f95;
    font-size: 13px;
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
    .faq-cats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    .faq-page .container {
        width: calc(100% - 32px);
    }
}

@media (max-width: 720px) {
    .faq-hero h1 {
        font-size: 27px;
    }

    .faq-hot_grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .faq-cats {
        grid-template-columns: 1fr;
    }

    .faq-support {
        grid-template-columns: 1fr;
    }

    .faq-support {
        grid-template-columns: 1fr;
    }

    .faq-support_left {
        padding: 25px 24px;
    }

    .faq-support_mid {
        border-left: 0;
        border-right: 0;
        /* border-top: 1px solid #e8e4e1;
        border-bottom: 1px solid #e8e4e1; */
    }

    .faq-support_right {
        border-top: 1px solid #e8e4e1;
        border-left: 0;
    }
}
