:root {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #18172b;
  background: #fcfcfe;
  font-synthesis: weight;
  --night: #100f23;
  --ink-muted: #55556c;
  --line: #e6e5ee;
  --violet: #5b43c5;
  --light-violet: #c5b5ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid #845cf2;
  outline-offset: 4px;
}
p, h1, h2, h3 { margin: 0; }
section[id] { scroll-margin-top: 104px; }
.container { width: min(1240px, calc(100% - 100px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; left: 16px; top: 12px; transform: translateY(-160%); background: white; padding: 12px; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.header {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #f7f5ff;
  background: #100f23f5;
  border-bottom: 1px solid #ffffff16;
  backdrop-filter: blur(14px);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 750; letter-spacing: -0.05em; white-space: nowrap; }
.brand-mark { position: relative; display: inline-block; width: 30px; height: 30px; flex: none; }
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 12px;
  left: 3px;
  border: solid #a994ff;
  border-width: 4px 0;
  border-radius: 60%;
  transform: rotate(-28deg);
}
.brand-mark::before { top: 4px; }
.brand-mark::after { top: 13px; border-color: #d6caff; }
nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); color: #d5d1e7; font-size: 14px; }
nav a:hover, .footer a:hover { color: #c5b5ff; }
.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .18s, border-color .18s;
}
.button span { font-size: 17px; }
.button-header { min-height: 39px; padding: 0 14px; background: #ffffff08; border-color: #c1b0fb5c; }
.button-header:hover, .button-secondary:hover { background: #b998ff26; border-color: #c5b5ff; }
.button-primary { color: #1e143c; background: #c3b1ff; }
.button-primary:hover { background: #dbccff; }
.button-secondary { color: #f2edff; border-color: #c1b0fb48; background: #161228; }
.menu-toggle { display: none; }

.hero {
  overflow: hidden;
  color: #faf8ff;
  background: radial-gradient(ellipse at 78% 45%, #2a1b49 0, #17132e 36%, transparent 68%), var(--night);
}
.hero-inner { min-height: 604px; position: relative; display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 1; width: 48%; padding: 67px 0 79px; }
.hero h1 { font-size: clamp(64px, 7vw, 106px); font-weight: 800; line-height: 1.13; letter-spacing: -.035em; }
.hero h1 span { display: block; color: #cbbaff; }
.hero-lead { margin-top: 25px; font-size: clamp(20px, 2vw, 27px); font-weight: 700; }
.hero-description { max-width: 355px; color: #c5bfd9; font-size: 15px; line-height: 1.9; margin-top: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 67%;
  pointer-events: none;
  background: radial-gradient(ellipse at 56% 51%, #7948bb29, transparent 63%);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#e0c4ff13 1px, transparent 1px), linear-gradient(90deg, #e0c4ff13 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse, #000 9%, transparent 68%);
}
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.orbit-label {
  position: absolute;
  display: grid;
  grid-template-columns: 7px 1fr;
  align-items: center;
  gap: 4px 8px;
  padding: 10px 14px;
  color: #d1c5ff;
  background: #211838df;
  border: 1px solid #c2a9ff57;
  border-radius: 8px;
  box-shadow: 0 12px 30px #0c081e67;
  font: 600 10px/1.2 ui-monospace, monospace;
  letter-spacing: .12em;
  white-space: nowrap;
}
.orbit-label strong { grid-column: 2; color: #f5f0ff; font: 700 13px/1.4 Inter, "Microsoft YaHei", system-ui, sans-serif; letter-spacing: 0; }
.orbit-label i { width: 6px; height: 6px; border-radius: 50%; background: #ccaeff; box-shadow: 0 0 10px #bd9bff; }
.orbit-source { top: 52%; left: 4%; }
.orbit-cdc { top: 18%; left: 58%; }
.orbit-target { right: 6%; bottom: 20%; }
.orbit-target i { background: #93eef7; box-shadow: 0 0 10px #93eef7; }

.connector-strip { background: #f3f1fa; border-bottom: 1px solid #e9e5f4; }
.strip-inner { min-height: 130px; display: grid; align-content: center; gap: 16px; padding-block: 20px; }
.strip-inner p { text-align: center; color: #645b78; font-size: 13px; }
.strip-inner ul { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 22px; list-style: none; padding: 0; margin: 0; }
.strip-inner li { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 720; color: #3b354c; letter-spacing: -.045em; white-space: nowrap; }
.strip-inner li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--engine); transform: rotate(45deg); }
.mysql { --engine: #377c9f; }
.postgresql { --engine: #4c59a3; }
.oceanbase { --engine: #6d66c5; }
.starrocks { --engine: #7c54be; }
.doris { --engine: #317f83; }
.kafka { --engine: #544b64; }
.mongodb { --engine: #3d8569; }

.section { padding-block: clamp(60px, 7vw, 100px); }
.section-heading { max-width: 710px; margin-bottom: 33px; }
h2 { font-size: clamp(29px, 4vw, 47px); line-height: 1.25; letter-spacing: -.025em; }
.section-heading > p { margin-top: 13px; color: var(--ink-muted); font-size: 15px; line-height: 1.85; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 25px 23px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.feature-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 20px; color: var(--violet); background: #eee9fc; border-radius: 9px; font: 600 23px/1 system-ui, sans-serif; }
.feature h3 { margin-bottom: 8px; font-size: 17px; }
.feature p, .scenario p, .deploy-guide p { font-size: 14px; color: var(--ink-muted); line-height: 1.85; }

.solution-section { background: #f2effa; }
.scenarios { border: 1px solid #dfd9ee; border-radius: 15px; background: #fff; }
.scenario-tabs { display: flex; gap: 5px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.scenario-tabs button { color: #4b4460; border: 0; border-radius: 7px; background: transparent; min-height: 44px; padding: 0 15px; font-size: 14px; font-weight: 650; }
.scenario-tabs button:hover, .scenario-tabs button[aria-selected="true"] { background: #ece7fb; color: #5536ab; }
.scenario { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: 26px; padding: 32px; }
.scenario h3 { margin-bottom: 10px; font-size: clamp(19px, 2vw, 25px); }
.scenario p { max-width: 32em; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.flow li { position: relative; display: grid; gap: 8px; padding: 17px 9px; text-align: center; background: #f7f4ff; border: 1px solid #e5ddf9; border-radius: 9px; }
.flow li:nth-child(2) { background: #e9e1fc; }
.flow li + li::before { content: "→"; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); color: var(--violet); }
.flow small { color: #675a82; font-size: 12px; }
.flow strong { font-size: 15px; overflow-wrap: anywhere; }

.matrix { border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.matrix-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 18px; }
.matrix-field { display: flex; align-items: center; gap: 9px; color: var(--ink-muted); font-size: 13px; }
.matrix-filters select { min-height: 41px; padding: 0 10px; color: #2b2542; background: #fbfaff; border-radius: 7px; border: 1px solid #ddd7eb; }
.matrix-filters p { margin-left: auto; color: var(--ink-muted); font-size: 13px; }
.matrix table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.matrix th, .matrix td { padding: 14px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.matrix th { color: #4d435f; background: #f6f3fc; }
.matrix th:nth-child(-n+2) { width: 19%; }
.matrix td:nth-child(-n+2) { font-weight: 700; }
.phase-list { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.phase { padding: 3px 7px; color: #594486; background: #f1ecfa; border-radius: 5px; font-size: 12px; }
.matrix-toggle { width: 100%; min-height: 46px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 13px 13px; color: var(--violet); background: #fff; font-weight: 650; font-size: 14px; }
.matrix-toggle:hover { background: #f8f5fd; }
.empty { padding: 23px 18px; color: var(--ink-muted); font-size: 14px; }

.deploy-section { color: white; background: radial-gradient(ellipse at 79% 45%, #382451, transparent 68%), #17132d; }
.deploy-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(32px, 6vw, 86px); }
.deploy-inner > div:first-child > p { max-width: 455px; margin-top: 16px; color: #d8cfe9; font-size: 15px; line-height: 1.9; }
.deploy-inner .button { margin-top: 24px; }
.deploy-guide { padding: 24px; color: #f5f0ff; background: #ffffff08; border: 1px solid #c1b0fb48; border-radius: 13px; }
.deploy-guide h3 { font-size: 18px; margin-bottom: 12px; }
.deploy-guide details { padding-block: 12px; border-top: 1px solid #c1b0fb39; }
.deploy-guide summary { min-height: 29px; cursor: pointer; font-size: 14px; font-weight: 700; }
.deploy-guide p { margin-top: 5px; color: #d8cfe9; }
.deploy-doc-link { display: inline-block; min-height: 32px; margin-top: 9px; color: #decbff; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.deploy-doc-link:hover { color: #fff; }
.deploy-guide code { display: inline-block; margin-top: 10px; padding: 7px 10px; color: #ebdeff; background: #120d22; border-radius: 5px; }
.footer { color: #e6dff4; background: var(--night); }
.footer-inner { display: flex; align-items: center; gap: 22px; min-height: 88px; padding-block: 15px; }
.footer p { font-size: 13px; color: #c5bfd9; }
.footer a:last-child { margin-left: auto; font-size: 13px; }

@media (max-width: 950px) {
  .container { width: calc(100% - 58px); }
  .hero-inner { min-height: 540px; }
  .hero-art { left: 42%; width: 62%; }
  .orbit-source { left: 0; }
  .strip-inner ul { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 36px); }
  section[id] { scroll-margin-top: 80px; }
  .header-inner { height: 64px; gap: 12px; }
  .header-inner .brand { font-size: 21px; margin-right: auto; }
  .button-header { min-height: 37px; padding-inline: 10px; font-size: 12px; }
  .button-header span { font-size: 14px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 6px; border: 0; background: transparent; color: #e9e1fa; font-size: 13px; }
  .menu-toggle span { width: 11px; height: 8px; border-block: 1px solid currentColor; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; border-bottom: 1px solid #ffffff26; background: var(--night); padding: 8px 18px 14px; }
  nav.is-open { display: grid; gap: 0; }
  nav a { display: block; padding: 12px; }
  .hero-inner { display: block; min-height: auto; }
  .hero-copy { width: 100%; padding: 49px 0 0; }
  .hero h1 { font-size: clamp(55px, 12vw, 78px); }
  .hero-lead { margin-top: 19px; }
  .hero-description { font-size: 14px; }
  .actions { margin-top: 20px; }
  .hero-art { position: relative; left: auto; width: calc(100% + 24px); margin: -10px -12px 0; height: clamp(254px, 62vw, 390px); }
  .orbit-label { padding: 6px 8px; font-size: 8px; gap: 2px 4px; }
  .orbit-label strong { font-size: 10px; }
  .orbit-source { left: 6%; }
  .orbit-cdc { top: 20%; }
  .orbit-target { bottom: 15%; }
  .strip-inner ul { gap: 9px 16px; }
  .strip-inner li { font-size: 14px; }
  .feature-grid { gap: 10px; }
  .feature { padding: 16px 12px; }
  .feature-icon { margin-bottom: 11px; }
  .feature h3 { font-size: 15px; }
  .feature p, .scenario p { font-size: 13px; }
  .scenario-tabs { padding: 8px; }
  .scenario-tabs button { padding: 0 10px; font-size: 13px; }
  .scenario { grid-template-columns: minmax(0, 1fr); padding: 21px 13px; gap: 18px; }
  .flow { gap: 15px; }
  .flow li { padding: 11px 4px; }
  .flow li + li::before { left: -14px; font-size: 12px; }
  .flow strong { font-size: 12px; }
  .matrix-filters { gap: 10px; padding: 11px; }
  .matrix-field { gap: 4px; font-size: 12px; }
  .matrix-filters select { padding-inline: 4px; max-width: 106px; }
  .matrix-filters p { flex-basis: 100%; margin: 0; }
  .matrix th, .matrix td { padding: 10px 5px; font-size: 12px; }
  .matrix th:nth-child(-n+2) { width: 24%; }
  .phase { font-size: 11px; padding-inline: 4px; }
  .deploy-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { gap: 8px 15px; flex-wrap: wrap; }
  .footer p { order: 1; width: 100%; }
}

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