.page-faq {
  --faq-hero-bg: #1D3557;
  --faq-card-bg: #FFFFFF;
  --faq-bubble-q-bg: #F1FAEE;
  --faq-bubble-a-bg: #FFFFFF;
  --faq-border-color: #E63946;
  --faq-accent-line: #F4A261;
  --faq-text-body: #2B2D42;
  --faq-text-muted: #6c7a89;
  --faq-shadow: 0 4px 20px rgba(0,0,0,0.06);
  --faq-radius: 12px;

  display: block;
  background: var(--neutral-light, #F1FAEE);
  font-family: var(--font-body, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif);
  color: var(--faq-text-body);
  line-height: 1.6;
}

/* ===== Hero 区 ===== */
.faq-hero {
  position: relative;
  background: var(--faq-hero-bg);
  padding: 2.5rem 1rem 3.5rem;
  color: var(--text-light, #FFFFFF);
  overflow: hidden;
}
.faq-hero .container {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.faq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  opacity: 0.8;
}
.faq-breadcrumb a {
  color: var(--accent, #F4A261);
  text-decoration: none;
  transition: opacity 0.2s;
}
.faq-breadcrumb a:hover {
  opacity: 0.7;
}
.faq-breadcrumb-sep {
  color: var(--accent, #F4A261);
  font-family: var(--font-mono, 'Consolas', monospace);
}
.faq-title {
  font-family: var(--font-heading, 'Segoe UI', 'Arial Black', sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.faq-subtitle {
  font-size: 1rem;
  max-width: 580px;
  opacity: 0.85;
  margin: 0;
}
.faq-hero-deco {
  position: absolute;
  right: -5%;
  top: -15%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 40%, rgba(244,162,97,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.faq-hero-deco::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: -10%;
  width: 120px;
  height: 120px;
  border: 3px dashed rgba(230,57,70,0.25);
  border-radius: 50%;
  transform: rotate(15deg);
}

/* ===== 问答列表区 ===== */
.faq-body {
  padding: 2rem 1rem 3rem;
}
.faq-body .container {
  max-width: 820px;
  margin: 0 auto;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== 单个问答项 ===== */
.faq-item {
  background: var(--faq-card-bg);
  border-radius: var(--faq-radius);
  box-shadow: var(--faq-shadow);
  border-left: 5px solid var(--faq-border-color);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.faq-item[open] {
  box-shadow: 0 6px 28px rgba(0,0,0,0.09);
}
/* 不同分类的左侧色条 */
.faq-item[data-category="guide"] {
  border-left-color: #F4A261;
}
.faq-item[data-category="update"] {
  border-left-color: #3498DB;
}
.faq-item[data-category="download"] {
  border-left-color: #E63946;
}
.faq-item[data-category="intro"] {
  border-left-color: #2ECC71;
}

/* ===== 问题行 ===== */
.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  user-select: none;
  background: var(--faq-bubble-q-bg);
  transition: background 0.2s ease;
  position: relative;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question:hover {
  background: #e8ede0;
}
.faq-item[open] .faq-question {
  background: #e8ede0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
/* 问题气泡尾巴（伪） */
.faq-question::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 2.6rem;
  width: 0;
  height: 0;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #e8ede0 transparent transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.faq-item[open] .faq-question::after {
  opacity: 1;
}

.faq-q-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary, #E63946);
  color: #fff;
  font-family: var(--font-heading, 'Segoe UI', 'Arial Black', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
}
.faq-question-text {
  flex: 1;
  font-family: var(--font-heading, 'Segoe UI', 'Arial Black', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--neutral-dark, #2B2D42);
  line-height: 1.3;
}
.faq-toggle-icon {
  flex-shrink: 0;
  font-family: var(--font-mono, 'Consolas', monospace);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary, #E63946);
  transition: transform 0.3s ease;
  line-height: 1;
}
.faq-item[open] .faq-toggle-icon {
  transform: rotate(45deg);
}

/* ===== 答案区 ===== */
.faq-answer {
  background: var(--faq-card-bg);
}
.faq-answer-inner {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.5rem 1.5rem;
  align-items: flex-start;
}
.faq-a-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent, #F4A261);
  color: #1D3557;
  font-family: var(--font-heading, 'Segoe UI', 'Arial Black', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
}
.faq-answer-content {
  flex: 1;
  min-width: 0;
}
.faq-answer-content p {
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
  color: var(--faq-text-body);
}
.faq-answer-content p:last-of-type {
  margin-bottom: 0;
}
.faq-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary, #E63946);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.faq-link:hover {
  border-bottom-color: var(--primary, #E63946);
  color: #c62e3a;
}

/* ===== 图片样式 ===== */
.faq-step-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  border: 2px dashed rgba(29,53,87,0.12);
  display: block;
  object-fit: cover;
}
.faq-clock-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  display: block;
}

/* ===== 底部联系区 ===== */
.faq-help {
  padding: 0 1rem 3rem;
}
.faq-help .container {
  max-width: 820px;
  margin: 0 auto;
}
.faq-help-card {
  background: #1D3557;
  border-radius: var(--faq-radius);
  padding: 2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 2px dashed rgba(244,162,97,0.35);
}
.faq-help-text {
  margin: 0;
  color: #F1FAEE;
  font-size: 1.1rem;
  font-weight: 600;
}
.faq-help-btn {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  background: var(--primary, #E63946);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--primary, #E63946);
  transition: background 0.2s, transform 0.15s;
}
.faq-help-btn:hover {
  background: #c62e3a;
  transform: translateY(-2px);
}

/* ===== 移动端优先 + 响应式 ===== */
@media (max-width: 640px) {
  .faq-hero {
    padding: 1.8rem 1rem 2.8rem;
  }
  .faq-title {
    font-size: 1.6rem;
  }
  .faq-subtitle {
    font-size: 0.92rem;
  }
  .faq-hero-deco {
    width: 160px;
    height: 160px;
    right: -12%;
    top: -8%;
  }
  .faq-hero-deco::after {
    width: 70px;
    height: 70px;
  }
  .faq-question {
    padding: 0.9rem 1rem;
    gap: 0.5rem;
  }
  .faq-question-text {
    font-size: 0.95rem;
  }
  .faq-q-badge,
  .faq-a-badge {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  .faq-answer-inner {
    padding: 1rem 1rem 1.2rem;
    gap: 0.7rem;
    flex-direction: column;
  }
  .faq-a-badge {
    align-self: flex-start;
  }
  .faq-question::after {
    left: 2.2rem;
  }
  .faq-help-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.2rem;
  }
  .faq-help-btn {
    width: 100%;
    text-align: center;
  }
  .faq-step-img {
    width: 100% !important;
    height: auto !important;
  }
  .faq-clock-img {
    width: 64px !important;
    height: auto !important;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .faq-title {
    font-size: 1.9rem;
  }
  .faq-body {
    padding: 1.8rem 1rem 2.5rem;
  }
  .faq-answer-inner {
    flex-direction: row;
  }
}

@media (min-width: 1025px) {
  .faq-title {
    font-size: 2.5rem;
  }
  .faq-hero {
    padding: 3rem 2rem 4rem;
  }
  .faq-body {
    padding: 2.5rem 2rem 3.5rem;
  }
  .faq-question {
    padding: 1.2rem 2rem;
  }
  .faq-answer-inner {
    padding: 1.4rem 2rem 1.8rem;
  }
}
