/* 杏吧官网 xbxx.quest */
:root {
  --bg: #0b0b12;
  --bg-soft: #14141f;
  --bg-card: #1a1a28;
  --text: #f2f2f7;
  --muted: #a8a8bc;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff6b4a;
  --accent2: #c44dff;
  --grad: linear-gradient(135deg, #ff6b4a 0%, #ff4d97 48%, #8b5cf6 100%);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

a {
  color: #ff9a7a;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffc4b0;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 6px 2px;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(196, 77, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 30%, rgba(255, 107, 74, 0.16), transparent 50%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 107, 74, 0.12);
  border: 1px solid rgba(255, 107, 74, 0.35);
  color: #ffb39a;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 22px;
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-shot {
  position: relative;
}

.hero-shot img {
  width: 100%;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-shot::after {
  content: "";
  position: absolute;
  inset: auto -8% -8% auto;
  width: 46%;
  height: 46%;
  background: var(--grad);
  filter: blur(48px);
  opacity: 0.35;
  z-index: -1;
  border-radius: 50%;
}

/* Sections */
section {
  padding: 52px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 42em;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

/* Feature / card grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 107, 74, 0.4);
  transform: translateY(-2px);
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
}

.card.wide img {
  aspect-ratio: 16 / 10;
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.shot-pair img {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Content prose */
.prose {
  color: var(--muted);
}

.prose h2,
.prose h3 {
  color: var(--text);
  margin-top: 1.6em;
}

.prose p {
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: #ffe0d4;
  font-weight: 600;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--text);
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.toc a {
  color: #ffb39a;
}

/* FAQ */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 8px;
  color: #ffb39a;
}

.faq p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Page banner (inner pages) */
.page-banner {
  padding: 40px 0 24px;
  background:
    radial-gradient(ellipse 50% 80% at 0% 0%, rgba(255, 107, 74, 0.15), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.page-banner h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-banner p {
  margin: 0;
  color: var(--muted);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.legal-body {
  padding: 36px 0 56px;
}

.legal-body .prose {
  max-width: 46em;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}

.error-page h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin: 0 0 8px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-page p {
  color: var(--muted);
  margin: 0 0 22px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #08080e;
  padding: 36px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
}

.footer-brand p,
.footer-col p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #ffb39a;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  color: #7a7a90;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #7a7a90;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Highlight list */
.highlight-list {
  display: grid;
  gap: 12px;
}

.highlight-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.highlight-item img {
  width: 120px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.highlight-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.highlight-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .grid-4,
  .shot-pair,
  .footer-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .highlight-item {
    grid-template-columns: 90px 1fr;
  }

  .highlight-item img {
    width: 90px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 12px 14px;
    background: rgba(20, 20, 31, 0.98);
    border: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
  }

  .nav.open a {
    padding: 10px 8px;
    width: 100%;
  }

  .nav-wrap {
    flex-wrap: nowrap;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .shot-pair,
  .footer-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  section {
    padding: 36px 0;
  }

  .card img {
    aspect-ratio: 3 / 4;
  }

  .highlight-item {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }

  .highlight-item img {
    width: 72px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
