:root {
  --ink: #061b31;
  --ink-soft: #273951;
  --muted: #64748d;
  --paper: #ffffff;
  --wash: #f6f9fc;
  --line: #dfe8f2;
  --purple: #533afd;
  --purple-dark: #4434d4;
  --purple-soft: #e9e8ff;
  --ruby: #b85f45;
  --dark: #1c1e54;
  --success: #108c3d;
  --shadow: 0 30px 45px -30px rgba(50, 50, 93, .25), 0 18px 36px -18px rgba(0, 0, 0, .1);
  --max: 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", "Segoe UI", sans-serif;
  font-feature-settings: "ss01";
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 12px; }
.review-strip { display: flex; justify-content: center; gap: 22px; padding: 7px 20px; color: #fff; background: var(--ruby); font-size: 12px; letter-spacing: .03em; }
.review-strip span:first-child { font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(223, 232, 242, .85);
  backdrop-filter: blur(12px);
}
.wordmark { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-size: 14px; font-weight: 700; }
.wordmark-mark { display: grid; width: 32px; height: 32px; place-items: center; color: #fff; background: var(--ink); border-radius: 5px; }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.site-header nav a:hover { color: var(--purple); }
.site-header .nav-cta { padding: 8px 16px; color: #fff; background: var(--purple); border-radius: 5px; }
.site-header .nav-cta:hover { color: #fff; background: var(--purple-dark); }
.nav-toggle { display: none; min-width: 48px; min-height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 5px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: clamp(50px, 7vw, 105px);
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  min-height: 710px;
  margin: 0 auto;
  padding: 80px 0 96px;
}
.eyebrow { margin: 0 0 18px; color: var(--ruby); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1, .section-heading h2, .process-intro h2, .contact-section h2, .boundaries h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.12;
  text-wrap: balance;
}
.hero h1 { max-width: 720px; font-size: clamp(46px, 6vw, 76px); }
.hero-lead { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid transparent; border-radius: 5px; cursor: pointer; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--purple); box-shadow: 0 12px 22px -16px rgba(83, 58, 253, .85); }
.button.primary:hover { background: var(--purple-dark); }
.button.secondary { color: var(--purple); background: transparent; border-color: #b9b9f9; }
.button.secondary:hover { background: rgba(83, 58, 253, .05); }
.button.compact { min-height: 42px; margin-top: 8px; padding: 8px 14px; }
.truth-note { max-width: 650px; margin: 28px 0 0; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.truth-note strong { color: var(--ink-soft); }

.delivery-sheet { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.sheet-topline { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-family: Consolas, monospace; font-size: 10px; letter-spacing: .05em; }
.status-dot { color: var(--success); }
.status-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: #15be53; border-radius: 50%; }
.delivery-sheet h2 { margin: 26px 0 18px; font-size: 27px; font-weight: 500; letter-spacing: -.02em; }
.sheet-list { margin: 0; }
.sheet-list > div { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.sheet-list dt { color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.sheet-list dd { margin: 0; color: var(--muted); font-size: 13px; }
.sheet-footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.sheet-footer span { padding: 3px 7px; color: var(--purple); background: var(--purple-soft); border-radius: 4px; font-size: 11px; }

.work-section { padding: 112px 0 30px; background: var(--wash); }
.section-heading, .case, .services-section, .contact-section, .boundaries { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 420px); gap: 50px; align-items: end; margin-bottom: 62px; }
.section-heading > .eyebrow { grid-column: 1 / -1; margin-bottom: -30px; }
.section-heading h2 { max-width: 760px; font-size: clamp(36px, 4.3vw, 56px); }
.section-heading > p { margin: 0; color: var(--muted); }
.case { display: grid; gap: clamp(36px, 6vw, 86px); align-items: start; padding: 78px 0; border-top: 1px solid #d4deea; }
.case-xhs { grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); }
.case-index { margin-bottom: 34px; color: var(--muted); font-family: Consolas, monospace; font-size: 11px; letter-spacing: .1em; }
.case-tag { margin: 0 0 10px; color: var(--ruby); font-size: 13px; font-weight: 700; }
.case h3 { max-width: 580px; margin: 0; font-size: clamp(29px, 3.2vw, 43px); font-weight: 500; letter-spacing: -.035em; line-height: 1.24; text-wrap: balance; }
.case-intro > p:not(.case-tag) { max-width: 610px; margin: 22px 0; color: var(--muted); }
.deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 28px 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.deliverables li { padding: 12px 10px 12px 0; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.text-link { color: var(--purple); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.xhs-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-height: 0; padding-top: 8px; }
.xhs-gallery button { overflow: hidden; aspect-ratio: 3 / 4; margin: 0; padding: 0; cursor: zoom-in; background: #fff; border: 0; border-radius: 7px; box-shadow: 0 15px 35px rgba(23, 23, 23, .08); }
.xhs-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.xhs-gallery button:hover img { transform: scale(1.018); }
.case-ppt { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); }
.ppt-visual { overflow: hidden; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.ppt-visual img { width: 100%; background: #e7ebf1; }
.case-video { grid-template-columns: minmax(300px, .9fr) minmax(280px, .52fr); justify-content: space-between; }
.video-shell { justify-self: end; width: min(100%, 390px); padding: 11px; background: #061b31; border-radius: 8px; box-shadow: var(--shadow); }
.video-shell video { width: 100%; aspect-ratio: 9 / 16; background: #111; border-radius: 5px; }
.video-shell p { margin: 8px 4px 0; color: rgba(255, 255, 255, .68); font-family: Consolas, monospace; font-size: 10px; }

.services-section { padding: 122px 0 110px; }
.split-heading { width: 100%; }
.price-warning { padding: 17px 20px; color: var(--ink-soft) !important; background: #fff5f1; border: 1px solid #f0d7cc; border-radius: 5px; font-size: 13px; }
.service-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 15px 35px rgba(23, 23, 23, .06); }
.service-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 14px; }
.service-table th, .service-table td { padding: 19px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.service-table thead th { color: var(--muted); background: var(--wash); font-size: 11px; letter-spacing: .06em; }
.service-table tbody th { min-width: 180px; color: var(--ink); font-weight: 700; }
.service-table td:nth-child(3) { color: var(--purple); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.service-table tbody tr:last-child > * { border-bottom: 0; }
.service-table tbody tr:hover { background: #fbfcff; }

.process-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px, 8vw, 120px); padding: 112px max(20px, calc((100vw - var(--max)) / 2)); color: #fff; background: var(--dark); }
.eyebrow.light { color: #f5a88f; }
.process-intro { position: sticky; top: 120px; align-self: start; }
.process-intro h2 { font-size: clamp(36px, 4vw, 53px); }
.process-intro > p:last-child { color: rgba(255, 255, 255, .68); }
.process-list { margin: 0; padding: 0; list-style: none; counter-reset: process; }
.process-list li { display: grid; grid-template-columns: 62px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.process-list li > span { color: #f5a88f; font-family: Consolas, monospace; font-size: 14px; }
.process-list h3 { margin: -7px 0 6px; font-size: 24px; font-weight: 500; }
.process-list p { margin: 0; color: rgba(255, 255, 255, .66); font-size: 14px; }

.boundaries { padding: 116px 0; }
.boundaries h2 { max-width: 780px; font-size: clamp(36px, 4vw, 54px); }
.boundary-columns { display: grid; grid-template-columns: 1.1fr .9fr 1fr; gap: 0; margin-top: 60px; border-top: 1px solid var(--line); }
.boundary-columns > div { padding: 30px 32px 0 0; }
.boundary-columns > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.boundary-columns h3 { margin: 0 0 12px; color: var(--ruby); font-size: 15px; }
.boundary-columns p { margin: 0; color: var(--muted); font-size: 14px; }

.contact-section { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: end; padding: 70px; margin-bottom: 90px; background: #eef0ff; border-radius: 8px; }
.contact-section h2 { font-size: clamp(36px, 4vw, 54px); }
.contact-section p:not(.eyebrow) { max-width: 700px; margin-bottom: 0; color: var(--muted); }
.contact-actions { display: grid; gap: 10px; min-width: 220px; }
.copy-status { min-height: 22px; color: var(--success); font-size: 12px; text-align: center; }
footer { display: flex; justify-content: space-between; gap: 30px; padding: 28px max(20px, calc((100vw - var(--max)) / 2)); color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }

.lightbox { max-width: min(94vw, 860px); max-height: 94vh; padding: 10px; border: 0; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .38); }
.lightbox::backdrop { background: rgba(6, 27, 49, .86); }
.lightbox img { max-height: 85vh; margin: auto; }
.lightbox-close { display: block; min-width: 58px; min-height: 40px; margin: 0 0 8px auto; color: #fff; cursor: pointer; background: var(--ink); border: 0; border-radius: 4px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 65px; }
  .delivery-sheet { width: min(100%, 600px); transform: none; }
  .section-heading, .case-xhs, .case-ppt, .case-video, .process-section, .contact-section { grid-template-columns: 1fr; }
  .case-ppt .ppt-visual { order: 2; }
  .video-shell { justify-self: start; }
  .process-intro { position: static; }
  .boundary-columns { grid-template-columns: 1fr; }
  .boundary-columns > div, .boundary-columns > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .contact-actions { min-width: 0; }
}

@media (max-width: 720px) {
  .review-strip { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .xhs-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { min-height: 64px; }
  .nav-toggle { position: relative; z-index: 2; display: block; flex: 0 0 auto; margin-left: auto; color: var(--ink); }
  .site-header nav { position: absolute; top: 65px; right: 0; display: none; width: min(88vw, 330px); padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
  .site-header nav.open { display: grid; gap: 4px; }
  .site-header nav a { min-height: 44px; padding: 10px 12px; }
  .hero { width: min(calc(100% - 32px), var(--max)); padding: 54px 0 72px; }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-lead { font-size: 16px; }
  .delivery-sheet { padding: 22px; }
  .sheet-topline { flex-wrap: wrap; justify-content: flex-start; }
  .sheet-topline .status-dot { flex-basis: 100%; }
  .section-heading, .case, .services-section, .contact-section, .boundaries { width: min(calc(100% - 32px), var(--max)); }
  .work-section { padding-top: 82px; }
  .section-heading { gap: 24px; margin-bottom: 40px; }
  .section-heading .eyebrow { grid-column: auto; margin-bottom: 0; }
  .case { padding: 58px 0; }
  .xhs-gallery { overflow-x: auto; align-items: flex-start; gap: 14px; padding: 12px 4px 28px; scroll-snap-type: x mandatory; }
  .xhs-gallery button, .xhs-gallery .gallery-main, .xhs-gallery button:nth-child(3), .xhs-gallery button:last-child { flex: 0 0 68%; margin-top: 0; scroll-snap-align: center; }
  .xhs-gallery .gallery-main { flex-basis: 78%; }
  .deliverables { grid-template-columns: 1fr; }
  .services-section { padding-top: 90px; }
  .process-section { padding-block: 82px; }
  .contact-section { padding: 32px 24px; margin-bottom: 56px; }
  footer { display: block; }
}

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