:root {
  --brand: #ea4589;
  --brand-dark: #b91661;
  --brand-deep: #8f0d47;
  --brand-soft: #fff0f6;
  --ink: #17202a;
  --ink-soft: #253241;
  --muted: #5c6773;
  --paper: #fbfcfe;
  --surface: #ffffff;
  --soft: #f6f8fb;
  --line: #dfe5ec;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.12);
  --radius: 8px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans SC",
    Arial,
    sans-serif;
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 40px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223, 229, 236, 0.88);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, var(--brand), var(--brand-dark)),
    var(--brand);
  box-shadow: 0 10px 24px rgba(234, 69, 137, 0.32);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 112px 0 138px;
  overflow: hidden;
  color: var(--paper);
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/brand-hero.png");
  background-color: #19212c;
  background-position: center right;
  background-size: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 18, 28, 0.88) 0%, rgba(12, 18, 28, 0.56) 43%, rgba(12, 18, 28, 0.18) 100%),
    linear-gradient(0deg, rgba(12, 18, 28, 0.72) 0%, rgba(12, 18, 28, 0.08) 36%);
}

.hero-content {
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 850;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: 4.2rem;
  line-height: 1.05;
  font-weight: 900;
}

.hero-copy {
  max-width: 630px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.22rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
}

.button-primary {
  color: var(--paper);
  background: var(--brand-dark);
  box-shadow: 0 14px 32px rgba(185, 22, 97, 0.3);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-deep);
}

.button-secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.16);
}

.hero-proof {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100% - 40px, var(--content));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.metric {
  padding: 22px 26px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--brand);
  font-size: 1.42rem;
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.section {
  padding: 104px 0;
}

.section-inner {
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.section-muted {
  background: var(--soft);
}

.section-accent {
  background:
    linear-gradient(120deg, rgba(234, 69, 137, 0.1), rgba(255, 240, 246, 0.96)),
    var(--surface);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: 2.15rem;
  line-height: 1.2;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.card-grid,
.solution-grid,
.case-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
}

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

.info-card,
.solution-card,
.case-card {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(23, 32, 42, 0.07);
}

.info-card {
  min-height: 180px;
}

.info-card:first-child {
  grid-row: span 2;
  background:
    linear-gradient(140deg, rgba(234, 69, 137, 0.12), rgba(255, 255, 255, 0.86)),
    var(--surface);
}

.info-card h3,
.solution-card h3,
.case-card h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.info-card p,
.solution-card p,
.case-card p {
  margin: 0;
  color: var(--muted);
}

.solution-card {
  min-height: 170px;
}

.solution-card strong {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--brand-dark);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.timeline-item {
  position: relative;
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.timeline-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--brand);
  font-weight: 900;
}

.timeline-item h3 {
  margin: 0 0 10px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.case-card {
  min-height: 190px;
  color: var(--paper);
  border: 0;
  background: var(--ink-soft);
}

.case-card:nth-child(2) {
  background: #2a1722;
}

.case-card p {
  color: rgba(255, 255, 255, 0.78);
}

.case-card strong {
  display: block;
  margin-top: 20px;
  color: #ff8fbd;
  font-size: 1.42rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
  gap: 48px;
  align-items: start;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--brand-dark);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--soft);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(234, 69, 137, 0.24);
  border-color: var(--brand);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 40px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 20px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 20px;
    display: none;
    width: min(280px, calc(100vw - 40px));
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 12px;
  }

  .hero h1 {
    font-size: 3.05rem;
  }

  .hero-proof,
  .card-grid,
  .solution-grid,
  .case-grid,
  .timeline,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    position: static;
    transform: none;
    width: min(100% - 40px, var(--content));
    margin: 0 auto;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    align-items: start;
    padding: 108px 0 0;
  }

  .hero-content {
    padding-bottom: 52px;
  }

  .hero h1 {
    font-size: 2.32rem;
  }

  .hero-copy {
    font-size: 1.04rem;
  }

  .section {
    padding: 72px 0;
  }

  h2 {
    font-size: 1.72rem;
  }

  .button {
    width: 100%;
  }

  .contact-form {
    padding: 22px;
  }

  .site-footer {
    display: grid;
    padding: 24px 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
