.page-faq {
  --faq-red: #E63946;
  --faq-gold: #C99700;
  --faq-blue: #00A8E8;
  --faq-ink: #1A1A1A;
  --faq-charcoal: #333333;
  --faq-silver: #F5F5F5;
  --faq-midnight: #0B1D3A;
  --faq-line: rgba(0, 168, 232, 0.25);
  --faq-font-head: 'Arial Black', 'Impact', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --faq-font-body: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  background: var(--faq-ink);
  color: var(--faq-silver);
}

.page-faq a {
  color: var(--faq-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.page-faq a:hover {
  color: var(--faq-red);
}

/* 顶部帮助栏 */
.faq-hero {
  background:
    linear-gradient(135deg, rgba(230, 57, 70, 0.12) 0%, transparent 40%),
    linear-gradient(45deg, transparent 70%, rgba(201, 151, 0, 0.08) 100%),
    var(--faq-ink);
  border-bottom: 1px solid var(--faq-line);
  position: relative;
  overflow: hidden;
}

.faq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 8px,
    rgba(230, 57, 70, 0.15) 8px 9px
  );
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.faq-hero__inner {
  padding: 32px 20px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.faq-hero .breadcrumbs {
  font-size: 13px;
  color: rgba(245, 245, 245, 0.55);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.faq-hero .breadcrumbs a {
  color: rgba(245, 245, 245, 0.7);
}

.faq-hero .breadcrumbs .sep {
  color: var(--faq-gold);
  margin: 0 6px;
}

.faq-hero__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.faq-hero__text h1 {
  font-family: var(--faq-font-head);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--faq-silver);
  letter-spacing: -0.01em;
  border-left: 4px solid var(--faq-red);
  padding-left: 16px;
}

.faq-hero__text p {
  font-family: var(--faq-font-body);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.72);
  margin: 0;
  max-width: 36em;
}

.faq-hero__emblem {
  margin: 0;
  display: none;
}

.faq-hero__img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: cover;
  display: block;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  filter: contrast(1.05) saturate(1.1);
}

/* 帮助主体 */
.faq-board {
  background: var(--faq-ink);
  border-bottom: 4px solid var(--faq-midnight);
}

.faq-board__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 8px;
  display: grid;
  gap: 32px;
}

/* 目录导航 */
.faq-index {
  background: var(--faq-charcoal);
  border: 1px solid var(--faq-line);
  padding: 20px 18px;
  position: sticky;
  top: 88px;
  align-self: start;
}

.faq-index__label {
  font-family: var(--faq-font-head);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--faq-gold);
  margin: 0 0 14px;
  border-bottom: 1px solid rgba(201, 151, 0, 0.35);
  padding-bottom: 10px;
}

.faq-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-index__list a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  font-family: var(--faq-font-body);
  color: rgba(245, 245, 245, 0.82);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.faq-index__list a:hover {
  color: var(--faq-silver);
  border-left-color: var(--faq-red);
  background: rgba(230, 57, 70, 0.08);
}

.faq-index__note {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 245, 245, 0.10);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.faq-index__note-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background: var(--faq-gold);
  color: var(--faq-ink);
  font-family: var(--faq-font-head);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.faq-index__note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245, 245, 245, 0.55);
}

/* 手风琴区 */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.faq-group {
  scroll-margin-top: 20px;
}

.faq-group__title {
  font-family: var(--faq-font-head);
  font-size: 20px;
  line-height: 1.3;
  color: var(--faq-silver);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-group__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--faq-red), transparent);
  max-width: 120px;
}

.faq-item {
  background: var(--faq-charcoal);
  border: 1px solid rgba(245, 245, 245, 0.06);
  margin-bottom: 8px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(230, 57, 70, 0.4);
}

.faq-item[open] {
  border-color: rgba(230, 57, 70, 0.22);
}

.faq-item__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  font-family: var(--faq-font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--faq-silver);
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

.faq-item__q::after {
  content: "+";
  margin-left: auto;
  font-family: var(--faq-font-head);
  font-size: 18px;
  color: var(--faq-red);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-item__q::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-item__q:hover {
  background: rgba(230, 57, 70, 0.14);
}

.faq-mark {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: var(--faq-red);
  color: var(--faq-ink);
  font-family: var(--faq-font-head);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.faq-item__a {
  padding: 4px 14px 16px 52px;
  font-family: var(--faq-font-body);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.72);
  border-top: 1px solid rgba(201, 151, 0, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.faq-item__a p {
  margin: 12px 0 0;
}

.faq-item__a a {
  color: var(--faq-blue);
}

/* 数据下载示意 */
.faq-visual {
  margin: 8px 0 24px;
  padding: 16px;
  background: var(--faq-charcoal);
  border: 1px solid rgba(0, 168, 232, 0.2);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-direction: column;
}

.faq-visual img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(245, 245, 245, 0.12);
  filter: contrast(1.02);
}

.faq-visual figcaption {
  font-size: 13px;
  color: rgba(245, 245, 245, 0.55);
  line-height: 1.5;
  border-left: 2px solid var(--faq-blue);
  padding-left: 10px;
  flex: 1;
}

/* 底部支持 */
.faq-support {
  background:
    linear-gradient(90deg, var(--faq-midnight) 0%, #0F2A4A 60%, var(--faq-midnight) 100%);
  border-top: 2px solid var(--faq-red);
}

.faq-support__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  gap: 20px;
  align-items: center;
}

.faq-support__icon {
  width: 48px;
  height: 48px;
  margin: 0;
  background: var(--faq-red);
  color: var(--faq-ink);
  font-family: var(--faq-font-head);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.faq-support__text h2 {
  font-family: var(--faq-font-head);
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--faq-silver);
}

.faq-support__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.72);
  max-width: 56em;
}

.faq-support__btn {
  justify-self: start;
  color: var(--faq-silver);
  border-color: var(--faq-red);
  background: transparent;
}

.faq-support__btn:hover {
  background: var(--faq-red);
  color: var(--faq-ink);
  border-color: var(--faq-red);
}

/* ========== 小屏：≥640px ========== */
@media (min-width: 640px) {
  .faq-hero__grid {
    grid-template-columns: 1fr 300px;
  }

  .faq-hero__emblem {
    display: block;
  }

  .faq-visual {
    flex-direction: row;
    align-items: center;
  }

  .faq-visual img {
    width: 300px;
    flex: 0 0 300px;
  }

  .faq-support__inner {
    grid-template-columns: auto 1fr auto;
    gap: 24px;
  }
}

/* ========== 中等屏：≥960px ========== */
@media (min-width: 960px) {
  .faq-board__inner {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding: 48px 32px 16px;
  }

  .faq-index {
    position: sticky;
    top: 88px;
  }

  .faq-item__q {
    padding: 16px 18px;
    font-size: 16px;
  }

  .faq-item__a {
    padding: 6px 18px 20px 60px;
    font-size: 15px;
  }

  .faq-group__title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .faq-accordion {
    gap: 44px;
  }
}

/* ========== 大屏：≥1200px ========== */
@media (min-width: 1200px) {
  .faq-hero__inner {
    padding-top: 44px;
    padding-bottom: 56px;
  }

  .faq-hero__text p {
    font-size: 16px;
  }

  .faq-support__inner {
    padding: 44px 32px;
  }

  .faq-support__text p {
    font-size: 15px;
  }
}
