/* FAQ 页面专属样式，所有类名仅用于当前页面 */
.page-faq {
  --faq-border: 3px solid var(--color-dark);
  --faq-shadow: 6px 6px 0 rgba(10, 25, 47, 0.16);
  --faq-shadow-orange: 6px 6px 0 rgba(255, 107, 53, 0.5);
  --faq-grid-line: rgba(10, 25, 47, 0.05);

  background:
    linear-gradient(var(--faq-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--faq-grid-line) 1px, transparent 1px),
    var(--color-cream);
  background-size: 32px 32px;
  padding-bottom: 72px;
}

/* ===== Hero 首屏 ===== */
.faq-hero {
  background: var(--color-dark);
  color: var(--color-cream);
  padding: 34px 0 44px;
  position: relative;
  overflow: hidden;
}
.faq-hero::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -80px;
  top: -120px;
  background: var(--color-orange);
  opacity: 0.22;
  transform: rotate(16deg);
  pointer-events: none;
}
.faq-hero::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  left: 18%;
  bottom: -70px;
  border: 4px solid var(--color-gold);
  opacity: 0.3;
  transform: rotate(-20deg);
  pointer-events: none;
}
.faq-hero-inner {
  position: relative;
  z-index: 1;
}
.faq-hero .breadcrumb {
  margin-bottom: 32px;
}
.faq-hero .breadcrumb ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
}
.faq-hero .breadcrumb a {
  color: rgba(245, 240, 232, 0.72);
  text-decoration: none;
}
.faq-hero .breadcrumb a:hover {
  color: var(--color-gold);
}
.faq-hero .breadcrumb span {
  color: var(--color-gold);
}

.faq-hero-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
}
.faq-hero-copy .badge {
  margin-bottom: 14px;
}
.faq-hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.faq-hero-copy p {
  max-width: 52em;
  margin: 0;
  color: rgba(245, 240, 232, 0.78);
  font-size: 15px;
  line-height: 1.75;
}
.faq-hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: var(--radius-card);
  box-shadow: var(--faq-shadow-orange);
}

/* ===== 搜索框 ===== */
.faq-search-box {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border: var(--faq-border);
  border-radius: 999px;
  padding: 8px 16px 8px 20px;
  box-shadow: var(--faq-shadow);
  max-width: 660px;
}
.faq-search-box svg {
  color: var(--color-orange);
  flex: 0 0 auto;
}
.faq-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-dark);
  padding: 8px 0;
}
.faq-search-box input::placeholder {
  color: var(--color-gray);
}
.faq-search-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-gray);
  white-space: nowrap;
}

/* ===== 两栏主体 ===== */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-top: 40px;
  padding-bottom: 72px;
}

/* ===== 左侧索引 ===== */
.faq-aside-box {
  background: var(--color-white);
  border: var(--faq-border);
  border-radius: var(--radius-card);
  box-shadow: var(--faq-shadow);
  padding: 22px;
}
.faq-aside-kicker {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-orange);
}
.faq-aside h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.faq-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.faq-aside-list li + li {
  margin-top: 8px;
}
.faq-aside-list a {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
  line-height: 1.3;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.faq-aside-list a:hover,
.faq-aside-list a:focus-visible {
  border-color: var(--color-dark);
  transform: translateX(4px);
}
.faq-aside-list a.current {
  background: var(--color-orange);
  border-color: var(--color-dark);
  box-shadow: 3px 3px 0 var(--color-dark);
  color: var(--color-white);
}
.faq-aside-help {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed var(--color-light-gray);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-gray);
}
.faq-aside-help p {
  margin: 0 0 12px;
}
.faq-aside-help .btn {
  width: 100%;
  justify-content: center;
}

/* ===== 右侧分组 ===== */
.faq-group {
  scroll-margin-top: calc(var(--header-height) + 28px);
  border-left: 4px solid transparent;
  padding-left: 0;
  transition: border-color 0.3s, padding-left 0.3s;
}
.faq-group + .faq-group {
  margin-top: 48px;
}
.faq-group:target {
  border-left-color: var(--color-orange);
  padding-left: 12px;
}
.faq-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.faq-group-head .section-number {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--color-orange);
  background: var(--color-dark);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 4px 4px 0 rgba(255, 215, 0, 0.65);
}
.faq-group-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ===== 折叠面板增强 ===== */
.faq-group .accordion-item {
  background: var(--color-white);
  border: 2px solid var(--color-dark);
  border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(10, 25, 47, 0.14);
  overflow: hidden;
}
.faq-group .accordion-item + .accordion-item {
  margin-top: 14px;
}
.faq-q-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-dark);
  text-align: left;
  transition: background 0.2s;
}
.faq-q-header:hover,
.faq-q-header:focus-visible {
  background: rgba(255, 107, 53, 0.08);
}
.faq-q-badge {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  transition: background 0.2s, color 0.2s;
}
.faq-q-header[aria-expanded="true"] .faq-q-badge {
  background: var(--color-orange);
  color: var(--color-white);
}
.faq-q-text {
  flex: 1;
  min-width: 0;
}
.faq-arrow {
  flex: 0 0 auto;
  color: var(--color-gray);
  transition: transform 0.3s ease, color 0.2s;
}
.faq-q-header[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
  color: var(--color-orange);
}
.faq-a-body {
  padding: 14px 18px 20px;
  border-top: 1px dashed var(--color-light-gray);
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-brown);
}
.faq-a-body p {
  margin: 0;
}
.faq-a-body a {
  color: var(--color-orange);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.faq-a-body a:hover {
  color: var(--color-dark);
}

/* ===== 反馈流程图 ===== */
.faq-flow-figure {
  margin: 0 0 24px;
}
.faq-flow-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 2px solid var(--color-dark);
  border-radius: var(--radius-card);
  box-shadow: var(--faq-shadow);
}
.faq-flow-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-gray);
  line-height: 1.5;
}

/* ===== 响应式增强 ===== */
@media (min-width: 768px) {
  .faq-hero-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
  }
  .faq-hero-copy h1 {
    font-size: 54px;
  }
  .faq-a-body {
    padding: 14px 20px 20px 66px;
  }
}

@media (min-width: 992px) {
  .faq-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
    padding-top: 52px;
    align-items: start;
  }
  .faq-aside {
    position: sticky;
    top: calc(var(--header-height) + 28px);
    align-self: start;
  }
  .faq-aside-box {
    padding: 26px;
  }
}
