.page-faq {
  --faq-bg: #333333;
  --faq-card-bg: #f8f9fa;
  --faq-card-border: #e63946;
  --faq-text: #1a1a1a;
  --faq-text-light: #f8f9fa;
  --faq-accent: #f4a261;
  --faq-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --faq-radius: 8px;
  --faq-gap: 1.25rem;
  display: block;
  background: var(--faq-bg);
  color: var(--faq-text-light);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  padding: 0;
  margin: 0;
  min-height: 80vh;
}

/* ===== 顶部英雄区 ===== */
.faq-hero {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  border-bottom: 4px solid var(--faq-card-border);
}

.faq-hero__bg {
  width: 100%;
  height: auto;
  display: block;
}

.faq-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.5) saturate(1.2);
}

.faq-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.85) 0%, transparent 70%);
}

.faq-hero__overlay .breadcrumb {
  font-size: 0.8rem;
  color: var(--faq-accent);
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  align-items: center;
}

.faq-hero__overlay .breadcrumb a {
  color: var(--faq-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.faq-hero__overlay .breadcrumb a:hover,
.faq-hero__overlay .breadcrumb a:focus-visible {
  color: var(--faq-card-border);
  text-decoration: underline;
}

.faq-hero__overlay .breadcrumb .sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.faq-hero__overlay .breadcrumb [aria-current="page"] {
  color: var(--faq-text-light);
  font-weight: 400;
}

.faq-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  font-style: italic;
  color: var(--faq-text-light);
  margin: 0 0 0.15rem;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.faq-hero__sub {
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 400;
  max-width: 32rem;
}

/* ===== 搜索区 ===== */
.faq-search {
  position: relative;
  max-width: 720px;
  margin: 2rem auto 0.5rem;
  padding: 0 1.25rem;
}

.faq-search__input {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--faq-text);
  background: var(--faq-card-bg);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--faq-radius);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
}

.faq-search__input::placeholder {
  color: #888;
  opacity: 0.8;
}

.faq-search__input:focus {
  border-color: var(--faq-card-border);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.25);
}

.faq-search__icon {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  pointer-events: none;
  line-height: 1;
}

/* ===== 板块容器 ===== */
.faq-sections {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ===== 每个板块 ===== */
.faq-section {
  background: transparent;
}

.faq-section__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  font-style: italic;
  color: var(--faq-text-light);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(244, 162, 97, 0.35);
}

.faq-section__icon {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.faq-section__cards {
  display: flex;
  flex-direction: column;
  gap: var(--faq-gap);
}

/* ===== 单个卡片（可折叠） ===== */
.faq-card {
  background: var(--faq-card-bg);
  color: var(--faq-text);
  border-radius: var(--faq-radius);
  border-left: 5px solid var(--faq-card-border);
  box-shadow: var(--faq-shadow);
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.faq-card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.faq-card[open] {
  border-left-color: var(--faq-accent);
}

.faq-card__question {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.faq-card__question::-webkit-details-marker {
  display: none;
}

.faq-card__question::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--faq-card-border);
  transition: transform 0.3s, content 0.3s;
  line-height: 1;
}

.faq-card[open] .faq-card__question::after {
  content: "–";
  transform: translateY(-50%) rotate(0deg);
  color: var(--faq-accent);
}

.faq-card__question:hover,
.faq-card__question:focus-visible {
  background: rgba(230, 57, 70, 0.06);
}

.faq-card__question:focus-visible {
  outline: 2px solid var(--faq-card-border);
  outline-offset: -2px;
}

.faq-card__answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2a2a2a;
}

.faq-card__answer p {
  margin: 0.5rem 0;
}

.faq-card__answer a {
  color: var(--faq-card-border);
  text-decoration: underline;
  font-weight: 500;
}

.faq-card__answer a:hover,
.faq-card__answer a:focus-visible {
  color: #b00;
  text-decoration-thickness: 2px;
}

/* ===== 底部联系区 ===== */
.faq-contact {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--faq-radius);
  border: 1px solid rgba(244, 162, 97, 0.2);
  text-align: center;
}

.faq-contact__title {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 700;
  font-style: italic;
  color: var(--faq-text-light);
  margin: 0 0 0.5rem;
}

.faq-contact__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.25rem;
}

.faq-contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.faq-contact__actions .button {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 2rem;
  background: var(--faq-card-border);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--faq-radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}

.faq-contact__actions .button:hover,
.faq-contact__actions .button:focus-visible {
  background: #c1121f;
  transform: translateY(-2px);
}

.faq-contact__actions .button--secondary {
  background: transparent;
  border: 2px solid var(--faq-accent);
  color: var(--faq-accent);
}

.faq-contact__actions .button--secondary:hover,
.faq-contact__actions .button--secondary:focus-visible {
  background: var(--faq-accent);
  color: #1a1a1a;
  border-color: var(--faq-accent);
}

.faq-contact__note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.faq-contact__note a {
  color: var(--faq-accent);
  text-decoration: none;
  font-weight: 500;
}

.faq-contact__note a:hover {
  text-decoration: underline;
}

/* ===== 辅助类 ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 滚动显现 ===== */
.faq-card[data-reveal],
.faq-contact[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.faq-card[data-reveal].visible,
.faq-contact[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (prefers-reduced-motion: reduce) {
  .faq-card[data-reveal],
  .faq-contact[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .faq-card__question::after {
    transition: none;
  }

  .faq-card,
  .faq-contact__actions .button {
    transition: none;
  }
}

/* 窄屏适配（移动端优先） */
@media (max-width: 640px) {
  .faq-hero__overlay {
    padding: 1rem 0.75rem;
  }

  .faq-hero__title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .faq-hero__sub {
    font-size: 0.85rem;
  }

  .faq-search {
    padding: 0 1rem;
    margin-top: 1.25rem;
  }

  .faq-search__input {
    padding: 0.75rem 0.75rem 0.75rem 2.6rem;
    font-size: 0.95rem;
  }

  .faq-search__icon {
    left: 1.6rem;
    font-size: 1rem;
  }

  .faq-sections {
    padding: 0 1rem 1.5rem;
    gap: 2rem;
    margin-top: 1rem;
  }

  .faq-section__title {
    font-size: 1.2rem;
    gap: 0.5rem;
  }

  .faq-section__icon {
    width: 24px;
    height: 24px;
  }

  .faq-card__question {
    padding: 0.85rem 2.6rem 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .faq-card__question::after {
    right: 0.85rem;
    font-size: 1.2rem;
  }

  .faq-card__answer {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
  }

  .faq-contact {
    margin: 0 1rem 2rem;
    padding: 1.5rem 1rem;
  }

  .faq-contact__actions {
    flex-direction: column;
    align-items: center;
  }

  .faq-contact__actions .button {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
}

/* 桌面端增强 */
@media (min-width: 768px) {
  .faq-hero__overlay {
    padding: 2rem 2.5rem;
  }

  .faq-sections {
    padding: 0 2rem 2.5rem;
    gap: 3.5rem;
  }

  .faq-section__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--faq-gap);
  }

  .faq-section__title {
    grid-column: 1 / -1;
  }

  .faq-card {
    break-inside: avoid;
  }

  .faq-search {
    padding: 0 2rem;
  }

  .faq-contact {
    padding: 2.5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .faq-hero__overlay {
    padding: 2.5rem 3rem;
  }

  .faq-sections {
    padding: 0 2rem 3rem;
  }

  .faq-section__cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
