/* ===== 问答中心 FAQ 页面专属样式 ===== */
.page-faq {
  --faq-card-radius: 16px;
  background-color: var(--cabbage-050);
}

/* ---- 首屏 Hero 区 ---- */
.faq-hero {
  position: relative;
  padding: 36px 0 28px;
  overflow: hidden;
}

.faq-hero::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 58%;
  width: 220px;
  height: 220px;
  border-radius: 44% 56% 61% 39% / 52% 41% 59% 48%;
  background: var(--cabbage-100);
  opacity: 0.85;
  z-index: 0;
}

.faq-hero::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gold-400);
  opacity: 0.16;
  z-index: 0;
}

.faq-hero > .container {
  position: relative;
  z-index: 1;
}

.faq-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-headline);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-500);
}

.faq-breadcrumb a {
  color: var(--cabbage-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.faq-breadcrumb a:hover,
.faq-breadcrumb a:focus-visible {
  color: var(--gold-600);
}

.faq-breadcrumb__sep {
  color: var(--gold-600);
}

.faq-breadcrumb__current {
  color: var(--ink-900);
  font-weight: 600;
}

.faq-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.faq-hero__eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-600);
  margin-bottom: 12px;
}

.faq-hero__eyebrow em {
  font-style: normal;
  font-size: 30px;
  font-weight: 900;
  color: var(--gold-400);
  line-height: 1;
}

.faq-hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(30px, 4.8vw, 50px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  max-width: 660px;
  margin: 0 0 18px;
}

.faq-hero h1 .faq-accent {
  background: linear-gradient(120deg, rgba(230, 196, 90, 0.5), rgba(230, 196, 90, 0.16));
  color: var(--cabbage-700);
  padding: 0 4px;
  border-radius: 3px;
}

.faq-hero__lead {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-500);
  line-height: 1.8;
  max-width: 520px;
  margin: 0;
}

.faq-hero__lead strong {
  color: var(--cabbage-700);
  font-weight: 700;
}

.faq-ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--navy-800);
  border-radius: var(--faq-card-radius);
  padding: 22px 20px;
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.faq-ticket::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  border-radius: 0 0 0 56px;
  background: var(--gold-400);
  opacity: 0.16;
}

.faq-ticket::after {
  content: "";
  position: absolute;
  bottom: 12px;
  right: 14px;
  width: 36px;
  height: 2px;
  background: var(--gold-400);
  opacity: 0.5;
  transform: rotate(-30deg);
}

.faq-ticket__label {
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold-400);
  text-transform: uppercase;
}

.faq-ticket__text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--paper);
  margin: 0 0 6px;
}

.faq-ticket__text strong {
  font-weight: 700;
  color: #ffffff;
}

.faq-ticket .btn--ghost {
  align-self: flex-start;
  border-color: var(--gold-400);
  color: var(--gold-400);
  margin-top: 6px;
}

.faq-ticket .btn--ghost:hover,
.faq-ticket .btn--ghost:focus-visible {
  border-color: var(--gold-400);
  background: var(--gold-400);
  color: var(--navy-800);
}

/* ---- 主体网格 ---- */
.faq-body {
  padding: 16px 0 80px;
}

.faq-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* ---- 左侧问答目录 ---- */
.faq-aside__inner {
  background: var(--paper);
  border: 1px solid var(--cabbage-100);
  border-radius: var(--faq-card-radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px;
}

.faq-aside__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--cabbage-100);
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: 0.06em;
}

.faq-aside__title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold-400);
  border-radius: 2px 0 2px 0;
  flex-shrink: 0;
}

.faq-toc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-toc__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 8px 12px 4px;
  border-bottom: 1px dashed var(--cabbage-100);
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-500);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.faq-toc__link:last-child {
  border-bottom: 0;
}

.faq-toc__link:hover,
.faq-toc__link:focus-visible {
  background: var(--cabbage-050);
  color: var(--cabbage-700);
  padding-left: 10px;
}

.faq-toc__index {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 900;
  font-style: normal;
  color: var(--gold-600);
  line-height: 1;
}

.faq-toc__link:hover .faq-toc__index,
.faq-toc__link:focus-visible .faq-toc__index {
  color: var(--gold-400);
}

.faq-aside__note {
  margin: 18px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--cabbage-100);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-500);
}

/* ---- 右侧内容 ---- */
.faq-content {
  min-width: 0;
}

.faq-section {
  margin-bottom: 48px;
  padding-top: 4px;
}

.faq-section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.faq-section__title {
  font-family: var(--font-headline);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 900;
  color: var(--ink-900);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.3;
}

.faq-section__title .faq-section__index {
  font-size: 1.5em;
  font-weight: 900;
  color: var(--gold-400);
  margin-right: 8px;
  vertical-align: middle;
}

.faq-section__rule {
  height: 2px;
  width: 28px;
  background: var(--gold-400);
  opacity: 0.5;
  flex-shrink: 0;
  display: block;
}

.faq-section__note {
  writing-mode: vertical-rl;
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 0 auto;
  white-space: nowrap;
  opacity: 0.85;
}

/* ---- FAQ 条目（手风琴） ---- */
.faq-item {
  background: var(--paper);
  border: 1px solid var(--cabbage-100);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(18, 38, 58, 0.02);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--cabbage-300);
}

.faq-item[open] {
  border-color: var(--cabbage-300);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  cursor: pointer;
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-900);
  list-style: none;
}

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

.faq-item summary::before {
  content: "Q";
  width: 24px;
  height: 24px;
  background: var(--cabbage-500);
  color: #ffffff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: var(--cabbage-500);
  transition: transform var(--transition-base), color var(--transition-fast);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--gold-600);
}

.faq-item__content {
  border-top: 1px dashed var(--cabbage-100);
  margin: 0 20px;
  padding: 16px 0 20px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-500);
}

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

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

.faq-item__content a {
  color: var(--cabbage-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(62, 155, 79, 0.35);
  transition: text-decoration-color var(--transition-fast);
}

.faq-item__content a:hover,
.faq-item__content a:focus-visible {
  text-decoration-color: var(--cabbage-700);
}

.faq-item__content mark {
  background: linear-gradient(transparent 56%, var(--gold-400) 56%);
  padding: 0 2px;
  color: var(--ink-900);
  font-weight: 600;
}

/* ---- 版本切换步骤 ---- */
.faq-steps {
  margin-top: 16px;
}

.faq-steps ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: faq-step;
}

.faq-steps li {
  counter-increment: faq-step;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}

.faq-steps li:last-child {
  margin-bottom: 0;
}

.faq-steps li::before {
  content: counter(faq-step);
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: var(--cabbage-500);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-headline);
}

.faq-steps__media {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
}

.faq-steps__img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--cabbage-100);
  border-radius: 12px;
  background: var(--cabbage-050);
}

/* ---- 反馈流程卡片 ---- */
.faq-feedback {
  margin-top: 28px;
  background: linear-gradient(140deg, var(--cabbage-050) 0%, var(--paper) 60%);
  border: 1px solid var(--cabbage-100);
  border-radius: var(--faq-card-radius);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.faq-feedback__img {
  display: block;
  width: 200px;
  height: 200px;
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--cabbage-300);
}

.faq-feedback__text {
  min-width: 200px;
  flex: 1 1 200px;
}

.faq-feedback__text h3 {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 800;
  color: var(--cabbage-700);
  margin: 0 0 8px;
}

.faq-feedback__text p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-500);
}

/* ---- 底部引导条 ---- */
.faq-more {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--navy-800);
  border-radius: var(--faq-card-radius);
  padding: 20px 24px;
  color: var(--paper);
}

.faq-more__text p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.faq-more__text strong {
  font-family: var(--font-headline);
  font-size: 16px;
  color: var(--gold-400);
}

/* ---- 响应式：平板与桌面 ---- */
@media (min-width: 720px) {
  .faq-hero__grid {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 36px;
    align-items: end;
  }
}

@media (min-width: 980px) {
  .faq-body__grid {
    grid-template-columns: 240px minmax(0, 760px);
    gap: 48px;
  }

  .faq-aside__inner {
    position: sticky;
    top: 112px;
  }

  .faq-feedback {
    flex-wrap: nowrap;
  }
}
