:root {
  --ink: #12151b;
  --muted: #69717f;
  --line: #e7e9ee;
  --panel: #f8f9fb;
  --deep: #101820;
  --brand-blue: #082f70;
  --accent: #f2b84b;
  --accent-soft: rgba(242, 184, 75, .18);
  --shadow: 0 26px 80px rgba(16, 24, 32, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(231, 233, 238, .84);
  backdrop-filter: blur(18px);
}

.brand img {
  display: block;
  width: min(290px, 56vw);
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #414956;
  font-size: 14px;
  font-weight: 520;
}

nav a {
  padding: 10px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 7vw, 108px) clamp(20px, 5vw, 72px) 72px;
  overflow: hidden;
}

.hero-copy {
  max-width: 660px;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 28px;
  color: #17202b;
  font-size: clamp(40px, 4.05vw, 60px);
  line-height: 1.18;
  font-weight: 620;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  color: #4d5664;
  font-size: 17px;
  line-height: 1.92;
  font-weight: 420;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 650;
}

.primary-action {
  color: #151515;
  background: var(--accent);
}

.secondary-action {
  color: #29313c;
  border: 1px solid var(--line);
  background: #fff;
}

.editor-stage {
  position: relative;
  min-height: 520px;
}

.editor-stage::before {
  content: "";
  position: absolute;
  inset: 32px 0 18px 108px;
  background: linear-gradient(180deg, rgba(248, 249, 251, .92), rgba(255, 255, 255, .18));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.editor-window {
  position: absolute;
  right: 0;
  top: 58px;
  width: min(560px, 82vw);
  background: #111820;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-origin: 58% 48%;
  animation: cameraPush 8s ease-in-out infinite alternate;
}

.editor-top {
  display: grid;
  grid-template-columns: 12px 12px 12px 1fr;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  background: #171f29;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.editor-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}

.editor-top p {
  margin: 0 0 0 12px;
  color: #9aa8b8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.code-pane {
  padding: 30px 0 36px;
}

.code-pane ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: code;
}

.code-pane li {
  position: relative;
  display: block;
  height: 36px;
  padding: 0 34px 0 86px;
  color: #d9e0ea;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(13px, 1.35vw, 16px);
  line-height: 36px;
  white-space: pre;
}

.code-pane li::before {
  counter-increment: code;
  content: counter(code);
  position: absolute;
  left: 30px;
  color: #596779;
}

.code-muted {
  color: #8fa5bd;
}

.target-line::after {
  content: "";
  position: absolute;
  inset: 3px 22px 3px 72px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(242, 184, 75, .55), inset 0 0 18px rgba(242, 184, 75, .08);
  animation: preciseGlow 2.8s ease-in-out infinite;
}

.annotation-note {
  position: absolute;
  left: -40px;
  top: 210px;
  z-index: 5;
  width: 188px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 18px 52px rgba(16, 24, 32, .09);
}

.annotation-note span,
.annotation-note small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.annotation-note strong {
  display: block;
  margin: 7px 0 8px;
  color: #1e252f;
  font-size: 16px;
}

.annotation-line {
  position: absolute;
  left: 122px;
  top: 214px;
  z-index: 4;
  width: 520px;
  height: 160px;
  pointer-events: none;
}

.annotation-line path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  filter: drop-shadow(0 0 6px rgba(242, 184, 75, .5));
  animation: drawLine 4.8s ease-in-out infinite;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 72px) 82px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metrics div {
  padding: 28px;
  background: #fff;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  margin-bottom: 8px;
  font-size: 22px;
}

.metrics span {
  color: var(--muted);
  line-height: 1.7;
}

.section,
.workflow,
.quality,
.contact {
  padding: 92px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.18;
  font-weight: 680;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article {
  min-height: 300px;
  padding: 28px;
  background: #fff;
}

.service-grid article span {
  display: block;
  margin-bottom: 52px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

h3 {
  margin-bottom: 18px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 660;
}

.service-grid p,
.workflow p,
.quality-copy p,
.contact p {
  color: var(--muted);
  line-height: 1.85;
}

.workflow {
  background: var(--panel);
}

.workflow-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.workflow-rail div {
  position: relative;
  padding-top: 28px;
}

.workflow-rail div::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: #d8dce3;
}

.workflow-rail div::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.workflow-rail b {
  display: block;
  margin-bottom: 18px;
  color: var(--brand-blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.workflow-rail span {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 720;
}

.quality {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(360px, .62fr);
  align-items: start;
  gap: clamp(36px, 7vw, 112px);
}

.quality-copy {
  max-width: 760px;
}

.quality-copy p {
  max-width: 640px;
  margin-top: 24px;
  font-size: 17px;
}

.quality-list {
  display: grid;
  gap: 12px;
}

.quality-list div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 0 20px;
  color: #2b333f;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.quality-list span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, .58fr);
  gap: clamp(32px, 6vw, 96px);
  color: #fff;
  background: var(--deep);
}

.contact .section-kicker {
  color: var(--accent);
}

.contact p {
  max-width: 700px;
  color: #b6c0cd;
  font-size: 17px;
}

.contact-panel {
  padding: 28px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
}

dl {
  display: grid;
  gap: 18px;
  margin: 0 0 26px;
}

dt {
  color: #8996a7;
  font-size: 13px;
}

dd {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 700;
  word-break: break-word;
}

.wechat {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.wechat img,
.qr-placeholder {
  width: 116px;
  height: 116px;
  border-radius: 6px;
}

.wechat img {
  display: block;
  object-fit: cover;
  background: #fff;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  padding: 12px;
  color: #9da9b8;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  border: 1px dashed rgba(255, 255, 255, .26);
}

.wechat span {
  color: #dbe2eb;
  font-weight: 700;
}

footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: #69717f;
  border-top: 1px solid var(--line);
}

footer img {
  width: 30px;
  height: 30px;
}

.copyright {
  color: #8a93a0;
}

@keyframes cameraPush {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-10px, 3px, 0) scale(1.035);
  }
}

@keyframes preciseGlow {
  0%,
  100% {
    opacity: .72;
  }
  50% {
    opacity: 1;
  }
}

@keyframes drawLine {
  0% {
    stroke-dashoffset: 0;
    opacity: .9;
  }
  20%,
  78% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -620;
    opacity: .12;
  }
}

@media (max-width: 1040px) {
  nav {
    display: none;
  }

  .hero,
  .quality,
  .contact {
    grid-template-columns: 1fr;
  }

  .editor-stage {
    min-height: 500px;
  }

  .editor-window {
    width: min(680px, 92vw);
  }

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

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

@media (max-width: 680px) {
  .site-header {
    height: 68px;
  }

  .brand img {
    width: min(250px, 74vw);
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.2;
  }

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

  .editor-stage {
    min-height: 390px;
    margin-left: -8px;
  }

  .editor-stage::before {
    inset: 28px 0 18px 40px;
  }

  .editor-window {
    top: 58px;
    width: 94vw;
  }

  .code-pane li {
    height: 32px;
    padding-left: 58px;
    padding-right: 18px;
    font-size: 12px;
    line-height: 32px;
  }

  .code-pane li::before {
    left: 20px;
  }

  .target-line::after {
    inset: 3px 12px 3px 50px;
  }

  .annotation-note {
    left: 0;
    top: 0;
    width: 170px;
  }

  .annotation-line {
    left: 112px;
    top: 78px;
    width: 280px;
    transform: rotate(9deg);
  }

  .metrics,
  .service-grid,
  .workflow-rail {
    grid-template-columns: 1fr;
  }

  .metrics {
    margin-bottom: 44px;
  }

  .section,
  .workflow,
  .quality,
  .contact {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .contact-panel {
    padding: 22px;
  }
}
