:root {
  --ink: #080810;
  --surface: #111119;
  --surface-2: #181824;
  --line: rgba(255, 255, 255, 0.07);
  --text: #efeff4;
  --muted: #9494a8;
  --orange: #ff9500;
  --orange-deep: #e67e00;
  --orange-glow: rgba(255, 149, 0, 0.28);
  --violet: #7c3aed;
  --violet-soft: #a78bfa;
  --header-h: 56px;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1080px;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(255, 149, 0, 0.07), transparent),
    radial-gradient(ellipse 50% 35% at 10% 100%, rgba(124, 58, 237, 0.06), transparent);
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--violet-soft); }

.container {
  width: min(100% - 28px, var(--wrap));
  margin-inline: auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 8, 16, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--violet), transparent);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.logo-link img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.logo-link strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.logo-link em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.main-nav { display: none; gap: 2px; }

.main-nav a {
  color: var(--muted);
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(255, 149, 0, 0.12);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 10px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  display: none;
  position: fixed;
  inset: calc(var(--header-h) + 2px) 0 0 0;
  background: rgba(8, 8, 16, 0.98);
  padding: 20px;
  z-index: 999;
  flex-direction: column;
  gap: 6px;
}

.drawer.open { display: flex; }

.drawer a {
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 15px;
}

.drawer a.active {
  border-color: rgba(255, 149, 0, 0.35);
  background: rgba(255, 149, 0, 0.08);
}

/* Sticky ads bar */
.float-dl {
  position: fixed;
  top: calc(var(--header-h) + 2px);
  left: 0;
  right: 0;
  z-index: 950;
  background: rgba(12, 12, 20, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.float-dl.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.float-dl .dl-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 4px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.float-dl .dl-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.float-dl .dl-row img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: cover;
}

.float-dl .dl-row .caption {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.float-dl .dl-row figure { margin: 0; }

.float-dl .dl-row a {
  display: inline-block;
  border-radius: 11px;
}

.float-dl .dl-row img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}

/* Ads block */
.dl-panel {
  padding: 18px 0 8px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 149, 0, 0.04), transparent);
}

.dl-panel-head {
  text-align: center;
  margin-bottom: 10px;
}

.dl-panel-head h2 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dl-panel-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 6px 0;
  gap: 4px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid var(--line);
}

#ads a { display: inline-block; border-radius: 16px; }

#ads img:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px var(--orange-glow);
}

#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* Hero */
.banner {
  padding: 36px 0 48px;
  overflow: hidden;
}

.banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.banner-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255, 149, 0, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.banner h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 16px;
}

.banner h1 span {
  color: var(--orange);
}

.banner-lead {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 540px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.chip-row span {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.metric-strip div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-align: center;
}

.metric-strip b {
  display: block;
  font-size: 20px;
  color: var(--orange);
  font-family: var(--serif);
}

.metric-strip i {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #111;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 28px var(--orange-glow);
}

.btn-primary:hover {
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--orange-glow);
}

.phone-stack {
  position: relative;
  height: 380px;
  max-width: 340px;
  margin: 0 auto;
  width: 100%;
}

.phone-stack .frame {
  position: absolute;
  width: 46%;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s ease;
}

.phone-stack .frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.phone-stack .f1 { top: 0; left: 0; transform: rotate(-8deg); z-index: 1; }
.phone-stack .f2 { top: 18px; left: 28%; transform: rotate(2deg); z-index: 2; }
.phone-stack .f3 { top: 36px; left: 52%; transform: rotate(10deg); z-index: 3; }
.phone-stack .f4 { top: 60px; left: 18%; transform: rotate(-3deg); z-index: 4; width: 42%; }

.phone-stack::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--orange-glow), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Sections */
.block {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.block-head {
  margin-bottom: 32px;
}

.block-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-soft);
  margin-bottom: 8px;
}

.block-head h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 4.5vw, 28px);
  margin-bottom: 10px;
}

.block-head p {
  color: var(--muted);
  max-width: 680px;
}

/* 3:7 split rows */
.split-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 36px;
}

.split-row:last-child { margin-bottom: 0; }

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.split-media figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.split-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}

.split-body p {
  color: var(--muted);
  margin-bottom: 12px;
}

.split-body ul {
  list-style: none;
  margin: 14px 0;
}

.split-body li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.split-body li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--orange);
}

/* Bento features */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.bento-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: border-color 0.25s;
}

.bento-item:hover { border-color: rgba(255, 149, 0, 0.25); }

.bento-item .num {
  font-family: var(--serif);
  font-size: 28px;
  color: rgba(255, 149, 0, 0.35);
  line-height: 1;
  margin-bottom: 8px;
}

.bento-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.bento-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* Channel pills */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-grid span {
  display: inline-flex;
  flex-direction: column;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 120px;
}

.pill-grid strong {
  font-size: 13px;
  margin-bottom: 2px;
}

.pill-grid em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

/* Image gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s;
}

.gallery-card:hover {
  border-color: rgba(255, 149, 0, 0.3);
  transform: translateY(-2px);
}

.gallery-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

.gallery-card figcaption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.gallery-card strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 4px;
}

/* SEO prose blocks */
.seo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.seo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}

.seo-card h3 {
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--violet);
}

.seo-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.seo-card p:last-child { margin-bottom: 0; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}

.compare-table th,
.compare-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.compare-table th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

.compare-table td { color: var(--muted); }

.compare-table tr td:first-child { color: var(--text); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.faq-item h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-item p {
  font-size: 14px;
  color: var(--muted);
}

/* Steps timeline */
.timeline { position: relative; padding-left: 28px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange), var(--violet));
}

.timeline-step {
  position: relative;
  margin-bottom: 24px;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.2);
}

.timeline-step h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.timeline-step p {
  font-size: 14px;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  padding: 48px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.08), rgba(124, 58, 237, 0.06));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 4vw, 26px);
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 14px;
}

/* Footer */
.site-foot {
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.foot-brand img {
  width: 40px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.foot-brand p {
  font-size: 13px;
  color: var(--muted);
  max-width: 320px;
}

.foot-links h4 {
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--text);
}

.foot-links a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
}

.foot-links a:hover { color: var(--orange); }

.foot-copy {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Subpages */
.page-hero {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 5vw, 32px);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange); }

.breadcrumb span { color: var(--text); }

.prose {
  padding: 36px 0 52px;
  max-width: 760px;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--orange);
}

.prose h3 {
  font-size: 16px;
  margin: 20px 0 8px;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.prose ul,
.prose ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.prose li { margin-bottom: 6px; }

/* Error pages */
.err-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}

.err-page h1 {
  font-family: var(--serif);
  font-size: 72px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
}

.err-page h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.err-page p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 14px;
}

/* Mobile hero images */
@media (max-width: 767px) {
  .banner {
    overflow: visible;
    padding-top: 24px;
  }

  .banner-grid {
    gap: 24px;
  }

  .phone-stack {
    order: -1;
    display: flex;
    overflow-x: auto;
    gap: 12px;
    height: auto;
    max-width: 100%;
    margin: 0 -4px;
    padding: 4px 4px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .phone-stack::-webkit-scrollbar { display: none; }

  .phone-stack::before { display: none; }

  .phone-stack .frame {
    position: relative;
    flex: 0 0 38%;
    width: 38%;
    top: auto;
    left: auto;
    transform: none;
    scroll-snap-align: center;
  }

  .phone-stack .f4 { width: 38%; }
}

/* Desktop */
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }

  .float-dl .dl-row {
    grid-template-columns: repeat(8, 1fr);
  }

  .banner-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .phone-stack {
    height: 420px;
    max-width: 100%;
    margin: 0;
  }

  .split-row {
    grid-template-columns: 3fr 7fr;
    gap: 32px;
  }

  .split-row.reverse {
    grid-template-columns: 7fr 3fr;
  }

  .split-row.reverse .split-media { order: 2; }
  .split-row.reverse .split-body { order: 1; }

  .bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-item.wide {
    grid-column: span 2;
  }

  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .seo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }

  .bento-item.wide {
    grid-column: span 2;
  }
}
