:root {
  --bg: #0b0c10;
  --bg-2: #12141c;
  --bg-3: #1a1d28;
  --text: #f2f2f2;
  --muted: #9aa0b0;
  --line: rgba(255, 255, 255, 0.08);
  --red: #c41e2a;
  --red-2: #8f121c;
  --green: #7cff00;
  --green-dim: rgba(124, 255, 0, 0.15);
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --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;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 30, 42, 0.22), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(124, 255, 0, 0.08), transparent 50%),
    linear-gradient(180deg, #0d0f15 0%, var(--bg) 40%, #090a0e 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #b6ff66;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 12, 16, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(196, 30, 42, 0.35);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.hero-copy .lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), #4db000);
  color: #0b0c10;
  box-shadow: 0 10px 30px rgba(124, 255, 0, 0.22);
}

.btn-primary:hover {
  color: #0b0c10;
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(124, 255, 0, 0.45);
  color: var(--green);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

.hero-visual {
  position: relative;
}

.phone-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  transform: perspective(1200px) rotateY(-6deg);
}

.phone-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  animation: floatY 6s ease-in-out infinite;
}

.phone-card:nth-child(2) {
  margin-top: 2rem;
  animation-delay: -2s;
}

.phone-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.shot:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 255, 0, 0.35);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot figcaption {
  padding: 0.75rem 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.split img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.prose h2 {
  margin: 2rem 0 0.85rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.2rem;
}

.prose p {
  margin: 0 0 1rem;
  color: #d5d8e0;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: #d5d8e0;
}

.prose li {
  margin-bottom: 0.45rem;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
}

.toc a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.86rem;
}

.cta-band {
  margin: 1rem 0 0;
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid rgba(124, 255, 0, 0.2);
  background:
    linear-gradient(120deg, rgba(124, 255, 0, 0.08), transparent 40%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
}

.cta-band p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.breadcrumb {
  padding: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
}

.page-hero {
  padding: 1.5rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.footer-brand p,
.footer-col p {
  color: var(--muted);
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.error-page p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-stack {
    transform: none;
    max-width: 420px;
    margin: 0 auto;
  }

  .phone-card:nth-child(2) {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(18, 20, 28, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child {
    border-bottom: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 0.85rem;
  }

  .nav-cta {
    margin: 0.5rem;
    border-radius: 12px;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 420px) {
  .shot-grid {
    grid-template-columns: 1fr;
  }
}
