/* --- Main Layout --- */
.faq-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1320px;
    margin: 0 auto 80px;
    border-top: 1px solid #eaeaea;
    /* padding-top: 40px; */
}
.link_blue{
    color: #007AFF;
    text-decoration: underline;
}

/* --- Sidebar Navigation --- */
.faq-content .faq-sidebar {
    width: 280px;
    flex-shrink: 0;
    border: 1px solid #F3F4F6;
    border-radius: 8px;
    position: sticky;
    margin-top: 40px;
    /* top: 40px; */
    top: 160px;
    /* align-self: stretch; */
}

.faq-content .nav-group-title{
    padding-left: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    background: #F9FAFB;
    border-bottom: 1px solid #F3F4F6;
}
.faq-content .nav-group-title a{
    font-size: 14px;
    color: #6A7282 !important;
}

.faq-content .nav-list {
    list-style: none;
}

.faq-content .nav-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 15px;
    text-decoration: none;
    color: #666;
    /* border-radius: 8px; */
    transition: all 0.2s ease;
    font-size: 14px;
}

.faq-content .nav-item a:hover {
    background-color: #f5f5f5;
    color: #333;
}

.faq-content .nav-item.active a {
    color: #222;
    font-weight: bold;
    font-size: 14px;
}

.faq-content .nav-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- 核心修改部分：图片样式 --- */
.faq-content .nav-item-left img {
    width: 20px;  /* 设置图标宽度 */
    height: 20px; /* 设置图标高度 */
    object-fit: contain; /* 保持比例 */
    display: block;
    /* 默认灰色，如果需要彩色图标可去掉此滤镜 */
    opacity: 0.7;
}

/* 激活或悬停时让图标更清晰/变色 */
.faq-content .nav-item.active .nav-item-left img,
.faq-content .nav-item a:hover .nav-item-left img {
    opacity: 1;
}


.faq-content .nav-item i {
    font-size: 18px;
    color: #999;
}

.faq-content .nav-item{
    border-left: 3px solid #fff;
}

.faq-content .nav-item.active{
    border-left: 3px solid #c5a47e;
    font-weight: bold;
}

/* .nav-item.active i {
    color: #c5a47e;
} */

.faq-content .nav-count {
    background-color: #f5f5f5;
    color: #999;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
}

/* .nav-item.active .nav-count {
    background-color: #fff;
    color: #c5a47e;
} */

/* --- FAQ Main Content --- */
.faq-content .faq-main {
    flex-grow: 1;
    min-width: 0; /* Prevents flex item from overflowing its container */
    overflow-y: auto;
}

.faq-content .faq-section {
    /* margin-bottom: 40px; */
    padding-top: 40px;
    scroll-margin-top: 120px;
}
/* .faq-section不是第一个时添加padding-top: 30px; */
/* .faq-section:not(:first-child) {
    padding-top: 30px;
} */

.faq-content .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.faq-content .title-before-icon{
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #F2E8D5;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FDFBF7;
}
.faq-content .title-before-icon img{
    width: 18px;
    height: 18px;
}

.faq-content .section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #444;
}

.faq-content.section-header .count {
    font-size: 14px;
    color: #757575;
}

/* --- Accordion Item --- */
.faq-content .accordion-item {
    /* background-color: #fff; */
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    margin-bottom: 12px;
    /* overflow: hidden; */
    transition: box-shadow 0.2s ease;
}

.faq-content .accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-content .accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}
.faq-content .accordion-header .arrow-icon{
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    cursor: pointer; /* 鼠标放上去显示手型 */
}
/* 可选：当处于 active 状态时，箭头的样式 */
.faq-content .accordion-header .accordion-item.active .arrow-icon {
    /* 如果不想用 JS 控制 transform，也可以在这里写 */
    transform: rotate(180deg);
}

.faq-content .question-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.faq-content .tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: normal;
}

.faq-content .tag.hot { background-color: #FEF5E7; color: #C39D66;border: 1px solid #F2E8D5; }
.faq-content .tag.vip { background-color: #FEF5E7; color: #C39D66;border: 1px solid #F2E8D5; }
.faq-content .tag.ai { background-color: #F3F4F6; color: #444444;border: 1px solid #E5E7EB; }
.faq-content .tag.time { background-color: #F3F4F6; color: #444444;border: 1px solid #E5E7EB; }
.faq-content .tag.transport { background-color: #F3F4F6; color: #444444;border: 1px solid #E5E7EB; }

.faq-content .accordion-icon {
    font-size: 20px;
    color: #999;
    transition: transform 0.3s ease;
}

.faq-content .accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.faq-content .accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-content .accordion-body-inner {
    padding: 0 20px 20px 20px;
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

.faq-content .info-box {
    background-color: #fcfaf7;
    border-left: 3px solid #c5a47e;
    padding: 15px;
    margin-top: 15px;
    border-radius: 0 8px 8px 0;
}

.faq-content .info-box p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color:#4A5565;
    font-size: 14px;
}

.faq-content .info-box img{
    width: 20px;
    height:: 20px;
}
.faq-content .info-box i {
    color: #c5a47e;
    font-size: 18px;
    margin-top: 3px;
}

.faq-content .action-link {
    display: inline-block;
    margin-top: 10px;
    color: #C39D66;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.faq-content .action-link:hover {
    text-decoration: underline;
}

.faq-content .feedback {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 14px;
    color: #6A7282;
}

.feedback-toast{
    display: none;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 4px 8px;
    border-radius: 10px;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    color: #6A7282;
    font-size: 14px;
    margin-left: 10px;
    transition: all 0.2s;
    position: absolute;
    top: -50px;
}
.feedback-toast-help{
    left: 0;
}
.feedback-toast-nothelp{
    right: 0;
}
.feedback-toast.show{
    display:block;
}

.faq-content .feedback-btns{
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position:relative;
}

.faq-content .feedback-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #eaeaea;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: #6A7282;
    font-size: 14px;
    margin-left: 10px;
    transition: all 0.2s;
}
.faq-content .feedback-btn img{
    width: 14px;
    height: 14px;
}

.faq-content .feedback-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}
.faq-content .feedback-btn.voted,
.faq-content .feedback-btn.voted:hover {
    background-color: #C39D66 !important;
    border-color: #C39D66 !important;
    color: #ffffff !important;
    cursor: default !important;
}
.faq-content .feedback-btn.voted img {
    filter: brightness(0) invert(1);
}

/* --- Bottom CTA Section --- */
.faq-content .cta-section {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-top: 60px;
}

.faq-content .cta-section h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.faq-content .cta-section p {
    color: #666;
    margin-bottom: 25px;
}

.faq-content .cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.faq-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.faq-content .btn-primary {
    background-color: #c5a47e;
    color: white;
}

.faq-content .btn-primary:hover {
    opacity: 0.9;
}

.faq-content.btn-secondary {
    background-color: transparent;
    color: #333;
    border: 1px solid #eaeaea;
}

.faq-content.btn-secondary:hover {
    background-color: #f5f5f5;
}

.faq-content.qr-code-container {
    margin-left: 20px;
    text-align: center;
}

.faq-content .qr-code-container img {
    width: 100px;
    height: 100px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 5px;
}

.faq-content .qr-code-container p {
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 0;
}

.faq-content .accordion-item-btm{
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    margin-top: 40px;
    /* box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1); */
    border-top: 4px solid #C3A36E;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
 /* ----- 标题 h3 ----- */
.faq-content .accordion-item-btm h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    line-height: 1.4;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

/* ----- 描述 p ----- */
.faq-content .accordion-item-btm p {
    font-size: 14px;
    color: #6A7282;
    line-height: 1.6;
    margin-bottom: 24px;
    letter-spacing: 0.2px;
}

/* ----- 按钮容器 ----- */
.faq-content .accordion-item-btm .btn-groups {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ----- 通用按钮样式 ----- */
.faq-content .accordion-item-btm .btn-groups button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 200px;
    height: 50px;
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 按钮中的图标 */
.faq-content .accordion-item-btm .btn-groups button img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

/* ----- 左侧按钮 — 金色背景 #C39D66 ----- */
.faq-content .accordion-item-btm .btn-groups .btn-ai {
    background-color: #C39D66;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(195, 157, 102, 0.30);
}

.faq-content .accordion-item-btm .btn-groups .btn-ai:hover {
    background-color: #b38b54;
    box-shadow: 0 6px 18px rgba(195, 157, 102, 0.40);
    transform: translateY(-1px);
}

.faq-content .accordion-item-btm .btn-groups .btn-ai:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(195, 157, 102, 0.25);
}

/* ----- 右侧按钮 — 文字 #444444，带边框 ----- */
.faq-content .accordion-item-btm .btn-groups .btn-human {
    background-color: #ffffff;
    color: #444444;
    border: 1.5px solid #e2e6ee;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.faq-content .accordion-item-btm .btn-groups .btn-human:hover {
    background-color: #f8f9fc;
    border-color: #c9cedb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.faq-content .accordion-item-btm .btn-groups .btn-human:hover + .human-hover-qrcode {
    display: block;
}

.faq-content .accordion-item-btm .btn-groups .btn-human:active {
    transform: translateY(0px);
    background-color: #f0f1f5;
}

.faq-content .human-hover-qrcode{
    box-sizing: border-box;
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
    padding: 10px 15px;
    gap: 9px;
    width: 136px;
    height: 142px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
    border-radius: 9px 9px 9px 0px;
    color: #6A7282;
    font-size: 10px;
    text-align: center;
    display: none;
    position: absolute;
    /* right: 80px; */
    right: 122px;
    bottom: 40px;
    margin-left: 12px;
    z-index: 100;
}
.faq-content .human-hover-qrcode img{
    width: 100px;
    height: 100px;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 992px) {
    .faq-content {
        flex-direction: column;
        gap: 30px;
    }

    .faq-content .faq-sidebar {
        width: 100%;
        position: sticky;
        top: 0;
        background-color: #f8f9fa;
        /* z-index: 10; */
        padding: 10px 0;
    }

    .faq-content .nav-list {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        margin-bottom: 0;
        padding-bottom: 10px; /* For scrollbar space */
        -webkit-overflow-scrolling: touch;
    }

    .faq-content .nav-group-title {
        display: none;
    }

    .faq-content .nav-item a {
        white-space: nowrap;
        border: 1px solid #eaeaea;
        background-color: #fff;
    }

    .faq-content .nav-item.active a {
        border-color: #c5a47e;
    }

    .faq-content .cta-actions {
        flex-direction: column;
    }

    .faq-content .qr-code-container {
        margin-left: 0;
        margin-top: 20px;
    }
}

/* ----- 响应式适配 ----- */
@media (max-width: 620px) {
    .faq-content .accordion-item-btm {
        padding: 24px 20px 28px 20px;
        border-radius: 14px;
    }

    .faq-content .accordion-item-btm .btn-groups {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-content .accordion-item-btm .btn-groups button {
        width: 100%;
        height: 48px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .faq-content .accordion-item-btm h3 {
        font-size: 16px;
    }
    .faq-content .accordion-item-btm p {
        font-size: 13px;
    }
    .faq-content .accordion-item-btm .btn-groups button {
        height: 44px;
        font-size: 14px;
    }
    .faq-content .accordion-item-btm .btn-groups button img {
        width: 16px;
        height: 16px;
    }
}