.page-faq {
  --faq-toc-width: 280px;
  --faq-panel-bg: rgba(16, 43, 74, 0.5);
  --faq-panel-hover: rgba(16, 43, 74, 0.85);
  --faq-accent-line: linear-gradient(90deg, #FF6B00 0%, rgba(255, 107, 0, 0.1) 100%);
  background: linear-gradient(180deg, #0A192F 0%, #061020 100%);
  color: #FFFFFF;
  position: relative;
}

.page-faq .container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

/* ===== 顶部 Hero 区 ===== */
.page-faq .faq-hero {
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 56px));
  padding-bottom: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border-bottom: 1px solid #2A3B4C;
  position: relative;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: calc(var(--header-h) + 16px);
  right: 0;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FF6B00, transparent);
  opacity: 0.5;
}

.page-faq .faq-hero-copy .breadcrumb {
  margin-bottom: 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #8899AA;
  letter-spacing: 0.02em;
}

.page-faq .faq-hero-copy .breadcrumb a {
  color: #8899AA;
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.page-faq .faq-hero-copy .breadcrumb a:hover {
  color: #FF6B00;
}

.page-faq .faq-hero-copy .section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #00D4AA;
  margin-bottom: 12px;
}

.page-faq .faq-hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.16;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.page-faq .faq-hero-copy h1 em {
  font-style: normal;
  color: #8899AA;
  font-size: 0.68em;
  font-weight: 400;
}

.page-faq .faq-hero-copy .section-lead {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: #8899AA;
  max-width: 640px;
  margin: 0;
}

.page-faq .faq-hero-image {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(6, 16, 32, 0.45);
  border: 1px solid #2A3B4C;
  max-width: 460px;
}

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

.page-faq .faq-hero-tag {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: rgba(10, 25, 47, 0.88);
  border: 1px solid #2A3B4C;
  backdrop-filter: blur(6px);
  padding: 10px 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.page-faq .faq-hero-tag .data-number {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: #FF6B00;
}

.page-faq .faq-hero-tag .data-label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #F5F2EB;
}

/* ===== 双栏布局 ===== */
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-top: clamp(36px, 6vw, 64px);
  padding-bottom: clamp(48px, 8vw, 96px);
  align-items: start;
}

.page-faq .faq-toc {
  position: relative;
}

.page-faq .faq-toc-inner {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: rgba(16, 43, 74, 0.4);
  border: 1px solid #2A3B4C;
  border-radius: 2px;
  padding: 24px;
}

.page-faq .faq-toc .note-label {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #F5F2EB;
  display: block;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2A3B4C;
}

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

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

.page-faq .faq-toc .toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: background 0.2s ease-out;
  border-radius: 2px;
}

.page-faq .faq-toc .toc-list a:hover {
  background: rgba(255, 107, 0, 0.12);
  color: #FF6B00;
}

.page-faq .faq-toc .toc-num {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #00D4AA;
  min-width: 22px;
}

.page-faq .faq-toc .toc-num::before {
  content: "";
  position: absolute;
}

.page-faq .faq-toc-keywords {
  border-top: 1px solid rgba(42, 59, 76, 0.7);
  padding-top: 16px;
}

.page-faq .faq-toc-keywords p {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #8899AA;
  margin: 0 0 10px;
  letter-spacing: 0.04em;
}

.page-faq .faq-toc-keywords .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-faq .faq-toc-keywords .tag-list span {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #8899AA;
  border: 1px solid #2A3B4C;
  padding: 4px 8px;
  border-radius: 2px;
  white-space: nowrap;
  background: rgba(10, 25, 47, 0.5);
}

/* ===== 右侧问答区 ===== */
.page-faq .faq-content {
  min-width: 0;
}

.page-faq .faq-search {
  margin-bottom: clamp(32px, 5vw, 48px);
  position: relative;
}

.page-faq .faq-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 43, 74, 0.6);
  border: 1px solid #2A3B4C;
  border-radius: 2px;
  padding: 0 16px;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.page-faq .faq-search-box:focus-within {
  border-color: #FF6B00;
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

.page-faq .faq-search-box svg {
  color: #8899AA;
  flex-shrink: 0;
}

.page-faq .faq-search-box:focus-within svg {
  color: #FF6B00;
}

.page-faq .faq-search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 14px 0;
}

.page-faq .faq-search-box input::placeholder {
  color: #8899AA;
}

.page-faq .faq-search-hint {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #8899AA;
  margin: 8px 0 0;
  padding-left: 32px;
}

.page-faq .faq-block {
  margin-bottom: clamp(36px, 5vw, 56px);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.page-faq .faq-block-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid #2A3B4C;
  padding-bottom: 16px;
  position: relative;
}

.page-faq .faq-block-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: var(--faq-accent-line);
}

.page-faq .faq-block-head .toc-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #00D4AA;
  padding-top: 2px;
}

.page-faq .faq-block-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.page-faq .faq-block-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: #8899AA;
  margin: 0;
}

.page-faq .faq-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== 手风琴 details/summary ===== */
.page-faq .faq-details {
  background: var(--faq-panel-bg);
  border: 1px solid #2A3B4C;
  border-radius: 2px;
  transition: background 0.25s ease-out, border-color 0.25s ease-out;
}

.page-faq .faq-details:hover {
  background: var(--faq-panel-hover);
  border-color: rgba(255, 107, 0, 0.3);
}

.page-faq .faq-details[open] {
  border-color: rgba(255, 107, 0, 0.5);
  background: rgba(16, 43, 74, 0.75);
}

.page-faq .faq-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 20px;
  user-select: none;
}

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

.page-faq .faq-details summary:focus-visible {
  outline: 2px solid #FF6B00;
  outline-offset: -2px;
}

.page-faq .faq-details summary .faq-q-num {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #FF6B00;
  flex-shrink: 0;
  min-width: 36px;
}

.page-faq .faq-details summary .faq-q-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.5;
  flex: 1;
  position: relative;
  padding-right: 28px;
}

.page-faq .faq-details summary .faq-q-title::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  color: #00D4AA;
  transition: transform 0.25s ease-out;
}

.page-faq .faq-details[open] summary .faq-q-title::after {
  content: "−";
  color: #FF6B00;
}

.page-faq .faq-details .faq-a {
  padding: 0 20px 18px 70px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.85;
  color: #F5F2EB;
  border-top: 1px dashed rgba(42, 59, 76, 0.6);
  margin-top: -2px;
  padding-top: 14px;
}

.page-faq .faq-details .faq-a p {
  margin: 0 0 10px;
}

.page-faq .faq-details .faq-a p:last-child {
  margin-bottom: 0;
}

.page-faq .faq-details .faq-a a {
  color: #00D4AA;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 212, 170, 0.4);
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}

.page-faq .faq-details .faq-a a:hover {
  color: #FF6B00;
  border-color: rgba(255, 107, 0, 0.5);
}

.page-faq .faq-answer-grid ul {
  margin: 6px 0 12px;
  padding-left: 20px;
}

.page-faq .faq-answer-grid li {
  margin-bottom: 4px;
}

.page-faq .faq-answer-grid li::marker {
  color: #00D4AA;
}

.page-faq .faq-a-contact {
  font-family: var(--font-mono);
  color: #00D4AA;
  letter-spacing: 0.02em;
}

/* ===== 检索示意图 ===== */
.page-faq .faq-search-visual {
  margin-bottom: 16px;
  border: 1px solid #2A3B4C;
  border-radius: 2px;
  overflow: hidden;
  background: #102B4A;
  position: relative;
}

.page-faq .faq-search-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.9;
}

.page-faq .faq-search-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 25, 47, 0.5) 100%);
  pointer-events: none;
}

/* ===== 编辑部旁注 ===== */
.page-faq .faq-editorial-note {
  background: #F5F2EB;
  border-left: 4px solid #FF6B00;
  padding: 18px 20px;
  margin-bottom: 16px;
  position: relative;
}

.page-faq .faq-editorial-note .note-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FF6B00;
  display: block;
  margin-bottom: 6px;
}

.page-faq .faq-editorial-note p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.75;
  color: #0A192F;
  margin: 0;
}

/* ===== 交叉链接卡片 ===== */
.page-faq .faq-crosslink {
  margin-top: clamp(36px, 5vw, 56px);
}

.page-faq .faq-crosslink-card {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.16) 0%, rgba(16, 43, 74, 0.5) 55%, rgba(10, 25, 47, 0.8) 100%);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 2px;
  padding: clamp(24px, 4vw, 36px);
  position: relative;
  overflow: hidden;
}

.page-faq .faq-crosslink-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

.page-faq .faq-crosslink-card .section-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #00D4AA;
  display: block;
  margin-bottom: 8px;
}

.page-faq .faq-crosslink-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.page-faq .faq-crosslink-card p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  color: #8899AA;
  margin: 0 0 20px;
  max-width: 620px;
}

.page-faq .faq-crosslink-card .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FF6B00;
  color: #FFFFFF;
  border: none;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease-out, transform 0.2s ease-out;
}

.page-faq .faq-crosslink-card .button:hover {
  background: #FF8533;
  transform: translateY(-1px);
}

/* ===== 搜索高亮（渐进增强，无脚本时不产生结构性影响） ===== */
.page-faq .faq-details.is-matched {
  border-color: #00D4AA;
  box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.12);
}

.page-faq .faq-details.is-dimmed {
  opacity: 0.32;
}

.page-faq .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 滚动显现动画 ===== */
.page-faq [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.page-faq [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .page-faq [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-faq .faq-details summary .faq-q-title::after,
  .page-faq .faq-crosslink-card .button {
    transition: none;
  }
}

/* ===== 桌面端布局 ===== */
@media (min-width: 768px) {
  .page-faq .faq-hero {
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: center;
  }

  .page-faq .faq-hero-copy h1 {
    font-size: clamp(36px, 4.2vw, 52px);
  }

  .page-faq .faq-layout {
    grid-template-columns: var(--faq-toc-width) minmax(0, 1fr);
    gap: clamp(36px, 4vw, 56px);
  }
}

@media (min-width: 1024px) {
  .page-faq .faq-hero {
    grid-template-columns: 1fr 460px;
    min-height: 380px;
    align-items: center;
  }

  .page-faq .faq-hero-copy .section-lead {
    font-size: 17px;
    max-width: 700px;
  }
}
