.page-faq {
  --faq-soft: rgba(30, 36, 32, 0.68);
  --faq-soft-2: rgba(30, 36, 32, 0.52);
  --faq-line-soft: rgba(30, 36, 32, 0.10);
  background: var(--hh-paper-white);
  color: var(--hh-ink);
  font-family: var(--hh-sans);
}

/* ---------- 首屏 ---------- */

.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  background: var(--hh-deep-green);
  color: var(--hh-archive-cream);
  padding-block: 22px clamp(46px, 7vw, 84px);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  left: 26%;
  right: -10%;
  bottom: -46%;
  height: 96%;
  background:
    linear-gradient(135deg, rgba(201, 151, 47, 0.26), rgba(143, 166, 178, 0.10) 55%, transparent 78%);
  transform: rotate(-7deg);
  pointer-events: none;
}

.page-faq .faq-hero__crumbs {
  position: relative;
  z-index: 1;
  color: rgba(244, 238, 223, 0.62);
}

.page-faq .faq-hero__crumbs a {
  color: rgba(244, 238, 223, 0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 238, 223, 0.28);
}

.page-faq .faq-hero__crumbs a:hover,
.page-faq .faq-hero__crumbs a:focus-visible {
  color: var(--hh-gold-soft);
  border-bottom-color: var(--hh-gold-soft);
}

.page-faq .faq-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
  margin-top: clamp(24px, 3.6vw, 40px);
}

.page-faq .faq-hero__eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--hh-gold-soft);
}

.page-faq .faq-hero h1 {
  margin: 16px 0 0;
  font-family: var(--hh-serif);
  font-weight: 300;
  font-size: clamp(32px, 7.2vw, 64px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--hh-paper-white);
  max-width: 14em;
}

.page-faq .faq-hero__intro {
  margin: 18px 0 0;
  max-width: 44ch;
  font-size: clamp(15px, 2.6vw, 17px);
  line-height: 1.85;
  color: rgba(244, 238, 223, 0.82);
}

.page-faq .faq-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-hero__media {
  position: relative;
  margin: 0;
  border-radius: var(--hh-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(244, 238, 223, 0.18);
  background: var(--hh-deep-green-2);
}

.page-faq .faq-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0.94;
}

@media (min-width: 900px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.9fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
  }
}

/* ---------- 双栏主体 ---------- */

.page-faq .faq-body {
  padding-block: clamp(46px, 7vw, 92px) clamp(56px, 8vw, 108px);
}

.page-faq .faq-grid {
  display: grid;
  gap: 34px;
}

.page-faq .faq-side {
  display: grid;
  gap: 12px;
  padding: 20px 18px;
  border-radius: var(--hh-radius);
  background: var(--hh-archive-cream);
  border: 1px solid var(--hh-line);
  align-self: start;
}

.page-faq .faq-side__title {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--faq-soft-2);
}

.page-faq .faq-side__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.page-faq .faq-side__link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--hh-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--faq-line-soft);
  transition: color 0.2s var(--hh-ease);
}

.page-faq .faq-side__list li:last-child .faq-side__link {
  border-bottom: 0;
}

.page-faq .faq-side__num {
  font-family: var(--hh-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--hh-gold-deep);
  transition: color 0.2s var(--hh-ease);
}

.page-faq .faq-side__link:hover .faq-side__num,
.page-faq .faq-side__link:focus-visible .faq-side__num {
  color: var(--hh-terracotta);
}

.page-faq .faq-side__link[aria-current="true"] {
  color: var(--hh-deep-green);
  font-weight: 600;
}

.page-faq .faq-side__link[aria-current="true"] .faq-side__num {
  color: var(--hh-gold);
}

.page-faq .faq-side__link:focus-visible {
  outline: 3px solid var(--hh-gold);
  outline-offset: 2px;
  border-radius: 6px;
}

.page-faq .faq-side__note {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(18, 59, 50, 0.18);
  font-size: 13px;
  line-height: 1.7;
  color: var(--faq-soft-2);
}

.page-faq .faq-side__note a {
  color: var(--hh-deep-green);
  text-decoration-color: var(--hh-gold);
  text-underline-offset: 3px;
}

@media (min-width: 960px) {
  .page-faq .faq-grid {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: clamp(40px, 5.5vw, 80px);
    align-items: start;
  }

  .page-faq .faq-side {
    position: sticky;
    top: calc(var(--hh-head-h) + 16px);
  }
}

/* ---------- 章节 ---------- */

.page-faq .faq-chapter + .faq-chapter {
  margin-top: clamp(46px, 6vw, 76px);
}

.page-faq .faq-chapter__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--hh-deep-green);
}

.page-faq .faq-chapter__num {
  grid-row: span 2;
  font-family: var(--hh-mono);
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.1;
  color: var(--hh-gold);
  padding-top: 4px;
}

.page-faq .faq-chapter__head h2 {
  margin: 0;
  font-family: var(--hh-serif);
  font-weight: 400;
  font-size: clamp(22px, 4.2vw, 33px);
  line-height: 1.32;
  color: var(--hh-deep-green);
}

.page-faq .faq-chapter__sub {
  grid-column: 2;
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--faq-soft);
}

/* ---------- 折叠问答 ---------- */

.page-faq .faq-item {
  border-bottom: 1px solid var(--faq-line-soft);
}

.page-faq .faq-item__q {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  gap: 10px;
  align-items: start;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(15.5px, 2.8vw, 18px);
  line-height: 1.6;
  color: var(--hh-ink);
  transition: color 0.2s var(--hh-ease);
}

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

.page-faq .faq-item__q::marker {
  content: "";
}

.page-faq .faq-item__q:hover {
  color: var(--hh-deep-green);
}

.page-faq .faq-item__q:hover .faq-item__num,
.page-faq .faq-item[open] .faq-item__num {
  color: var(--hh-gold);
}

.page-faq .faq-item__q:focus-visible {
  outline: 3px solid var(--hh-gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.page-faq .faq-item__num {
  font-family: var(--hh-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--hh-mist-blue);
  padding-top: 5px;
  transition: color 0.2s var(--hh-ease);
}

.page-faq .faq-item__mark {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1px solid rgba(30, 36, 32, 0.28);
  color: var(--hh-deep-green);
  transition: background-color 0.2s var(--hh-ease), border-color 0.2s var(--hh-ease), color 0.2s var(--hh-ease);
}

.page-faq .faq-item__mark::before,
.page-faq .faq-item__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
}

.page-faq .faq-item__mark::before {
  width: 9px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.page-faq .faq-item__mark::after {
  width: 1.5px;
  height: 9px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s var(--hh-ease), opacity 0.2s var(--hh-ease);
}

.page-faq .faq-item[open] .faq-item__mark {
  background: var(--hh-deep-green);
  border-color: var(--hh-deep-green);
  color: var(--hh-archive-cream);
}

.page-faq .faq-item[open] .faq-item__mark::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.page-faq .faq-item__a {
  display: grid;
  gap: 10px;
  padding: 0 0 22px;
  max-width: 66ch;
}

.page-faq .faq-item__a p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--faq-soft);
}

.page-faq .faq-item__a a {
  color: var(--hh-deep-green);
  font-weight: 500;
  text-decoration-color: var(--hh-gold);
  text-underline-offset: 3px;
}

@media (min-width: 641px) {
  .page-faq .faq-item__q {
    grid-template-columns: 56px minmax(0, 1fr) 24px;
    gap: 14px;
    padding: 21px 0;
  }

  .page-faq .faq-item__a {
    padding-left: 70px;
    padding-bottom: 26px;
  }

  .page-faq .faq-item__a p {
    font-size: 15.5px;
  }
}

/* ---------- 路径图 ---------- */

.page-faq .faq-path__figure {
  position: relative;
  margin: 26px 0 0;
  border-radius: var(--hh-radius-lg);
  overflow: hidden;
  background: var(--hh-archive-cream);
}

.page-faq .faq-path__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 7;
  object-fit: cover;
}

.page-faq .faq-path__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.92);
  color: var(--hh-deep-green);
  font-size: 12.5px;
  line-height: 1.5;
  max-width: max-content;
}

@media (min-width: 721px) {
  .page-faq .faq-path__caption {
    left: 22px;
    bottom: 20px;
    right: auto;
    font-size: 13px;
  }
}

/* ---------- 新旧版本对照 ---------- */

.page-faq .faq-compare {
  position: relative;
  margin-top: 26px;
  padding: clamp(16px, 3.4vw, 30px);
  border-radius: var(--hh-radius-lg);
  background: var(--hh-archive-cream);
  border: 1px solid var(--hh-line);
}

.page-faq .faq-compare__radio {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.page-faq .faq-compare__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.page-faq .faq-compare__label {
  margin: 0;
  font-family: var(--hh-serif);
  font-size: clamp(16px, 2.6vw, 19px);
  color: var(--hh-deep-green);
}

.page-faq .faq-compare__switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 59, 50, 0.09);
}

.page-faq .faq-compare__opt {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--hh-deep-green);
  cursor: pointer;
  transition: background-color 0.2s var(--hh-ease), color 0.2s var(--hh-ease);
}

.page-faq .faq-compare__opt:hover {
  background: rgba(18, 59, 50, 0.10);
}

.page-faq #faq-view-brief:checked ~ .faq-compare__bar .faq-compare__opt[for="faq-view-brief"],
.page-faq #faq-view-full:checked ~ .faq-compare__bar .faq-compare__opt[for="faq-view-full"] {
  background: var(--hh-deep-green);
  color: var(--hh-archive-cream);
}

.page-faq #faq-view-brief:focus-visible ~ .faq-compare__bar .faq-compare__opt[for="faq-view-brief"],
.page-faq #faq-view-full:focus-visible ~ .faq-compare__bar .faq-compare__opt[for="faq-view-full"] {
  outline: 3px solid var(--hh-gold);
  outline-offset: 2px;
}

.page-faq .faq-compare__tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-faq .faq-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.page-faq .faq-table__caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faq-soft-2);
}

.page-faq .faq-table th {
  text-align: left;
  padding: 0 14px 10px 0;
  font-family: var(--hh-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hh-deep-green);
  border-bottom: 1px solid rgba(18, 59, 50, 0.26);
  white-space: nowrap;
}

.page-faq .faq-table td {
  padding: 13px 14px 13px 0;
  vertical-align: top;
  line-height: 1.72;
  color: var(--faq-soft);
  border-bottom: 1px solid var(--faq-line-soft);
}

.page-faq .faq-table tr:last-child td {
  border-bottom: 0;
}

.page-faq .faq-table td:first-child {
  font-family: var(--hh-serif);
  font-size: 15px;
  color: var(--hh-ink);
  white-space: nowrap;
}

.page-faq .faq-code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(201, 151, 47, 0.20);
  color: var(--hh-gold-deep);
  font-family: var(--hh-mono);
  font-size: 12.5px;
  white-space: nowrap;
}

.page-faq .faq-table__detail {
  display: none;
  margin-top: 7px;
  padding-left: 9px;
  border-left: 2px solid var(--hh-gold);
  font-size: 12.5px;
  line-height: 1.68;
  color: var(--faq-soft-2);
}

.page-faq #faq-view-full:checked ~ .faq-compare__tablewrap .faq-table__detail {
  display: block;
}

/* ---------- 联系方式块 ---------- */

.page-faq .faq-contact {
  display: grid;
  gap: 4px;
  margin-top: 26px;
  padding: clamp(18px, 3.4vw, 28px);
  border-radius: var(--hh-radius-lg);
  background: var(--hh-deep-green);
  color: var(--hh-archive-cream);
}

.page-faq .faq-contact__label {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: rgba(244, 238, 223, 0.62);
}

.page-faq .faq-contact__label + .faq-contact__mail {
  margin-bottom: 12px;
}

.page-faq .faq-contact__mail {
  margin: 0;
  font-family: var(--hh-mono);
  font-size: clamp(15px, 3vw, 18px);
  letter-spacing: 0.01em;
  color: var(--hh-paper-white);
  word-break: break-word;
}

.page-faq .faq-contact__cta {
  justify-self: start;
  margin-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item__q,
  .page-faq .faq-item__num,
  .page-faq .faq-item__mark,
  .page-faq .faq-item__mark::after,
  .page-faq .faq-side__link,
  .page-faq .faq-side__num,
  .page-faq .faq-compare__opt {
    transition: none;
  }
}
