/* ===== FAQ 页面专属样式 ===== */
.page-faq {
  --faq-gold: #CDA434;
  --faq-dark: #0D0D0D;
  --faq-primary-bg: #1B3A2D;
  --faq-card-bg: rgba(13, 13, 13, 0.75);
  --faq-border-color: rgba(205, 164, 52, 0.25);
  --faq-text-light: #FFFFFF;
  --faq-text-muted: #B8A88A;
  --faq-radius: 8px;
  --faq-gap: 16px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--faq-dark);
  color: var(--faq-text-light);
  font-family: var(--font-body, Georgia, serif);
  line-height: 1.7;
}

/* ===== Hero 区域 ===== */
.faq-hero {
  position: relative;
  padding: 48px 20px 40px;
  text-align: center;
  background: linear-gradient(165deg, var(--faq-primary-bg) 0%, var(--faq-dark) 70%);
  overflow: hidden;
}

.faq-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(205, 164, 52, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(205, 164, 52, 0.03) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(205, 164, 52, 0.015) 20px, rgba(205, 164, 52, 0.015) 21px);
  pointer-events: none;
  z-index: 0;
}

.faq-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.faq-hero-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.faq-hero-icon svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 20px rgba(205, 164, 52, 0.3));
}

.faq-hero-title {
  font-family: var(--font-headline, 'Arial Black', Impact, sans-serif);
  font-size: var(--size-h1, 3.2rem);
  font-weight: 900;
  color: var(--faq-text-light);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.faq-hero-desc {
  font-family: var(--font-body, Georgia, serif);
  font-size: var(--size-body, 1.6rem);
  color: var(--faq-text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.faq-quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.faq-quick-link {
  font-family: var(--font-headline, 'Arial Black', Impact, sans-serif);
  font-size: var(--size-small, 1.4rem);
  font-weight: 700;
  color: var(--faq-gold);
  text-decoration: none;
  padding: 6px 16px;
  border: 1.5px solid var(--faq-border-color);
  border-radius: 100px;
  background: rgba(13, 13, 13, 0.35);
  backdrop-filter: blur(4px);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  letter-spacing: 0.02em;
}

.faq-quick-link:hover,
.faq-quick-link:focus {
  background: var(--faq-gold);
  color: var(--faq-dark);
  border-color: var(--faq-gold);
  outline: none;
}

/* ===== 主容器 ===== */
.faq-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ===== 每个板块 ===== */
.faq-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-section-header {
  border-bottom: 1.5px solid var(--faq-border-color);
  padding-bottom: 12px;
}

.faq-section-title {
  font-family: var(--font-headline, 'Arial Black', Impact, sans-serif);
  font-size: var(--size-h2, 2.4rem);
  font-weight: 800;
  color: var(--faq-gold);
  margin: 0 0 6px;
  letter-spacing: 0.03em;
  position: relative;
  display: inline-block;
}

.faq-section-title::before {
  content: "? ";
  color: var(--faq-gold);
  opacity: 0.6;
  font-size: 0.85em;
}

.faq-section-sub {
  font-family: var(--font-body, Georgia, serif);
  font-size: var(--size-small, 1.4rem);
  color: var(--faq-text-muted);
  margin: 0;
  line-height: 1.5;
}

.faq-section-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-section-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.faq-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--faq-border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(205, 164, 52, 0.08);
  background: var(--faq-card-bg);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-img:hover {
  border-color: rgba(205, 164, 52, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(205, 164, 52, 0.12);
}

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

.faq-items-full {
  width: 100%;
}

/* ===== 手风琴单项 ===== */
.faq-item {
  background: var(--faq-card-bg);
  border: 1px solid var(--faq-border-color);
  border-radius: var(--faq-radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.faq-item[open] {
  border-color: rgba(205, 164, 52, 0.4);
  box-shadow: 0 4px 24px rgba(205, 164, 52, 0.06), inset 0 0 0 1px rgba(205, 164, 52, 0.06);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-family: var(--font-headline, 'Arial Black', Impact, sans-serif);
  font-size: var(--size-body, 1.6rem);
  font-weight: 700;
  color: var(--faq-text-light);
  line-height: 1.4;
  transition: background 0.25s, color 0.25s;
  position: relative;
}

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

.faq-question:hover {
  background: rgba(205, 164, 52, 0.06);
}

.faq-item[open] .faq-question {
  background: rgba(205, 164, 52, 0.08);
  color: var(--faq-gold);
}

.faq-q-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(205, 164, 52, 0.12);
  color: var(--faq-gold);
  font-family: var(--font-headline, 'Arial Black', Impact, sans-serif);
  font-size: 1.4rem;
  font-weight: 900;
  transition: background 0.25s, transform 0.25s;
}

.faq-item[open] .faq-q-icon {
  background: var(--faq-gold);
  color: var(--faq-dark);
  transform: scale(1.05);
}

.faq-q-text {
  flex: 1;
  min-width: 0;
}

.faq-q-toggle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.35s ease;
}

.faq-q-toggle::before,
.faq-q-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--faq-text-muted);
  border-radius: 2px;
  transition: background 0.3s, transform 0.35s ease;
}

.faq-q-toggle::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-q-toggle::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item[open] .faq-q-toggle {
  transform: rotate(45deg);
}

.faq-item[open] .faq-q-toggle::before,
.faq-item[open] .faq-q-toggle::after {
  background: var(--faq-gold);
}

/* ===== 答案区域 ===== */
.faq-answer {
  padding: 4px 18px 18px;
  font-family: var(--font-body, Georgia, serif);
  font-size: var(--size-body, 1.6rem);
  color: var(--faq-text-muted);
  line-height: 1.7;
  animation: faq-answer-fade 0.35s ease;
}

@keyframes faq-answer-fade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-inline-link {
  color: var(--faq-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(205, 164, 52, 0.3);
  transition: border-color 0.25s, color 0.25s;
  font-weight: 600;
}

.faq-inline-link:hover,
.faq-inline-link:focus {
  color: #e0b84c;
  border-bottom-color: var(--faq-gold);
  outline: none;
}

/* ===== CTA 栏 ===== */
.faq-cta-bar {
  margin-top: 32px;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--faq-primary-bg) 0%, rgba(13, 13, 13, 0.95) 100%);
  border-top: 1px solid var(--faq-border-color);
}

.faq-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.faq-cta-text {
  font-family: var(--font-body, Georgia, serif);
  font-size: var(--size-h3, 1.8rem);
  color: var(--faq-text-light);
  margin: 0;
  line-height: 1.5;
}

.faq-cta-btn {
  display: inline-block;
  font-family: var(--font-headline, 'Arial Black', Impact, sans-serif);
  font-size: var(--size-body, 1.6rem);
  font-weight: 700;
  color: var(--faq-dark);
  background: var(--faq-gold);
  padding: 12px 36px;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(205, 164, 52, 0.25);
}

.faq-cta-btn:hover,
.faq-cta-btn:focus {
  background: #e0b84c;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(205, 164, 52, 0.35);
  outline: none;
}

/* ===== 移动端优先细调 ===== */
@media (max-width: 480px) {
  .faq-hero {
    padding: 32px 16px 28px;
  }

  .faq-hero-icon svg {
    width: 56px;
    height: 56px;
  }

  .faq-hero-title {
    font-size: 2.4rem;
  }

  .faq-hero-desc {
    font-size: 1.4rem;
  }

  .faq-quick-link {
    font-size: 1.2rem;
    padding: 5px 12px;
  }

  .faq-container {
    padding: 24px 14px 12px;
    gap: 36px;
  }

  .faq-section-title {
    font-size: 1.8rem;
  }

  .faq-question {
    padding: 14px 14px;
    font-size: 1.4rem;
    gap: 10px;
  }

  .faq-q-icon {
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
  }

  .faq-answer {
    padding: 2px 14px 14px;
    font-size: 1.4rem;
  }

  .faq-img {
    max-width: 240px;
  }

  .faq-cta-bar {
    padding: 28px 16px;
  }

  .faq-cta-text {
    font-size: 1.6rem;
  }

  .faq-cta-btn {
    padding: 10px 28px;
    font-size: 1.4rem;
  }
}

/* ===== 桌面端增强 ===== */
@media (min-width: 768px) {
  .faq-hero {
    padding: 64px 40px 48px;
  }

  .faq-hero-icon svg {
    width: 80px;
    height: 80px;
  }

  .faq-hero-title {
    font-size: 3.6rem;
  }

  .faq-hero-desc {
    font-size: 1.8rem;
  }

  .faq-container {
    padding: 56px 40px 32px;
    gap: 56px;
  }

  .faq-section-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 36px;
  }

  .faq-section-image {
    flex-shrink: 0;
    width: 200px;
    order: 1;
    padding-top: 8px;
  }

  .faq-img {
    max-width: 200px;
  }

  .faq-items {
    flex: 1;
    min-width: 0;
    order: 2;
  }

  .faq-items-full {
    flex: 1 1 100%;
  }

  .faq-section:nth-child(even) .faq-section-content {
    flex-direction: row-reverse;
  }

  .faq-question {
    padding: 18px 24px;
    font-size: 1.7rem;
  }

  .faq-answer {
    padding: 6px 24px 22px;
    font-size: 1.6rem;
  }

  .faq-cta-bar {
    padding: 48px 40px;
  }

  .faq-cta-text {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .faq-hero {
    padding: 80px 40px 56px;
  }

  .faq-hero-title {
    font-size: 4rem;
  }

  .faq-hero-desc {
    font-size: 1.9rem;
  }

  .faq-container {
    padding: 64px 40px 40px;
    gap: 64px;
  }

  .faq-section-image {
    width: 240px;
  }

  .faq-img {
    max-width: 240px;
  }

  .faq-question {
    padding: 20px 28px;
    font-size: 1.8rem;
  }

  .faq-answer {
    padding: 8px 28px 24px;
  }
}

/* ===== 大屏内容宽度限制 ===== */
@media (min-width: 1200px) {
  .faq-container {
    max-width: 1040px;
  }

  .faq-section-image {
    width: 260px;
  }

  .faq-img {
    max-width: 260px;
  }
}

/* ===== 减少动画偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  .faq-answer {
    animation: none;
  }

  .faq-item,
  .faq-question,
  .faq-q-toggle,
  .faq-q-icon,
  .faq-img,
  .faq-cta-btn,
  .faq-quick-link,
  .faq-inline-link {
    transition: none !important;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .page-faq {
    background: #fff;
    color: #222;
  }

  .faq-hero {
    background: none;
    padding: 20px 0;
  }

  .faq-hero-pattern,
  .faq-hero-icon svg {
    display: none;
  }

  .faq-hero-title {
    color: #222;
    text-shadow: none;
  }

  .faq-hero-desc {
    color: #555;
  }

  .faq-quick-nav {
    display: none;
  }

  .faq-item {
    background: none;
    border-color: #ccc;
    break-inside: avoid;
  }

  .faq-section-title {
    color: #1B3A2D;
  }

  .faq-section-title::before {
    color: #1B3A2D;
    opacity: 1;
  }

  .faq-q-icon {
    background: #1B3A2D;
    color: #fff;
  }

  .faq-item[open] .faq-q-icon {
    background: #1B3A2D;
    color: #fff;
  }

  .faq-question {
    color: #222;
  }

  .faq-item[open] .faq-question {
    color: #1B3A2D;
    background: none;
  }

  .faq-answer {
    color: #444;
  }

  .faq-inline-link {
    color: #1B3A2D;
    border-bottom-color: #999;
  }

  .faq-q-toggle::before,
  .faq-q-toggle::after {
    background: #666;
  }

  .faq-cta-bar {
    background: none;
    border-top-color: #ccc;
  }

  .faq-cta-text {
    color: #222;
  }

  .faq-cta-btn {
    background: #1B3A2D;
    color: #fff;
    box-shadow: none;
  }

  .faq-img {
    border-color: #ccc;
    box-shadow: none;
  }
}
