:root {
  color-scheme: light;
  --bg: oklch(1 0 0);
  --surface: oklch(0.972 0.008 85);
  --surface-strong: oklch(0.94 0.012 85);
  --ink: oklch(0.155 0.004 85);
  --muted: oklch(0.45 0.006 85);
  --primary: oklch(0.55 0.19 255);
  --primary-dark: oklch(0.43 0.15 255);
  --blue-soft: oklch(0.925 0.045 250);
  --yellow-soft: oklch(0.91 0.095 82);
  --red-soft: oklch(0.88 0.085 28);
  --green-soft: oklch(0.9 0.065 155);
  --line: oklch(0.88 0.006 85);
  --shadow: 0 12px 32px oklch(0.155 0.004 85 / 0.1);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 16px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: oklch(1 0 0 / 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand img {
  display: block;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links > a {
  border-radius: 999px;
  padding: 8px 12px;
}

.nav-links > a:hover,
.nav-links > a:focus-visible {
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(28px, 5vw, 52px);
  width: min(var(--max), calc(100% - 40px));
  min-height: clamp(600px, 76vh, 780px);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 118px) 0 clamp(44px, 7vw, 80px);
}

.hero-copy {
  max-width: 980px;
  text-align: center;
  animation: rise 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--ink);
  padding: 8px 16px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 11.8em;
  margin: 0 auto;
  font-size: clamp(46px, 7.6vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
}

.hero-actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button-icon,
.button-wechat-icon {
  font-size: 18px;
  line-height: 1;
}

.button-wechat-icon {
  width: 19px;
  height: 19px;
}

.button-wechat-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--primary);
  color: white;
}

.button.secondary {
  background: var(--blue-soft);
  color: var(--primary-dark);
}

.button.secondary.wechat-trigger {
  padding-inline: 20px;
}

.status-panel {
  width: min(820px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow);
  padding: 24px;
  animation: rise 780ms 90ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.status-label {
  display: inline-flex;
  margin: 0 0 10px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  padding: 3px 8px;
  font-size: 14px;
}

.status-title {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  text-wrap: balance;
}

dl {
  margin: 0;
}

.status-panel div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.status-panel div:last-child {
  padding-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 14px;
}

dd {
  margin: 0;
  font-weight: 650;
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}

.flow div {
  min-height: 78px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.flow div:nth-child(1),
.flow div:nth-child(4) {
  background: var(--yellow-soft);
}

.flow div:nth-child(2),
.flow div:nth-child(5) {
  background: var(--blue-soft);
}

.flow div:nth-child(3) {
  background: var(--green-soft);
}

.flow div:nth-child(6) {
  background: var(--red-soft);
}

.flow div:last-child {
  border-right: 0;
}

.scope {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(32px, 7vw, 88px);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-heading {
  position: sticky;
  top: 24px;
  align-self: start;
}

.section-heading p {
  display: inline-flex;
  margin: 0 0 14px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--primary-dark);
  padding: 4px 9px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.scope-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 8px 20px oklch(0.155 0.004 85 / 0.04);
}

.scope-list article {
  border-bottom: 1px solid var(--line);
  padding: 26px 28px;
}

.scope-list article:nth-child(1) {
  background: oklch(0.985 0.018 82);
}

.scope-list article:nth-child(2) {
  background: oklch(0.985 0.014 250);
}

.scope-list article:nth-child(3) {
  background: oklch(0.985 0.014 155);
}

.scope-list article:nth-child(4) {
  background: oklch(0.985 0.014 28);
}

.scope-list article:last-child {
  border-bottom: 0;
}

.scope-list h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.2;
}

.scope-list h3::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow-soft);
}

.scope-list article:nth-child(2) h3::before {
  background: var(--blue-soft);
}

.scope-list article:nth-child(3) h3::before {
  background: var(--green-soft);
}

.scope-list article:nth-child(4) h3::before {
  background: var(--red-soft);
}

.scope-list p {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 34px 0 48px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-name {
  color: var(--ink);
  font-weight: 800;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-contact {
  gap: 8px;
}

.header-contact .icon-link {
  min-width: 38px;
  min-height: 38px;
}

.header-contact .wechat-popover {
  top: calc(100% + 12px);
  bottom: auto;
}

.contact-links a,
.wechat-trigger,
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  cursor: pointer;
}

.contact-links a:hover,
.wechat-trigger:hover,
.icon-link:hover,
.contact-links a:focus-visible,
.wechat-trigger:focus-visible,
.icon-link:focus-visible {
  border-color: var(--ink);
  color: var(--primary-dark);
  outline: none;
}

.wechat-item {
  position: relative;
}

.wechat-icon,
.mail-icon {
  width: 20px;
  height: 20px;
}

.wechat-icon {
  color: var(--ink);
}

.mail-icon {
  color: var(--primary-dark);
}

.mail-icon svg,
.wechat-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.x-icon {
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.wechat-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 208px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  padding: 14px;
  box-shadow: var(--shadow);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 10;
}

.wechat-popover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.wechat-popover p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.wechat-popover > span {
  display: block;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.cta-wechat {
  display: inline-flex;
}

.cta-wechat .wechat-popover {
  left: 50%;
  right: auto;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(8px);
}

.cta-wechat:hover .wechat-popover,
.cta-wechat:focus-within .wechat-popover,
.cta-wechat.is-open .wechat-popover {
  transform: translateX(-50%) translateY(0);
}

.wechat-item:hover .wechat-popover,
.wechat-item:focus-within .wechat-popover,
.wechat-item.is-open .wechat-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cta-wechat:hover .wechat-popover,
.cta-wechat:focus-within .wechat-popover,
.cta-wechat.is-open .wechat-popover {
  transform: translateX(-50%) translateY(0);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(16px);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

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

@media (max-width: 820px) {
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    padding-inline: 14px;
  }

  .hero,
  .scope,
  .flow {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 70px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 60px);
  }

  .flow {
    grid-template-columns: repeat(3, 1fr);
  }

  .flow div:nth-child(3) {
    border-right: 0;
  }

  .flow div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .scope {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
  }

  .site-footer {
    flex-direction: column;
  }

  .contact-links {
    justify-content: flex-start;
  }

  .wechat-popover {
    left: 0;
    right: auto;
  }
}

@media (max-width: 520px) {
  .site-header {
    width: 100%;
    padding-inline: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .status-panel {
    padding: 22px;
  }

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

  .flow div,
  .flow div:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .flow div:nth-child(2n) {
    border-right: 0;
  }

  .flow div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
