/* 稚趣汇官网 — 响应式布局 + 媒体查询 + 浅色/深色主题 */
:root {
  color-scheme: light;
  --color-cream: #fff8f0;
  --color-peach: #ffe4d6;
  --color-blush: #ffc9c9;
  --color-mint: #b8f2d6;
  --color-sky: #c5e8ff;
  --color-lavender: #e4d4f7;
  --color-text: #3d3545;
  --color-text-soft: #6b6370;
  --color-primary: #ff8fab;
  --color-primary-dark: #e86b8a;
  --color-surface: #ffffff;
  --color-surface-glass: rgba(255, 255, 255, 0.75);
  --header-bg: rgba(255, 248, 240, 0.92);
  --header-border: rgba(255, 196, 201, 0.35);
  --hero-wave: var(--color-cream);
  --btn-ghost-border: rgba(61, 53, 69, 0.12);
  --card-border: rgba(255, 196, 201, 0.25);
  --mockup-shell-1: #fefcfe;
  --mockup-shell-2: #f0e8f8;
  --mockup-divider: rgba(61, 53, 69, 0.12);
  --footer-grad-1: #fdf5f0;
  --footer-grad-2: #f5e6ee;
  --footer-border: rgba(232, 107, 138, 0.2);
  --about-border: rgba(255, 196, 201, 0.35);
  --font-display: "ZCOOL KuaiLe", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 12px 40px rgba(61, 53, 69, 0.08);
  --header-h: 72px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --color-cream: #1a1620;
  --color-peach: #3d2a32;
  --color-blush: #5c3d4a;
  --color-mint: #2a3d35;
  --color-sky: #2a3548;
  --color-lavender: #352d45;
  --color-text: #ece8f0;
  --color-text-soft: #a89fb8;
  --color-primary: #ff9ebb;
  --color-primary-dark: #ff7aa8;
  --color-surface: #252030;
  --color-surface-glass: rgba(37, 32, 48, 0.88);
  --header-bg: rgba(26, 22, 32, 0.92);
  --header-border: rgba(255, 158, 187, 0.22);
  --hero-wave: var(--color-cream);
  --btn-ghost-border: rgba(236, 232, 240, 0.14);
  --card-border: rgba(255, 158, 187, 0.2);
  --mockup-shell-1: #2d2838;
  --mockup-shell-2: #1e1a26;
  --mockup-divider: rgba(236, 232, 240, 0.12);
  --footer-grad-1: #1f1a26;
  --footer-grad-2: #2a2230;
  --footer-border: rgba(255, 122, 168, 0.25);
  --about-border: rgba(255, 158, 187, 0.22);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --color-cream: #1a1620;
    --color-peach: #3d2a32;
    --color-blush: #5c3d4a;
    --color-mint: #2a3d35;
    --color-sky: #2a3548;
    --color-lavender: #352d45;
    --color-text: #ece8f0;
    --color-text-soft: #a89fb8;
    --color-primary: #ff9ebb;
    --color-primary-dark: #ff7aa8;
    --color-surface: #252030;
    --color-surface-glass: rgba(37, 32, 48, 0.88);
    --header-bg: rgba(26, 22, 32, 0.92);
    --header-border: rgba(255, 158, 187, 0.22);
    --hero-wave: var(--color-cream);
    --btn-ghost-border: rgba(236, 232, 240, 0.14);
    --card-border: rgba(255, 158, 187, 0.2);
    --mockup-shell-1: #2d2838;
    --mockup-shell-2: #1e1a26;
    --mockup-divider: rgba(236, 232, 240, 0.12);
    --footer-grad-1: #1f1a26;
    --footer-grad-2: #2a2230;
    --footer-border: rgba(255, 122, 168, 0.25);
    --about-border: rgba(255, 158, 187, 0.22);
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.4);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-cream);
  transition: background-color 0.25s ease, color 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.narrow {
  max-width: 720px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--header-h);
  gap: 12px;
}

.logo {
  margin-right: auto;
}

.theme-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--btn-ghost-border);
  border-radius: 12px;
  background: var(--color-surface);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.theme-toggle:hover {
  background: var(--color-peach);
  transform: translateY(-1px);
}

.theme-toggle-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle-sun {
  display: inline;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .theme-toggle-moon {
    display: none;
  }

  html:not([data-theme]) .theme-toggle-sun {
    display: inline;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-primary-dark);
}

.logo-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: var(--color-peach);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover {
  background: var(--color-peach);
  text-decoration: none;
  color: var(--color-primary-dark);
}

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 80px;
  background: linear-gradient(
    165deg,
    var(--color-peach) 0%,
    var(--color-cream) 45%,
    var(--color-mint) 100%
  );
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--color-text);
}

.highlight {
  color: var(--color-primary-dark);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  background: var(--color-surface-glass);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.lead {
  margin: 0 0 24px;
  color: var(--color-text-soft);
  font-size: 1.05rem;
  max-width: 34em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 107, 138, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--btn-ghost-border);
}

.hero-domain {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.hero-art {
  position: relative;
}

.hero-art img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: var(--hero-wave);
  clip-path: ellipse(80% 100% at 50% 100%);
  pointer-events: none;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  text-align: center;
  margin: 0 0 12px;
  color: var(--color-text);
}

.section-sub {
  text-align: center;
  color: var(--color-text-soft);
  max-width: 36em;
  margin: 0 auto 40px;
}

.features {
  background: var(--color-cream);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px 22px 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--card-border);
  text-align: center;
}

.feature-icon-wrap {
  margin: 0 auto 16px;
  max-width: 160px;
}

.feature-icon-wrap img {
  margin-inline: auto;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 10px;
  color: var(--color-text);
}

.feature-card p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.timeline-preview {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-lavender) 50%, var(--color-sky) 100%);
}

.timeline-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.timeline-copy p {
  color: var(--color-text-soft);
  margin: 0 0 20px;
}

.checklist {
  margin: 0;
  padding-left: 1.2em;
  color: var(--color-text);
}

.checklist li {
  margin-bottom: 8px;
}

.checklist li::marker {
  color: var(--color-primary-dark);
}

.mockup-phone {
  margin-inline: auto;
  max-width: 280px;
  background: linear-gradient(145deg, var(--mockup-shell-1), var(--mockup-shell-2));
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
  border: 3px solid var(--card-border);
}

.mockup-notch {
  width: 100px;
  height: 22px;
  margin: 0 auto 12px;
  background: #2a2435;
  border-radius: 0 0 14px 14px;
}

.mockup-screen {
  background: var(--color-surface);
  border-radius: 24px;
  padding: 20px 18px;
  min-height: 280px;
  border: 1px solid var(--btn-ghost-border);
}

.mock-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--mockup-divider);
  font-size: 0.9rem;
}

.mock-line.dim {
  opacity: 0.55;
}

.mock-line .dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-mint));
}

.cta-band {
  background: var(--color-cream);
}

.cta-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.cta-art img {
  max-width: 280px;
  margin-inline: auto;
}

.cta-copy .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.cta-copy p {
  color: var(--color-text-soft);
  margin: 0 0 20px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.badge-soon {
  background: var(--color-peach);
  color: var(--color-text);
}

.about {
  background: var(--color-surface);
  border-top: 1px solid var(--about-border);
}

.about .section-title {
  text-align: left;
}

.about p {
  color: var(--color-text-soft);
  margin: 0 0 16px;
}

.about-contact {
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--footer-grad-1), var(--footer-grad-2));
  padding: 48px 0 40px;
  border-top: 1px solid var(--footer-border);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
  justify-content: space-between;
}

.footer-main {
  text-align: left;
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 12px;
  color: var(--color-text);
}

.footer-domain,
.footer-icp,
.footer-copy {
  margin: 6px 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.footer-icp a {
  color: var(--color-text-soft);
}

.footer-qr {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  justify-content: flex-end;
  flex-shrink: 0;
  padding-left: 16px;
  border-left: 1px solid var(--card-border);
}

.footer-qr-card {
  margin: 0;
  text-align: center;
  max-width: 140px;
}

.footer-qr-frame {
  margin: 0 auto 8px;
  padding: 10px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.footer-qr-frame img {
  width: 100%;
  max-width: 132px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.footer-qr-card figcaption {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-soft);
  letter-spacing: 0.02em;
}

/* Nav open state (mobile) */
.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header.nav-open .site-nav {
  display: flex;
}

/* —— 媒体查询：平板 —— */
@media (max-width: 900px) {
  .hero-grid,
  .timeline-layout,
  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .lead {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-domain {
    text-align: center;
  }

  .hero-art {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
  }

  .feature-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .timeline-copy {
    text-align: center;
  }

  .checklist {
    display: inline-block;
    text-align: left;
  }

  .timeline-mockup {
    order: -1;
  }

  .cta-copy .section-title {
    text-align: center;
  }

  .store-badges {
    justify-content: center;
  }

  .cta-art img {
    max-width: 220px;
  }

  .about .section-title {
    text-align: center;
  }

  .narrow {
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .footer-main {
    text-align: center;
  }

  .footer-qr {
    justify-content: center;
    padding-left: 0;
    border-left: none;
    padding-top: 8px;
    border-top: 1px solid var(--card-border);
  }
}

/* —— 媒体查询：手机 —— */
@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }

  .site-nav a {
    border-radius: var(--radius-md);
    text-align: center;
  }

  .hero {
    padding: 32px 0 64px;
  }

  .section {
    padding: 56px 0;
  }

  .mockup-phone {
    max-width: 260px;
  }

  .container {
    padding-inline: 16px;
  }

  .site-footer {
    padding: 40px 0 32px;
  }

  .footer-qr {
    gap: 16px;
  }

  .footer-qr-card {
    max-width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }

  .theme-toggle:hover {
    transform: none;
  }

  body {
    transition: none;
  }
}
