/* ===== FAQ页面 V4 - 首页风格设计 ===== */

/* Page Hero搜索框 */
.faq-search-wrapper {
  margin-top: 32px;
}

.faq-search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: box-shadow var(--transition);
}

.faq-search-box:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.faq-search-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(10, 102, 194, 0.5);
  font-size: 18px;
}

.faq-search-box input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-family: var(--font-family);
  outline: none;
  background: transparent;
}

.faq-search-box input::placeholder {
  color: rgba(10, 102, 194, 0.4);
}

.faq-search-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #0a66c2;
}

.faq-search-box input {
  width: 100%;
  padding: 18px 20px 18px 60px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  background: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.faq-search-box input:focus {
  outline: none;
  box-shadow: 0 8px 32px rgba(10, 102, 194, 0.25);
}

.faq-search-box input::placeholder {
  color: #9ca3af;
}

/* FAQ主题卡片网格 */
.faq-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 60px 0;
}

.faq-topic-card {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.faq-topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  transition: all 0.3s ease;
}

.faq-topic-blue::before {
  background: linear-gradient(135deg, #0a66c2 0%, #4d9fe9 100%);
}

.faq-topic-purple::before {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.faq-topic-green::before {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.faq-topic-orange::before {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.faq-topic-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.faq-topic-blue:hover {
  border-color: #0a66c2;
}

.faq-topic-purple:hover {
  border-color: #8b5cf6;
}

.faq-topic-green:hover {
  border-color: #10b981;
}

.faq-topic-orange:hover {
  border-color: #f59e0b;
}

.faq-topic-card .topic-icon {
  width: 64px;
  height: 64px;
  background: #f3f4f6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.faq-topic-blue .topic-icon {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #0a66c2;
}

.faq-topic-purple .topic-icon {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  color: #8b5cf6;
}

.faq-topic-green .topic-icon {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #10b981;
}

.faq-topic-orange .topic-icon {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #f59e0b;
}

.faq-topic-card:hover .topic-icon {
  transform: scale(1.1);
}

.faq-topic-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.faq-topic-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 12px;
}

.faq-topic-card .topic-count {
  display: inline-block;
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.faq-topic-blue .topic-count {
  background: #eff6ff;
  color: #0a66c2;
}

.faq-topic-purple .topic-count {
  background: #f5f3ff;
  color: #8b5cf6;
}

.faq-topic-green .topic-count {
  background: #ecfdf5;
  color: #10b981;
}

.faq-topic-orange .topic-count {
  background: #fffbeb;
  color: #f59e0b;
}

/* FAQ手风琴 */
.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.faq-accordion-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.faq-accordion-item:hover {
  border-color: #0a66c2;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.1);
}

.faq-accordion-item.active {
  border-color: #0a66c2;
  box-shadow: 0 4px 16px rgba(10, 102, 194, 0.15);
}

.faq-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: white;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.faq-accordion-item:hover .faq-accordion-header {
  background: #f9fafb;
}

.faq-accordion-item.active .faq-accordion-header {
  background: #f0f9ff;
}

.faq-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  transition: all 0.3s ease;
}

.faq-icon-blue {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #0a66c2;
}

.faq-icon-red {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #dc2626;
}

.faq-icon-purple {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  color: #8b5cf6;
}

.faq-icon-green {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #10b981;
}

.faq-icon-orange {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #f59e0b;
}

.faq-question {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.5;
}

.faq-accordion-item.active .faq-question {
  color: #0a66c2;
}

.faq-chevron {
  font-size: 18px;
  color: #9ca3af;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-accordion-item.active .faq-chevron {
  color: #0a66c2;
  transform: rotate(180deg);
}

.faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #f9fafb;
}

.faq-accordion-item.active .faq-accordion-content {
  max-height: 3000px;
}

.faq-content-inner {
  padding: 24px 24px 24px 88px;
}

.faq-content-inner p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 16px;
}

.faq-content-inner p:last-child {
  margin-bottom: 0;
}

.faq-content-inner strong {
  color: #1f2937;
  font-weight: 700;
}

.faq-content-inner ul,
.faq-content-inner ol {
  margin-bottom: 20px;
}

.faq-content-inner ul {
  list-style: none;
  padding: 0;
}

.faq-content-inner li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
}

.faq-content-inner li:last-child {
  margin-bottom: 0;
}

.faq-content-inner li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-content-inner ol li::before {
  display: none;
}

.faq-content-inner ol {
  list-style: decimal;
  padding-left: 28px;
}

.faq-content-inner ol li {
  padding-left: 0;
}

/* 高亮框 */
.faq-highlight {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0a66c2;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.faq-highlight-blue {
  background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
  border-color: #0a66c2;
}

.faq-highlight-green {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #10b981;
}

.faq-highlight h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-highlight-blue h4 {
  color: #0a66c2;
}

.faq-highlight-green h4 {
  color: #10b981;
}

.faq-highlight ul {
  margin-bottom: 0;
}

/* 警告框 */
.faq-warning {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #dc2626;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.faq-warning ul {
  margin-bottom: 0;
}

.faq-warning li::before {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

/* 对比表格 */
.faq-comparison {
  margin: 24px 0;
  overflow-x: auto;
}

.faq-comparison table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-comparison thead {
  background: linear-gradient(135deg, #0a66c2 0%, #4d9fe9 100%);
}

.faq-comparison th {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: white;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-comparison th:last-child {
  border-right: none;
}

.faq-comparison tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.faq-comparison tbody tr:last-child {
  border-bottom: none;
}

.faq-comparison tbody tr:hover {
  background: #f0f9ff;
}

.faq-comparison td {
  padding: 16px 20px;
  font-size: 15px;
  color: #4b5563;
  border-right: 1px solid #e5e7eb;
  line-height: 1.6;
}

.faq-comparison td:last-child {
  border-right: none;
}

.faq-comparison .th-highlight {
  background: linear-gradient(135deg, #4d9fe9 0%, #3b82f6 100%);
}

.faq-comparison .highlight {
  background: #f0f9ff;
  font-weight: 600;
  color: #0a66c2;
}

.text-green {
  color: #10b981 !important;
}

.text-red {
  color: #dc2626 !important;
}

.risk-high {
  display: inline-block;
  padding: 4px 12px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.risk-low {
  display: inline-block;
  padding: 4px 12px;
  background: #d1fae5;
  color: #10b981;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .faq-topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .faq-hero-title {
    font-size: 36px;
  }

  .faq-hero-subtitle {
    font-size: 16px;
  }

  .faq-topic-grid {
    grid-template-columns: 1fr;
  }

  .faq-accordion-header {
    padding: 20px;
    flex-wrap: wrap;
  }

  .faq-content-inner {
    padding: 20px;
  }

  .faq-comparison {
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .faq-hero-title {
    font-size: 28px;
  }

  .faq-hero-section {
    padding: 60px 0 40px;
  }

  .faq-icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .faq-question {
    font-size: 16px;
  }

  .faq-content-inner p,
  .faq-content-inner li {
    font-size: 14px;
  }
}
