.page-faq {
  background: var(--sand);
  color: var(--ink);
  padding-bottom: clamp(40px, 7vw, 80px);
}

.page-faq .section-head {
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding-bottom: 16px;
  border-bottom: var(--rule);
}

.page-faq .section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.015em;
}

.page-faq .section-head__lead {
  margin: 12px 0 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 首屏 ---------- */

.page-faq .faq-hero {
  position: relative;
  padding: clamp(26px, 4.6vw, 54px) 0 clamp(26px, 4vw, 46px);
  border-bottom: var(--rule);
  background-image:
    linear-gradient(to right, rgba(199, 191, 176, .34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(199, 191, 176, .34) 1px, transparent 1px);
  background-size: 54px 54px;
  background-position: -1px -1px;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 78% at 18% 0%, rgba(246, 240, 227, .3), var(--sand) 72%);
  pointer-events: none;
}

.page-faq .faq-hero > .container {
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero h1 {
  margin: 14px 0 0;
  max-width: 900px;
  font-size: clamp(28px, 5.4vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.page-faq .faq-hero__lead {
  margin: 18px 0 0;
  max-width: 64ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  color: #3A424C;
}

.page-faq .faq-hero__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-hero__jump a {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border: var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.page-faq .faq-hero__jump a:hover,
.page-faq .faq-hero__jump a:focus-visible {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ---------- 区块间距 ---------- */

.page-faq .faq-board,
.page-faq .faq-bracket,
.page-faq .faq-fields,
.page-faq .faq-notify,
.page-faq .faq-help {
  padding: clamp(34px, 6vw, 72px) 0;
}

.page-faq .faq-bracket {
  background: #fff;
  border-top: var(--rule);
  border-bottom: var(--rule);
}

.page-faq .faq-fields {
  background: var(--mist);
  border-bottom: var(--rule);
}

.page-faq .faq-notify {
  background: var(--night);
  color: var(--sand);
}

.page-faq .faq-notify .section-head {
  border-bottom-color: rgba(246, 240, 227, .22);
}

.page-faq .faq-notify .section-head h2 {
  color: #fff;
}

.page-faq .faq-notify .section-head__lead {
  color: rgba(246, 240, 227, .76);
}

.page-faq .faq-notify .section-label {
  color: var(--signal);
  border-color: rgba(255, 200, 69, .45);
}

/* ---------- 新手看板三步 ---------- */

.page-faq .board-steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-faq .board-step {
  position: relative;
  padding: 6px 0 6px 20px;
  border-left: 3px solid var(--line);
}

.page-faq .board-step--a { border-left-color: var(--green); }
.page-faq .board-step--b { border-left-color: var(--signal); }
.page-faq .board-step--c { border-left-color: var(--night); }

.page-faq .board-step__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--green);
}

.page-faq .board-step--b .board-step__no { color: #B8860B; }
.page-faq .board-step--c .board-step__no { color: var(--night); }

.page-faq .board-step h3 {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.page-faq .board-step p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: #3A424C;
}

.page-faq .board-shot {
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: clamp(14px, 2.4vw, 24px);
  background: #fff;
  border: var(--rule);
  border-radius: 4px;
}

.page-faq .board-shot img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  border-radius: 2px;
  object-fit: cover;
}

.page-faq .board-shot figcaption {
  margin: 14px auto 0;
  max-width: 460px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

/* ---------- 签表 ---------- */

.page-faq .bracket-panel {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.page-faq .tabs__list {
  margin-bottom: 18px;
}

.page-faq .path-map {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
}

.page-faq .path-map__box rect {
  fill: #fff;
  stroke: var(--line);
  stroke-width: 1.5;
}

.page-faq .path-map__wire path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

.page-faq .path-map__label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -.01em;
  fill: var(--ink);
}

.page-faq .path-map--solo .path-map__box rect.is-hot {
  fill: var(--mist);
  stroke: var(--green);
  stroke-width: 2.5;
}

.page-faq .path-map--solo .path-map__wire path.is-hot {
  stroke: var(--orange);
  stroke-width: 3;
}

.page-faq .path-map--solo .path-map__box rect.is-cold,
.page-faq .path-map--solo .path-map__wire path.is-cold {
  opacity: .32;
}

.page-faq .qa-list {
  display: grid;
  gap: 10px;
}

.page-faq .qa-card {
  border: var(--rule);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.page-faq .qa-card[open] {
  border-color: var(--green);
}

.page-faq .qa-card__q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  margin: 0;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

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

.page-faq .qa-card__q::after {
  content: "+";
  flex: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--green);
}

.page-faq .qa-card[open] .qa-card__q::after {
  content: "−";
  color: var(--orange);
}

.page-faq .qa-card__no {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.page-faq .qa-card__text {
  padding-top: 2px;
}

.page-faq .qa-card__a {
  padding: 14px 18px 18px 56px;
  border-top: 1px dashed rgba(199, 191, 176, .7);
  animation: faq-drop .22s ease-out;
}

.page-faq .qa-card__a p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #3A424C;
}

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

.page-faq .bracket-shot {
  margin: clamp(24px, 4vw, 40px) 0 0;
}

.page-faq .bracket-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--rule);
  border-radius: 4px;
  object-fit: cover;
}

.page-faq .bracket-shot figcaption {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 四个字段 ---------- */

.page-faq .field-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-faq .field-item {
  padding: 20px;
  background: #fff;
  border: var(--rule);
  border-left: 4px solid var(--line);
  border-radius: 4px;
}

.page-faq .field-item--time { border-left-color: var(--muted); }
.page-faq .field-item--teams { border-left-color: var(--green); }
.page-faq .field-item--score { border-left-color: var(--orange); }
.page-faq .field-item--state { border-left-color: var(--signal); }

.page-faq .field-item__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}

.page-faq .field-item h3 {
  margin: 8px 0 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.page-faq .field-item p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: #3A424C;
}

.page-faq .field-item__demo {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 3px;
  background: var(--night);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: -.01em;
}

.page-faq .field-item--score .field-item__demo {
  background: var(--orange);
  color: #1B1E22;
}

.page-faq .field-item--state .field-item__demo {
  background: var(--signal);
  color: #1B1E22;
}

.page-faq .state-legend {
  margin-top: clamp(20px, 3vw, 32px);
  padding: 20px 22px;
  background: #fff;
  border: var(--rule);
  border-radius: 4px;
}

.page-faq .state-legend__title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-faq .state-legend__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-faq .state-legend__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #3A424C;
}

/* ---------- 深色区块内的问答 ---------- */

.page-faq .faq-notify .qa-card {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(246, 240, 227, .18);
}

.page-faq .faq-notify .qa-card[open] {
  border-color: var(--signal);
}

.page-faq .faq-notify .qa-card__q {
  color: #fff;
}

.page-faq .faq-notify .qa-card__q::after {
  color: var(--signal);
}

.page-faq .faq-notify .qa-card__no {
  border-color: rgba(246, 240, 227, .32);
  color: var(--signal);
}

.page-faq .faq-notify .qa-card__a {
  border-top-color: rgba(246, 240, 227, .2);
}

.page-faq .faq-notify .qa-card__a p {
  color: rgba(246, 240, 227, .82);
}

/* ---------- 求助区 ---------- */

.page-faq .help-grid {
  display: grid;
  gap: 16px;
}

.page-faq .help-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;
  background: #fff;
  border: var(--rule);
  border-top: 4px solid var(--green);
  border-radius: 4px;
}

.page-faq .help-card:nth-child(1) { border-top-color: var(--orange); }
.page-faq .help-card:nth-child(2) { border-top-color: var(--signal); }
.page-faq .help-card:nth-child(3) { border-top-color: var(--green); }

.page-faq .help-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.page-faq .help-card p {
  flex: 1;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: #3A424C;
}

.page-faq .help-card .btn {
  align-self: flex-start;
  text-decoration: none;
}

.page-faq .faq-help__more {
  margin: 26px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.page-faq .faq-help__more a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 响应式 ---------- */

@media (min-width: 700px) {
  .page-faq .state-legend__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .page-faq .field-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 860px) {
  .page-faq .help-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-faq .board-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }

  .page-faq .board-step::after {
    content: "";
    position: absolute;
    top: 16px;
    left: calc(100% + 9px);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--signal);
    border-right: 2px solid var(--signal);
    transform: rotate(45deg);
  }

  .page-faq .board-step:last-child::after {
    content: none;
  }
}

@media (max-width: 620px) {
  .page-faq .qa-card__a {
    padding: 14px 18px 18px 18px;
  }

  .page-faq .board-step__no {
    font-size: 26px;
  }

  .page-faq .faq-hero__jump a {
    font-size: 12.5px;
    padding: 7px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .qa-card__a {
    animation: none;
  }

  .page-faq .faq-hero__jump a {
    transition: none;
  }
}
