.page-faq {
  --faq-max-width: 1200px;
  --faq-sidebar-width: 300px;
  --faq-accent-green: var(--color-accent2);
  --faq-accent-orange: var(--color-accent1);
  --faq-deep: var(--color-primary);
  --faq-deep-2: var(--color-secondary);
  --faq-line: rgba(176, 184, 196, 0.18);
  --faq-grid-size: 48px;
  position: relative;
  width: 100%;
  color: var(--color-text-main);
  isolation: isolate;
  font-family: var(--font-main);
}

/* ========== Hero / 首屏 ========== */
.page-faq .faq-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 20px;
  position: relative;
}

.page-faq .faq-hero-copy {
  max-width: 860px;
  position: relative;
  z-index: 1;
}

.page-faq .section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-mute);
}

.page-faq .section-label-line {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--label-color, var(--color-accent1));
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.page-faq .section-label-code {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-text-mute);
  opacity: 0.7;
}

.page-faq .page-title-lg {
  font-size: clamp(30px, 5.4vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--color-text-main);
  max-width: 820px;
  position: relative;
}

.page-faq .page-title-lg::after {
  content: "?";
  position: absolute;
  right: -0.2em;
  top: -0.35em;
  font-size: 0.45em;
  font-weight: 900;
  color: var(--color-accent1);
  opacity: 0.9;
  transform: skewX(-12deg);
}

.page-faq .faq-hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-mute);
  max-width: 720px;
  margin: 0 0 24px;
}

.page-faq .faq-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-mute);
}

.page-faq .faq-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-faq .faq-meta-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%);
}

.page-faq .faq-hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
  max-height: 300px;
}

.page-faq .faq-hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,1) 100%);
}

/* ========== 面包屑 ========== */
.page-faq .breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-mute);
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--faq-line);
  margin-bottom: 40px;
}

.page-faq .breadcrumb-nav a {
  color: var(--color-text-mute);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-faq .breadcrumb-nav a:hover,
.page-faq .breadcrumb-nav a[aria-current="page"] {
  color: var(--color-accent2);
}

.page-faq .breadcrumb-sep {
  opacity: 0.4;
}

/* ========== 搜索区域 ========== */
.page-faq .faq-search-section {
  position: relative;
}

.page-faq .faq-search-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: var(--faq-max-width);
  margin: 0 auto;
}

/* ========== 侧边栏 ========== */
.page-faq .faq-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.page-faq .faq-search-box {
  background: var(--faq-deep-2);
  border-left: 3px solid var(--color-accent1);
  padding: 20px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.page-faq .faq-search-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.page-faq .faq-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--faq-deep);
  border: 1px solid var(--faq-line);
  padding: 0 14px;
  height: 46px;
  transition: border-color 0.2s ease;
}

.page-faq .faq-search-input-wrap:focus-within {
  border-color: var(--color-accent2);
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.25);
}

.page-faq .faq-search-icon {
  color: var(--color-text-mute);
  flex-shrink: 0;
}

.page-faq .faq-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text-main);
  font-family: var(--font-main);
  font-size: 14px;
}

.page-faq .faq-search-input::placeholder {
  color: rgba(176, 184, 196, 0.6);
}

.page-faq .faq-hot-tags {
  margin-top: 16px;
}

.page-faq .faq-hot-tag-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-mute);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}

.page-faq .faq-hot-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-faq .faq-hot-tag {
  background: transparent;
  border: 1px solid var(--faq-line);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 100% 100%, 0 100%);
  color: var(--color-text-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-faq .faq-hot-tag:hover,
.page-faq .faq-hot-tag.is-active {
  background: var(--color-accent1);
  border-color: var(--color-accent1);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 100% 100%, 0 100%);
}

.page-faq .faq-sidebar-nav {
  padding: 20px;
  background: transparent;
  border: 1px solid var(--faq-line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.page-faq .faq-sidebar-nav-title {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--color-text-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-faq .faq-sidebar-nav-title::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--color-accent2);
}

.page-faq .faq-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.page-faq .faq-category-list li + li {
  border-top: 1px solid rgba(176, 184, 196, 0.1);
}

.page-faq .faq-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  color: var(--color-text-mute);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  position: relative;
}

.page-faq .faq-category-link::after {
  content: "";
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--color-text-mute);
  border-top: 2px solid var(--color-text-mute);
  transform: rotate(45deg);
  opacity: 0.35;
  transition: all 0.2s ease;
}

.page-faq .faq-category-link:hover {
  color: var(--color-accent2);
}

.page-faq .faq-category-link:hover::after {
  border-color: var(--color-accent2);
  opacity: 1;
  transform: rotate(45deg) translateX(2px);
}

.page-faq .faq-sidebar-contact {
  background: var(--faq-deep-2);
  padding: 20px 20px 24px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% 100%, 0 100%);
}

.page-faq .faq-sidebar-contact::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(0, 255, 136, 0.15);
  transform: rotate(45deg);
}

.page-faq .faq-sidebar-contact-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent2);
  margin-bottom: 14px;
}

.page-faq .faq-sidebar-contact-mark-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent2);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
  animation: faqPulse 2s infinite;
}

@keyframes faqPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.page-faq .faq-sidebar-contact-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-mute);
  margin: 0 0 18px;
}

.page-faq .faq-sidebar-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ========== 内容区 ========== */
.page-faq .faq-content {
  min-width: 0;
  width: 100%;
}

.page-faq .faq-section {
  margin-bottom: 64px;
  scroll-margin-top: 120px;
}

.page-faq .faq-section-header {
  margin-bottom: 28px;
  position: relative;
}

.page-faq .faq-section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin: 12px 0 8px;
  letter-spacing: -0.01em;
  position: relative;
}

.page-faq .faq-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 52px;
  height: 4px;
  background: var(--color-accent1);
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.page-faq .faq-section-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-mute);
  margin-top: 12px;
  max-width: 560px;
}

/* ========== 手风琴列表 ========== */
.page-faq .faq-list {
  border-top: 2px solid var(--color-text-main);
  border-left: 1px solid var(--faq-line);
  border-right: 1px solid var(--faq-line);
  background: rgba(10, 26, 43, 0.55);
  position: relative;
}

.page-faq .faq-list::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent2) 0%, transparent 100%);
  opacity: 0.5;
}

.page-faq .faq-item {
  border-bottom: 1px solid var(--faq-line);
  transition: background 0.3s ease;
  position: relative;
}

.page-faq .faq-item[data-faq-open="true"] {
  background: rgba(18, 42, 62, 0.65);
}

.page-faq .faq-item[data-faq-open="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent1);
}

/* 已解决标记 */
.page-faq .faq-item::before {
  content: "RESOLVED";
  position: absolute;
  right: 78px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--color-accent2);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 2px 8px;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.page-faq .faq-item:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.page-faq .faq-question-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 18px 22px 16px;
  cursor: pointer;
  user-select: none;
}

.page-faq .faq-number {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-accent2);
  min-width: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.page-faq .faq-question {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
  transition: color 0.2s ease;
}

.page-faq .faq-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--faq-line);
  color: var(--color-text-main);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.page-faq .faq-toggle-icon {
  transition: transform 0.3s ease, stroke 0.2s ease;
}

.page-faq .faq-item[data-faq-open="true"] .faq-toggle {
  background: var(--color-accent1);
  border-color: var(--color-accent1);
}

.page-faq .faq-item[data-faq-open="true"] .faq-toggle-icon {
  transform: rotate(180deg);
  stroke: #fff;
}

.page-faq .faq-answer {
  display: none;
  padding: 0 18px 24px 66px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-mute);
  animation: faqSlideDown 0.2s ease-out;
}

.page-faq .faq-item[data-faq-open="true"] .faq-answer {
  display: block;
}

@keyframes faqSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* ========== 支持面板 ========== */
.page-faq .faq-support-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: var(--faq-deep-2);
  padding: 28px 24px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-faq .faq-support-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-faq .faq-support-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.page-faq .faq-support-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(176, 184, 196, 0.12);
}

.page-faq .faq-support-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-faq .faq-support-value {
  font-size: 15px;
  color: var(--color-text-main);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s ease;
}

.page-faq .faq-support-value:hover {
  color: var(--color-accent2);
}

.page-faq .faq-support-value-static {
  color: var(--color-text-mute);
}

.page-faq .faq-support-info .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.page-faq .faq-support-visual {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

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

.page-faq .faq-support-note {
  margin-top: 16px;
  padding: 16px 20px;
  border-left: 3px solid var(--color-accent2);
  background: rgba(0, 255, 136, 0.05);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-mute);
}

.page-faq .faq-support-note p {
  margin: 0;
}

/* ========== 政策说明 ========== */
.page-faq .faq-policy-note {
  margin-top: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--faq-line);
}

.page-faq .faq-policy-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
}

.page-faq .faq-policy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-faq .faq-policy-card {
  background: rgba(18, 42, 62, 0.35);
  padding: 20px;
  border: 1px solid var(--faq-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: border-color 0.2s ease;
}

.page-faq .faq-policy-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
}

.page-faq .faq-policy-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-faq .faq-policy-card-title::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--color-accent1);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}

.page-faq .faq-policy-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-mute);
  margin: 0 0 14px;
}

.page-faq .faq-policy-link {
  display: inline-block;
  color: var(--color-accent2);
  font-size: 14px;
  text-decoration: none;
  margin-right: 16px;
  transition: color 0.2s ease;
}

.page-faq .faq-policy-link:hover {
  color: var(--color-text-main);
}

/* ========== 底部装饰网格 ========== */
.page-faq .faq-dataline-grid {
  position: relative;
  height: 160px;
  margin-top: 64px;
  overflow: hidden;
  opacity: 0.5;
}

.page-faq .faq-dataline-h {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent2) 30%, var(--color-accent1) 70%, transparent);
  transform: rotate(-2deg);
}

.page-faq .faq-dataline-v {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.4), transparent);
}

.page-faq .faq-dataline-corner {
  position: absolute;
  right: 0;
  bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-mute);
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

/* ========== 通用按钮 ========== */
.page-faq .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.page-faq .btn-cta {
  background: var(--color-accent1);
  color: #fff;
}

.page-faq .btn-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.page-faq .btn-secondary {
  background: transparent;
  color: var(--color-accent2);
  border: 1px solid var(--color-accent2);
}

.page-faq .btn-secondary:hover {
  background: rgba(0, 255, 136, 0.1);
}

/* ========== 响应式 ========== */
@media (min-width: 768px) {
  .page-faq .faq-search-layout {
    grid-template-columns: var(--faq-sidebar-width) 1fr;
    gap: 44px;
    align-items: start;
  }

  .page-faq .faq-sidebar {
    position: sticky;
    top: 140px;
  }

  .page-faq .faq-support-panel {
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    padding: 32px;
  }

  .page-faq .faq-policy-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-faq .faq-answer {
    padding-right: 60px;
  }

  .page-faq .faq-support-visual {
    min-height: auto;
  }
}

@media (min-width: 1080px) {
  .page-faq .faq-hero-grid {
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
    gap: 0;
    padding-top: 60px;
  }

  .page-faq .faq-hero-visual {
    max-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-sidebar-contact-mark-dot {
    animation: none;
  }
}

.page-faq {
  --label-color: transparent;
}
