.page-faq {
  --faq-bg-light: #F0F5FE;
  --faq-bg-team: #EAF4FF;
  --faq-bg-match: #FFF2E5;
  --faq-bg-ranking: #E8F5E9;
  --faq-bg-history: #FFF8E1;
  --faq-bg-update: #F3E5F5;
  --faq-tag-team: #1E90FF;
  --faq-tag-match: #FF6B35;
  --faq-tag-ranking: #28A745;
  --faq-tag-history: #FFC107;
  --faq-tag-update: #9C27B0;
  --faq-radius: 16px;
  --faq-gap: 24px;
  box-sizing: border-box;
}

.page-faq *,
.page-faq *::before,
.page-faq *::after {
  box-sizing: inherit;
}

.page-faq .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* 面包屑 */
.page-faq .faq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 12px;
  font-size: 0.85rem;
  color: var(--dark-blue, #0A2F44);
  opacity: 0.65;
}

.page-faq .faq-breadcrumb__link {
  color: var(--primary-blue, #1E90FF);
  text-decoration: none;
  transition: opacity 0.2s;
}

.page-faq .faq-breadcrumb__link:hover,
.page-faq .faq-breadcrumb__link:focus-visible {
  opacity: 0.75;
  text-decoration: underline;
}

.page-faq .faq-breadcrumb__sep {
  user-select: none;
}

.page-faq .faq-breadcrumb__current {
  font-weight: 600;
  color: var(--dark-blue, #0A2F44);
}

/* 头部区 */
.page-faq .faq-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0 28px;
  border-bottom: 2px solid var(--light-gray, #E2E8F0);
  margin-bottom: 32px;
}

.page-faq .faq-header__title {
  font-family: var(--heading-font, "Inter", sans-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--dark-blue, #0A2F44);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-faq .faq-header__subtitle {
  font-family: var(--body-font, "Inter", sans-serif);
  font-size: 1rem;
  color: var(--dark-blue, #0A2F44);
  opacity: 0.6;
  margin: 4px 0 0;
}

.page-faq .faq-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
}

.page-faq .faq-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-blue, #1E90FF);
  pointer-events: none;
  flex-shrink: 0;
}

.page-faq .faq-search__input {
  width: 100%;
  padding: 12px 16px 12px 46px;
  border: 2px solid var(--light-gray, #E2E8F0);
  border-radius: 40px;
  font-family: var(--body-font, "Inter", sans-serif);
  font-size: 0.95rem;
  background: var(--snow-white, #F8F9FA);
  color: var(--dark-blue, #0A2F44);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.page-faq .faq-search__input::placeholder {
  color: var(--dark-blue, #0A2F44);
  opacity: 0.35;
}

.page-faq .faq-search__input:focus {
  border-color: var(--primary-blue, #1E90FF);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.15);
}

/* 分类容器 */
.page-faq .faq-topics {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* 单个分类 */
.page-faq .faq-category {
  background: var(--snow-white, #F8F9FA);
  border-radius: var(--faq-radius);
  padding: 20px 20px 8px;
  box-shadow: 0 2px 8px rgba(10, 47, 68, 0.04);
  transition: box-shadow 0.25s;
}

.page-faq .faq-category:hover {
  box-shadow: 0 4px 16px rgba(10, 47, 68, 0.08);
}

.page-faq .faq-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-gray, #E2E8F0);
}

.page-faq .faq-category__tag {
  display: inline-block;
  font-family: var(--heading-font, "Inter", sans-serif);
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 18px;
  border-radius: 40px;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.page-faq .faq-category__tag--team {
  background: var(--faq-tag-team);
}
.page-faq .faq-category__tag--match {
  background: var(--faq-tag-match);
}
.page-faq .faq-category__tag--ranking {
  background: var(--faq-tag-ranking);
}
.page-faq .faq-category__tag--history {
  background: var(--faq-tag-history);
  color: var(--dark-blue, #0A2F44);
}
.page-faq .faq-category__tag--update {
  background: var(--faq-tag-update);
}

.page-faq .faq-category__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--glass-white, rgba(255,255,255,0.7));
  padding: 4px;
}

/* 手风琴条目 */
.page-faq .faq-category__items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-faq .faq-item {
  border-radius: 12px;
  background: transparent;
  transition: background 0.2s;
  overflow: hidden;
}

.page-faq .faq-item[open] {
  background: #fff;
  box-shadow: 0 1px 4px rgba(10, 47, 68, 0.06);
}

.page-faq .faq-item__question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
  border-radius: 12px;
  font-family: var(--body-font, "Inter", sans-serif);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark-blue, #0A2F44);
  line-height: 1.4;
}

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

.page-faq .faq-item__question:hover {
  background: rgba(30, 144, 255, 0.04);
}

.page-faq .faq-item__question:focus-visible {
  outline: 2px solid var(--primary-blue, #1E90FF);
  outline-offset: 2px;
}

.page-faq .faq-item__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.page-faq .faq-item__q-icon {
  color: var(--accent-orange, #FF6B35);
  transition: opacity 0.25s, transform 0.25s;
}

.page-faq .faq-item__check-icon {
  color: var(--success-green, #28A745);
  opacity: 0;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: opacity 0.25s, transform 0.25s;
  transform: scale(0.6);
}

.page-faq .faq-item[open] .faq-item__q-icon {
  opacity: 0;
  transform: scale(0.6);
}

.page-faq .faq-item[open] .faq-item__check-icon {
  opacity: 1;
  transform: scale(1);
}

.page-faq .faq-item__question-text {
  flex: 1;
}

/* 答案区 */
.page-faq .faq-item__answer {
  padding: 0 16px 18px 52px;
  font-family: var(--body-font, "Inter", sans-serif);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--dark-blue, #0A2F44);
  opacity: 0.85;
}

.page-faq .faq-item__answer p {
  margin: 0 0 12px;
}

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

.page-faq .faq-item__img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 12px 0 4px;
  background: var(--light-gray, #E2E8F0);
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(10, 47, 68, 0.06);
}

.page-faq .faq-inline-link {
  color: var(--primary-blue, #1E90FF);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.page-faq .faq-inline-link:hover,
.page-faq .faq-inline-link:focus-visible {
  opacity: 0.7;
}

/* 联系区 */
.page-faq .faq-contact {
  margin-top: 48px;
  background: var(--faq-bg-light);
  border-radius: var(--faq-radius);
  padding: 28px 24px;
  border: 1px solid var(--primary-blue, #1E90FF);
  border-left: 5px solid var(--primary-blue, #1E90FF);
}

.page-faq .faq-contact__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq .faq-contact__title {
  font-family: var(--heading-font, "Inter", sans-serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--dark-blue, #0A2F44);
  margin: 0 0 6px;
}

.page-faq .faq-contact__desc {
  font-family: var(--body-font, "Inter", sans-serif);
  font-size: 0.95rem;
  color: var(--dark-blue, #0A2F44);
  opacity: 0.8;
  margin: 0 0 16px;
  line-height: 1.5;
}

.page-faq .faq-contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-faq .faq-contact__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
}

.page-faq .faq-contact__label {
  font-weight: 600;
  color: var(--primary-blue, #1E90FF);
  min-width: 56px;
  flex-shrink: 0;
}

.page-faq .faq-contact__value {
  color: var(--dark-blue, #0A2F44);
  word-break: break-word;
}

.page-faq .faq-contact__value a {
  color: var(--primary-blue, #1E90FF);
  text-decoration: none;
}

.page-faq .faq-contact__value a:hover {
  text-decoration: underline;
}

.page-faq .faq-contact__action {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.page-faq .faq-contact__img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--light-gray, #E2E8F0);
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(10, 47, 68, 0.06);
}

.page-faq .faq-contact__note {
  font-family: var(--body-font, "Inter", sans-serif);
  font-size: 0.85rem;
  color: var(--dark-blue, #0A2F44);
  opacity: 0.65;
  margin: 0;
  line-height: 1.5;
}

/* 平板以上 */
@media (min-width: 640px) {
  .page-faq .container {
    padding: 0 24px 64px;
  }

  .page-faq .faq-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 12px 0 32px;
  }

  .page-faq .faq-header__text {
    flex: 1;
  }

  .page-faq .faq-search {
    width: 320px;
    flex-shrink: 0;
  }

  .page-faq .faq-category {
    padding: 28px 28px 12px;
  }

  .page-faq .faq-category__icon {
    width: 56px;
    height: 56px;
  }

  .page-faq .faq-item__question {
    font-size: 1rem;
    padding: 16px 20px;
  }

  .page-faq .faq-item__answer {
    padding-left: 60px;
    padding-right: 24px;
    padding-bottom: 22px;
    font-size: 0.95rem;
  }

  .page-faq .faq-contact {
    padding: 36px 32px;
  }

  .page-faq .faq-contact__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-faq .faq-contact__info {
    flex: 1;
  }

  .page-faq .faq-contact__action {
    flex-shrink: 0;
    max-width: 280px;
    align-items: center;
    text-align: center;
  }

  .page-faq .faq-contact__img {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .page-faq .container {
    padding: 0 40px 80px;
  }

  .page-faq .faq-search {
    width: 380px;
  }

  .page-faq .faq-category {
    padding: 32px 36px 16px;
  }

  .page-faq .faq-category__tag {
    font-size: 1.1rem;
    padding: 8px 24px;
  }

  .page-faq .faq-contact {
    padding: 44px 40px;
  }
}
