/*
 * 启帆网络组织主页视觉系统。
 * 独立方向：清新明亮、产品导向、柔和层次；装饰动画只使用低成本 CSS 属性。
 */

/* DesignTokens：颜色、尺寸与动效参数。 */
:root {
  --ink: #102b35;
  --ink-deep: #071f29;
  --text: #18343d;
  --text-soft: #60777e;
  --muted: #8ba0a5;
  --paper: #f7fbfa;
  --white: #ffffff;
  --mist: #edf6f4;
  --mint: #dff6ef;
  --cyan-soft: #dff7fb;
  --cyan: #72def0;
  --cyan-strong: #13a8c0;
  --blue: #3777ee;
  --lime: #dff26a;
  --line: rgba(22, 63, 73, 0.13);
  --line-soft: rgba(22, 63, 73, 0.08);
  --shadow-sm: 0 14px 38px rgba(30, 76, 84, 0.08);
  --shadow-lg: 0 30px 80px rgba(30, 76, 84, 0.14);
  --shell: min(1180px, calc(100vw - 48px));
  --header-height: 76px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* BaseLayer：基础重置、字体与可访问性。 */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--cyan); color: var(--ink-deep); }

:focus-visible {
  outline: 3px solid var(--cyan-strong);
  outline-offset: 3px;
}

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink-deep);
  color: var(--white);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 16px; }

/* HeaderComponent：轻量透明导航。 */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: height 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  height: 66px;
  border-color: var(--line-soft);
  background: rgba(247, 251, 250, 0.9);
  box-shadow: 0 8px 30px rgba(34, 74, 81, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand > img { width: 42px; height: 42px; padding: 5px; object-fit: contain; border-radius: 12px; background: var(--ink-deep); }
.brand > span { display: grid; line-height: 1; }
.brand strong { color: var(--ink-deep); font-size: 16px; letter-spacing: 0.05em; }
.brand small { margin-top: 6px; color: var(--cyan-strong); font: 700 9px/1 Consolas, monospace; letter-spacing: 0.15em; }

.primary-nav { display: flex; align-items: center; gap: 31px; }
.primary-nav a { position: relative; color: #4e676e; font-size: 13px; transition: color 0.2s ease; }
.primary-nav a:not(.nav-github)::after { content: ""; position: absolute; right: 100%; bottom: -9px; left: 0; height: 2px; border-radius: 2px; background: var(--cyan-strong); transition: right 0.3s var(--ease); }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--ink-deep); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { right: 0; }
.primary-nav .nav-github { padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-deep); }
.primary-nav .nav-github:hover { border-color: var(--cyan-strong); background: var(--white); }

.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 18px; height: 1px; background: var(--ink-deep); transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* SharedComponents：章节标题、按钮与通用链接。 */
.section { padding: 120px 0; }

.kicker {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan-strong);
  font: 700 11px/1.2 Consolas, monospace;
  letter-spacing: 0.08em;
}

.kicker > span { width: 24px; height: 2px; border-radius: 2px; background: currentColor; }

.section h2, .closing h2 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.section-heading { margin-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr); align-items: end; gap: 90px; }
.section-heading > p { margin: 0; color: var(--text-soft); font-size: 15px; }

.button { min-height: 48px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 750; line-height: 1.2; transition: transform 0.3s var(--ease), color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--ink-deep); color: var(--white); box-shadow: 0 12px 28px rgba(7, 31, 41, 0.17); }
.button-primary:hover { background: var(--cyan-strong); box-shadow: 0 15px 32px rgba(19, 168, 192, 0.2); }
.button-secondary { border-color: var(--line); background: rgba(255, 255, 255, 0.62); color: var(--ink-deep); }
.button-secondary:hover { border-color: var(--cyan-strong); background: var(--white); }
.button-dark { background: var(--ink-deep); color: var(--white); }
.button-dark:hover { background: var(--cyan-strong); }

.text-link { display: inline-flex; align-items: center; gap: 11px; color: var(--ink-deep); font-size: 13px; font-weight: 700; }
.text-link:hover { color: var(--cyan-strong); }

/* HeroComponent：明亮产品品牌首屏。 */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(880px, 95svh);
  padding: calc(var(--header-height) + 74px) 0 92px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #fbfdfc 0%, #f1faf8 54%, #eefbfc 100%);
}

.hero::before { content: ""; position: absolute; inset: 0; z-index: -3; opacity: 0.55; background-image: radial-gradient(rgba(28, 121, 137, 0.14) 0.7px, transparent 0.7px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, black 70%, transparent); }
.hero-decoration { position: absolute; z-index: -2; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.decoration-one { width: 460px; height: 460px; top: -170px; right: 3%; background: rgba(114, 222, 240, 0.18); }
.decoration-two { width: 260px; height: 260px; bottom: -90px; left: 8%; background: rgba(223, 242, 106, 0.17); }

.hero-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(470px, 0.9fr); align-items: center; gap: 6vw; }
.hero-copy { max-width: 680px; }
.hero h1 { margin: 0; color: var(--ink-deep); font-size: clamp(52px, 6.8vw, 92px); font-weight: 690; line-height: 1.02; letter-spacing: -0.06em; }
.hero h1 em { color: var(--cyan-strong); font-style: normal; }
.hero-copy > p:not(.kicker) { max-width: 620px; margin: 30px 0 0; color: var(--text-soft); font-size: 17px; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; }
.hero-values { margin: 52px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 11px 25px; list-style: none; color: #6e858b; font-size: 11px; }
.hero-values li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--cyan); }

.product-shelf { position: relative; min-height: 570px; }
.shelf-backdrop { position: absolute; inset: 42px 20px 22px 52px; border-radius: 38% 62% 55% 45% / 44% 38% 62% 56%; background: linear-gradient(145deg, rgba(114, 222, 240, 0.28), rgba(223, 246, 239, 0.75)); animation: backdrop-breathe 9s ease-in-out infinite; }

.shelf-window { position: absolute; inset: 72px 14px 86px 38px; margin: 0; overflow: hidden; border: 1px solid rgba(25, 82, 93, 0.11); border-radius: 26px; background: var(--white); box-shadow: var(--shadow-lg); transform: rotate(1.6deg); transition: transform 0.6s var(--ease); }
.product-shelf:hover .shelf-window { transform: rotate(0) translateY(-4px); }
.shelf-window > img { width: 100%; height: calc(100% - 43px); object-fit: cover; object-position: left center; }
.window-bar { height: 43px; padding: 0 16px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font: 8px Consolas, monospace; }
.window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d5e1df; }
.window-bar i:nth-child(1) { background: var(--cyan); }
.window-bar span { margin-left: auto; }

.shelf-card { position: absolute; min-width: 190px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(28, 87, 99, 0.1); border-radius: 18px; background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); animation: shelf-float 6s ease-in-out infinite; }
.shelf-card > img { width: 40px; height: 40px; padding: 5px; border-radius: 11px; object-fit: contain; background: #f1f4ff; }
.shelf-saildock > img { background: var(--ink-deep); }
.shelf-card > span { display: grid; line-height: 1.2; }
.shelf-card small { color: var(--cyan-strong); font: 7px Consolas, monospace; }
.shelf-card strong { margin-top: 3px; color: var(--ink-deep); font-size: 16px; }
.shelf-card b { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 500; }
.shelf-getchat { top: 35px; left: 0; }
.shelf-saildock { right: -8px; bottom: 42px; animation-delay: -3s; }

.shelf-note { position: absolute; right: 30px; bottom: 7px; left: 76px; padding: 12px 16px; display: flex; justify-content: space-between; border-top: 1px solid rgba(21, 89, 101, 0.12); color: var(--muted); font: 8px Consolas, monospace; }
.shelf-note strong { color: var(--cyan-strong); font-weight: 600; }

.hero-scroll { position: absolute; bottom: 25px; left: 50%; display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 10px; transform: translateX(-50%); }
.hero-scroll i { position: relative; width: 38px; height: 1px; background: #bad0d0; }
.hero-scroll i::after { content: ""; position: absolute; top: -3px; right: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-strong); animation: scroll-dot 2.4s ease-in-out infinite; }

@keyframes backdrop-breathe { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.03) rotate(2deg); } }
@keyframes shelf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes scroll-dot { 0%, 100% { transform: translateX(-30px); opacity: 0.35; } 50% { transform: translateX(0); opacity: 1; } }

/* ProductComponent：清晰、圆角、可扩展的产品展示。 */
.products { background: var(--white); }

.product-showcase { min-height: 660px; display: grid; grid-template-columns: minmax(350px, 0.78fr) minmax(0, 1.22fr); overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: #fbfdfc; box-shadow: var(--shadow-sm); }
.product-copy { padding: 62px 52px; }
.product-title { display: flex; align-items: center; gap: 16px; }
.product-title > img { width: 56px; height: 56px; padding: 7px; border-radius: 16px; object-fit: contain; background: #eef0ff; }
.product-title > div { display: grid; }
.product-title span { color: var(--cyan-strong); font: 8px Consolas, monospace; letter-spacing: 0.06em; }
.product-title h3 { margin: 3px 0 0; color: var(--ink-deep); font-size: 31px; line-height: 1.2; }
.product-summary { margin: 38px 0 0; color: var(--text); font-size: 18px; line-height: 1.7; }

.product-points { margin: 34px 0 0; }
.product-points > div { padding: 14px 0; display: grid; grid-template-columns: 88px 1fr; gap: 12px; border-top: 1px solid var(--line); }
.product-points > div:last-child { border-bottom: 1px solid var(--line); }
.product-points dt { color: var(--ink-deep); font-size: 13px; font-weight: 750; }
.product-points dd { margin: 0; color: var(--text-soft); font-size: 12px; }
.product-actions { margin-top: 35px; display: flex; align-items: center; gap: 24px; }

.getchat-demo { min-width: 0; margin: 30px 30px 30px 0; overflow: hidden; border: 1px solid #dce6e8; border-radius: 24px; background: #f0f3fb; box-shadow: 0 22px 55px rgba(42, 71, 102, 0.13); }
.demo-topbar { height: 48px; padding: 0 18px; display: flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, 0.9); border-bottom: 1px solid #dfe6ef; color: #81909e; font: 8px Consolas, monospace; }
.demo-topbar i { width: 7px; height: 7px; border-radius: 50%; background: #d5dce5; }
.demo-topbar i:first-child { background: #82dff0; }
.demo-topbar span { margin-left: 8px; }
.demo-topbar b { margin-left: auto; color: #16879b; font-weight: 600; }

.demo-viewport { position: relative; height: 500px; overflow: hidden; background: #f5f5fc; }
.demo-slide { position: absolute; inset: 0; margin: 0; overflow: hidden; background: #f3f3fb; }
.demo-slide img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.demo-slide figcaption { position: absolute; right: 16px; bottom: 15px; padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.88); box-shadow: 0 8px 22px rgba(31, 50, 87, 0.12); color: #536783; font-size: 10px; font-weight: 700; backdrop-filter: blur(8px); }
.demo-home { animation: demo-home 12s var(--ease) infinite; }
.demo-branches { opacity: 0; animation: demo-branches 12s var(--ease) infinite; }

.demo-progress { height: 48px; padding: 0 18px; display: flex; align-items: center; gap: 15px; background: var(--white); color: #83919c; font: 8px Consolas, monospace; }
.demo-progress i { position: relative; width: 70px; height: 3px; overflow: hidden; border-radius: 3px; background: #e4eaeb; }
.demo-progress i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--cyan-strong); transform: scaleX(0); transform-origin: left; animation: demo-progress 6s linear infinite; }
.demo-progress span:nth-of-type(1) { color: var(--ink-deep); }

@keyframes demo-home { 0%, 42% { opacity: 1; transform: translateX(0) scale(1); } 48%, 94% { opacity: 0; transform: translateX(-2%) scale(1.015); } 100% { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes demo-branches { 0%, 42% { opacity: 0; transform: translateX(2%) scale(1.015); } 48%, 94% { opacity: 1; transform: translateX(0) scale(1); } 100% { opacity: 0; transform: translateX(2%) scale(1.015); } }
@keyframes demo-progress { to { transform: scaleX(1); } }

.saildock-showcase { margin-top: 26px; grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.9fr); background: linear-gradient(135deg, #eef8f5, #f7fbfa); }
.saildock-showcase .product-copy { display: flex; flex-direction: column; justify-content: center; }
.saildock-showcase .product-title > img { background: var(--ink-deep); }
.development-status { margin-top: 40px; padding: 17px 0; display: flex; justify-content: space-between; border-block: 1px solid var(--line); }
.development-status span, .development-status strong { font-size: 12px; }
.development-status span i { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #efb035; box-shadow: 0 0 0 5px rgba(239, 176, 53, 0.13); }
.development-status strong { color: var(--text-soft); }
.development-copy { margin: 28px 0 0; color: var(--text-soft); font-size: 13px; }

.saildock-demo { position: relative; padding: 58px 20px 58px 44px; display: flex; align-items: center; }
.saildock-window { width: 100%; height: 470px; display: grid; grid-template-columns: 74px 1fr; overflow: hidden; border: 1px solid #d8e7e4; border-radius: 24px; background: var(--white); box-shadow: var(--shadow-lg); transition: transform 0.55s var(--ease); }
.saildock-showcase:hover .saildock-window { transform: translateY(-5px); }
.saildock-window aside { padding: 20px 14px; display: flex; flex-direction: column; align-items: center; gap: 19px; background: var(--ink-deep); }
.saildock-window aside img { width: 39px; height: 39px; padding: 4px; object-fit: contain; }
.saildock-window aside i { width: 30px; height: 30px; border: 1px solid rgba(221, 243, 245, 0.15); border-radius: 9px; }
.saildock-window aside i.active { border-color: var(--cyan); background: rgba(114, 222, 240, 0.14); }
.saildock-main { padding: 33px 28px; min-width: 0; }
.saildock-main header { display: flex; justify-content: space-between; align-items: flex-start; }
.saildock-main header > span { display: grid; }
.saildock-main header small { color: var(--cyan-strong); font: 8px Consolas, monospace; }
.saildock-main header strong { margin-top: 5px; color: var(--ink-deep); font-size: 25px; }
.saildock-main header > b { padding: 5px 8px; border: 1px solid #bee1e3; border-radius: 8px; color: var(--cyan-strong); font: 8px Consolas, monospace; }

.metric-list { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-list > div { padding: 15px; border: 1px solid #dce9e7; border-radius: 14px; }
.metric-list span { color: var(--muted); font: 8px Consolas, monospace; }
.metric-list strong { display: block; margin: 10px 0 15px; color: var(--ink-deep); font-size: 16px; }
.metric-list i { display: block; height: 4px; overflow: hidden; border-radius: 4px; background: #e1ecea; }
.metric-list i::after { content: ""; display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--cyan-strong); transform: scaleX(var(--value)); transform-origin: left; animation: metric-pulse 4s var(--ease) infinite alternate; }
.task-lines { margin-top: 24px; display: grid; }
.task-lines i { height: 48px; border-top: 1px solid #e4eeec; background: linear-gradient(90deg, #e1ebe9 0 17%, transparent 17% 23%, #eff4f3 23% 59%, transparent 59% 65%, #eff4f3 65% 84%, transparent 84%); background-position: center; background-size: 100% 7px; background-repeat: no-repeat; }
.demo-badge { position: absolute; right: 4px; bottom: 36px; padding: 12px 15px; display: grid; border-radius: 13px; background: var(--lime); box-shadow: 0 14px 28px rgba(95, 112, 26, 0.15); color: var(--ink-deep); font: 8px Consolas, monospace; }
.demo-badge strong { margin-top: 3px; font-size: 10px; }

@keyframes metric-pulse { from { transform: scaleX(0.14); } to { transform: scaleX(var(--value)); } }

.future-products { min-height: 116px; padding: 30px 4px; display: grid; grid-template-columns: 80px 240px 1fr 170px; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.future-products > span { color: var(--cyan-strong); font: 10px Consolas, monospace; }
.future-products > strong { color: var(--ink-deep); font-size: 17px; }
.future-products > p { margin: 0; color: var(--text-soft); font-size: 13px; }
.future-products > i { position: relative; height: 2px; border-radius: 2px; background: #ccddda; }
.future-products > i::after { content: ""; position: absolute; top: -4px; right: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan-strong); }

/* OpenSourceComponent：柔和明亮的开源协作区。 */
.open-source { position: relative; overflow: hidden; background: linear-gradient(135deg, #e8f8f4, #e8f8fb); }
.open-source::before { content: ""; position: absolute; width: 420px; height: 420px; right: -180px; bottom: -210px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, 0.35); }
.open-source-layout { position: relative; display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(450px, 1fr); align-items: center; gap: 10vw; }
.source-copy > p:not(.kicker) { max-width: 540px; margin: 28px 0 0; color: var(--text-soft); }
.source-copy .button { margin-top: 36px; }
.collaboration-board { overflow: hidden; border: 1px solid rgba(23, 102, 113, 0.12); border-radius: 24px; background: rgba(255, 255, 255, 0.68); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.board-header { height: 52px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); color: var(--muted); font: 8px Consolas, monospace; }
.board-header b { color: var(--cyan-strong); font-weight: 600; }
.board-header b i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--cyan-strong); }
.collaboration-board ol { margin: 0; padding: 0 22px; list-style: none; }
.collaboration-board li { min-height: 116px; padding: 24px 0; display: grid; grid-template-columns: 48px 1fr auto; align-items: start; gap: 16px; border-bottom: 1px solid var(--line-soft); }
.collaboration-board li:last-child { border-bottom: 0; }
.collaboration-board li > span { color: var(--cyan-strong); font: 9px Consolas, monospace; }
.collaboration-board li strong { color: var(--ink-deep); font-size: 17px; }
.collaboration-board li p { margin: 5px 0 0; color: var(--text-soft); font-size: 12px; }
.collaboration-board li > b { padding: 5px 8px; border-radius: 8px; background: var(--white); color: var(--cyan-strong); font: 8px Consolas, monospace; box-shadow: 0 5px 16px rgba(30, 76, 84, 0.07); }

/* SupportComponent：紧凑、有节奏的服务说明。 */
.support { background: var(--white); }
.support-layout { display: grid; grid-template-columns: minmax(350px, 0.9fr) minmax(420px, 1fr); gap: 10vw; align-items: end; }
.support-time { margin: 28px 0 34px; display: flex; align-items: flex-end; gap: 24px; }
.support-time strong { color: var(--ink-deep); font: 700 clamp(88px, 11vw, 148px)/0.78 Consolas, monospace; letter-spacing: -0.1em; }
.support-time span { padding-bottom: 4px; color: var(--cyan-strong); font-size: 11px; font-weight: 700; line-height: 1.5; }
.support-intro > p:last-child { margin: 25px 0 0; color: var(--text-soft); font-size: 14px; }
.support-steps { margin: 0; padding: 0; list-style: none; }
.support-steps li { min-height: 134px; padding: 27px 0; display: grid; grid-template-columns: 52px 1fr; gap: 18px; border-top: 1px solid var(--line); }
.support-steps li:last-child { border-bottom: 1px solid var(--line); }
.support-steps > li > span { color: var(--cyan-strong); font: 10px Consolas, monospace; }
.support-steps strong { color: var(--ink-deep); font-size: 18px; }
.support-steps p { margin: 7px 0 0; color: var(--text-soft); font-size: 13px; }

/* EcosystemComponent：一个视口内可完整浏览的紧凑入口。 */
.ecosystem { padding: 96px 0; background: var(--mist); }
.ecosystem-heading { margin-bottom: 42px; }
.ecosystem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ecosystem-grid > a { position: relative; min-height: 190px; padding: 27px 30px; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 22px; background: rgba(255, 255, 255, 0.78); transition: transform 0.35s var(--ease), background-color 0.25s ease, box-shadow 0.25s ease; }
.ecosystem-grid > a:hover { transform: translateY(-5px); background: var(--white); box-shadow: var(--shadow-sm); }
.ecosystem-grid > a::after { content: ""; position: absolute; right: 30px; bottom: -42px; width: 105px; height: 105px; border: 18px solid rgba(114, 222, 240, 0.14); border-radius: 50%; }
.ecosystem-grid > a > span { color: var(--cyan-strong); font: 8px Consolas, monospace; }
.ecosystem-grid > a > div { align-self: end; }
.ecosystem-grid strong { color: var(--ink-deep); font-size: 23px; }
.ecosystem-grid p { max-width: 420px; margin: 6px 0 0; color: var(--text-soft); font-size: 13px; }
.ecosystem-grid > a > b { position: absolute; top: 25px; right: 28px; color: var(--ink-deep); font-size: 19px; font-weight: 500; transition: transform 0.3s var(--ease); }
.ecosystem-grid > a:hover > b { transform: translate(4px, -4px); }
.ecosystem-grid > a:nth-child(2) { background: var(--cyan-soft); }
.ecosystem-grid > a:nth-child(2)::after { border-color: rgba(55, 119, 238, 0.09); }

/* ClosingComponent：轻盈的参与引导。 */
.closing { padding: 100px 0; background: linear-gradient(120deg, #dff6ef, #dff7fb); }
.closing-inner { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 34px; }
.closing-inner > img { width: 70px; height: 70px; padding: 9px; border-radius: 20px; background: var(--ink-deep); }
.closing h2 { font-size: clamp(38px, 5vw, 62px); }
.closing-actions { display: grid; justify-items: start; gap: 17px; }

/* FooterComponent：深色但克制的页脚。 */
.site-footer { padding: 62px 0 24px; background: var(--ink-deep); color: var(--white); }
.site-footer .brand strong { color: var(--white); }
.footer-main { padding-bottom: 54px; display: grid; grid-template-columns: 1fr 0.8fr; gap: 80px; }
.footer-brand > p { margin: 20px 0 0; color: #779098; font-size: 12px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.footer-links > div { display: grid; align-content: start; gap: 8px; }
.footer-links strong { margin-bottom: 7px; font-size: 11px; }
.footer-links a { color: #789097; font-size: 11px; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { padding-top: 19px; display: flex; justify-content: space-between; border-top: 1px solid rgba(219, 241, 243, 0.12); color: #58727a; font: 9px Consolas, "Microsoft YaHei UI", sans-serif; }
.footer-bottom p { margin: 0; }

/* ResponsiveLayer：桌面、平板与移动端适配。 */
@media (max-width: 1080px) {
  :root { --shell: min(100% - 40px, 960px); }
  .hero-layout { grid-template-columns: minmax(0, 1fr) 440px; gap: 4vw; }
  .product-shelf { min-height: 530px; }
  .product-copy { padding: 50px 40px; }
  .product-showcase { grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr); }
  .saildock-showcase { grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr); }
  .open-source-layout, .support-layout { gap: 6vw; }
}

@media (max-width: 860px) {
  :root { --header-height: 68px; --shell: calc(100% - 32px); }

  .menu-toggle { display: flex; }
  .primary-nav { position: fixed; inset: var(--header-height) 0 0; padding: 30px 16px; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: rgba(247, 251, 250, 0.98); transform: translateX(100%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0.35s; }
  .site-header.is-scrolled .primary-nav { inset-block-start: 66px; }
  .primary-nav.is-open { transform: translateX(0); visibility: visible; }
  .primary-nav a { padding: 18px 12px; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .primary-nav a::after { display: none; }
  .primary-nav .nav-github { margin-top: 24px; text-align: center; }

  .hero { min-height: auto; padding-top: calc(var(--header-height) + 64px); padding-bottom: 108px; }
  .hero-layout { grid-template-columns: 1fr; gap: 58px; }
  .hero-copy { max-width: 720px; }
  .product-shelf { width: min(100%, 590px); justify-self: end; }

  .section { padding: 92px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 25px; margin-bottom: 48px; }
  .section h2 { font-size: clamp(38px, 8.5vw, 58px); }

  .product-showcase, .saildock-showcase { grid-template-columns: 1fr; }
  .getchat-demo { min-height: 600px; margin: 0 30px 30px; }
  .saildock-demo { order: 2; padding: 20px 30px 40px; }
  .saildock-showcase .product-copy { order: 1; }
  .future-products { grid-template-columns: 70px 1fr; gap: 14px 20px; }
  .future-products > p { grid-column: 2; }
  .future-products > i { grid-column: 2; width: 220px; }

  .open-source-layout, .support-layout { grid-template-columns: 1fr; gap: 58px; }
  .closing-inner { grid-template-columns: 70px 1fr; }
  .closing-actions { grid-column: 2; }
  .footer-main { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 560px) {
  .brand > img { width: 40px; height: 40px; }
  .hero h1 { font-size: clamp(47px, 13.5vw, 68px); }
  .hero-copy > p:not(.kicker) { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-values { gap: 12px 18px; }
  .product-shelf { min-height: 480px; }
  .shelf-window { inset: 54px 0 68px 10px; border-radius: 21px; }
  .shelf-card { min-width: 160px; padding: 11px 12px; }
  .shelf-card > img { width: 35px; height: 35px; }
  .shelf-getchat { top: 22px; left: 0; }
  .shelf-saildock { right: -4px; bottom: 30px; }
  .shelf-note { right: 12px; left: 30px; }

  .product-showcase { border-radius: 24px; }
  .product-copy { padding: 38px 24px; }
  .product-title > img { width: 50px; height: 50px; }
  .product-title h3 { font-size: 27px; }
  .product-summary { margin-top: 30px; font-size: 17px; }
  .product-points > div { grid-template-columns: 1fr; gap: 4px; }
  .product-actions { align-items: stretch; flex-direction: column; }
  .getchat-demo { min-height: 0; margin: 0 14px 14px; border-radius: 18px; }
  .demo-topbar { height: 42px; padding: 0 12px; }
  .demo-viewport { height: 350px; }
  .demo-slide img { object-position: left center; }
  .demo-progress { padding: 0 12px; gap: 9px; }
  .demo-progress span { font-size: 7px; }

  .saildock-demo { padding: 10px 14px 35px; }
  .saildock-window { height: 390px; grid-template-columns: 58px 1fr; border-radius: 18px; }
  .saildock-window aside { padding: 14px 9px; }
  .saildock-window aside img { width: 36px; height: 36px; }
  .saildock-window aside i { width: 28px; height: 28px; }
  .saildock-main { padding: 25px 17px; }
  .saildock-main header strong { font-size: 21px; }
  .metric-list { grid-template-columns: 1fr; gap: 7px; }
  .metric-list > div { padding: 9px 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .metric-list strong { margin: 0; }
  .metric-list i { grid-column: 1 / -1; margin-top: 7px; }
  .task-lines { display: none; }
  .demo-badge { right: 5px; bottom: 18px; }

  .collaboration-board li { grid-template-columns: 38px 1fr; }
  .collaboration-board li > b { display: none; }
  .support-time { align-items: flex-start; flex-direction: column; gap: 18px; }
  .support-time strong { font-size: 100px; }
  .support-steps li { grid-template-columns: 40px 1fr; }

  .ecosystem { padding: 78px 0; }
  .ecosystem-grid { grid-template-columns: 1fr; gap: 12px; }
  .ecosystem-grid > a { min-height: 170px; padding: 24px; }
  .ecosystem-grid > a > b { top: 22px; right: 23px; }

  .closing { padding: 80px 0; }
  .closing-inner { grid-template-columns: 1fr; justify-items: start; }
  .closing-actions { grid-column: 1; width: 100%; }
  .footer-links { gap: 18px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* AccessibilityLayer：减少动态效果偏好与兼容回退。 */
@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; }
  .demo-home { opacity: 1; transform: none; }
  .demo-branches { opacity: 0; }
}

@supports not (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled, .shelf-card, .collaboration-board { background: rgba(247, 251, 250, 0.98); }
}
