:root {
  color-scheme: light;
  --page: #f6fbfd;
  --surface: #ffffff;
  --surface-soft: #f2f8fb;
  --ink: #0e1d35;
  --muted: #5d6b82;
  --line: #d9e7ef;
  --primary: #10b9ab;
  --primary-strong: #087e75;
  --primary-hover: #0da99c;
  --primary-active: #098f85;
  --primary-soft: #eaf9f7;
  --blue: #2379e8;
  --blue-soft: #edf6ff;
  --warn: #a75c20;
  --warn-soft: #fff7ed;
  --code: #102139;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: var(--page);
  background-image: linear-gradient(rgba(20, 184, 166, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 184, 166, .03) 1px, transparent 1px);
  background-size: 64px 64px;
  font: 15px/1.68 Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.topbar { height: 76px; border-bottom: 1px solid rgba(217, 231, 239, .82); }
.brand { gap: 10px; color: var(--ink); font-weight: 800; }
.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: none;
}
.brand-mark::before { content: "Z"; position: static; border: 0; color: #fff; font-size: 16px; font-weight: 900; line-height: 1; }
.brand-mark::after { display: none; }
.brand small { color: var(--muted); font-size: 12px; font-weight: 500; }
.console-link {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 7px 16px rgba(16, 185, 171, .22);
  font-size: 13px;
  font-weight: 700;
}
.console-link:hover { border-color: var(--primary-hover); color: #fff; background: var(--primary-hover); }

.hero {
  position: relative;
  overflow: visible;
  padding: 68px 0 57px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero::after { display: none; }
.eyebrow, .section-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 12px; }
h1 { max-width: 760px; margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.15; letter-spacing: 0; }
h1 em { color: var(--primary); font-style: normal; }
.hero p, .hero > p { max-width: 700px; margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .14s ease, background-color .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px) scale(.985); }
.button.primary { color: #fff; background: var(--primary); box-shadow: 0 8px 18px rgba(16,185,171,.22); }
.button.primary:hover { background: var(--primary-hover); box-shadow: 0 10px 20px rgba(16,185,171,.26); }
.button.primary:active { background: var(--primary-active); }
.button.ghost { border-color: var(--line); color: #41526b; background: rgba(255,255,255,.72); }
.button.ghost:hover { border-color: #a9cad9; color: var(--blue); background: var(--surface); }

.section { padding-top: 58px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 19px; }
.section-kicker { margin: 0 0 5px; }
h2 { margin: 0; font-size: 25px; line-height: 1.28; letter-spacing: 0; }
.section-head > p { max-width: 430px; margin: 0; color: var(--muted); text-align: right; font-size: 13.5px; }

.downloads, .requirements { gap: 14px; }
.download-card, .requirement, .case-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 7px 20px rgba(24, 59, 89, .035);
}
.download-card { min-height: 226px; padding: 23px; transition: border-color .15s ease, box-shadow .15s ease; }
.download-card:hover { transform: none; border-color: #9bcfd0; box-shadow: 0 9px 24px rgba(24,59,89,.06); }
.platform { width: 38px; height: 38px; border-radius: 8px; color: var(--primary-strong); background: var(--primary-soft); }
.download-card:nth-child(2) .platform { color: var(--blue); background: var(--blue-soft); }
.download-card h3 { margin: 18px 0 5px; }
.download-card p { color: var(--muted); }
.download-card .button.ghost { background: var(--surface-soft); }
.meta { color: var(--muted); }

.path-grid { gap: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.path-step { min-height: 176px; padding: 23px; border-right: 1px solid var(--line); background: var(--surface); }
.path-step:last-child { border-right: 0; }
.step-no { color: var(--primary-strong); background: var(--primary-soft); }
.path-step p, .step p, .requirement p, .case-card p, .case-card ol { color: var(--muted); }
.path-step a { color: var(--primary-strong); }

.requirements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.requirement { padding: 21px; }
.steps, .config, .support { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 7px 20px rgba(24,59,89,.025); }
.step { border-bottom-color: var(--line); }
.config dt, .config dd { border-bottom-color: var(--line); }
.config dt { background: var(--surface-soft); }
.case { gap: 14px; }
.case-card { padding: 21px; }

.notice { border-color: #bfe5e1; border-radius: 8px; color: #27605d; background: var(--primary-soft); }
.notice b { color: var(--primary-strong); }
.notice.warn { border-color: #efd4b7; color: #7d4b25; background: var(--warn-soft); }
.notice.warn b { color: var(--warn); }
code { color: var(--primary-strong); background: rgba(16,185,171,.11); }
pre { border-radius: 8px; background: var(--code); }
details { border-bottom-color: var(--line); }
summary::after { color: var(--blue); }
.answer { color: var(--muted); }
footer { padding: 52px 14px 28px; color: var(--muted); }

html.embedded .topbar { display: none; }
html.embedded .hero { padding-top: 44px; }

html.dark {
  color-scheme: dark;
  --page: #0c1624;
  --surface: #142337;
  --surface-soft: #102033;
  --ink: #e6eef9;
  --muted: #a4b4c9;
  --line: #294158;
  --primary: #25c8b8;
  --primary-strong: #7fe1d5;
  --primary-hover: #1db6a8;
  --primary-active: #159c91;
  --primary-soft: #163b3d;
  --blue: #63a4ff;
  --blue-soft: #1b3557;
  --warn: #f0a664;
  --warn-soft: #35271c;
  --code: #0a1422;
}
html.dark body {
  background-image: linear-gradient(rgba(83,186,202,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(83,186,202,.045) 1px, transparent 1px);
}
html.dark .topbar { border-bottom-color: rgba(41,65,88,.82); }
html.dark .button.ghost { border-color: var(--line); color: #c7d4e4; background: rgba(20,35,55,.76); }
html.dark .button.ghost:hover { border-color: #3f617d; color: var(--blue); background: var(--surface); }
html.dark .download-card, html.dark .requirement, html.dark .case-card, html.dark .steps, html.dark .config, html.dark .support { box-shadow: 0 8px 22px rgba(0,0,0,.09); }
html.dark .download-card:nth-child(2) .platform { color: #8abaff; background: var(--blue-soft); }
html.dark .notice { border-color: #245b5d; color: #add9d5; }
html.dark .notice.warn { border-color: #61472e; color: #d9bd9f; }

@media (max-width: 780px) {
  .shell { width: min(100% - 28px, 1160px); }
  .topbar { height: 66px; }
  .brand small { display: none; }
  .hero, html.embedded .hero { padding: 43px 0 39px; }
  .hero p, .hero > p { font-size: 14.5px; }
  .section { padding-top: 45px; }
  .section-head { display: block; }
  .section-head > p { margin-top: 7px; text-align: left; }
  .downloads, .path-grid, .requirements, .case { grid-template-columns: 1fr; }
  .download-card, .path-step { min-height: 0; }
  .download-card p { min-height: auto; margin-bottom: 18px; }
  .path-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .path-step:last-child { border-bottom: 0; }
  .config { grid-template-columns: 1fr; }
  .config dt { padding-bottom: 4px; border-bottom: 0; }
  .config dd { padding-top: 4px; }
  .step { grid-template-columns: 38px 1fr; gap: 10px; padding: 19px 17px; }
  .step > div, .notice > div, .answer, .config dd { min-width: 0; overflow-wrap: anywhere; }
  .case, .case-card { min-width: 0; }
  .case-card pre { max-width: 100%; }
  pre code { word-break: normal; overflow-wrap: normal; }
}

@media (max-width: 430px) {
  .brand > span:not(.brand-mark) { display: none; }
  h1 { font-size: 32px; }
  .hero-actions .button { width: 100%; }
}
