:root {
  --bg: #080a14;
  --panel: #101624;
  --panel-soft: #151c2d;
  --paper: #ffffff;
  --text: #ecf4ff;
  --muted: #9fb0c5;
  --ink: #182235;
  --ink-soft: #637189;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ff5aa8;
  --accent-2: #29c9e1;
  --accent-3: #ffd36f;
  --shadow: 0 18px 48px rgba(4, 8, 18, 0.16);
  --radius: 8px;
  --container: min(1180px, calc(100% - 40px));
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 90, 168, 0.16), transparent 28rem),
    radial-gradient(circle at 84% 8%, rgba(41, 201, 225, 0.14), transparent 30rem),
    #f5f8fd;
  line-height: 1.75;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: rgba(255, 90, 168, 0.72);
}

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

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

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(41, 201, 225, 0.78);
  outline-offset: 4px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #fff;
  background: #111827;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(8, 10, 20, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(4, 8, 18, 0.22);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: var(--container);
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 168px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--text);
  background: #080a14;
}

.hero-bg,
.hero picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  transform: scale(1.02);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 20, 0.86) 0%, rgba(8, 10, 20, 0.72) 36%, rgba(8, 10, 20, 0.28) 70%, rgba(8, 10, 20, 0.46) 100%),
    linear-gradient(180deg, rgba(8, 10, 20, 0.2), rgba(8, 10, 20, 0.78));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 128px 0 78px;
  max-width: 760px;
  justify-self: start;
  animation: fadeRise 0.75s ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 5.8vw, 68px);
  line-height: 1.05;
  letter-spacing: 0;
  color: #fff;
}

.hero-lede {
  max-width: 670px;
  margin: 24px 0 0;
  color: rgba(236, 244, 255, 0.88);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.secondary-button,
.footer-button {
  position: relative;
  overflow: hidden;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button::before,
.footer-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.36) 45%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.primary-button,
.footer-button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #b951ff);
  box-shadow: 0 14px 32px rgba(255, 90, 168, 0.32);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.primary-button:hover,
.secondary-button:hover,
.footer-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover,
.footer-button:hover {
  box-shadow: 0 18px 42px rgba(255, 90, 168, 0.42);
}

.primary-button:hover::before,
.footer-button:hover::before {
  transform: translateX(120%);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px rgba(41, 201, 225, 0.18);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 40px 0 0;
}

.hero-stats div {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-stats dt {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(236, 244, 255, 0.78);
  font-size: 13px;
}

.section {
  padding: 96px 0;
}

.section-head {
  width: var(--container);
  margin: 0 auto 42px;
  max-width: 900px;
  text-align: center;
}

.section-head.compact {
  max-width: 760px;
}

.section-head h2 {
  margin: 0;
  color: #182235;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-head p:not(.section-kicker) {
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.section-head::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin: 24px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.timeline {
  width: var(--container);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0 auto;
}

.timeline article {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 30px;
  color: var(--text);
  background: linear-gradient(135deg, #111827, #171b31);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.timeline article::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -46px;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 90, 168, 0.55), rgba(41, 201, 225, 0.35));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.timeline article:hover {
  transform: translateY(-5px);
  border-color: rgba(41, 201, 225, 0.32);
  box-shadow: 0 22px 54px rgba(4, 8, 18, 0.24);
}

.timeline article:hover::after {
  opacity: 0.86;
  transform: scale(1.12);
}

.timeline span {
  color: var(--accent-3);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.timeline h3,
.feature-card h3,
.work-card h3 {
  margin: 22px 0 12px;
  line-height: 1.3;
  letter-spacing: 0;
}

.timeline h3 {
  color: #fff;
  font-size: 23px;
}

.timeline p {
  margin: 0;
  color: rgba(236, 244, 255, 0.78);
}

.section-features {
  background: #fff;
}

.feature-grid {
  width: var(--container);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 34px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(14, 23, 40, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 90, 168, 0.12), rgba(41, 201, 225, 0.12));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 201, 225, 0.38);
  box-shadow: 0 18px 44px rgba(14, 23, 40, 0.13);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 90, 168, 0.14), rgba(41, 201, 225, 0.16));
  font-size: 32px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover .feature-icon {
  transform: translateY(-2px) rotate(-3deg);
  box-shadow: 0 12px 26px rgba(41, 201, 225, 0.18);
}

.feature-card h3 {
  margin-top: 0;
  color: #0870ce;
  font-size: 24px;
}

.feature-card p {
  margin: 0;
  color: #46546a;
  font-size: 16px;
}

.section-works {
  background: linear-gradient(180deg, #eef4fb, #f7fbff);
}

.works-grid {
  width: var(--container);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0 auto;
}

.work-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3eaf5;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(31, 47, 76, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(31, 47, 76, 0.17);
}

.work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111827;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.work-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.work-body {
  padding: 26px 28px 28px;
}

.work-card h3 {
  margin-top: 0;
  color: #0870ce;
  font-size: 25px;
  transition: color 0.2s ease;
}

.work-card:hover h3 {
  color: #ff4f9f;
}

.work-card p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px !important;
  color: #ffad00 !important;
  font-size: 15px !important;
}

.rating strong {
  color: #182235;
}

.rating span {
  color: #6b7b91;
}

.section-faq {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 90, 168, 0.13), transparent 34rem),
    linear-gradient(225deg, rgba(41, 201, 225, 0.16), transparent 32rem),
    #0b1020;
}

.section-faq .section-head h2 {
  color: #fff;
}

.section-faq .section-head p,
.section-faq .section-kicker {
  color: #8cecff;
}

.faq-list {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

details {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

details:hover {
  transform: translateY(-2px);
  border-color: rgba(41, 201, 225, 0.42);
  background: rgba(255, 255, 255, 0.09);
}

summary {
  min-height: 66px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 18px 22px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent-2);
  font-size: 28px;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  color: var(--accent);
}

details p {
  margin: 0;
  padding: 0 22px 22px;
  color: rgba(236, 244, 255, 0.78);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(20px, calc((100% - 1180px) / 2));
  color: rgba(236, 244, 255, 0.78);
  background: #070912;
}

.site-footer img {
  width: 154px;
  height: auto;
  margin-bottom: 10px;
}

.site-footer p {
  margin: 0;
  max-width: 620px;
}

.footer-button {
  flex: 0 0 auto;
  min-width: 132px;
}

.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  color: #fff;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 90, 168, 0.96), rgba(185, 81, 255, 0.96));
  box-shadow: 0 18px 44px rgba(255, 90, 168, 0.36), 0 8px 20px rgba(4, 8, 18, 0.22);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.floating-cta span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #151024;
  background: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1;
}

.floating-cta:hover {
  transform: translateY(-3px);
  filter: saturate(1.08);
  box-shadow: 0 22px 54px rgba(255, 90, 168, 0.46), 0 10px 24px rgba(4, 8, 18, 0.28);
}

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

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    display: grid;
    gap: 4px;
    padding: 14px;
    color: #fff;
    background: rgba(8, 10, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    border-radius: 6px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 10, 20, 0.78), rgba(8, 10, 20, 0.72) 48%, rgba(8, 10, 20, 0.9)),
      linear-gradient(90deg, rgba(8, 10, 20, 0.74), rgba(8, 10, 20, 0.22));
  }

  .hero-content {
    padding-top: 126px;
  }

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

  .feature-card {
    min-height: 285px;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 32px, 1180px);
  }

  .nav-shell {
    height: 70px;
  }

  .brand img {
    width: 142px;
  }

  .nav-links {
    top: 70px;
    left: 16px;
    right: 16px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-bg {
    object-position: 63% center;
  }

  .hero-content {
    padding: 112px 0 54px;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .timeline,
  .feature-grid,
  .works-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .timeline article,
  .feature-card {
    min-height: auto;
    padding: 26px;
  }

  .work-body {
    padding: 23px;
  }

  .work-card h3,
  .feature-card h3 {
    font-size: 22px;
  }

  summary {
    font-size: 16px;
    align-items: flex-start;
  }

  .site-footer {
    display: grid;
  }

  .footer-button {
    width: 100%;
  }

  .floating-cta {
    right: 16px;
    bottom: 16px;
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
  }

  .floating-cta span {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-12px, -8px, 0);
  }
}
