:root {
  --brand: #1a8fd0;
  --brand-deep: #0d6fa8;
  --ink: #1a2332;
  --muted: #5a6a7e;
  --line: #dce6f0;
  --bg: #f4f8fc;
  --card: #ffffff;
  --soft: #e8f4fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 70, 110, 0.08);
  --max: 1100px;
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d7eefc 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e8f6ff 0%, transparent 50%),
    linear-gradient(180deg, #f7fbfe 0%, var(--bg) 40%, #eef5fa 100%);
  line-height: 1.75;
  font-size: 16px;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

#ads img {
  max-width: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.brand:hover {
  text-decoration: none;
  color: var(--brand-deep);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-deep);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 14px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(13, 70, 110, 0.08);
    z-index: 120;
  }

  .nav a {
    padding: 12px 8px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  body.nav-open .nav {
    display: flex;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }
}

.hero {
  padding: 36px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-copy .lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 143, 208, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.phone-stack {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: min(220px, 42vw);
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 24px 50px rgba(13, 70, 110, 0.22);
  background: #0b1220;
  position: absolute;
}

.phone img {
  width: 100%;
  height: auto;
  display: block;
}

.phone-back {
  transform: translate(-58px, 18px) rotate(-8deg);
  z-index: 1;
  opacity: 0.96;
  animation: floatA 5.5s ease-in-out infinite;
}

.phone-front {
  transform: translate(52px, -10px) rotate(7deg);
  z-index: 2;
  animation: floatB 4.8s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translate(-58px, 18px) rotate(-8deg); }
  50% { transform: translate(-58px, 8px) rotate(-7deg); }
}

@keyframes floatB {
  0%, 100% { transform: translate(52px, -10px) rotate(7deg); }
  50% { transform: translate(52px, 0px) rotate(6deg); }
}

.section {
  padding: 42px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature .shot {
  aspect-ratio: 9 / 16;
  max-height: 360px;
  overflow: hidden;
  background: #0b1220;
}

.feature .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.feature .body {
  padding: 16px 16px 18px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.content-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.content-block h2,
.content-block h3 {
  scroll-margin-top: 120px;
}

.content-block h2 {
  margin-top: 0;
  font-size: 26px;
}

.content-block h3 {
  margin-top: 28px;
  font-size: 20px;
  color: var(--brand-deep);
}

.content-block p {
  margin: 0 0 14px;
  color: #2b3848;
}

.content-block ul,
.content-block ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
  color: #2b3848;
}

.content-block li {
  margin-bottom: 8px;
}

.media-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: center;
  margin: 24px 0;
}

.media-row.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.media-row .shot-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0b1220;
  max-width: 280px;
  margin: 0 auto;
}

.media-row .shot-frame img {
  width: 100%;
  display: block;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
}

.links-inline a {
  margin-right: 10px;
}

.page-hero {
  padding: 28px 0 8px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.5vw, 36px);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.error-box {
  text-align: center;
  padding: 70px 20px 90px;
}

.error-box .code {
  font-size: 72px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 10px;
}

.error-box h1 {
  margin: 0 0 10px;
}

.error-box p {
  color: var(--muted);
  margin: 0 0 22px;
}

.site-footer {
  margin-top: 48px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.copyright {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .media-row,
  .media-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .phone-stack {
    height: 400px;
    margin-top: 10px;
  }

  .phone-back {
    transform: translate(-48px, 16px) rotate(-7deg);
  }

  .phone-front {
    transform: translate(42px, -6px) rotate(6deg);
  }

  @keyframes floatA {
    0%, 100% { transform: translate(-48px, 16px) rotate(-7deg); }
    50% { transform: translate(-48px, 8px) rotate(-6deg); }
  }

  @keyframes floatB {
    0%, 100% { transform: translate(42px, -6px) rotate(6deg); }
    50% { transform: translate(42px, 2px) rotate(5deg); }
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 56px;
  }

  .brand span {
    font-size: 15px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .content-block {
    padding: 20px 16px;
  }

  .phone-stack {
    height: 340px;
  }

  .phone {
    width: min(168px, 46vw);
    border-radius: 22px;
  }
}
