/* ========== FAQ 页面专属样式 ========== */

/* --- 页面顶部 Banner --- */
#faq-banner {
  background: linear-gradient(150deg, #0a0a14 0%, #111730 30%, #0d1f3c 60%, #0a1422 100%);
  padding: 150px 0 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#faq-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -30%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,160,233,0.07) 0%, transparent 70%);
  animation: faqFloat1 12s ease-in-out infinite;
}
#faq-banner::after {
  content: '';
  position: absolute;
  bottom: -40%; right: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24,211,110,0.05) 0%, transparent 70%);
  animation: faqFloat2 15s ease-in-out infinite;
}
@keyframes faqFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-15px, 15px); }
}
@keyframes faqFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-25px, -15px); }
  66% { transform: translate(20px, 25px); }
}
#faq-banner .banner-content {
  position: relative;
  z-index: 1;
}
#faq-banner .banner-icon {
  display: inline-block;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,160,233,0.2), rgba(0,160,233,0.05));
  border: 1px solid rgba(0,160,233,0.15);
  margin-bottom: 24px;
  font-size: 30px;
  line-height: 72px;
  color: #00A0E9;
  backdrop-filter: blur(10px);
}
#faq-banner h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
#faq-banner h1 span {
  background: linear-gradient(135deg, #00A0E9, #18d36e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#faq-banner .banner-divider {
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #00A0E9, #18d36e);
  margin: 16px auto;
  border-radius: 2px;
}
#faq-banner .banner-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  font-weight: 300;
  letter-spacing: 1px;
}
#faq-banner .banner-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 28px;
}
#faq-banner .banner-stat-item {
  text-align: center;
}
#faq-banner .banner-stat-item .stat-num {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
#faq-banner .banner-stat-item .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#faq-banner .breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
#faq-banner .breadcrumb-nav a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.3s;
}
#faq-banner .breadcrumb-nav a:hover {
  color: #00A0E9;
}
#faq-banner .breadcrumb-nav .sep {
  color: rgba(255,255,255,0.2);
}
#faq-banner .breadcrumb-nav .current {
  color: #00A0E9;
}

/* --- FAQ 主体区域 --- */
#faq-main {
  padding: 70px 0 90px 0;
  background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f5 40%, #f8f9fb 100%);
}

/* 搜索框 */
.faq-search-wrap {
  max-width: 580px;
  margin: 0 auto 36px auto;
  position: relative;
}
.faq-search-wrap .faq-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 16px;
  transition: color 0.3s;
  z-index: 2;
}
.faq-search-wrap:focus-within .faq-search-icon {
  color: #00A0E9;
}
#faqSearch {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1.5px solid #e0e4e8;
  border-radius: 50px;
  font-size: 14px;
  color: #333;
  background: #fff;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
#faqSearch:focus {
  border-color: #00A0E9;
  box-shadow: 0 4px 20px rgba(0,160,233,0.08);
}
#faqSearch::placeholder {
  color: #bbb;
}
.faq-search-wrap .faq-search-clear {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #e0e0e0;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
  z-index: 2;
}
.faq-search-wrap .faq-search-clear:hover {
  background: #999;
}
.faq-search-wrap .faq-search-clear.visible {
  display: flex;
}
.faq-no-result {
  display: none;
  text-align: center;
  padding: 50px 20px;
  color: #999;
  font-size: 14px;
}
.faq-no-result .no-result-icon {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 16px;
  display: block;
}

/* 分类筛选标签 */
.faq-categories {
  text-align: center;
  margin-bottom: 44px;
}
.faq-categories .cat-btn {
  display: inline-block;
  margin: 5px 6px;
  padding: 10px 22px;
  border: 1.5px solid #e0e4e8;
  border-radius: 50px;
  background: #fff;
  color: #666;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}
.faq-categories .cat-btn:hover {
  border-color: #00A0E9;
  color: #00A0E9;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,160,233,0.1);
}
.faq-categories .cat-btn.active {
  background: linear-gradient(135deg, #00A0E9, #0086c4);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,160,233,0.25);
  transform: translateY(-1px);
}
.faq-categories .cat-btn .cat-icon {
  margin-right: 6px;
}
.faq-cat-count {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 1px 8px;
  font-size: 12px;
  margin-left: 6px;
}

/* FAQ 手风琴列表 */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
}
.faq-group-title {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 48px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.faq-group-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00A0E9 0%, rgba(0,160,233,0.1) 100%);
  border-radius: 1px;
}
.faq-group-title:first-child {
  margin-top: 0;
}
.faq-group-title .group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00A0E9, #0086c4);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,160,233,0.2);
  flex-shrink: 0;
}

/* 单个 FAQ 项 */
.faq-item {
  background: #fff;
  border: 1px solid #edf0f3;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}
.faq-item:hover {
  border-color: #d6dbe0;
  box-shadow: 0 3px 14px rgba(0,0,0,0.04);
}
.faq-item.open {
  border-color: rgba(0,160,233,0.25);
  box-shadow: 0 6px 24px rgba(0,160,233,0.07);
}
.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  position: relative;
}
.faq-question:hover {
  background: #fafbfd;
}
.faq-question .q-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f0f5fa;
  color: #00A0E9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
  transition: all 0.3s ease;
}
.faq-item.open .faq-question .q-icon {
  background: #00A0E9;
  color: #fff;
  border-radius: 8px;
}
.faq-question .q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.55;
  padding-right: 30px;
}
.faq-item.open .faq-question .q-text {
  color: #00A0E9;
}
.faq-question .q-arrow {
  flex-shrink: 0;
  color: #c0c6cc;
  font-size: 13px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 5px;
  position: absolute;
  right: 24px;
}
.faq-item.open .faq-question .q-arrow {
  transform: rotate(180deg);
  color: #00A0E9;
}

/* 手风琴展开动画 */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.45s ease;
  padding: 0 24px 0 68px;
  font-size: 14px;
  line-height: 1.85;
  color: #555;
}
.faq-item.open .faq-answer {
  max-height: 1200px;
  padding: 0 24px 22px 68px;
}
.faq-answer p {
  margin-bottom: 10px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-answer ul, .faq-answer ol {
  padding-left: 20px;
  margin-bottom: 10px;
}
.faq-answer ul li, .faq-answer ol li {
  margin-bottom: 6px;
}
.faq-answer ul li:last-child, .faq-answer ol li:last-child {
  margin-bottom: 0;
}
.faq-answer table {
  width: 100%;
  margin: 10px 0;
  border-collapse: collapse;
}
.faq-answer table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: top;
}
.faq-answer table tr:last-child td {
  border-bottom: none;
}
.faq-answer table td:first-child {
  white-space: nowrap;
  font-weight: 600;
  color: #333;
  width: 20%;
}

/* 高亮搜索词 */
.faq-highlight {
  background: rgba(0,160,233,0.12);
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 600;
}

/* 底部 CTA */
.faq-cta {
  text-align: center;
  margin-top: 70px;
  padding: 48px 40px;
  background: linear-gradient(135deg, #0d1f3c 0%, #111730 100%);
  border-radius: 16px;
  border: none;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.faq-cta::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,160,233,0.12) 0%, transparent 70%);
}
.faq-cta::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24,211,110,0.08) 0%, transparent 70%);
}
.faq-cta > * {
  position: relative;
  z-index: 1;
}
.faq-cta h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.faq-cta p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  font-size: 14px;
}
.faq-cta .cta-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.faq-cta .btn-faq-cta {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}
.faq-cta .btn-primary-cta {
  background: linear-gradient(135deg, #00A0E9, #0086c4);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,160,233,0.3);
}
.faq-cta .btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,160,233,0.4);
  color: #fff;
  background: linear-gradient(135deg, #00b4ff, #0098dc);
}
.faq-cta .btn-outline-cta {
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}
.faq-cta .btn-outline-cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* 响应式 */
@media (max-width: 768px) {
  #faq-banner {
    padding: 120px 0 50px 0;
  }
  #faq-banner h1 {
    font-size: 28px;
    letter-spacing: 1px;
  }
  #faq-banner .banner-icon {
    width: 56px; height: 56px;
    font-size: 24px; line-height: 56px;
    border-radius: 16px;
    margin-bottom: 18px;
  }
  #faq-banner .banner-stats {
    gap: 20px;
  }
  #faq-banner .banner-stat-item .stat-num {
    font-size: 22px;
  }
  #faq-banner .banner-stat-item .stat-label {
    font-size: 12px;
  }
  #faq-banner .banner-divider {
    margin: 12px auto;
  }
  .faq-search-wrap {
    max-width: calc(100% - 32px);
    margin: 0 auto 28px auto;
  }
  .faq-categories .cat-btn {
    padding: 8px 15px;
    font-size: 12px;
    margin: 3px;
  }
  .faq-group-title {
    font-size: 18px;
    margin: 34px 0 16px 0;
  }
  .faq-group-title .group-icon {
    width: 34px; height: 34px;
    font-size: 14px;
    border-radius: 10px;
  }
  .faq-question {
    padding: 15px 16px;
  }
  .faq-question .q-text {
    font-size: 14px;
    padding-right: 24px;
  }
  .faq-question .q-arrow {
    right: 16px;
  }
  .faq-answer {
    padding: 0 16px 0 52px;
  }
  .faq-item.open .faq-answer {
    padding: 0 16px 18px 52px;
  }
  .faq-cta {
    padding: 36px 24px;
    margin-top: 50px;
    border-radius: 12px;
  }
  .faq-cta h4 {
    font-size: 20px;
  }
  .faq-answer table td:first-child {
    white-space: normal;
    width: 30%;
  }
}
