/* ===== 页面专属：FAQ ===== */
.page-faq {
  --faq-orange: #FF6B35;
  --faq-blue: #0B1A30;
  --faq-border: #CCCCCC;
  --faq-bg-hover: #F5F5F5;
  --faq-radius: 6px;
  --faq-transition: 0.25s ease;
  background: #FFFFFF;
}

/* ---------- Hero ---------- */
.page-faq .faq-hero {
  background: linear-gradient(135deg, #0B1A30 0%, #1A2D4A 100%);
  padding: 2rem 0 1.5rem;
  color: #FFFFFF;
}
.page-faq .faq-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.page-faq .faq-hero__img {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 800/200;
  object-fit: cover;
  border-radius: var(--faq-radius);
  display: block;
}
.page-faq .faq-hero__title {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
  color: #FFFFFF;
}
.page-faq .faq-hero__desc {
  font-family: 'Noto Serif SC', 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0.25rem 0 0;
  max-width: 600px;
}

/* ---------- 分类标签 ---------- */
.page-faq .faq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem 0 1rem;
  justify-content: center;
}
.page-faq .faq-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0B1A30;
  background: #F5F5F5;
  border: 2px solid #CCCCCC;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--faq-transition), border-color var(--faq-transition), color var(--faq-transition);
  cursor: pointer;
  /* 切角效果通过clip-path实现 */
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.page-faq .faq-tag:hover,
.page-faq .faq-tag:focus-visible {
  background: #FF6B35;
  border-color: #FF6B35;
  color: #FFFFFF;
}
.page-faq .faq-tag:focus-visible {
  outline: 2px solid #FF6B35;
  outline-offset: 2px;
}

/* ---------- 布局 ---------- */
.page-faq .faq-layout {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

/* ---------- 分区 ---------- */
.page-faq .faq-section {
  margin: 2rem 0 2.5rem;
  scroll-margin-top: 80px;
}
.page-faq .faq-section__title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #0B1A30;
  border-bottom: 3px solid #FF6B35;
  padding-bottom: 0.5rem;
}
.page-faq .faq-section__num {
  font-family: 'Roboto Mono', 'Consolas', monospace;
  font-weight: 500;
  color: #FF6B35;
  font-size: 1.125rem;
  min-width: 2.5rem;
}
.page-faq .faq-section__label {
  flex: 1;
}

/* ---------- 问答列表 ---------- */
.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.page-faq .faq-list--with-img {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.page-faq .faq-list__items {
  flex: 1 1 60%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.page-faq .faq-list__img {
  flex: 0 0 auto;
  width: 300px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 300/200;
  object-fit: cover;
  border-radius: var(--faq-radius);
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ---------- 单个项目（手风琴） ---------- */
.page-faq .faq-item {
  border: 1px solid var(--faq-border);
  border-radius: var(--faq-radius);
  background: #FFFFFF;
  transition: border-color var(--faq-transition), box-shadow var(--faq-transition);
  overflow: hidden;
}
.page-faq .faq-item:hover {
  border-color: #FF6B35;
  box-shadow: 0 2px 8px rgba(255,107,53,0.12);
}
.page-faq .faq-item[open] {
  border-color: #FF6B35;
}

/* 问题行 */
.page-faq .faq-item__q {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--faq-transition);
  font-family: 'Noto Serif SC', 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0B1A30;
  line-height: 1.5;
}
.page-faq .faq-item__q::-webkit-details-marker {
  display: none;
}
.page-faq .faq-item__q:hover {
  background: var(--faq-bg-hover);
}
.page-faq .faq-item[open] .faq-item__q {
  background: rgba(255,107,53,0.06);
}

/* 编号 */
.page-faq .faq-item__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  font-family: 'Roboto Mono', 'Consolas', monospace;
  font-weight: 500;
  font-size: 0.875rem;
  color: #FFFFFF;
  background: #FF6B35;
  border-radius: 4px;
  transition: transform var(--faq-transition);
}
.page-faq .faq-item:hover .faq-item__index {
  transform: scale(1.05);
}

/* 文字 */
.page-faq .faq-item__text {
  flex: 1;
}

/* 箭头 */
.page-faq .faq-item__arrow {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--faq-transition);
}
.page-faq .faq-item__arrow::before,
.page-faq .faq-item__arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.625rem;
  height: 2px;
  background: #FF6B35;
  border-radius: 1px;
  transition: transform var(--faq-transition);
}
.page-faq .faq-item__arrow::before {
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
}
.page-faq .faq-item__arrow::after {
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
}
.page-faq .faq-item[open] .faq-item__arrow {
  transform: rotate(180deg);
}
.page-faq .faq-item[open] .faq-item__arrow::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.page-faq .faq-item[open] .faq-item__arrow::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 答案 */
.page-faq .faq-item__a {
  padding: 0 1.25rem 1.25rem;
  font-family: 'Noto Serif SC', 'Times New Roman', serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4A4A4A;
  border-top: 1px solid #F0F0F0;
  margin-top: 0;
}
.page-faq .faq-item__a p {
  margin: 0.75rem 0 0;
}
.page-faq .faq-item__a p:first-child {
  margin-top: 0;
}

/* 链接 */
.page-faq .faq-link {
  color: #FF6B35;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--faq-transition);
}
.page-faq .faq-link:hover {
  color: #0B1A30;
}

/* ---------- 更多帮助 ---------- */
.page-faq .faq-more {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: #F5F5F5;
  border-radius: var(--faq-radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.page-faq .faq-more__text {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0B1A30;
  margin: 0;
}
.page-faq .faq-more__btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  background: #FF6B35;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--faq-transition), transform var(--faq-transition);
}
.page-faq .faq-more__btn:hover {
  background: #e55a2b;
  transform: translateY(-2px);
}
.page-faq .faq-more__back {
  font-family: 'Noto Serif SC', 'Times New Roman', serif;
  font-size: 0.9375rem;
  color: #4A4A4A;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--faq-transition);
}
.page-faq .faq-more__back:hover {
  color: #FF6B35;
}

/* ===== 响应式：移动端优先 ===== */
/* 默认（<640px）已适配移动端 */
/* 平板及以上（≥640px） */
@media (min-width: 640px) {
  .page-faq .faq-hero {
    padding: 3rem 0 2rem;
  }
  .page-faq .faq-hero__title {
    font-size: 2.75rem;
  }
  .page-faq .faq-hero__desc {
    font-size: 1.0625rem;
  }
  .page-faq .faq-tags {
    gap: 1rem;
    padding: 2rem 0 1.5rem;
  }
  .page-faq .faq-tag {
    font-size: 0.9375rem;
    padding: 0.625rem 1.5rem;
  }
  .page-faq .faq-section__title {
    font-size: 1.75rem;
  }
  .page-faq .faq-item__q {
    padding: 1.125rem 1.5rem;
    font-size: 1.0625rem;
  }
  .page-faq .faq-item__a {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.9375rem;
  }
  .page-faq .faq-list--with-img {
    flex-wrap: nowrap;
  }
  .page-faq .faq-list__img {
    width: 300px;
  }
}

/* 桌面（≥1024px） */
@media (min-width: 1024px) {
  .page-faq .faq-hero__inner {
    flex-direction: row;
    text-align: left;
    gap: 2rem;
  }
  .page-faq .faq-hero__img {
    max-width: 480px;
  }
  .page-faq .faq-hero__text {
    flex: 1;
  }
  .page-faq .faq-hero__title {
    font-size: 3rem;
  }
  .page-faq .faq-tags {
    justify-content: flex-start;
    padding: 2.5rem 0 2rem;
  }
  .page-faq .faq-section__title {
    font-size: 2rem;
  }
  .page-faq .faq-more {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 3rem;
  }
  .page-faq .faq-more__text {
    font-size: 1.25rem;
  }
}
