﻿/* =========================================================================
   ULin Hub 官网样式
   色板 / 圆角 / 动效参数取自客户端内置主题：
   assets/resources/styles/theme-light.json、theme-dark.json 与 ui/metrics.json
   ========================================================================= */

/* ---------- tokens ---------- */

:root {
  color-scheme: light;

  --font: "Inter", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei",
          "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas,
          "Liberation Mono", monospace;

  --bg: #F7F8F9;
  --bg-soft: #F1F3F5;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;

  --text: #0F1115;
  --text-2: #61666B;
  --text-3: #81858C;
  --text-4: #A2A4A6;

  --line: rgba(15, 17, 21, 0.10);
  --line-soft: rgba(15, 17, 21, 0.06);
  --line-strong: rgba(15, 17, 21, 0.18);

  --accent: #4176E6;
  --accent-soft: #EDF3FE;
  --danger: #C95A5E;

  --btn: #0F1115;
  --btn-hover: #43454A;
  --btn-text: #FFFFFF;

  --shadow: 0 1px 2px rgba(15, 17, 21, 0.04), 0 10px 28px rgba(15, 17, 21, 0.07);
  --shadow-lg: 0 2px 6px rgba(15, 17, 21, 0.05), 0 28px 64px rgba(15, 17, 21, 0.12);

  --radius: 12px;
  --radius-lg: 16px;
  --pill: 999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --maxw: 1180px;
  --nav-h: 64px;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #151517;
  --bg-soft: #232324;
  --surface: #232324;
  --surface-2: #1B1B1C;

  --text: #F9FAFB;
  --text-2: #CFD3D6;
  --text-3: #ADB2B8;
  --text-4: #81858C;

  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.22);

  --accent: #7AAAFF;
  --accent-soft: rgba(122, 170, 255, 0.14);
  --danger: #CE7A7A;

  --btn: #F9FAFB;
  --btn-hover: #E9ECF2;
  --btn-text: #0F1115;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.45), 0 28px 64px rgba(0, 0, 0, 0.55);
}

/* ---------- reset / base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

h1, h2, h3, h4, p, ul, ol, figure, figcaption {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

code, kbd, .mono {
  font-family: var(--mono);
}

::selection {
  background: rgba(65, 118, 230, 0.22);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

html {
  scrollbar-color: var(--text-4) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
  border: 3px solid var(--bg);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico--fill {
  fill: currentColor;
  stroke: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

section[id],
.hero[id] {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

/* ---------- shared bits ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--line-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.12s var(--ease);
}

.btn .ico {
  width: 16px;
  height: 16px;
}

.btn:hover {
  background: var(--bg-soft);
  border-color: var(--text-3);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--btn);
  border-color: transparent;
  color: var(--btn-text);
}

.btn--primary:hover {
  background: var(--btn-hover);
  border-color: transparent;
}

.btn--small {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
}

.btn--small .ico {
  width: 14px;
  height: 14px;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .nav {
    background: var(--bg);
  }
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--maxw);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.brand__mark {
  width: 22px;
  height: 19px;
  fill: currentColor;
}

.brand__name {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__ver {
  margin-left: 2px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--text-3);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 8px;
  font-size: 13.5px;
  color: var(--text-2);
}

.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.15s var(--ease);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav__github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--text-2);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.nav__github .ico {
  width: 15px;
  height: 15px;
}

.nav__github:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-2);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease),
              border-color 0.15s var(--ease);
}

.theme-toggle .ico {
  width: 16px;
  height: 16px;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line);
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: none;
}

[data-theme="light"] .theme-toggle__moon,
[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

.nav__menu {
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-2);
}

.nav__menu .ico {
  width: 17px;
  height: 17px;
}

.nav__mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 4px 24px 16px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.nav__mobile a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--text-2);
}

.nav__mobile a:last-child {
  border-bottom: 0;
}

/* ---------- hero ---------- */

.hero {
  padding-top: 72px;
  padding-bottom: 88px;
}

.hero__text {
  max-width: 760px;
}

.hero__logo {
  margin-bottom: 26px;
}

.hero__logo img {
  width: auto;
  height: 54px;
}

.hero__logo-dark,
[data-theme="light"] .hero__logo-dark {
  display: none;
}

[data-theme="dark"] .hero__logo-light {
  display: none;
}

[data-theme="dark"] .hero__logo-dark {
  display: block;
}

.hero__title {
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.hero__lead {
  max-width: 640px;
  margin-top: 22px;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  font-size: 12.5px;
  color: var(--text-3);
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__meta li + li::before {
  content: "";
  width: 1px;
  height: 11px;
  background: var(--line);
}

/* 客户端界面示意 */

.hero__figure {
  margin-top: 64px;
}

.mock-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1240 / 800;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s var(--ease) 0.12s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__caption {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

/* ---------- 客户端窗口（示意） ---------- */

.window {
  /* 客户端内置浅色主题 */
  --w-bg: #F7F8F9;
  --w-panel: #FFFFFF;
  --w-panel2: #F9FAFB;
  --w-text: #0F1115;
  --w-text2: #61666B;
  --w-text3: #81858C;
  --w-text4: #A2A4A6;
  --w-line: rgba(0, 0, 0, 0.07);
  --w-line2: rgba(0, 0, 0, 0.12);
  --w-accent: #4176E6;
  --w-tint: #EDF3FE;
  --w-hover: #F1F3F5;
  --w-active: #E9EBF0;
  --w-btn: #0F1115;
  --w-btn-text: #FFFFFF;
  --w-ok: #237032;
  --w-ok-bg: #E7F5EC;
  --w-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);

  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 1240px;
  height: 800px;
  overflow: hidden;
  border: 1px solid var(--w-line2);
  border-radius: 12px;
  background: var(--w-bg);
  box-shadow: var(--shadow-lg);
  transform-origin: 0 0;
  font-family: var(--font);
}

[data-theme="dark"] .window {
  --w-bg: #151517;
  --w-panel: #232324;
  --w-panel2: #1B1B1C;
  --w-text: #F9FAFB;
  --w-text2: #CFD3D6;
  --w-text3: #ADB2B8;
  --w-text4: #81858C;
  --w-line: rgba(255, 255, 255, 0.08);
  --w-line2: rgba(255, 255, 255, 0.14);
  --w-accent: #7AAAFF;
  --w-tint: rgba(122, 170, 255, 0.16);
  --w-hover: #2C2C2E;
  --w-active: #353638;
  --w-btn: #F9FAFB;
  --w-btn-text: #0F1115;
  --w-ok: #69DB7C;
  --w-ok-bg: rgba(105, 219, 124, 0.14);
  --w-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.win-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 42px;
  padding-left: 14px;
}

.win-bar__icon {
  display: grid;
  place-items: center;
  color: var(--w-text);
}

.win-bar__icon .ico {
  width: 19px;
  height: 16px;
}

.win-bar__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--w-text);
}

.win-bar__controls {
  position: absolute;
  top: 5px;
  right: 6px;
  display: flex;
}

.win-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 32px;
  border-radius: 6px;
  color: var(--w-text2);
}

.win-btn .ico {
  width: 13px;
  height: 13px;
}

.win-btn--close {
  color: var(--w-text2);
}

.win-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 260px;
  gap: 2px;
  flex: 1;
  min-height: 0;
  padding: 9px 24px;
  background: var(--w-bg);
}

/* 左侧会话栏 */

.rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--w-panel);
  box-shadow: var(--w-shadow);
}

.rail__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 79px;
  flex: none;
}

.rail__logo img {
  width: 200px;
  height: auto;
}

.rail__logo-dark,
[data-theme="light"] .rail__logo-dark {
  display: none;
}

[data-theme="dark"] .rail__logo-light {
  display: none;
}

[data-theme="dark"] .rail__logo-dark {
  display: block;
}

.rail__new {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 36px;
  margin: 0 10px;
  padding: 0 11px;
  border-radius: 10px;
  background: var(--w-btn);
  color: var(--w-btn-text);
  font-size: 13px;
  font-weight: 700;
}

.rail__new .ico {
  width: 14px;
  height: 14px;
}

.rail__new kbd {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 400;
  opacity: 0.55;
}

.rail__search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 32px;
  margin: 8px 10px 0;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--w-hover);
  color: var(--w-text3);
  font-size: 12.5px;
}

.rail__search .ico {
  width: 13px;
  height: 13px;
}

.rail__search kbd {
  margin-left: auto;
  font-size: 10px;
  color: var(--w-text4);
}

.rail__list {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px 7px;
}

.rail__group {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 8px 4px;
  font-size: 10.5px;
  color: var(--w-text4);
  letter-spacing: 0.02em;
}

.rail__group--ws {
  padding-top: 13px;
}

.ws-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--w-accent);
}

.rail__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
}

.srow {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--w-text2);
}

.srow__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--w-accent);
}

.srow__name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.srow__time {
  flex: none;
  margin-left: auto;
  font-size: 10.5px;
  color: var(--w-text4);
}

.srow.is-active {
  background: var(--w-tint);
  color: var(--w-text);
  font-weight: 500;
}

.srow.is-active .srow__time {
  color: var(--w-text3);
}

.rail__footer {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
  height: 44px;
  padding: 0 12px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--w-text3);
}

.icon-btn .ico {
  width: 14px;
  height: 14px;
}

/* 中间会话区 */

.chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0 16px;
}

.chat__head {
  flex: none;
  padding: 11px 16px 10px;
  border-radius: 12px;
  background: var(--w-panel);
  box-shadow: var(--w-shadow);
}

.chat__title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.chat__title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--w-text);
}

.chat__meta {
  margin-top: 3px;
  font-size: 11px;
  color: var(--w-text3);
}

.chat__title-row .icon-btn {
  margin-left: auto;
  flex: none;
}

.chat__views {
  display: inline-flex;
  gap: 2px;
  margin-top: 9px;
  padding: 2px;
  border-radius: var(--pill);
  background: var(--w-hover);
}

.view {
  padding: 3px 13px;
  border-radius: var(--pill);
  font-size: 11.5px;
  color: var(--w-text3);
}

.view.is-active {
  background: var(--w-panel);
  color: var(--w-text);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--w-hover);
  color: var(--w-text2);
  font-size: 10.5px;
  white-space: nowrap;
}

.chip--accent {
  background: var(--w-tint);
  color: var(--w-accent);
}

.chip--sm {
  height: 22px;
  padding: 0 8px;
  font-size: 10.5px;
}

.chat__scroll {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 16px 4px 6px;
}

.bubble--user {
  align-self: flex-end;
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 14px;
  border-bottom-right-radius: 6px;
  background: var(--w-tint);
  color: var(--w-text);
  font-size: 12.5px;
  line-height: 1.75;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.msg__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--w-btn);
  color: var(--w-btn-text);
}

.msg__avatar .ico {
  width: 12px;
  height: 10px;
}

.msg__body {
  min-width: 0;
}

.msg__body h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--w-text);
}

.msg__body p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--w-text);
}

.msg__body code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--w-hover);
  font-size: 11px;
  color: var(--w-text2);
}

.tools {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

.tool {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--w-line);
  border-radius: 8px;
  background: var(--w-panel2);
  font-size: 11.5px;
  color: var(--w-text2);
}

.tool__dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.tool__dot--ok {
  background: var(--w-ok-bg);
  color: var(--w-ok);
}

.tool__dot--ok .ico {
  width: 9px;
  height: 9px;
}

.tool__dot--run {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--w-accent);
  border-top-color: transparent;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tool__text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tool__text code {
  font-size: 10.5px;
}

.tool__state {
  flex: none;
  margin-left: auto;
  font-size: 10.5px;
  color: var(--w-text4);
}

.tool__state--run {
  color: var(--w-accent);
}

.msg__stream {
  color: var(--w-text2) !important;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 11px;
  margin-left: 2px;
  vertical-align: -1px;
  background: var(--w-text);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.composer {
  flex: none;
  margin-top: auto;
  padding: 12px 14px 10px;
  border-radius: 22px;
  background: var(--w-panel);
  box-shadow: var(--w-shadow);
}

.composer__input {
  min-height: 34px;
  padding: 1px 4px 8px;
  font-size: 12.5px;
  color: var(--w-text4);
}

.composer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.composer__left,
.composer__right {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}

.cbtn {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--w-hover);
  color: var(--w-text3);
}

.cbtn .ico {
  width: 13px;
  height: 13px;
}

.send {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--w-btn);
  color: var(--w-btn-text);
}

.send .ico {
  width: 15px;
  height: 15px;
}

/* 右侧坞 */

.dock {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--w-panel);
  box-shadow: var(--w-shadow);
}

.dock__head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 38px;
  padding: 0 10px;
}

.dock__tabs {
  display: flex;
  align-items: center;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}

.dock__tab {
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 11.5px;
  color: var(--w-text3);
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.dock__tab:hover {
  background: var(--w-hover);
  color: var(--w-text2);
}

.dock__tab.is-active {
  background: var(--w-hover);
  color: var(--w-text);
  font-weight: 500;
}

.dock__add {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 7px;
  color: var(--w-text3);
}

.dock__add .ico {
  width: 13px;
  height: 13px;
}

.dock__panels {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 4px 10px 8px;
  overflow: hidden;
}

.dock__panel {
  display: none;
  height: 100%;
}

.dock__panel.is-active {
  display: block;
}

/* 终端 */

.term {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 8px 9px;
  border: 1px solid var(--w-line);
  border-radius: 8px;
  background: var(--w-panel2);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 2.05;
  color: var(--w-text2);
  white-space: nowrap;
}

.term::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 26px;
  background: linear-gradient(to right, transparent, var(--w-panel2) 78%);
  pointer-events: none;
}

.term__prompt {
  color: var(--w-accent);
}

.term__line--out {
  color: var(--w-text3);
}

.term__caret {
  display: inline-block;
  width: 5px;
  height: 10px;
  margin-left: 2px;
  vertical-align: -1px;
  background: var(--w-text2);
  animation: blink 1.1s steps(1) infinite;
}

/* 浏览器 */

.brw__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--w-panel2);
  color: var(--w-text3);
}

.brw__bar .ico {
  width: 12px;
  height: 12px;
}

.brw__url {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--w-text3);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brw__page {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--w-line);
  border-radius: 8px;
  background: var(--w-panel2);
}

.brw__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--w-text);
}

.brw__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid var(--w-line);
  font-size: 11px;
  color: var(--w-text2);
}

.brw__row:first-of-type {
  margin-top: 8px;
}

.brw__row b {
  font-size: 10px;
  font-weight: 500;
}

.ok {
  color: var(--w-ok);
}

.wait {
  color: var(--w-text4);
}

.brw__note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--w-line);
  font-size: 10.5px;
  color: var(--w-text4);
}

/* 文件 */

.files__path {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  font-size: 11px;
  color: var(--w-text3);
}

.files__path .ico {
  width: 13px;
  height: 13px;
}

.files__path span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.files__count {
  margin-left: auto;
  font-size: 10px;
  color: var(--w-text4);
}

.files__list {
  margin-top: 4px;
}

.frow {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--w-text2);
}

.frow__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--w-hover);
  color: var(--w-text3);
}

.frow__ico .ico {
  width: 12px;
  height: 12px;
}

.frow__ico--sheet {
  color: #237032;
  background: #E7F5EC;
}

.frow__ico--doc {
  color: #2563EB;
  background: #E7EFFE;
}

.frow__ico--slide {
  color: #C2410C;
  background: #FDF0E7;
}

.frow__ico--code {
  color: #6741D9;
  background: #F0EBFE;
}

[data-theme="dark"] .frow__ico--sheet { background: rgba(105, 219, 124, 0.14); color: #69DB7C; }
[data-theme="dark"] .frow__ico--doc { background: rgba(122, 170, 255, 0.16); color: #7AAAFF; }
[data-theme="dark"] .frow__ico--slide { background: rgba(255, 169, 77, 0.14); color: #FFA94D; }
[data-theme="dark"] .frow__ico--code { background: rgba(177, 151, 252, 0.16); color: #B197FC; }

.frow__name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.frow__meta {
  flex: none;
  margin-left: auto;
  font-size: 10px;
  color: var(--w-text4);
}

.files__note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--w-line);
  font-size: 10.5px;
  color: var(--w-text4);
}

/* 插件 */

.plist {
  margin-top: 4px;
}

.prow {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 4px;
  font-size: 11.5px;
  color: var(--w-text2);
}

.prow__name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.prow__tag {
  flex: none;
  padding: 0 4px;
  border: 1px solid var(--w-line);
  border-radius: 4px;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--w-text4);
}

.prow__state {
  flex: none;
  margin-left: auto;
  font-size: 10px;
  color: var(--w-accent);
}

.prow__state--off {
  color: var(--w-text4);
}

.dock__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 26px;
  border-top: 1px solid var(--w-line);
  font-size: 9.5px;
  color: var(--w-text4);
}

/* ---------- 通用 section ---------- */

.section {
  padding-top: 104px;
  padding-bottom: 104px;
  border-top: 1px solid var(--line-soft);
}

.section__head {
  max-width: 820px;
}

.section__title {
  margin-top: 16px;
  font-size: clamp(26px, 3.1vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section__lead {
  max-width: 680px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
}

/* ---------- 01 内核 ---------- */

.schematic {
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.schematic__row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 66px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.schematic__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.schematic__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.schematic__content--mono {
  gap: 2px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
}

.dotsep {
  padding: 0 6px;
  color: var(--text-4);
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--text-2);
}

.schematic__row--kernels {
  align-items: start;
  border-bottom: 0;
  padding-bottom: 6px;
}

.kernel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: 13px;
  color: var(--text-2);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
              background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.kernel:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.kernel__mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-4);
  transition: background-color 0.18s var(--ease);
}

.kernel__tag {
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--text-4);
}

.kernel.is-active {
  border-color: var(--text);
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}

.kernel.is-active .kernel__mark {
  background: var(--accent);
}

.kernel.is-active .kernel__tag {
  color: var(--text-3);
}

.schematic__detail {
  padding: 2px 24px 18px 176px;
  font-size: 13px;
  color: var(--text-2);
}

.kernel-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.kernel-fact__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.kernel-fact__head .mono {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.kernel-fact h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.kernel-fact p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}

/* ---------- 02 扩展 ---------- */

.replace {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.replace__item {
  padding: 26px 32px 26px 0;
  border-right: 1px solid var(--line-soft);
}

.replace__item + .replace__item {
  padding-left: 32px;
}

.replace__item:last-child {
  border-right: 0;
}

.replace__item .mono {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.replace__item h3 {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.replace__item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}

.layers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  margin-top: 64px;
}

.layers__col h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.layers__col ul {
  margin-top: 4px;
}

.layers__col li {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.layers__col li:first-child {
  border-top: 0;
  padding-top: 8px;
}

.layers__k {
  display: block;
  margin-bottom: 2px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.subhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 88px;
}

.subhead h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.subhead p {
  max-width: 560px;
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-2);
}

.subhead__note {
  flex: none;
  font-size: 11px;
  color: var(--text-3);
}

.packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
  margin-top: 26px;
}

.pack__shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease);
}

.pack:hover .pack__shot {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.pack__shot img {
  width: 100%;
  height: auto;
  transition: opacity 0.2s var(--ease);
}

.pack figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 2px 0;
}

.pack__name {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.pack__name b {
  margin-left: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
}

.pack__desc {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: left;
}

.roster {
  margin-top: 80px;
  border-top: 1px solid var(--line);
}

.roster__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 0 16px;
}

.roster__head h3 {
  font-size: 16px;
  font-weight: 600;
}

.roster__head .mono {
  font-size: 11px;
  color: var(--text-3);
}

.roster__row {
  display: grid;
  grid-template-columns: 210px 70px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
}

.roster__row code {
  font-size: 12.5px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.tag {
  justify-self: start;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  color: var(--text-3);
  white-space: nowrap;
}

.roster__row p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ---------- 03 渲染 ---------- */

.render-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  margin-top: 44px;
}

.render-point {
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}

.render-point:first-child {
  padding-top: 0;
  border-top: 0;
}

.render-point h3 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.render-point p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}

.demo {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.demo__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 18px 18px;
  border-radius: 10px;
  background: var(--surface-2);
}

.demo__app {
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.demo__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  font-size: 9.5px;
  color: var(--text-3);
}

.demo__dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--text);
}

.demo__body {
  display: flex;
  gap: 2px;
  height: 168px;
  padding: 6px;
}

.demo__rail {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 96px;
  flex: none;
  padding: 8px 6px;
  border-radius: 6px;
  background: var(--surface);
}

.demo__row {
  height: 18px;
  border-radius: 4px;
  background: var(--bg-soft);
}

.demo__row--active {
  background: var(--accent-soft);
}

.demo__row--short {
  width: 70%;
}

.demo__main {
  flex: 1;
  min-width: 0;
  padding: 12px 12px;
  border-radius: 6px;
  background: var(--surface);
}

.demo__title-line {
  width: 46%;
  height: 7px;
  border-radius: 3px;
  background: var(--text-3);
  opacity: 0.7;
}

.demo__text-line {
  width: 92%;
  height: 5px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--bg-soft);
}

.demo__text-line--short {
  width: 64%;
}

.demo__block {
  height: 46px;
  margin-top: 14px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}

.demo__dock {
  width: 132px;
  flex: none;
  overflow: hidden;
  padding: 8px;
  border-radius: 6px;
  background: var(--surface);
  transition: width 0.2s var(--ease), opacity 0.2s var(--ease),
              padding 0.2s var(--ease), transform 0.2s var(--ease);
}

.demo__app.dock-closed .demo__dock {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  opacity: 0;
  transform: translateX(6px);
}

.demo__dock-head {
  font-size: 9px;
  color: var(--text-3);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

.demo__dock-row {
  height: 15px;
  margin-top: 6px;
  border-radius: 4px;
  background: var(--bg-soft);
}

.demo__dock-row--short {
  width: 72%;
}

.demo__params {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 27px;
  margin-top: 18px;
}

.demo__param {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
}

.demo__param span {
  font-size: 10.5px;
  color: var(--text-3);
}

.demo__param b {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

.demo__caption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
}

.demo__caption code {
  font-size: 11px;
  color: var(--text-3);
}

/* ---------- 04 未来 ---------- */

.roadmap {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.roadmap li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}

.roadmap__n {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
}

.roadmap__body h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.roadmap__body p {
  max-width: 720px;
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-2);
}

/* ---------- 05 获取 ---------- */

.section--get {
  padding-bottom: 112px;
}

.get {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: start;
  margin-top: 44px;
}

.get__spec {
  border-top: 1px solid var(--line);
}

.get__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.get__row span {
  font-size: 12px;
  color: var(--text-3);
}

.get__row b {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}

.get__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.get__action {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.get__note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-3);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
}

.footer__logo {
  width: auto;
  height: 46px;
}

.footer__logo-dark,
[data-theme="light"] .footer__logo-dark {
  display: none;
}

[data-theme="dark"] .footer__logo-light {
  display: none;
}

[data-theme="dark"] .footer__logo-dark {
  display: block;
}

.footer__brand p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-3);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 22px;
  font-size: 13px;
  color: var(--text-2);
}

.footer__links a:hover {
  color: var(--text);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}

.footer__note {
  margin-left: auto;
  font-family: var(--font);
  font-size: 11.5px;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .nav__links {
    gap: 20px;
  }

  .render-grid {
    gap: 44px;
  }

  .get {
    gap: 44px;
  }
}

@media (max-width: 960px) {
  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .nav__links {
    display: none;
  }

  .nav__menu {
    display: grid;
  }

  .layers {
    gap: 40px;
  }

  .packs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .render-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .render-point:first-child {
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
  }

  .get {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .get__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .get__note {
    flex-basis: 100%;
  }
}

@media (max-width: 760px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav__inner {
    padding: 0 20px;
    gap: 16px;
  }

  .brand__ver {
    display: none;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section--get {
    padding-bottom: 80px;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 56px;
  }

  .hero__logo img {
    height: 44px;
  }

  .hero__lead {
    font-size: 15.5px;
  }

  .hero__meta {
    gap: 12px;
    font-size: 12px;
  }

  .hero__meta li {
    gap: 12px;
  }

  .hero__figure {
    margin-top: 40px;
  }

  .schematic__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px 18px;
  }

  .schematic__row--kernels {
    padding-bottom: 4px;
  }

  .schematic__detail {
    padding: 0 18px 16px;
  }

  .schematic__content--mono {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 12px;
  }

  .dotsep {
    display: none;
  }

  .kernel-facts,
  .replace,
  .layers {
    grid-template-columns: minmax(0, 1fr);
  }

  .kernel-facts {
    gap: 24px;
  }

  .replace {
    border-top: 0;
  }

  .replace__item,
  .replace__item + .replace__item {
    padding: 20px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .replace__item:first-child {
    border-top: 1px solid var(--line);
  }

  .layers {
    margin-top: 44px;
    gap: 32px;
  }

  .subhead {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 64px;
  }

  .subhead__note {
    margin-top: 0;
  }

  .packs {
    gap: 20px 14px;
  }

  .pack figcaption {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .pack__desc {
    text-align: left;
  }

  .roster {
    margin-top: 56px;
  }

  .roster__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 16px 0;
  }

  .roster__row code {
    grid-column: 1;
    grid-row: 1;
    font-size: 12px;
  }

  .roster__row p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 2px;
  }

  .tag {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    margin-top: 1px;
  }

  .roadmap li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0;
  }

  .demo__params {
    column-gap: 20px;
  }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__links {
    gap: 18px;
  }

  .footer__legal {
    gap: 12px;
  }

  .footer__note {
    margin-left: 0;
    flex-basis: 100%;
  }
}

@media (max-width: 560px) {
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .packs {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo {
    padding: 16px;
  }

  .demo__stage {
    padding: 16px 12px 14px;
  }

  .demo__rail {
    display: none;
  }

  .demo__params {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo__param b {
    font-size: 11px;
  }
}

/* 窄屏：客户端示意切成单列（只看会话区），字号相对更大 */

@media (max-width: 680px) {
  .window {
    width: 480px;
    height: 660px;
  }

  .mock-wrap {
    aspect-ratio: 480 / 660;
  }

  .win-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 12px;
  }

  .rail,
  .dock {
    display: none;
  }

  .chat {
    padding: 0 10px;
  }

  .chat__head {
    padding: 12px 14px 12px;
  }

  .chat__chips {
    margin-top: 10px;
  }

  .hero__caption {
    margin-top: 12px;
    font-size: 11.5px;
  }
}

/* ---------- reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .mock-wrap {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

