.page-faq {
  --faq-cyan: #00BFA5;
}

.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 36px;
  color: var(--c-on-dark);
  border-bottom: 4px solid var(--c-accent-orange);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 140, 0, .32), transparent 70%);
  pointer-events: none;
}

.page-faq .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: .04em;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.page-faq .breadcrumb a {
  color: var(--c-accent-orange);
  text-decoration: none;
}

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

.page-faq .breadcrumb .sep {
  color: rgba(245, 230, 200, .5);
}

.page-faq .breadcrumb .crumb-current {
  color: var(--c-card-yellow);
}

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

.page-faq .section-label.has-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-faq .faq-hero-main {
  max-width: 720px;
}

.page-faq .faq-hero-main h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  margin: 14px 0 14px;
}

.page-faq .page-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 230, 200, .85);
  max-width: 60ch;
}

.page-faq .faq-jump-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.page-faq .faq-jump {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  background: rgba(78, 26, 26, .42);
  color: var(--c-card-yellow);
  text-decoration: none;
  border: 1px solid rgba(245, 230, 200, .22);
  border-left: 4px solid var(--c-accent-orange);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.page-faq .faq-jump:hover {
  background: rgba(255, 140, 0, .22);
  border-color: var(--c-accent-orange);
  transform: translateY(-2px);
}

.page-faq .faq-jump-num {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--c-accent-orange);
}

.page-faq .faq-jump-label {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}

.page-faq .faq-jump-arrow {
  color: var(--c-accent-orange);
  font-size: 16px;
}

.page-faq .faq-section,
.page-faq .clarity-cache-section,
.page-faq .danmaku-section,
.page-faq .guide-section {
  padding: 52px 0 60px;
}

.page-faq .section-head {
  margin-bottom: 28px;
}

.page-faq .section-head .section-label {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: inline-block;
  background: rgba(255, 140, 0, .14);
  padding: 4px 10px;
  margin-bottom: 10px;
}

.page-faq .section-head h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.page-faq .section-sub {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 64ch;
}

.page-faq .section-red .section-head h2,
.page-faq .section-dark .section-head h2 {
  color: var(--c-card-yellow);
}

.page-faq .section-red .section-sub,
.page-faq .section-dark .section-sub {
  color: rgba(245, 230, 200, .88);
}

.page-faq .section-red .section-label {
  color: var(--c-accent-orange);
}

.page-faq .section-dark .section-label {
  color: var(--c-accent-orange);
}

.page-faq .section-sand .section-head h2,
.page-faq .section-cream .section-head h2 {
  color: var(--c-text);
}

.page-faq .section-sand .section-sub,
.page-faq .section-cream .section-sub {
  color: rgba(26, 26, 26, .75);
}

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

.page-faq .faq-item {
  background: var(--c-card-yellow);
  border-left: 6px solid var(--c-accent-orange);
}

.page-faq .faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
  background: var(--c-accent-orange);
  color: var(--c-text);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
}

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

.page-faq .faq-q:hover {
  background: #e67e00;
}

.page-faq .faq-q:focus-visible {
  outline: 3px solid var(--c-live);
  outline-offset: -3px;
}

.page-faq .faq-q::after {
  content: "+";
  font-family: var(--font-label);
  font-size: 22px;
  font-weight: 400;
  margin-left: auto;
  line-height: 1;
  transition: transform .18s ease;
}

.page-faq .faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}

.page-faq .faq-q-label {
  font-family: var(--font-label);
  font-size: 13px;
  background: var(--c-text);
  color: var(--c-card-yellow);
  padding: 2px 6px;
  min-width: 30px;
  text-align: center;
  flex: 0 0 auto;
}

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

.page-faq .faq-a {
  background: var(--c-card-cream);
  padding: 20px 18px 22px;
  color: var(--c-text);
  border-top: 2px solid var(--c-border);
}

.page-faq .faq-item[open] .faq-a {
  animation: pageFaqFadeIn .22s ease-out;
}

.page-faq .faq-a > p:first-child {
  margin-top: 0;
}

.page-faq .faq-a p {
  font-size: 14px;
  line-height: 1.7;
}

.page-faq .step-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: stepCounter;
  display: grid;
  gap: 10px;
}

.page-faq .step-list li {
  counter-increment: stepCounter;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
}

.page-faq .step-list li::before {
  content: counter(stepCounter);
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--faq-cyan);
  color: var(--c-text);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.page-faq .faq-media {
  margin-top: 18px;
  border: 1px solid var(--c-border);
  background: var(--c-card-yellow);
  padding: 8px;
  max-width: 320px;
}

.page-faq img {
  max-width: 100%;
  height: auto;
}

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

.page-faq .faq-media-cap {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(26, 26, 26, .6);
  padding: 8px 4px 2px;
}

.page-faq .protocol-table-wrap {
  margin-top: 28px;
  background: rgba(245, 230, 200, .06);
  padding: 16px;
}

.page-faq .protocol-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--c-card-yellow);
}

.page-faq .protocol-table caption {
  text-align: left;
  font-family: var(--font-label);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-accent-orange);
  margin-bottom: 8px;
}

.page-faq .protocol-table th {
  text-align: left;
  font-family: var(--font-label);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(245, 230, 200, .3);
}

.page-faq .protocol-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(245, 230, 200, .12);
  line-height: 1.5;
}

.page-faq .clarity-cache-grid {
  display: grid;
  gap: 28px;
}

.page-faq .zone-title {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--c-card-yellow);
  border-bottom: 2px solid rgba(255, 140, 0, .6);
  padding-bottom: 8px;
  display: inline-block;
}

.page-faq .clarity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.page-faq .clarity-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.page-faq .clarity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  background: var(--c-card-yellow);
  color: var(--c-text);
  cursor: pointer;
  border-left: 6px solid var(--c-cached);
  transition: background .16s ease, transform .16s ease, border-color .16s ease;
}

.page-faq .clarity-card:hover {
  transform: translateX(4px);
}

.page-faq .clarity-radio:focus-visible + .clarity-card {
  outline: 3px solid var(--c-accent-orange);
  outline-offset: 2px;
}

.page-faq .clarity-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  min-width: 48px;
  flex: 0 0 auto;
}

.page-faq .clarity-desc {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(26, 26, 26, .72);
}

.page-faq .clarity-card--smooth {
  border-left-color: var(--faq-cyan);
}

.page-faq .clarity-card--sd {
  border-left-color: var(--c-tag-blue);
}

.page-faq .clarity-card--hd {
  border-left-color: var(--c-accent-orange);
}

.page-faq .clarity-card--fhd {
  border-left-color: var(--c-tag-purple);
}

.page-faq .clarity-card--blu {
  border-left-color: var(--c-live);
}

.page-faq .clarity-radio.is-smooth:checked + .clarity-card--smooth {
  background: var(--faq-cyan);
}

.page-faq .clarity-radio.is-sd:checked + .clarity-card--sd {
  background: var(--c-tag-blue);
  color: #fff;
}

.page-faq .clarity-radio.is-hd:checked + .clarity-card--hd {
  background: var(--c-accent-orange);
}

.page-faq .clarity-radio.is-fhd:checked + .clarity-card--fhd {
  background: var(--c-tag-purple);
  color: #fff;
}

.page-faq .clarity-radio.is-blu:checked + .clarity-card--blu {
  background: var(--c-live);
  color: #fff;
}

.page-faq .clarity-radio:checked + .clarity-card .clarity-desc {
  color: inherit;
  opacity: .85;
}

.page-faq .cache-card {
  background: var(--c-card-yellow);
  color: var(--c-text);
  padding: 22px 20px;
  border-top: 6px solid var(--c-accent-green);
}

.page-faq .cache-icon {
  width: 60px;
  height: 60px;
  background: var(--c-accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.page-faq .cache-icon img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  display: block;
}

.page-faq .cache-lead {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 12px;
}

.page-faq .cache-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.page-faq .cache-points li {
  position: relative;
  padding-left: 18px;
}

.page-faq .cache-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 8px;
  height: 8px;
  background: var(--c-accent-green);
}

.page-faq .danmaku-zone {
  display: grid;
  gap: 28px;
}

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

.page-faq .step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--c-card-yellow);
  padding: 16px;
  border-left: 6px solid var(--faq-cyan);
}

.page-faq .step-num {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--faq-cyan);
  color: var(--c-text);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-faq .step-body {
  flex: 1;
}

.page-faq .step-body strong {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.page-faq .step-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(26, 26, 26, .75);
}

.page-faq .danmaku-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-faq .side-toggle-card {
  background: var(--c-card-yellow);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 6px solid var(--c-live);
}

.page-faq .toggle-label {
  font-family: var(--font-label);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  width: 100%;
  color: rgba(26, 26, 26, .7);
}

.page-faq .toggle-dot {
  width: 34px;
  height: 20px;
  border-radius: 20px;
  position: relative;
  display: inline-block;
}

.page-faq .toggle-dot::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
}

.page-faq .toggle-dot--on {
  background: var(--c-accent-green);
}

.page-faq .toggle-dot--off {
  background: var(--c-cached);
}

.page-faq .toggle-dot--off::after {
  left: auto;
  right: 3px;
}

.page-faq .toggle-text {
  font-size: 14px;
  font-weight: 600;
}

.page-faq .side-note {
  font-size: 14px;
  line-height: 1.6;
  margin: 14px 0;
  color: rgba(26, 26, 26, .8);
}

.page-faq .guide-link-grid {
  display: grid;
  gap: 14px;
}

.page-faq .guide-link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  background: var(--c-card-yellow);
  color: var(--c-text);
  text-decoration: none;
  border-left: 8px solid var(--c-accent-orange);
  transition: transform .16s ease, box-shadow .16s ease;
}

.page-faq .guide-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.page-faq .guide-link-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.page-faq .guide-link-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(26, 26, 26, .75);
}

.page-faq .guide-link-card .btn {
  align-self: flex-start;
  margin-top: 6px;
}

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

@media (min-width: 700px) {
  .page-faq .faq-hero {
    padding: 56px 0 48px;
  }

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

  .page-faq .faq-jump-list {
    grid-template-columns: 1fr;
  }

  .page-faq .guide-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-faq .clarity-grid {
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .page-faq .clarity-cache-grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 44px;
  }

  .page-faq .danmaku-zone {
    grid-template-columns: 1.35fr .65fr;
    gap: 44px;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .page-faq *,
  .page-faq *::before,
  .page-faq *::after {
    transition: none !important;
    animation: none !important;
  }

  .page-faq .guide-link-card:hover,
  .page-faq .faq-jump:hover,
  .page-faq .clarity-card:hover {
    transform: none;
  }
}
