:root {
  --bg: #1E252B;
  --bg-2: #232D36;
  --panel: #2E3A46;
  --panel-2: #26323D;
  --text: #E2E8F0;
  --muted: #A9B7C6;
  --line: rgba(226, 232, 240, 0.16);
  --green: #39FF14;
  --cyan: #00F5FF;
  --red: #D84747;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(30, 37, 43, 0.96), rgba(35, 45, 54, 0.98)),
    radial-gradient(circle at 20% 10%, rgba(0, 245, 255, 0.08), transparent 32%),
    var(--bg);
  color: var(--text);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.icon {
  width: 1.08em;
  height: 1.08em;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 180ms ease;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 0.9rem;
  background: var(--cyan);
  color: #071015;
  border-radius: 6px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 37, 43, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 800;
  color: var(--text);
}

.brand img {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.62rem 0.72rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--cyan);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 245, 255, 0.56), 0 0 18px rgba(0, 245, 255, 0.14);
}

.nav-links .nav-cta {
  color: #071015;
  background: var(--green);
  font-weight: 800;
  margin-left: 0.25rem;
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.18);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus {
  color: #071015;
  background: var(--cyan);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
  transform-origin: center;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  max-height: 860px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 37, 43, 0.94) 0%, rgba(30, 37, 43, 0.78) 44%, rgba(30, 37, 43, 0.36) 100%),
    linear-gradient(180deg, rgba(30, 37, 43, 0.18) 0%, rgba(30, 37, 43, 0.98) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8rem 0 4rem;
}

.eyebrow,
.section-kicker {
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.82rem;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.18;
}

h1 {
  max-width: 860px;
  margin-top: 0.65rem;
  font-size: clamp(2rem, 5vw, 4.35rem);
  text-wrap: balance;
  color: var(--cyan);
  text-shadow: 0 8px 38px rgba(0, 0, 0, 0.72);
}

.hero-subtitle {
  max-width: 720px;
  margin-top: 1.25rem;
  color: var(--text);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.btn.primary {
  background: var(--green);
  color: #071015;
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.22);
}

.btn.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(46, 58, 70, 0.72);
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(0, 245, 255, 0.2);
}

.nav-links a:hover .icon,
.nav-links a:focus .icon,
.btn:hover .icon,
.btn:focus .icon,
.friend-link-list a:hover .icon,
.friend-link-list a:focus .icon {
  transform: translateX(2px);
}

.btn.primary:hover,
.btn.primary:focus {
  background: var(--cyan);
  box-shadow: 0 0 34px rgba(0, 245, 255, 0.28);
}

.btn.secondary:hover,
.btn.secondary:focus {
  border-color: rgba(0, 245, 255, 0.48);
  background: rgba(0, 245, 255, 0.1);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(940px, 100%);
  margin: 2.3rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.hero-facts div {
  padding: 1rem;
  background: rgba(46, 58, 70, 0.82);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-facts dd {
  margin: 0.25rem 0 0;
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  position: relative;
  display: inline-block;
  margin-top: 0.45rem;
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  color: var(--green);
}

.section-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transform: translateX(-50%);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.28);
}

.section-heading p:last-child {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.split,
.feature-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.text-panel,
.feature-card,
.step-card,
.update-grid article,
.faq-list details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.text-panel:hover,
.feature-card:hover,
.step-card:hover,
.update-grid article:hover,
.faq-list details:hover {
  border-color: rgba(0, 245, 255, 0.36);
  background: linear-gradient(180deg, rgba(46, 58, 70, 1), rgba(38, 50, 61, 1));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24), 0 0 22px rgba(0, 245, 255, 0.08);
  transform: translateY(-3px);
}

.text-panel {
  padding: 1.4rem;
}

.text-panel h3,
.feature-card h3,
.step-card h3,
.update-grid h3,
.feature-list h3 {
  font-size: 1.14rem;
  color: #F4F9FF;
}

.text-panel p,
.feature-card p,
.step-card p,
.update-grid p,
.feature-list p,
.faq-list p {
  margin-top: 0.65rem;
  color: var(--muted);
}

.text-panel p + p {
  margin-top: 1rem;
}

.media-card {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.media-card:hover {
  border-color: rgba(0, 245, 255, 0.38);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.44), 0 0 26px rgba(0, 245, 255, 0.12);
  transform: translateY(-3px);
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.media-card:hover img,
.wide-visual:hover img,
.gallery:hover .gallery-slide.is-active img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.025);
}

.media-card figcaption {
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

.content-grid,
.update-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.step-card,
.update-grid article {
  padding: 1.1rem;
}

.card-icon {
  display: inline-flex;
  width: 42px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 6px;
  background: rgba(0, 245, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 255, 0.28);
  font-weight: 900;
  transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.feature-card:hover .card-icon {
  color: #071015;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.26);
  transform: translateY(-1px);
}

.wide-visual {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.wide-visual:hover {
  border-color: rgba(0, 245, 255, 0.34);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38), 0 0 24px rgba(0, 245, 255, 0.1);
  transform: translateY(-3px);
}

.wide-visual img,
.wide-visual div {
  background: var(--panel);
}

.wide-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.wide-visual div {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wide-visual p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: steps;
}

.step-card {
  position: relative;
  padding-top: 3.8rem;
}

.step-card::before {
  counter-increment: steps;
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  color: var(--green);
  font-weight: 900;
  transition: color 220ms ease, text-shadow 220ms ease;
}

.step-card:hover::before {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 245, 255, 0.3);
}

.guide-image {
  margin-top: 1.25rem;
}

.feature-layout {
  grid-template-columns: 1fr 1fr;
}

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-list article {
  padding: 1.1rem;
  border-left: 3px solid var(--cyan);
  background: rgba(46, 58, 70, 0.58);
  border-radius: 0 8px 8px 0;
}

.gallery {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.gallery-slide {
  display: none;
  margin: 0;
}

.gallery-slide.is-active {
  display: block;
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.gallery-slide figcaption {
  padding: 0.9rem 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.gallery-btn {
  position: absolute;
  top: calc(50% - 28px);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 37, 43, 0.86);
  color: var(--text);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.gallery-btn:hover,
.gallery-btn:focus {
  color: #071015;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.24);
}

.gallery-btn .icon {
  width: 1.65rem;
  height: 1.65rem;
}

.gallery-btn.prev {
  left: 0.75rem;
}

.gallery-btn.next {
  right: 0.75rem;
}

.update-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 820;
  color: #F4F9FF;
  transition: color 180ms ease, background-color 180ms ease;
}

.faq-list details[open] summary,
.faq-list summary:hover,
.faq-list summary:focus {
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.05);
}

.faq-list details p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  border-top: 1px solid var(--line);
}

.final-cta {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 5.5rem;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(46, 58, 70, 0.98), rgba(35, 45, 54, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.final-cta h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  color: var(--green);
}

.final-cta p:last-child {
  margin-top: 0.6rem;
  color: var(--muted);
}

.friend-links {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 3rem;
  padding: 2.4rem 1.2rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 245, 255, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(46, 58, 70, 0.98), rgba(30, 37, 43, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.friend-links h2 {
  color: var(--green);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.16);
}

.friend-link-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.15rem;
}

.friend-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  color: var(--text);
  background: rgba(226, 232, 240, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.24);
  font-weight: 800;
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.08);
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.friend-link-list a:hover,
.friend-link-list a:focus {
  color: var(--cyan);
  border-color: rgba(0, 245, 255, 0.64);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.18);
  transform: translateY(-1px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--cyan);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: rgba(30, 37, 43, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.78rem 0.9rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(30, 37, 43, 0.52) 0%, rgba(30, 37, 43, 0.98) 72%),
      linear-gradient(90deg, rgba(30, 37, 43, 0.72), rgba(30, 37, 43, 0.38));
  }

  .hero-facts,
  .content-grid,
  .timeline,
  .update-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .feature-layout,
  .wide-visual {
    grid-template-columns: 1fr;
  }

  .wide-visual img {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .nav,
  .section,
  .hero-content,
  .final-cta,
  .friend-links,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .brand span {
    max-width: 210px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-bottom: 2.2rem;
  }

  .hero-actions,
  .final-cta,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-facts,
  .content-grid,
  .timeline,
  .update-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .gallery-btn {
    width: 38px;
    height: 38px;
  }

  .gallery-slide img {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .btn:focus,
  .text-panel:hover,
  .feature-card:hover,
  .step-card:hover,
  .update-grid article:hover,
  .faq-list details:hover,
  .media-card:hover,
  .wide-visual:hover,
  .friend-link-list a:hover {
    transform: none;
  }

  .icon,
  .media-card img,
  .wide-visual img,
  .gallery-slide img {
    transition: none;
  }

  .nav-links a:hover .icon,
  .nav-links a:focus .icon,
  .btn:hover .icon,
  .btn:focus .icon {
    transform: none;
  }
}
