/* xlapp.quest — quest-surface.css — 杏吧小蓝品牌官网独立视觉体系 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --qst-ink: #0f1628;
  --qst-deep: #151d35;
  --qst-panel: rgba(22, 32, 58, 0.72);
  --qst-glass: rgba(255, 255, 255, 0.06);
  --qst-border: rgba(255, 255, 255, 0.1);
  --qst-coral: #ff5e62;
  --qst-mint: #36d9b8;
  --qst-sky: #4facfe;
  --qst-gold: #f7c948;
  --qst-text: #e8edf5;
  --qst-muted: #94a3b8;
  --qst-radius: 18px;
  --qst-nav-h: 62px;
  --qst-dock-h: 0px;
  --qst-font: 'Noto Sans SC', system-ui, sans-serif;
  --qst-max: 1120px;
  --qst-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--qst-font);
  background: var(--qst-ink);
  color: var(--qst-text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(79, 172, 254, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 94, 98, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(54, 217, 184, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--qst-mint); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--qst-sky); }

/* ── 顶栏 ── */
.qst-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--qst-nav-h);
  background: rgba(15, 22, 40, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--qst-border);
}

.qst-topbar-inner {
  max-width: var(--qst-max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.qst-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--qst-text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.qst-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(79, 172, 254, 0.25);
}

.qst-nav-desktop {
  display: none;
  gap: 6px;
}

.qst-nav-desktop a {
  color: var(--qst-muted);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.qst-nav-desktop a:hover,
.qst-nav-desktop a.qst-active {
  color: var(--qst-text);
  background: var(--qst-glass);
}

.qst-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--qst-glass);
  border: 1px solid var(--qst-border);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
}

.qst-burger span {
  display: block;
  height: 2px;
  background: var(--qst-text);
  border-radius: 2px;
  transition: transform 0.3s var(--qst-ease), opacity 0.3s;
}

.qst-burger.qst-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.qst-burger.qst-open span:nth-child(2) { opacity: 0; }
.qst-burger.qst-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.qst-drawer {
  position: fixed;
  top: var(--qst-nav-h);
  left: 0;
  right: 0;
  background: rgba(15, 22, 40, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--qst-border);
  padding: 16px 20px 24px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.35s var(--qst-ease), opacity 0.35s;
  z-index: 850;
  pointer-events: none;
}

.qst-drawer.qst-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.qst-drawer a {
  display: block;
  color: var(--qst-muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--qst-border);
  font-size: 1rem;
}

.qst-drawer a:last-child { border-bottom: none; }
.qst-drawer a:hover { color: var(--qst-mint); }

/* ── 固定下载条 ── */
.qst-dock {
  position: fixed;
  top: var(--qst-nav-h);
  left: 0;
  right: 0;
  z-index: 800;
  background: rgba(21, 29, 53, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--qst-border);
  padding: 8px 12px;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.4s var(--qst-ease), opacity 0.4s;
  pointer-events: none;
}

.qst-dock.qst-dock-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.qst-dock-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: var(--qst-max);
  margin: 0 auto;
}

.qst-dock-item {
  width: calc(20% - 7px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.qst-dock-item img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.18s;
}

.qst-dock-item a:hover img { transform: scale(1.06); }

.qst-dock-item span {
  font-size: 10px;
  color: var(--qst-muted);
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

@media (min-width: 768px) {
  .qst-nav-desktop { display: flex; }
  .qst-burger { display: none; }
  .qst-dock-item { width: calc(12.5% - 7px); }
  .qst-dock-item img { width: 58px; height: 58px; }
}

body.qst-dock-active {
  --qst-dock-h: 78px;
}

@media (min-width: 768px) {
  body.qst-dock-active { --qst-dock-h: 86px; }
}

/* ── 推广区 ── */
.qst-promo-zone {
  max-width: var(--qst-max);
  margin: 0 auto;
  padding: 16px 20px 0;
  position: relative;
  z-index: 1;
}

.qst-promo-zone #ads {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.qst-promo-zone #ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

.qst-promo-zone #ads img {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.qst-promo-zone #ads .caption {
  font-size: 11px;
  color: var(--qst-muted);
  margin-top: 4px;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* ── 主内容 ── */
.qst-main {
  position: relative;
  z-index: 1;
  max-width: var(--qst-max);
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Hero ── */
.qst-hero {
  padding: 48px 0 40px;
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .qst-hero {
    grid-template-columns: 1fr 1fr;
    padding: 64px 0 56px;
  }
}

.qst-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(79,172,254,0.15), rgba(54,217,184,0.15));
  border: 1px solid rgba(79,172,254,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--qst-sky);
  margin-bottom: 16px;
}

.qst-hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
  background: linear-gradient(135deg, #fff 30%, var(--qst-sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.qst-hero-lead {
  color: var(--qst-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.qst-hero-visual {
  position: relative;
  border-radius: var(--qst-radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.qst-hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15,22,40,0.6));
  pointer-events: none;
}

.qst-hero-visual img { width: 100%; border-radius: var(--qst-radius); }

/* ── 面包屑 ── */
.qst-crumb {
  padding: 20px 0 8px;
  font-size: 0.85rem;
  color: var(--qst-muted);
}

.qst-crumb a { color: var(--qst-muted); }
.qst-crumb a:hover { color: var(--qst-mint); }
.qst-crumb span { color: var(--qst-text); }

/* ── 模块通用 ── */
.qst-block { padding: 36px 0; }

.qst-block h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--qst-text);
}

.qst-block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--qst-sky);
}

.qst-block p {
  color: var(--qst-muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.qst-block ul, .qst-block ol {
  color: var(--qst-muted);
  padding-left: 22px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.qst-block li { margin-bottom: 6px; }

/* ── 卡片网格 ── */
.qst-card-row {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

@media (min-width: 600px) {
  .qst-card-row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .qst-card-row.qst-triple { grid-template-columns: repeat(3, 1fr); }
}

.qst-card {
  background: var(--qst-panel);
  border: 1px solid var(--qst-border);
  border-radius: var(--qst-radius);
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s var(--qst-ease);
}

.qst-card:hover {
  border-color: rgba(79, 172, 254, 0.35);
  transform: translateY(-3px);
}

.qst-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--qst-coral), var(--qst-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.qst-card h3 {
  font-size: 1rem;
  color: var(--qst-text);
  margin: 0 0 8px;
}

.qst-card p { font-size: 0.88rem; margin: 0; }

/* ── 图文交替 ── */
.qst-split {
  display: grid;
  gap: 28px;
  align-items: center;
  margin: 32px 0;
}

@media (min-width: 768px) {
  .qst-split { grid-template-columns: 1fr 1fr; }
  .qst-split.qst-reverse .qst-split-text { order: 2; }
  .qst-split.qst-reverse .qst-split-img { order: 1; }
}

.qst-split-img {
  border-radius: var(--qst-radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border: 1px solid var(--qst-border);
}

.qst-split-img img { width: 100%; }

/* ── 高亮条 ── */
.qst-highlight {
  background: linear-gradient(135deg, rgba(79,172,254,0.08), rgba(255,94,98,0.06));
  border-left: 3px solid var(--qst-coral);
  padding: 18px 22px;
  border-radius: 0 var(--qst-radius) var(--qst-radius) 0;
  margin: 20px 0;
}

.qst-highlight p { margin: 0; color: var(--qst-text); font-size: 0.92rem; }

/* ── 步骤条 ── */
.qst-steps {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.qst-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--qst-glass);
  border: 1px solid var(--qst-border);
  border-radius: 14px;
  padding: 18px;
}

.qst-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--qst-sky), var(--mst-mint, var(--qst-mint)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--qst-ink);
}

.qst-step-body h3 { margin: 0 0 6px; font-size: 0.95rem; color: var(--qst-text); }
.qst-step-body p { margin: 0; font-size: 0.88rem; }

/* ── CTA 区 ── */
.qst-cta-band {
  margin: 40px 0;
  padding: 36px 28px;
  border-radius: var(--qst-radius);
  background: linear-gradient(135deg, rgba(79,172,254,0.12), rgba(54,217,184,0.08));
  border: 1px solid rgba(79,172,254,0.2);
  text-align: center;
}

.qst-cta-band h2 { margin-bottom: 10px; }

.qst-btn-dl {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--qst-coral), #ff8a65);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(255, 94, 98, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.qst-btn-dl:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 94, 98, 0.45);
}

/* ── 法律页 ── */
.qst-legal-head {
  padding: 32px 0 16px;
  border-bottom: 1px solid var(--qst-border);
  margin-bottom: 28px;
}

.qst-legal-head h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 8px;
}

.qst-legal-head p { color: var(--qst-muted); font-size: 0.9rem; }

.qst-legal-section { margin-bottom: 32px; }
.qst-legal-section h2 {
  font-size: 1.15rem;
  color: var(--qst-sky);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--qst-border);
}

/* ── 404 / 502 ── */
.qst-error-wrap {
  text-align: center;
  padding: 60px 20px 80px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qst-error-code {
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--qst-coral), var(--qst-sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.qst-error-wrap h1 { font-size: 1.4rem; margin-bottom: 10px; }
.qst-error-wrap p { color: var(--qst-muted); margin-bottom: 24px; max-width: 420px; }

.qst-btn-back {
  display: inline-block;
  padding: 12px 28px;
  background: var(--qst-glass);
  border: 1px solid var(--qst-border);
  border-radius: 999px;
  color: var(--qst-text);
  font-weight: 500;
  transition: background 0.2s;
}

.qst-btn-back:hover { background: rgba(255,255,255,0.1); color: var(--qst-text); }

/* ── 页脚 ── */
.qst-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--qst-border);
  background: rgba(15, 22, 40, 0.9);
  padding: 32px 20px;
  text-align: center;
}

.qst-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.qst-footer-nav a {
  color: var(--qst-muted);
  font-size: 0.88rem;
}

.qst-footer-nav a:hover { color: var(--qst-mint); }

.qst-footer-copy {
  color: var(--qst-muted);
  font-size: 0.8rem;
}

/* ── 微动画 ── */
@keyframes qst-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.qst-animate {
  animation: qst-fade-up 0.6s var(--qst-ease) both;
}

.qst-animate-d1 { animation-delay: 0.1s; }
.qst-animate-d2 { animation-delay: 0.2s; }
.qst-animate-d3 { animation-delay: 0.3s; }
