/* ===================================================
   1. 目录导航 (TOC) 专属样式
   =================================================== */
.faq-toc-wrapper {
    position: sticky;
    top: 90px;
    background: #fbfbfd;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #edf0f5;
    margin-bottom: 30px;
}

.faq-toc-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
}

.faq-toc-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.faq-toc-item {
    margin-bottom: 8px;
}

.faq-toc-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s ease-in-out;
}

.faq-toc-link:hover,
.faq-toc-link.active {
    color: #0d6efd;
    background-color: #eaf2ff;
    font-weight: 600;
    padding-left: 18px;
}

/* ===================================================
   2. H2 分类标题样式
   =================================================== */
.faq-content-container .faq-section-header {
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 45px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0f5;
    color: #111827;
    scroll-margin-top: 100px;
}

/* ===================================================
   3. 原模板蓝白卡片式问答手风琴 (还原图片样式)
   =================================================== */
.faq-content-container .accordion-item {
    border: none !important;
    background: transparent !important;
    margin-bottom: 16px; /* 卡片之间的呼吸间距 */
}

/* 收起状态：浅灰底色、黑字、大圆角卡片 */
.faq-content-container .accordion-button {
    background-color: #f4f6f8;
    color: #111827;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 10px !important;
    padding: 18px 24px;
    box-shadow: none !important;
    border: none !important;
    transition: all 0.2s ease-in-out;
}

/* 展开激活状态：亮蓝底色、纯白字、大圆角卡片 */
.faq-content-container .accordion-button:not(.collapsed) {
    background-color: #0d6efd !important; /* 经典原版亮蓝色 */
    color: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.2) !important;
}

/* 自定义右侧 +/- 切换图标：替换 Bootstrap 默认的旋转箭头 */
.faq-content-container .accordion-button::after {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-image: none !important; /* 去除原生 svg 箭头 */
    content: "+" !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #111827;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

/* 展开状态下的图标：白圈内蓝色减号(-) */
.faq-content-container .accordion-button:not(.collapsed)::after {
    content: "−" !important; /* 减号 */
    font-size: 22px;
    color: #0d6efd !important;
    background-color: #ffffff !important;
    transform: none !important;
}

/* 问答正文内容区展开后的样式 */
.faq-content-container .accordion-body {
    padding: 24px 10px 10px 10px;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.75;
}

/* 内部提示框 */
.faq-content-container .troubleshoot-box {
    background-color: #f8fafc;
    border-left: 4px solid #0d6efd;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 15px 0;
	font-size: 16px !important;
}

/* 确保内部列表（ol/ul/li）及段落统一继承 16px 并保持舒适行高 */
.faq-content-container .troubleshoot-box ol,
.faq-content-container .troubleshoot-box ul,
.faq-content-container .troubleshoot-box li,
.faq-content-container .troubleshoot-box p {
    font-size: 16px !important;
    line-height: 1.75; /* 配合 16px 字体的呼吸行高 */
}
/* ===================================================
   参考英文站排版规范：优化行高 (line-height) 与段落/列表间距
   =================================================== */

/* 1. FAQ 正文与展开区域的基础排印规范 */
.faq-content-container .accordion-body {
    line-height: 1.75;           /* 行距从紧凑的 1.4~1.5 调整为 1.75，大幅提升阅读舒适度 */
    font-size: 15px;             /* 适中的字号 */
}

/* 2. 普通段落与各类列表的外间距（控制段与段之间的垂直节奏） */
.faq-content-container .accordion-body p {
    margin-bottom: 16px;         /* 段落下方间距 */
    line-height: 1.75;
}

.faq-content-container .accordion-body p:last-child {
    margin-bottom: 0;
}

/* 3. 灰色排查框 (troubleshoot-box) 内部的段落间距 */
.faq-content-container .troubleshoot-box p {
    margin-bottom: 14px;
    line-height: 1.7;
}

.faq-content-container .troubleshoot-box p:last-child {
    margin-bottom: 0;
}

/* 4. 有序列表 (ol) 与无序列表 (ul) 的项间距微调 */
.faq-content-container .accordion-body ol,
.faq-content-container .accordion-body ul {
    margin-top: 8px;
    margin-bottom: 16px;
    padding-left: 20px;          /* 确保列表缩进舒适 */
}

/* 关键：让每一条清单 (li) 之间有明显间隔，不再挤在一起 */
.faq-content-container .accordion-body ol > li,
.faq-content-container .accordion-body ul > li {
    margin-bottom: 12px;         /* 参考英文站列表项之间的呼吸间距 */
    line-height: 1.72;           /* 列表文字行高 */
}

/* 最后一项不需要底部外边距，防止撑大容器 */
.faq-content-container .accordion-body ol > li:last-child,
.faq-content-container .accordion-body ul > li:last-child {
    margin-bottom: 0;
}

/* 5. 嵌套在 li 内部的子列表间距优化 */
.faq-content-container .accordion-body li > ul,
.faq-content-container .accordion-body li > ol {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 18px;
}

/* 6. 行内加粗（strong / b）重点词汇字重微调，与普通文本层次分明 */
.faq-content-container .accordion-body strong,
.faq-content-container .accordion-body b {
    font-weight: 600;
}
/* ===================================================
   FAQ 答案区域链接统一蓝色样式 (无需在 HTML 内写行内 style)
   =================================================== */
.faq-content-container .accordion-body a {
    color: #008cff !important;            /* 统一标准蓝色 */
    text-decoration: underline;           /* 保留下划线提示可点击 */
    text-underline-offset: 3px;           /* 下划线与文字留一点距离，更美观 */
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* 鼠标悬停效果 */
.faq-content-container .accordion-body a:hover {
    color: #0070cc !important;            /* 悬停时颜色稍深 */
    opacity: 0.85;
}