/* ===== FAQ 问答中心页面专属样式 ===== */
.page-faq {
  background-color: var(--phn-cream);
  color: var(--phn-ink);
  overflow-x: hidden;
}

/* ---------- 标题区 ---------- */
.faq-hero {
  position: relative;
  padding: 48px 0 36px;
  background:
    linear-gradient(135deg, var(--phn-cream) 0%, var(--phn-stone) 100%);
  border-bottom: 4px solid var(--phn-orange);
}

.faq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--phn-orange);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  opacity: 0.07;
  pointer-events: none;
}

.page-faq .breadcrumb {
  margin-bottom: 32px;
}

.faq-hero-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}

.faq-kicker {
  font-family: var(--phn-font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--phn-orange);
  margin: 0 0 12px;
}

.faq-hero .page-title {
  font-family: var(--phn-font-heading);
  font-size: 34px;
  line-height: 1.18;
  font-weight: 700;
  color: var(--phn-ink);
  margin: 0 0 16px;
}

.faq-hero .lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--phn-gray);
  max-width: 680px;
  margin: 0;
}

.faq-hero-hint {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  font-family: var(--phn-font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--phn-gray);
  background-color: rgba(216, 213, 200, 0.55);
  border-left: 3px solid var(--phn-orange);
  border-radius: 0 var(--phn-radius) var(--phn-radius) 0;
}

/* 标题区状态面板 */
.faq-hero-stat {
  position: relative;
}

.faq-hero-stat-panel {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--phn-radius);
  transform: rotate(1deg);
  overflow: hidden;
}

.faq-hero-stat-panel::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 56px;
  height: 56px;
  background: var(--phn-orange);
  opacity: 0.35;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.faq-stat-num {
  font-family: var(--phn-font-heading);
  font-size: 58px;
  line-height: 1;
  font-weight: 700;
  color: var(--phn-orange);
  margin: 12px 0 4px;
}

.faq-stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--phn-cream);
  margin: 0 0 10px;
}

.faq-stat-note {
  font-family: var(--phn-font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(247, 242, 233, 0.75);
  margin: 0;
}

/* 快速标签 */
.faq-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-tag-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--phn-navy);
  color: var(--phn-cream);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--phn-navy);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-tag-link:hover,
.faq-tag-link:focus-visible {
  background-color: var(--phn-orange);
  border-color: var(--phn-orange);
  color: #fff;
}

/* ---------- 主体区 ---------- */
.faq-body {
  padding: 48px 0 72px;
}

.faq-layout {
  display: grid;
  gap: 36px;
  align-items: start;
}

/* ---------- 侧边栏 ---------- */
.faq-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-toc {
  background-color: var(--phn-navy);
  border-radius: var(--phn-radius);
  padding: 24px 20px 14px;
  color: var(--phn-cream);
  box-shadow: 6px 6px 0 rgba(43, 58, 66, 0.18);
}

.faq-toc-title {
  font-family: var(--phn-font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--phn-orange);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(247, 242, 233, 0.18);
}

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

.faq-toc-list li {
  margin-bottom: 2px;
}

.faq-toc-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  color: var(--phn-cream);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-toc-list a:hover,
.faq-toc-list a:focus-visible {
  background-color: rgba(242, 92, 5, 0.22);
  color: var(--phn-orange);
}

.faq-toc-index {
  font-family: var(--phn-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--phn-orange);
  min-width: 20px;
}

/* 侧边联系卡片 */
.faq-side-card {
  background-color: var(--phn-stone);
  border-left: 4px solid var(--phn-orange);
  border-radius: var(--phn-radius);
  padding: 22px 20px;
}

.faq-side-card-title {
  font-family: var(--phn-font-heading);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  margin: 10px 0 6px;
}

.faq-side-card-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--phn-gray);
  margin: 0 0 18px;
}

.faq-side-card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--phn-orange-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--phn-orange-dark);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.faq-side-card-link:hover,
.faq-side-card-link:focus-visible {
  color: var(--phn-orange);
  border-color: var(--phn-orange);
}

/* ---------- 问答内容区 ---------- */
.faq-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.faq-section {
  scroll-margin-top: 110px;
}

.faq-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--phn-stone);
}

.faq-section-index {
  font-family: var(--phn-font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--phn-orange);
  background-color: var(--phn-stone);
  padding: 5px 9px;
  border-radius: 4px;
  flex-shrink: 0;
}

.faq-section-title {
  font-family: var(--phn-font-heading);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.faq-section-num {
  font-family: var(--phn-font-mono);
  font-size: 12px;
  color: var(--phn-gray);
  white-space: nowrap;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 折叠面板项 */
.faq-item {
  background-color: #fff;
  border-radius: var(--phn-radius);
  border: 1px solid var(--phn-stone);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
  border-color: var(--phn-orange);
  box-shadow: 4px 4px 0 rgba(242, 92, 5, 0.14);
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.2s ease;
}

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

.faq-q:hover,
.faq-q:focus-visible {
  background-color: rgba(216, 213, 200, 0.28);
}

.faq-q-index {
  font-family: var(--phn-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--phn-orange);
  background-color: rgba(242, 92, 5, 0.1);
  padding: 4px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.faq-q-text {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.faq-q-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--phn-orange);
  border-radius: 50%;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.faq-q-icon::before,
.faq-q-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--phn-orange);
  transition: opacity 0.2s ease;
}

.faq-q-icon::before {
  width: 10px;
  height: 2px;
}

.faq-q-icon::after {
  width: 2px;
  height: 10px;
}

.faq-item[open] .faq-q-icon {
  background-color: var(--phn-orange);
  transform: rotate(180deg);
}

.faq-item[open] .faq-q-icon::after {
  opacity: 0;
}

.faq-a {
  padding: 0 16px 16px;
  border-top: 1px dashed var(--phn-stone);
}

.faq-a p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--phn-gray);
}

.faq-item[open] .faq-a {
  animation: faq-fade-in 0.3s ease-out;
}

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

.faq-highlight {
  color: var(--phn-orange);
  font-weight: 600;
}

.faq-index-link {
  color: var(--phn-orange-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 配图 */
.faq-figure {
  margin: 22px 0 0;
  border-radius: var(--phn-radius);
  overflow: hidden;
  background-color: var(--phn-stone);
  border: 1px solid var(--phn-stone);
}

.faq-figure-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.faq-figure figcaption {
  padding: 10px 16px;
  font-family: var(--phn-font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--phn-gray);
  background-color: var(--phn-stone);
}

/* 页脚提示区 */
.faq-body-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 8px;
  padding: 20px;
  background-color: var(--phn-stone);
  border-radius: var(--phn-radius);
}

.faq-back-top {
  font-family: var(--phn-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--phn-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--phn-navy);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.faq-back-top:hover,
.faq-back-top:focus-visible {
  color: var(--phn-orange);
  border-color: var(--phn-orange);
}

.faq-body-footer-note {
  font-size: 14px;
  color: var(--phn-gray);
  margin: 0;
}

.faq-body-footer-note a {
  color: var(--phn-orange-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- 响应式：中等屏幕 ---------- */
@media (min-width: 640px) {
  .faq-hero {
    padding: 56px 0 40px;
  }

  .faq-hero-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 32px;
    align-items: center;
  }

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

  .faq-body {
    padding: 56px 0 80px;
  }
}

/* ---------- 响应式：桌面 ---------- */
@media (min-width: 960px) {
  .faq-hero {
    padding: 64px 0 48px;
  }

  .faq-hero-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
  }

  .faq-hero .page-title {
    font-size: 48px;
    line-height: 1.12;
  }

  .faq-hero .lead {
    font-size: 17px;
  }

  .faq-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
  }

  .faq-toc {
    position: sticky;
    top: 120px;
  }

  .faq-section-title {
    font-size: 24px;
  }

  .faq-q {
    padding: 18px 20px;
  }

  .faq-q-text {
    font-size: 16px;
  }

  .faq-a {
    padding: 0 20px 20px;
  }

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

  .faq-figure {
    margin-top: 26px;
  }
}
