
.yx-faq {
  /* Change only this value to match your website's brand colour. */
  --yx-accent: #0b67ff;
  --yx-accent-soft: rgba(11, 103, 255, 0.06);

  --yx-ink: #0a0a0a;
  --yx-body: #606060;
  --yx-muted: #898989;
  --yx-line: #e3e3e3;

  background: #ffffff;
  color: var(--yx-ink);
  padding: clamp(64px, 8vw, 120px) 0;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  box-sizing: border-box;
}

.yx-faq *,
.yx-faq *::before,
.yx-faq *::after {
  box-sizing: border-box;
}

.yx-faq__inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.yx-faq__head {
  padding-bottom: clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--yx-ink);
}

.yx-faq__eyebrow {
  position: relative;
  margin: 0 0 24px;
  padding-left: 42px;
  color: var(--yx-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.yx-faq__eyebrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--yx-accent);
  transform: translateY(-50%);
}

.yx-faq__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(36px, 7vw, 100px);
  align-items: end;
}

.yx-faq__heading h2 {
  margin: 0;
  color: var(--yx-ink);
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.yx-faq__intro {
  margin: 0 0 6px;
  color: var(--yx-body);
  font-size: 15px;
  line-height: 1.72;
}

.yx-faq__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yx-faq__item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 56px;
  gap: 20px;
  align-items: start;
  padding: clamp(28px, 4vw, 46px) 26px clamp(28px, 4vw, 46px) 20px;
  border-bottom: 1px solid var(--yx-line);
  overflow: hidden;
  transition:
    background-color 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease;
}

.yx-faq__item::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--yx-accent);
  transform: scaleY(0);
  transform-origin: 50% 50%;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.yx-faq__number {
  display: block;
  padding-top: 5px;
  color: var(--yx-muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  transition:
    color 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.yx-faq__content {
  min-width: 0;
}

.yx-faq__question {
  max-width: 960px;
  margin: 0;
  color: var(--yx-ink);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.022em;
}

.yx-faq__answer {
  max-width: 1000px;
  margin-top: 18px;
  color: var(--yx-body);
  font-size: 15px;
  line-height: 1.78;
}

.yx-faq__answer > p:first-child {
  margin-top: 0;
}

.yx-faq__answer > p:last-child {
  margin-bottom: 0;
}

.yx-faq__answer a {
  color: var(--yx-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--yx-accent);
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.yx-faq__answer a:hover {
  color: var(--yx-accent);
  border-color: var(--yx-ink);
}

.yx-faq__answer-list,
.yx-faq__steps {
  margin: 14px 0 0;
  padding-left: 20px;
}

.yx-faq__answer-list li,
.yx-faq__steps li {
  margin: 7px 0;
  padding-left: 3px;
}

.yx-faq__answer-list ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.yx-faq__steps {
  list-style: none;
  counter-reset: yx-step;
  padding-left: 0;
}

.yx-faq__steps li {
  position: relative;
  counter-increment: yx-step;
  padding-left: 38px;
}

.yx-faq__steps li::before {
  content: counter(yx-step, decimal-leading-zero);
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--yx-accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.yx-faq__tip {
  margin-top: 16px !important;
  padding-left: 14px;
  color: var(--yx-ink);
  border-left: 2px solid var(--yx-accent);
}

.yx-faq__contact p {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px;
  margin: 8px 0;
}

.yx-faq__contact p > span {
  color: var(--yx-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yx-faq__mark {
  position: relative;
  justify-self: end;
  width: 18px;
  height: 18px;
  margin-top: 7px;
  border: 1px solid var(--yx-ink);
  transform: rotate(45deg);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.yx-faq__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: transparent;
  transition: background-color 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .yx-faq__item:hover {
    background:
      linear-gradient(90deg, var(--yx-accent-soft), transparent 38%),
      #ffffff;
    transform: translateX(5px);
    border-color: #cecece;
  }

  .yx-faq__item:hover::before {
    transform: scaleY(1);
  }

  .yx-faq__item:hover .yx-faq__number {
    color: var(--yx-accent);
    transform: translateX(7px);
  }

  .yx-faq__item:hover .yx-faq__mark {
    border-color: var(--yx-accent);
    transform: rotate(135deg) scale(1.08);
  }

  .yx-faq__item:hover .yx-faq__mark::after {
    background: var(--yx-accent);
  }
}

.yx-faq__item:focus-within {
  background:
    linear-gradient(90deg, var(--yx-accent-soft), transparent 38%),
    #ffffff;
}

.yx-faq__item:focus-within::before {
  transform: scaleY(1);
}

.yx-faq__item:focus-within .yx-faq__number {
  color: var(--yx-accent);
}

@media (max-width: 767px) {
  .yx-faq {
    padding: 56px 0;
  }

  .yx-faq__inner {
    width: min(100% - 32px, 1240px);
  }

  .yx-faq__heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .yx-faq__heading h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .yx-faq__item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0 12px;
    padding: 25px 14px 27px 12px;
  }

  .yx-faq__number {
    padding-top: 4px;
    font-size: 11px;
  }

  .yx-faq__question {
    padding-right: 34px;
    font-size: 20px;
  }

  .yx-faq__answer {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.72;
  }

  .yx-faq__mark {
    position: absolute;
    top: 28px;
    right: 13px;
    width: 15px;
    height: 15px;
    margin: 0;
  }

  .yx-faq__contact p {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yx-faq__item,
  .yx-faq__item::before,
  .yx-faq__number,
  .yx-faq__mark,
  .yx-faq__mark::after {
    transition: none;
  }
}
