:root {
  --bg: #f3f0ea;
  --bg2: #eef2f5;
  --surface: rgba(250, 247, 241, 0.92);
  --surface-strong: #fcfaf6;
  --ink: #1f2e3d;
  --muted: #5e6874;
  --line: rgba(31, 46, 61, 0.14);
  --line-strong: rgba(31, 46, 61, 0.22);
  --primary: #1e4a78;
  --primary-deep: #153350;
  --primary-soft: rgba(30, 74, 120, 0.1);
  --accent: #a53f36;
  --accent-soft: rgba(165, 63, 54, 0.12);
  --max: 1240px;
  --head: 76px;
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 18px 44px rgba(22, 38, 56, 0.08);
  --font: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --display: "Source Han Serif SC", "Songti SC", "STSong", "Noto Serif SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(circle at top right, rgba(30, 74, 120, 0.12), transparent 28%),
    radial-gradient(circle at left bottom, rgba(165, 63, 54, 0.1), transparent 30%),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg2) 100%);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(31, 46, 61, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(31, 46, 61, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 78%);
}
body > * { position: relative; z-index: 1; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #d4a24c; outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.skip {
  position: fixed; z-index: 99; top: 8px; left: 8px; padding: 10px;
  background: #fff; transform: translateY(-150%);
}
.skip:focus { transform: none; }

.header {
  position: fixed; z-index: 20; inset: 0 0 auto; height: var(--head);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  background: rgba(252, 250, 246, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: background .18s, box-shadow .18s;
}
.header.scrolled {
  background: rgba(252, 250, 246, 0.96);
  box-shadow: 0 8px 24px rgba(22, 38, 56, 0.06);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.brand strong { font-size: 15px; letter-spacing: 0.02em; white-space: nowrap; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: 0.06em; }
.brand-logo {
  width: 44px; height: 44px; flex: none; object-fit: contain;
  border-radius: 10px; background: #fff; border: 1px solid var(--line);
}
.brand-logo--footer {
  width: 36px; height: 36px; border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.95);
}
.header nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.header nav > a:not(.nav-cta) { color: var(--muted); }
.header nav > a:not(.nav-cta):hover { color: var(--primary-deep); }
.nav-cta {
  padding: 10px 18px; color: #fff !important; background: var(--primary);
  border-radius: 999px; font-weight: 700;
}
.nav-cta:hover { background: var(--primary-deep); }
.nav-toggle { display: none; padding: 8px; border: 0; background: none; }
.nav-toggle i { display: block; width: 22px; height: 2px; margin: 5px; background: var(--ink); }
.nav-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.hero {
  padding: calc(var(--head) + 48px) max(24px, calc((100vw - var(--max)) / 2)) 56px;
}
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
}
.hero-copy, .hero-shot, .ai-card, .mig-steps, .platform-panel, .cta, .shots figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.hero-copy {
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; padding: 8px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-deep);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
}
.brand-line {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0 10px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: 0.02em;
}
.brand-line img {
  width: 52px; height: 52px; flex: none; object-fit: contain;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(22, 38, 56, 0.06);
}
.brand-line span { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.hero h1 {
  position: relative;
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 2.9vw, 2.75rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.hero h1 { word-break: keep-all; }
.lead {
  position: relative;
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  text-wrap: pretty;
}
.actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--primary); }
.button.primary:hover { background: var(--primary-deep); }
.button.secondary {
  color: var(--primary-deep);
  background: #fff;
  border: 1px solid rgba(30, 74, 120, 0.28);
}
.button.secondary:hover { border-color: var(--primary); background: #f7f9fc; }
.button.ghost:hover { background: rgba(165, 63, 54, 0.18); }
.button.ghost {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(165, 63, 54, 0.18);
}
.hero-shot {
  margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.hero-shot img {
  width: 100%; border-radius: 18px; border: 1px solid var(--line);
  object-fit: cover; aspect-ratio: 16 / 10; background: #e8edf2;
}
.hero-shot figcaption, .shots figcaption {
  margin: 0; padding: 0 6px 4px; color: var(--muted); font-size: 12px; font-weight: 600;
}

.section { padding: clamp(64px, 8vw, 110px) max(24px, calc((100vw - var(--max)) / 2)); }
.heading {
  display: grid;
  grid-template-columns: 140px 1.15fr minmax(240px, 0.85fr);
  gap: 28px; align-items: start; margin-bottom: 40px;
}
.heading > p:first-child, .mig-copy .eyebrow, .platform-panel .eyebrow, .cta .eyebrow, .about .eyebrow {
  margin: 8px 0 0; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: 0.06em;
}
.heading h2, .mig-copy h2, .platform-panel h2, .cta h2, .about h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.55rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.heading > p:last-child, .mig-copy > p:not(.eyebrow), .platform-panel p:not(.eyebrow), .cta p:not(.eyebrow) {
  margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.85; text-wrap: pretty;
}
.heading.compact { grid-template-columns: 140px 1fr; }
.heading.compact > p:last-child { grid-column: 2; }
.heading a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ai-card {
  padding: 26px 24px;
  display: grid; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ai-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(22, 38, 56, 0.1); }
.ai-card--wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: 28px; align-items: center;
  padding: 28px;
}
.ai-card .tag {
  display: inline-flex; width: fit-content;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
}
.ai-card h3 { margin: 0; font-size: 22px; }
.ai-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.ai-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ai-card li {
  padding: 8px 0 8px 14px; border-left: 3px solid rgba(30, 74, 120, 0.25);
  color: var(--ink); font-size: 13px; font-weight: 600;
}
.ai-card__media img {
  border-radius: 18px; border: 1px solid var(--line);
  aspect-ratio: 16 / 10; object-fit: cover; background: #e8edf2;
}

.shots {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.shots figure { margin: 0; padding: 12px; }
.shots img {
  border-radius: 18px; border: 1px solid var(--line);
  aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: #e8edf2;
}

.platform { padding-top: 0; padding-bottom: 0; }
.platform-panel {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px;
  padding: clamp(28px, 4vw, 42px);
  background: linear-gradient(135deg, rgba(30, 74, 120, 0.95), rgba(21, 51, 80, 0.98));
  color: #fff; border: 0;
}
.platform-panel .eyebrow { color: rgba(255, 255, 255, 0.78); }
.platform-panel h2 { color: #fff; }
.platform-panel p:not(.eyebrow) { color: rgba(255, 255, 255, 0.86); }
.platform-panel aside {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px; overflow: hidden; align-self: center;
}
.platform-panel aside span {
  display: grid; place-items: center; min-height: 54px; padding: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px; font-weight: 600; text-align: center;
}
.platform-panel aside span:nth-child(4n) { border-right: 0; }
.platform-panel aside span:nth-last-child(-n+4) { border-bottom: 0; }

.migration {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.mig-copy dl { margin: 28px 0 0; }
.mig-copy dl > div {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.mig-copy dt { font-weight: 800; }
.mig-copy dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.mig-steps { padding: 8px 22px; display: grid; gap: 0; }
.mig-steps > div {
  display: grid; gap: 6px; padding: 22px 0;
  border-top: 1px dashed rgba(31, 46, 61, 0.14);
}
.mig-steps > div:first-child { border-top: 0; }
.mig-steps b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(30, 74, 120, 0.14), rgba(30, 74, 120, 0.05));
  border: 1px solid rgba(30, 74, 120, 0.16);
  color: var(--primary-deep); font-size: 13px;
}
.mig-steps strong { font-size: 16px; }
.mig-steps span { color: var(--muted); font-size: 13px; }

.service-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.service-list article {
  padding: 26px 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(22, 38, 56, 0.05);
}
.service-list b { color: var(--accent); font-size: 13px; letter-spacing: 0.08em; }
.service-list h3 { margin: 10px 0 0; font-size: 20px; }
.service-list p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.client-list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface-strong); box-shadow: var(--shadow);
}
.client-list > div { min-height: 140px; padding: 24px 20px; }
.client-list > div + div { border-left: 1px solid var(--line); }
.client-list span { color: var(--accent); font-size: 12px; font-weight: 800; }
.client-list strong { display: block; margin-top: 28px; font-size: 17px; line-height: 1.5; }

.cta {
  margin: 0 max(24px, calc((100vw - var(--max)) / 2)) clamp(64px, 8vw, 96px);
  padding: clamp(28px, 4vw, 40px);
  display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center;
  background: linear-gradient(135deg, rgba(165, 63, 54, 0.95), rgba(140, 48, 42, 0.98));
  color: #fff; border: 0;
}
.cta .eyebrow { color: rgba(255, 255, 255, 0.8); background: transparent; padding: 0; }
.cta h2 { color: #fff; }
.cta p:not(.eyebrow) { color: rgba(255, 255, 255, 0.88); max-width: 60ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; min-width: 210px; }
.cta-actions a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 20px; border-radius: 14px; background: #fff; color: var(--primary-deep); font-weight: 800;
  transition: transform .16s ease;
}
.cta-actions a.secondary {
  color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.55);
}
.cta-actions a:hover { transform: translateY(-2px); }
.cta-actions a b { font-size: 20px; }

.about {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px);
  padding: 0 max(24px, calc((100vw - var(--max)) / 2)) clamp(72px, 9vw, 110px);
}
.about > div:last-child { border-top: 2px solid var(--primary-deep); }
.about > div:last-child p {
  margin: 0; padding: 22px 0; color: var(--muted); font-size: 15px; line-height: 1.9;
}
.about > div:last-child p + p { border-top: 1px solid var(--line); }

.footer {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: center;
  padding: 32px max(24px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.72); background: var(--primary-deep); font-size: 12px;
}
.footer p { margin: 0; }
.footer > div { display: flex; align-items: center; gap: 12px; color: #fff; }

@media (max-width: 1050px) {
  .hero-shell, .ai-card--wide, .migration, .platform-panel, .about { grid-template-columns: 1fr; }
  .heading, .heading.compact { grid-template-columns: 1fr; gap: 12px; }
  .heading > p:last-child, .heading.compact > p:last-child { grid-column: 1; }
  .ai-grid { grid-template-columns: 1fr 1fr; }
  .ai-card--wide { grid-column: 1 / -1; }
  .shots { grid-template-columns: 1fr; }
  .platform-panel aside { grid-template-columns: repeat(3, 1fr); }
  .platform-panel aside span:nth-child(4n) { border-right: 1px solid rgba(255, 255, 255, 0.22); }
  .platform-panel aside span:nth-child(3n) { border-right: 0; }
  .client-list { grid-template-columns: 1fr 1fr; }
  .client-list > div:nth-child(3) { border-left: 0; }
  .cta { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --head: 64px; }
  .header { padding: 0 16px; }
  .brand strong { font-size: 13px; }
  .brand small { display: none; }
  .nav-toggle { display: block; }
  .header nav {
    position: fixed; inset: var(--head) 0 auto; display: none; flex-direction: column;
    align-items: stretch; gap: 0; padding: 16px; background: var(--surface-strong);
    border-top: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-open .header nav { display: flex; }
  .header nav a { padding: 14px 10px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 10px; text-align: center; }
  .hero { padding: calc(var(--head) + 28px) 16px 36px; }
  .hero h1 { max-width: none; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .section { padding: 56px 16px; }
  .ai-grid, .service-list, .shots, .client-list { grid-template-columns: 1fr; }
  .ai-card--wide { grid-template-columns: 1fr; }
  .client-list > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .mig-copy dl > div { grid-template-columns: 1fr; gap: 6px; }
  .platform-panel aside { grid-template-columns: 1fr 1fr; }
  .cta { margin: 0 16px 56px; }
  .about { padding: 0 16px 64px; }
  .footer { grid-template-columns: 1fr; padding: 28px 16px; }
}

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