/* ==========================================
   TuneBoto Video One FAQ - 核心样式文件
   ========================================== */

/* 强制修复因全局样式冲突导致的无法滚动问题 */
html, body {
  overflow-y: auto !important;
  /* 注意：移除了 body 的 overflow-x: hidden，因为它会导致 safari/部分chrome 的 sticky 属性彻底失效 */
  background-color: #f8fafc;
  color: #334155;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 1. Breadcrumbs Component (面包屑导航) */
.breadcrumb-wrapper {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 15px 0;
}
.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}
.breadcrumb-custom li a {
  color: #0073ff;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-custom li a:hover {
  color: #005bb5;
}
.breadcrumb-custom li::after {
  content: "/";
  color: #94a3b8;
  margin-left: 8px;
}
.breadcrumb-custom li:last-child::after {
  content: "";
}
.breadcrumb-custom li.active {
  color: #64748b;
  font-weight: 500;
}

/* 2. FAQ Main Layout (主页面网格与悬浮侧边栏) */
.faq-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.faq-layout-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start; /* 【关键修复】：必须加这个，否则 Flex 子元素会被拉伸导致 sticky 失效 */
}

/* 悬浮侧边栏 (Sticky Sidebar) */
.faq-sidebar {
  flex: 0 0 280px;
  position: sticky; /* 粘性定位 */
  top: 100px; /* 距离顶部 100px 时固定，避开导航栏 */
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  z-index: 10;
}
.faq-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}
.faq-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.faq-nav-item {
  margin-bottom: 8px;
}
.faq-nav-link {
  display: block;
  padding: 10px 14px;
  color: #475569;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}
.faq-nav-link:hover, .faq-nav-link.active {
  background-color: #f1f5f9;
  color: #0073ff;
}

/* 3. FAQ Content (右侧内容区) */
.faq-content-main {
  flex: 1;
  padding-top: 24px; /* 与左侧栏保持物理高度对齐 */
}
.faq-section-block {
  margin-bottom: 50px;
  scroll-margin-top: 120px; /* 锚点跳转时预留顶部导航栏的高度 */
}
.faq-section-block:first-child .faq-section-heading {
  margin-top: 0; /* 抹平第一个标题的默认顶部边距，实现完美水平对齐 */
}
.faq-section-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

/* 4. Native Details/Summary Accordion (折叠面板) */
.faq-accordion-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: border-color 0.2s;
}
.faq-accordion-item:hover {
  border-color: #cbd5e1;
}
.faq-accordion-item summary {
  padding: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  color: #1e293b;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
  user-select: none;
}
.faq-accordion-item summary::-webkit-details-marker {
  display: none;
}
.faq-accordion-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: #0073ff;
  font-weight: bold;
  transition: transform 0.2s;
}
.faq-accordion-item[open] summary {
  border-bottom: 1px solid #f1f5f9;
  background-color: #fafafa;
}
.faq-accordion-item[open] summary::after {
  content: "−";
  color: #64748b;
}
.faq-answer-content {
  padding: 20px;
  color: #475569;
  line-height: 1.7;
  font-size: 1rem;
  background: #ffffff;
}
.faq-answer-content p {
  margin-top: 0;
  margin-bottom: 12px;
}
.faq-answer-content p:last-child {
  margin-bottom: 0;
}
.faq-answer-content ol, .faq-answer-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.faq-answer-content li {
  margin-bottom: 6px;
}
.faq-inline-link {
  color: #0073ff;
  text-decoration: none;
  font-weight: 500;
}
.faq-inline-link:hover {
  text-decoration: underline;
}

/* 5. Support CTA Card (联系客服模块) */
.support-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin-top: 40px;
}
.support-card h3 {
  color: #ffffff !important;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.support-card p {
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 20px;
}
.support-btn {
  background: #0073ff;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: background 0.2s;
}
.support-btn:hover {
  background: #005bb5;
  color: #ffffff;
}

/* 6. Responsive Breakdown (移动端适配) */
@media (max-width: 992px) {
  .faq-layout-grid {
    flex-direction: column;
  }
  .faq-sidebar {
    flex: none;
    position: static; /* 移动端取消固定 */
    width: 100%;
  }
  .faq-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .faq-nav-item {
    margin-bottom: 0;
  }
  .faq-content-main {
    padding-top: 0;
  }
}