:root {
  --bg: #0d0f14;
  --bg-2: #151922;
  --bg-3: #1c2230;
  --text: #e8eaef;
  --muted: #9aa3b5;
  --accent: #c62828;
  --accent-2: #e53935;
  --line: rgba(255, 255, 255, 0.08);
  --ok: #4caf50;
  --radius: 12px;
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(198, 40, 40, 0.18), transparent 55%),
    radial-gradient(900px 400px at 90% 0%, rgba(30, 60, 120, 0.22), transparent 50%),
    linear-gradient(180deg, #0b0d12 0%, var(--bg) 40%, #10141d 100%);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff8a80;
  text-decoration: none;
}

a:hover {
  color: #ffcdd2;
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(13, 15, 20, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand:hover {
  text-decoration: none;
  color: #fff;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 48px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 22px;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8e0000);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.phone-frame {
  background: linear-gradient(160deg, #222837, #12151d);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.phone-frame img {
  border-radius: 18px;
  width: 100%;
}

.badge-float {
  position: absolute;
  left: -8px;
  bottom: 24px;
  background: rgba(20, 24, 34, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.badge-float strong {
  color: var(--ok);
  display: block;
}

/* Sections */
section {
  padding: 42px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 48em;
}

.panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-grid,
.shot-grid,
.step-grid,
.faq-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card h3,
.shot-card h3,
.step-card h3,
.faq-item h3 {
  font-size: 1.08rem;
  margin: 12px 0 8px;
}

.feature-card p,
.shot-card p,
.step-card p,
.faq-item p,
.article p,
.article li {
  color: var(--muted);
}

.feature-card img,
.shot-card img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #000;
}

.shot-grid {
  grid-template-columns: repeat(4, 1fr);
}

.shot-card,
.feature-card,
.step-card,
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.step-grid {
  grid-template-columns: repeat(4, 1fr);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(198, 40, 40, 0.2);
  color: #ff8a80;
  font-weight: 700;
  margin-bottom: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.article h2,
.article h3 {
  margin: 1.4em 0 0.6em;
  line-height: 1.35;
}

.article h2:first-child,
.article h3:first-child {
  margin-top: 0;
}

.article p {
  margin-bottom: 1em;
}

.article ul,
.article ol {
  margin: 0 0 1em 1.2em;
  color: var(--muted);
}

.article li {
  margin-bottom: 0.45em;
}

.toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  margin-left: 1.2em;
  color: var(--muted);
}

.toc a {
  color: #ffab91;
}

.faq-grid {
  grid-template-columns: 1fr 1fr;
}

.page-hero {
  padding: 36px 0 10px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
}

.breadcrumbs {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: var(--muted);
}

.legal {
  padding-bottom: 60px;
}

.legal .panel {
  padding: 28px;
}

.related {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.related ul {
  margin-left: 1.2em;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #0a0c11;
  padding: 34px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 6px;
}

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: #6f7788;
  font-size: 0.85rem;
  text-align: center;
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.error-wrap h1 {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  margin-bottom: 8px;
}

.error-wrap p {
  color: var(--muted);
  margin-bottom: 22px;
}

/* Mobile */
@media (max-width: 920px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: #141821;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .hero-grid,
  .feature-grid,
  .two-col,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid,
  .step-grid {
    grid-template-columns: 1fr 1fr;
  }

  .badge-float {
    left: 8px;
    bottom: 12px;
  }

  .hero {
    padding-top: 28px;
  }
}

@media (max-width: 560px) {
  .shot-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 24px, var(--max));
  }

  .cta-row .btn {
    width: 100%;
  }
}
