/* ========== KAIYUN 支持中心 FAQ 页面专属样式 ========== */
.page-faq {
  overflow-x: clip;
  background: var(--c-deep);
  color: var(--c-cream);
}

/* ---------- Hero ---------- */
.page-faq .faq-hero {
  position: relative;
  padding: 40px 0 48px;
  background: linear-gradient(120deg, rgba(255, 107, 53, 0.14) 0%, transparent 46%), linear-gradient(160deg, #0E2140 0%, var(--c-deep) 70%);
  border-bottom: 1px solid rgba(216, 212, 203, 0.14);
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: 26px;
  right: -44px;
  width: 210px;
  height: 10px;
  background: var(--c-orange);
  transform: rotate(-14deg);
  opacity: 0.85;
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  top: 54px;
  right: 88px;
  width: 130px;
  height: 5px;
  background: var(--c-green);
  transform: rotate(-14deg);
  opacity: 0.55;
  pointer-events: none;
}

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

.page-faq .faq-hero-grid {
  display: grid;
  gap: 26px;
}

.page-faq .faq-hero-copy {
  min-width: 0;
}

.page-faq .faq-hero-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  color: var(--c-orange);
  text-transform: uppercase;
}

.page-faq .faq-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-size: clamp(30px, 7vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-cream);
}

.page-faq .faq-hero-lead {
  margin: 0;
  max-width: 620px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-stone);
}

/* ---------- 搜索面板 ---------- */
.page-faq .faq-search-panel {
  align-self: end;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 212, 203, 0.16);
  border-radius: var(--radius-cut);
}

.page-faq .faq-search-panel-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--c-stone);
  text-transform: uppercase;
}

.page-faq .faq-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0A1733;
  border: 1px solid rgba(255, 107, 53, 0.5);
  border-radius: 0 12px 0 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-faq .faq-search-field:focus-within {
  border-color: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
}

.page-faq .faq-search-mark {
  position: relative;
  flex: none;
  width: 15px;
  height: 15px;
  margin-left: 14px;
  border: 2px solid var(--c-orange);
  border-radius: 50%;
}

.page-faq .faq-search-mark::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  background: var(--c-orange);
  border-radius: 2px;
  transform: rotate(45deg);
}

.page-faq .faq-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 13px 14px 13px 0;
  background: transparent;
  border: 0;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-cream);
}

.page-faq .faq-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.page-faq .faq-search-input::placeholder {
  color: rgba(216, 212, 203, 0.55);
}

.page-faq .faq-search-note {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-stone);
}

/* ---------- 双栏布局 ---------- */
.page-faq .faq-layout {
  display: grid;
  gap: 36px;
  padding-top: 40px;
  padding-bottom: 72px;
}

/* ---------- 左侧分类导航 ---------- */
.page-faq .faq-sidebar-kicker {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: var(--c-green);
}

.page-faq .faq-sidebar-title {
  margin: 0 0 18px;
  font-family: var(--font-title);
  font-size: 26px;
  line-height: 1.2;
  color: var(--c-cream);
}

.page-faq .faq-cat-nav {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 53, 0.5) rgba(255, 255, 255, 0.05);
}

.page-faq .faq-cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 212, 203, 0.18);
  border-radius: 0 12px 0 12px;
  text-decoration: none;
  color: var(--c-stone);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.page-faq .faq-cat-link:hover {
  color: var(--c-orange);
  border-color: rgba(255, 107, 53, 0.55);
  transform: translateY(-2px);
}

.page-faq .faq-cat-link.is-active {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: #0B1B3A;
}

.page-faq .faq-cat-link.is-active .faq-cat-num,
.page-faq .faq-cat-link.is-active .faq-cat-count {
  color: rgba(11, 27, 58, 0.72);
}

.page-faq .faq-cat-num {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  color: var(--c-orange);
}

.page-faq .faq-cat-name {
  white-space: nowrap;
}

.page-faq .faq-cat-count {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  color: rgba(216, 212, 203, 0.6);
}

/* 服务状态面板 */
.page-faq .faq-sidebar-status {
  margin-top: 22px;
  padding: 16px 18px;
  background: rgba(0, 196, 140, 0.07);
  border: 1px solid rgba(0, 196, 140, 0.24);
  border-radius: 0 12px 0 12px;
}

.page-faq .faq-sidebar-status-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--c-green);
}

.page-faq .faq-sidebar-status .ky-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 0 rgba(0, 196, 140, 0.45);
  animation: faq-pulse 2s infinite;
}

.page-faq .faq-sidebar-status-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-stone);
}

/* 联系面板 */
.page-faq .faq-sidebar-contact {
  margin-top: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(216, 212, 203, 0.14);
  border-radius: 0 12px 0 12px;
}

.page-faq .faq-sidebar-contact-title {
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 1.3;
  color: var(--c-cream);
}

.page-faq .faq-sidebar-contact-text {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-stone);
}

.page-faq .faq-contact-line {
  margin-bottom: 8px;
  font-size: 13px;
}

.page-faq .faq-sidebar-contact .ky-btn {
  margin-top: 6px;
}

/* ---------- 右侧手风琴面板 ---------- */
.page-faq .faq-sections {
  display: grid;
  gap: 30px;
}

.page-faq .faq-section {
  border-radius: 0 18px 0 18px;
  overflow: clip;
  scroll-margin-top: 90px;
}

.page-faq .faq-section:target {
  border-color: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.16);
}

.page-faq .faq-section-title {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: 26px;
  line-height: 1.25;
  color: var(--c-cream);
}

.page-faq .faq-section-desc {
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-stone);
}

/* 插图框架 */
.page-faq .faq-figure {
  margin: 0 0 24px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(216, 212, 203, 0.12);
  border-radius: 0 14px 0 14px;
}

.page-faq .faq-figure-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0 10px 0 10px;
  object-fit: cover;
}

.page-faq .faq-figure-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-stone);
}

.page-faq .faq-figure-caption::before {
  content: "";
  flex: none;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--c-green);
}

.page-faq .faq-figure--ios .faq-figure-img {
  margin-inline: auto;
}

/* 折叠问答 */
.page-faq .faq-list {
  display: grid;
  gap: 12px;
}

.page-faq .faq-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(216, 212, 203, 0.14);
  border-radius: 0 14px 0 14px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.page-faq .faq-item:hover {
  background: rgba(255, 107, 53, 0.06);
  border-color: rgba(255, 107, 53, 0.5);
  transform: translateX(4px);
}

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

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

.page-faq .faq-question:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: -2px;
}

.page-faq .faq-q-index {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  color: var(--c-orange);
  background: rgba(255, 107, 53, 0.12);
  border-radius: 0 8px 0 8px;
}

.page-faq .faq-q-text {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-cream);
}

.page-faq .faq-q-toggle {
  flex: none;
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0, 196, 140, 0.4);
  border-radius: 0 8px 0 8px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.page-faq .faq-q-toggle::before {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-green);
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.page-faq .faq-item[open] .faq-q-toggle {
  background: rgba(0, 196, 140, 0.14);
  border-color: var(--c-green);
}

.page-faq .faq-item[open] .faq-q-toggle::before {
  content: "✓";
  font-size: 13px;
  transform: translate(-50%, -50%) scale(1.05);
}

.page-faq .faq-answer {
  padding: 0 16px 18px;
  font-family: var(--font-body);
}

.page-faq .faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-stone);
}

.page-faq .faq-answer a {
  color: var(--c-orange);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 107, 53, 0.5);
}

/* 数据指标带 */
.page-faq .faq-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.page-faq .faq-metric {
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(216, 212, 203, 0.12);
  border-radius: 0 12px 0 12px;
  text-align: center;
}

.page-faq .faq-metric-num {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-title);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-orange);
}

.page-faq .faq-metric-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-stone);
}

/* 底部导流条 */
.page-faq .faq-bottom-note {
  padding: 20px 22px;
  background: rgba(0, 196, 140, 0.06);
  border: 1px solid rgba(0, 196, 140, 0.2);
  border-radius: 0 12px 0 12px;
}

.page-faq .faq-bottom-note p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-stone);
}

.page-faq .faq-bottom-note a {
  color: var(--c-orange);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 107, 53, 0.5);
}

/* 状态脉冲动画 */
@keyframes faq-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 196, 140, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(0, 196, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 196, 140, 0); }
}

/* ---------- 平板及以上 ---------- */
@media (min-width: 768px) {
  .page-faq .faq-hero {
    padding: 52px 0 60px;
  }

  .page-faq .faq-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 40px;
  }

  .page-faq .faq-search-panel {
    padding: 24px 22px;
  }

  .page-faq .faq-list {
    gap: 14px;
  }

  .page-faq .faq-question {
    gap: 14px;
    padding: 20px 22px;
  }

  .page-faq .faq-answer {
    margin: 0 26px 20px;
    padding: 2px 0 0 18px;
    border-left: 2px solid rgba(0, 196, 140, 0.45);
  }

  .page-faq .faq-metrics {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .page-faq .faq-figure--ios .faq-figure-img {
    max-width: 340px;
  }
}

/* ---------- 桌面端 ---------- */
@media (min-width: 992px) {
  .page-faq .faq-layout {
    grid-template-columns: 290px 1fr;
    gap: 50px;
    align-items: start;
    padding-top: 56px;
  }

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

  .page-faq .faq-cat-nav {
    display: grid;
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-faq .faq-cat-link {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    border-radius: 0 10px 0 10px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  }

  .page-faq .faq-cat-link:hover {
    transform: translateX(4px);
  }

  .page-faq .faq-cat-count {
    text-align: right;
  }
}

/* ---------- 弱动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-cat-link,
  .page-faq .faq-item,
  .page-faq .faq-q-toggle,
  .page-faq .faq-q-toggle::before,
  .page-faq .faq-search-field {
    transition-duration: 0.01ms;
  }

  .page-faq .faq-sidebar-status .ky-dot {
    animation: none;
  }
}
