.page-faq {
  --faq-green-deep: #052E22;
  --faq-green-soft: rgba(11, 61, 46, 0.06);
  --faq-gold-soft: rgba(244, 163, 0, 0.16);
  --faq-red-soft: rgba(230, 57, 70, 0.12);
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, #F4F4F4 0%, #FFFFFF 90%);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ===== 首屏框景头部 ===== */
.faq-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 56px;
  background:
    linear-gradient(160deg, rgba(46, 139, 87, 0.12) 0%, transparent 55%),
    var(--green);
  color: #FFFFFF;
}

.faq-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -70px;
  top: -70px;
  width: 260px;
  height: 260px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.page-faq .faq-hero .breadcrumb {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.page-faq .faq-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.page-faq .faq-hero .breadcrumb a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.page-faq .faq-hero .faq-breadcrumb__sep {
  margin: 0 8px;
}

.faq-hero__frame {
  position: relative;
  z-index: 1;
  max-width: 840px;
  padding: 28px 24px 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 3px solid #FFFFFF;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.18);
}

.faq-hero__frame::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 46px;
  width: 46px;
  height: 6px;
  background: var(--gold);
}

.page-faq .faq-hero .page-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.page-faq .faq-hero .page-title {
  margin: 10px 0 16px;
  color: #FFFFFF;
  font-size: 32px;
  line-height: 1.2;
}

.page-faq .faq-hero .page-lede {
  max-width: 680px;
  margin: 0 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.75;
}

.faq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-faq .faq-hero .button--ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: #FFFFFF;
}

.page-faq .faq-hero .button--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.page-faq .faq-hero .button:not(.button--ghost) {
  background: var(--red);
  border: 2px solid var(--red);
  color: #FFFFFF;
}

.page-faq .faq-hero .button:not(.button--ghost):hover {
  background: #C32A36;
  border-color: #C32A36;
}

/* ===== 章节导轨 ===== */
.faq-track {
  position: relative;
  z-index: 10;
  background: #FFFFFF;
  border-bottom: 3px solid var(--green);
  box-shadow: 0 6px 16px rgba(11, 61, 46, 0.08);
}

.faq-track__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--green-2) var(--faq-green-soft);
}

.faq-track__inner::-webkit-scrollbar {
  height: 6px;
}

.faq-track__inner::-webkit-scrollbar-thumb {
  background: var(--green-2);
  border-radius: 12px;
}

.faq-track__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 14px 8px;
  border: 2px solid transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq-track__link:hover,
.faq-track__link[aria-current="page"] {
  border-color: var(--green);
  background: var(--faq-green-soft);
  color: var(--red);
}

.faq-track__link:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -2px;
}

.faq-track__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--gold);
}

/* ===== 分类标签区 ===== */
.faq-cats {
  padding: 44px 0 10px;
}

.faq-cats__card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  background: #FFFFFF;
  border: 3px solid var(--green);
  box-shadow: var(--shadow-green);
  padding: 18px;
}

.faq-cats__imgwrap {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border: 3px solid var(--green);
  background: var(--faq-gold-soft);
  line-height: 0;
}

.faq-cats__imgwrap::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  right: -10px;
  bottom: -10px;
  background: var(--red);
  border: 2px solid #FFFFFF;
}

.faq-cats__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.faq-cats__content h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.faq-cats__desc {
  margin: 0 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.faq-cats__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.page-faq .faq-cats__tags .tag {
  font-size: 14px;
}

/* ===== 小贴士 ===== */
.faq-tip {
  padding: 14px 0 36px;
}

.faq-tip p {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 14px 18px;
  background: var(--faq-gold-soft);
  border-left: 6px solid var(--gold);
  font-size: 14px;
  line-height: 1.6;
}

.faq-tip__label {
  flex-shrink: 0;
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.faq-tip a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.faq-tip a:hover {
  color: var(--green);
  text-decoration-color: var(--green);
}

/* ===== 主体两栏布局 ===== */
.faq-layout {
  display: grid;
  gap: 32px;
  padding-bottom: 56px;
}

.faq-layout__side {
  display: none;
}

.faq-layout__main {
  display: grid;
  gap: 36px;
}

/* ===== 帮助指南侧栏 ===== */
@media (min-width: 992px) {
  .faq-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 40px;
  }

  .faq-layout__side {
    display: block;
    position: sticky;
    top: 92px;
  }

  .faq-layout__sticky {
    background: var(--green);
    color: #FFFFFF;
    border: 3px solid #FFFFFF;
    box-shadow: var(--shadow-green);
    padding: 20px 18px;
  }

  .faq-layout__side-title {
    margin: 0 0 6px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.08em;
  }

  .faq-layout__side-link {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  .faq-layout__side-link span {
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 13px;
  }

  .faq-layout__side-link:hover {
    color: var(--gold);
    padding-left: 6px;
  }

  .faq-layout__side-more {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .faq-layout__side-more a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
  }

  .faq-layout__side-more a:hover {
    color: var(--gold);
    border-color: var(--gold);
  }
}

/* ===== FAQ 章节卡片 ===== */
.faq-section {
  scroll-margin-top: 20px;
  padding: 22px 18px 26px;
  background: #FFFFFF;
  border: 3px solid var(--green);
  box-shadow: 8px 8px 0 rgba(11, 61, 46, 0.1);
}

.faq-section__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 6px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--faq-green-soft);
}

.faq-section__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 17px;
}

.faq-section__heading {
  min-width: 0;
}

.faq-section__heading .section-heading {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.3;
}

.faq-section__intro {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ===== 折叠问答 ===== */
.faq-item {
  border-bottom: 1px solid rgba(11, 61, 46, 0.12);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  transition: background 0.2s ease;
}

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

.faq-item__summary:hover {
  background: var(--faq-green-soft);
}

.faq-item__summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.faq-item__num {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  background: var(--gold);
  color: var(--green);
  border: 2px solid var(--gold);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq-item__q {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.5;
}

.faq-item__summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1;
  color: var(--red);
  transition: transform 0.25s ease, content 0.25s ease;
}

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

.faq-item[open] .faq-item__summary {
  background: var(--faq-red-soft);
}

.faq-item[open] .faq-item__num {
  background: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
}

.faq-item[open] .faq-item__q {
  color: var(--red);
}

.faq-item__a {
  padding: 0 4px 22px 52px;
  font-size: 15px;
  line-height: 1.75;
  color: #3A4A42;
}

.faq-item__a p + p {
  margin-top: 8px;
}

/* ===== 反馈支持卡 ===== */
.faq-support-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  background: var(--green);
  color: #FFFFFF;
  border: 3px solid #FFFFFF;
  box-shadow: var(--shadow-red);
}

.faq-support-card__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 600px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  object-fit: cover;
}

.faq-support-card__content {
  min-width: 0;
  flex: 1;
}

.faq-support-card .section-kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.faq-support-card__title {
  margin: 6px 0 8px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.3;
}

.faq-support-card__sub {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.6;
}

.faq-support-card__list {
  margin: 0 0 14px;
}

.faq-support-card__list div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.faq-support-card__list dt {
  padding-top: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.faq-support-card__list dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  word-break: break-all;
  color: #FFFFFF;
}

.faq-support-card__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.faq-support-card__note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-support-card__note a:hover {
  color: #FFFFFF;
}

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

  .faq-hero__frame {
    padding: 44px 44px 42px;
    border-width: 4px;
  }

  .page-faq .faq-hero .page-title {
    font-size: 40px;
  }

  .faq-track {
    top: 0;
  }

  .faq-cats {
    padding: 52px 0 12px;
  }

  .faq-cats__card {
    flex-direction: row;
    align-items: center;
    gap: 30px;
    padding: 24px;
  }

  .faq-cats__imgwrap {
    width: 200px;
    height: 200px;
  }

  .faq-cats__content {
    max-width: 620px;
  }

  .faq-section {
    padding: 28px 28px 32px;
  }

  .faq-section__heading .section-heading {
    font-size: 28px;
  }

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

  .faq-item__a {
    padding-left: 60px;
  }

  .faq-support-card {
    flex-direction: row;
    align-items: stretch;
    padding: 0;
  }

  .faq-support-card__img {
    width: 300px;
    max-width: 44%;
    flex-shrink: 0;
    border: none;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
  }

  .faq-support-card__content {
    padding: 22px 24px;
  }

  .faq-support-card__title {
    font-size: 26px;
  }

  .faq-support-card__list dd {
    font-size: 16px;
  }
}
