:root {
  --ink: #10131a;
  --ink-soft: #1c2230;
  --paper: #f6f1ea;
  --paper-dim: #ebe4d9;
  --coral: #ff5d6c;
  --coral-deep: #e23d4f;
  --mint: #3dceb0;
  --gold: #e8b84a;
  --mist: rgba(246, 241, 234, 0.12);
  --glass: rgba(28, 34, 48, 0.72);
  --line: rgba(246, 241, 234, 0.14);
  --text: #f3eee6;
  --muted: #b7b0a4;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1080px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 93, 108, 0.22), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(61, 206, 176, 0.16), transparent 55%),
    linear-gradient(180deg, #0c0f16 0%, #121722 45%, #0e121a 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mint);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.qst-wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

.qst-top-promo {
  background: rgba(16, 19, 26, 0.92);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}

.qst-promo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.7rem;
}

.qst-promo-item {
  width: 70px;
  text-align: center;
}

.qst-promo-item img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qst-promo-item a:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36);
}

.qst-promo-cap {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qst-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: var(--glass);
  border-bottom: 1px solid var(--line);
}

.qst-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.qst-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.qst-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.qst-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.qst-nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.qst-nav-links a:hover,
.qst-nav-links a.is-current {
  color: var(--text);
}

.qst-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.qst-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: 0.2s ease;
}

.qst-sticky-dl {
  position: sticky;
  top: 58px;
  z-index: 35;
  display: none;
  background: rgba(14, 18, 26, 0.94);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
  backdrop-filter: blur(12px);
}

.qst-sticky-dl.is-visible {
  display: block;
}

.qst-sticky-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.qst-sticky-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.65rem;
  text-align: center;
}

.qst-sticky-cell img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
}

.qst-sticky-cell span {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.qst-has-sticky {
  scroll-padding-top: 140px;
}

.qst-hero {
  position: relative;
  overflow: hidden;
  padding: 2.6rem 0 2rem;
  isolation: isolate;
}

.qst-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 93, 108, 0.18), transparent 42%),
    linear-gradient(300deg, rgba(61, 206, 176, 0.12), transparent 40%);
  z-index: -1;
  animation: qst-glow 8s ease-in-out infinite alternate;
}

@keyframes qst-glow {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}

.qst-hero-grid {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

.qst-kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.qst-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.25;
  font-weight: 400;
}

.qst-hero-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 36rem;
}

.qst-hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.qst-hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  animation: qst-float 5.5s ease-in-out infinite;
}

@keyframes qst-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.qst-section {
  padding: 2.4rem 0;
}

.qst-section h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 400;
}

.qst-section h3 {
  margin: 1.4rem 0 0.55rem;
  font-size: 1.15rem;
  color: #fff;
}

.qst-section p {
  margin: 0 0 1rem;
  color: #d8d1c6;
}

.qst-panel {
  background: linear-gradient(160deg, rgba(28, 34, 48, 0.9), rgba(18, 22, 32, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.qst-glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.qst-split {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.qst-split img,
.qst-shot {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.qst-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.qst-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.qst-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 206, 176, 0.45);
}

.qst-card h3 {
  margin-top: 0.7rem;
}

.qst-card img {
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.qst-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.qst-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.03);
}

.qst-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.qst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qst-btn-coral {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(226, 61, 79, 0.35);
}

.qst-btn-mint {
  background: linear-gradient(135deg, #45d8ba, #2bb89a);
  color: #0c1210;
  box-shadow: 0 10px 24px rgba(61, 206, 176, 0.28);
}

.qst-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.qst-btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.qst-text-block p + p {
  text-indent: 0;
}

.qst-breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.qst-breadcrumb a {
  color: var(--muted);
}

.qst-breadcrumb span {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.qst-legal {
  padding-bottom: 3rem;
}

.qst-legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  margin: 0.6rem 0 1rem;
}

.qst-legal h2 {
  margin-top: 1.8rem;
}

.qst-error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 0 4rem;
}

.qst-error h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  margin: 0.4rem 0;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.qst-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 6.5rem;
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.25);
}

.qst-footer-grid {
  display: grid;
  gap: 1.2rem;
}

.qst-footer h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
}

.qst-footer a {
  display: block;
  color: var(--muted);
  margin: 0.25rem 0;
}

.qst-footer p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.qst-mix {
  display: grid;
  gap: 1rem;
}

.qst-ribbon {
  height: 3px;
  width: 72px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--mint));
  margin-bottom: 0.9rem;
}

.qst-quote {
  border-left: 3px solid var(--coral);
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--muted);
  font-style: normal;
  margin: 1rem 0;
}

.qst-timeline {
  display: grid;
  gap: 0.9rem;
}

.qst-timeline-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.8rem;
}

.qst-dot {
  width: 12px;
  height: 12px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(61, 206, 176, 0.18);
}

@media (min-width: 720px) {
  .qst-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .qst-split {
    grid-template-columns: 1fr 1fr;
  }

  .qst-split.is-reverse > :first-child {
    order: 2;
  }

  .qst-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qst-card-grid.is-three {
    grid-template-columns: repeat(3, 1fr);
  }

  .qst-sticky-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .qst-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .qst-mix.is-duo {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (max-width: 719px) {
  .qst-nav-toggle {
    display: grid;
    place-items: center;
  }

  .qst-nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1rem 1rem;
    background: rgba(12, 15, 22, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .qst-nav-links.is-open {
    display: flex;
  }
}
