:root {
  --bg: #061018;
  --bg-elev: #0b1a28;
  --surface: rgba(14, 32, 48, 0.72);
  --ink: #e8f3ff;
  --muted: #9bb4c9;
  --line: rgba(120, 180, 220, 0.14);
  --brand: #2d8fd8;
  --brand-deep: #1a6fb4;
  --brand-soft: rgba(45, 143, 216, 0.16);
  --warm: #f0b429;
  --max: 1120px;
  --header-h: 60px;
  --radius: 16px;
  --font-display: "Sora", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 12% -8%, rgba(45, 143, 216, 0.22), transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(15, 80, 140, 0.18), transparent 50%),
    linear-gradient(180deg, #040c14 0%, var(--bg) 35%, #071521 100%);
  background-attachment: fixed;
  line-height: 1.8;
  font-size: 16px;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #7ec8ff; text-decoration: none; }
a:hover { color: #b6e0ff; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}
h1 { font-size: clamp(1.55rem, 3vw, 2.35rem); margin: 0 0 0.85rem; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); margin: 0 0 0.9rem; }
h3 { font-size: 1.08rem; margin: 0 0 0.5rem; color: #d7ebff; }
p { margin: 0 0 1rem; color: var(--muted); }
ul, ol { color: var(--muted); padding-left: 1.25rem; }
li { margin: 0.4rem 0; }
strong { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(4, 12, 20, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}
.brand:hover { color: #fff; }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(45, 143, 216, 0.35);
}
.nav-desktop {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-desktop a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: #fff;
  background: var(--brand-soft);
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  border-radius: 2px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-panel {
  display: none;
  background: rgba(6, 16, 24, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px 16px;
}
.nav-panel a {
  display: block;
  padding: 12px 10px;
  color: var(--ink);
  font-weight: 600;
  border-radius: 10px;
}
.nav-panel a:hover { background: var(--brand-soft); color: #fff; }
.nav-panel.is-open { display: block; }

.ads-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 110;
  background: rgba(5, 14, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.ads-wrap .ads-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4px 12px 8px;
}

/* —— Home hero: full-bleed —— */
.home { padding: 0 0 72px; max-width: none; margin: 0; }
.hero-bleed {
  position: relative;
  min-height: clamp(420px, 78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-bleed .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bleed .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 10, 18, 0.35) 0%, rgba(4, 10, 18, 0.55) 42%, rgba(4, 12, 20, 0.94) 100%),
    linear-gradient(90deg, rgba(4, 12, 20, 0.88) 0%, rgba(4, 12, 20, 0.35) 55%, rgba(4, 12, 20, 0.55) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: clamp(48px, 10vh, 96px) 0 clamp(36px, 6vh, 64px);
  animation: riseIn 0.9s ease both;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 14px;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.hero-copy h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 650;
  color: #d5ebff;
  margin: 0 0 14px;
  max-width: 28em;
}
.hero-lead {
  max-width: 36rem;
  font-size: 1.05rem;
  color: #c5daf0;
  margin-bottom: 22px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 12px 28px rgba(45, 143, 216, 0.35);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }

.home-body {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding-top: 8px;
}
.block {
  padding: clamp(28px, 5vw, 48px) 0;
  border-top: 1px solid var(--line);
  animation: riseIn 0.7s ease both;
}
.block:nth-child(1) { animation-delay: 0.05s; }
.block:nth-child(2) { animation-delay: 0.1s; }
.block .lead {
  font-size: 1.06rem;
  color: #c2d7ea;
  max-width: 46rem;
}
.block h2 {
  border-left: 3px solid var(--brand);
  padding-left: 12px;
}

.shot {
  margin: 1.15rem 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #081622;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
}
.shot img {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}
.shot figcaption {
  padding: 12px 14px 14px;
  font-size: 0.88rem;
  color: #8eabc4;
  background: rgba(0, 0, 0, 0.28);
}
.grid-2,
.grid-3 {
  display: grid;
  gap: 16px;
  margin-top: 1rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.rail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}
.rail-reverse { grid-template-columns: 0.95fr 1.05fr; }
.rail-reverse .rail-media { order: -1; }

.steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 42, 64, 0.55), rgba(10, 24, 38, 0.4));
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
}
.steps strong { display: block; margin-bottom: 4px; color: #fff; }

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 1rem 0;
}
.path-item {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(14, 32, 48, 0.55);
}
.path-item h3 { margin-bottom: 6px; }
.path-item p { margin: 0; font-size: 0.95rem; }

.note {
  margin: 1.1rem 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--warm);
  background: rgba(240, 180, 41, 0.08);
  border-radius: 0 12px 12px 0;
  color: #e8d5a0;
}
.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.mini-links a {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid rgba(45, 143, 216, 0.28);
  color: #cfe7ff;
  font-weight: 650;
  font-size: 0.92rem;
}
.mini-links a:hover { color: #fff; background: rgba(45, 143, 216, 0.28); }

/* —— Inner pages —— */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px 64px;
}
.page-narrow { max-width: 860px; }
.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.lead { font-size: 1.05rem; color: #c2d7ea; }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 10, 18, 0.9);
  padding: 28px 16px 40px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.footer-nav a { color: var(--muted); font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.footer-copy { color: #6f879c; font-size: 0.9rem; margin: 0; }

.error-box {
  text-align: center;
  padding: 48px 20px;
}
.error-box .code {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 10px;
}
.error-box p { max-width: 480px; margin-left: auto; margin-right: auto; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(0, -2%, 0); }
}

@media (max-width: 900px) {
  .rail,
  .rail-reverse { grid-template-columns: 1fr; }
  .rail-reverse .rail-media { order: 0; }
  .path-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .shot img { max-width: 100%; max-height: 560px; }
}
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .home-body { width: min(100% - 24px, var(--max)); }
  .hero-copy { width: min(100% - 24px, var(--max)); }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shot, .hero-bleed .hero-media img { transition: none; animation: none; }
  .block, .hero-copy { animation: none; }
}
