/* SetonNode 官网。颜色与字体沿用控制台本身的设计令牌，页面和产品是一家人。 */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-mono.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --wash: #fafafa;
  --fg: #171717;
  --muted: #666666;
  --faint: #8f8f8f;
  --line: #ebebeb;
  --line-strong: #d6d6d6;
  --btn: #171717;
  --btn-fg: #ffffff;
  --online: #16a34a;
  --shot-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 32px 72px -32px rgb(0 0 0 / 0.22);
  --header-bg: rgb(255 255 255 / 0.86);

  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Noto Sans CJK SC', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --gutter: 32px;
  --width: 1200px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --wash: #111111;
    --fg: #ededed;
    --muted: #a1a1a1;
    --faint: #737373;
    --line: #242424;
    --line-strong: #333333;
    --btn: #ededed;
    --btn-fg: #0a0a0a;
    --online: #22c55e;
    --shot-shadow: 0 0 0 1px rgb(255 255 255 / 0.02), 0 32px 72px -32px rgb(0 0 0 / 0.9);
    --header-bg: rgb(10 10 10 / 0.82);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure,
table {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

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

a {
  color: inherit;
}

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

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

.wrap {
  width: 100%;
  max-width: calc(var(--width) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--btn);
  color: var(--btn-fg);
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
}

.skip:focus {
  left: 16px;
}

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 20px;
  height: 24px;
  fill: currentColor;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.site-nav a,
.header-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover,
.header-link:hover {
  color: var(--fg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--btn);
  background: var(--btn);
  color: var(--btn-fg);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.86;
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}

.btn.ghost:hover {
  opacity: 1;
  border-color: var(--fg);
}

.btn.lg {
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
}

/* ---------- 首屏 ---------- */

.hero {
  padding: 88px 0 0;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
}

h1 span,
h2 span {
  display: inline-block;
}

.hero .lede {
  max-width: 37em;
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}

.hero-install {
  max-width: 1010px;
  margin-top: 40px;
}

.hero-install .note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--faint);
}

.hero-install .note a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.hero-install .note a:hover {
  color: var(--fg);
}

.hero-shot {
  margin-top: 72px;
}

/* ---------- 命令 ---------- */

.cmd {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--wash);
  overflow: hidden;
}

.cmd pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

.cmd pre::before {
  content: '$ ';
  color: var(--faint);
  user-select: none;
}

.cmd.plain pre::before {
  content: none;
}

.cmd button {
  flex: none;
  align-self: stretch;
  min-width: 68px;
  padding: 0 16px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.cmd button:hover {
  color: var(--fg);
  background: var(--bg);
}

.cmd button[data-done] {
  color: var(--online);
}

/* ---------- 截图 ---------- */

.shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
  box-shadow: var(--shot-shadow);
  overflow: hidden;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.shot-caption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--faint);
}

/* ---------- 首屏下的几条事实 ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 48px;
  margin-top: 72px;
}

.facts div {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 14px;
  color: var(--faint);
}

.facts dd {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- 章节 ---------- */

.chapter {
  padding: 128px 0 0;
}

.chapter-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
  align-items: end;
  margin-bottom: 56px;
}

.chapter-head h2 {
  grid-column: 1 / span 7;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.018em;
}

.chapter-head p {
  grid-column: 8 / span 5;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
  margin-top: 64px;
}

.points.four {
  grid-template-columns: repeat(4, 1fr);
}

.point {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.point h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.point p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.point code,
.rows code,
.faq code,
.steps p code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--wash);
  font-size: 0.86em;
  color: var(--fg);
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- 监控：截图页签 ---------- */

.tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  position: relative;
  flex: none;
  padding: 0 0 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.15s;
}

.tabs button:hover {
  color: var(--fg);
}

.tabs button[aria-selected='true'] {
  color: var(--fg);
  font-weight: 500;
}

.tabs button[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--fg);
}

.tab-panel[hidden] {
  display: none;
}

/* ---------- AI：权限档位 ---------- */

.modes {
  width: 100%;
  margin-top: 64px;
  border-collapse: collapse;
  font-size: 15px;
}

.modes caption {
  padding-bottom: 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}

.modes th,
.modes td {
  padding: 18px 24px 18px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.75;
}

.modes tr:last-child th,
.modes tr:last-child td {
  border-bottom: 1px solid var(--line);
}

.modes th {
  width: 22%;
  font-weight: 600;
  white-space: nowrap;
}

.modes td {
  color: var(--muted);
}

.modes td:last-child {
  width: 28%;
  padding-right: 0;
  color: var(--faint);
}

.aside-note {
  max-width: 46em;
  margin-top: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--fg);
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- 左标题右内容 ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
}

.split-head {
  grid-column: 1 / span 4;
}

.split-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.018em;
}

.split-head p {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}

.split-body {
  grid-column: 6 / span 7;
}

.rows > div {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 0 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.rows > div:last-child {
  border-bottom: 1px solid var(--line);
}

.rows dt {
  font-weight: 600;
  line-height: 1.7;
}

.rows dd {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.below-split {
  margin-top: 72px;
}

/* ---------- 安装 ---------- */

.steps {
  counter-reset: step;
}

.steps > li {
  position: relative;
  padding: 28px 0 32px 64px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps > li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 27px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--faint);
}

.steps h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.steps p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.steps .cmd {
  margin-top: 16px;
}

.reqs {
  margin-top: 36px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.reqs dt {
  margin-top: 16px;
  color: var(--faint);
}

.reqs dt:first-child {
  margin-top: 0;
}

.reqs dd {
  color: var(--fg);
}

/* ---------- 常见问题 ---------- */

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

.faq:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}

.faq[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.faq .a {
  max-width: 42em;
  padding: 0 0 26px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.faq .a p + p {
  margin-top: 10px;
}

/* ---------- 结尾 ---------- */

.closing {
  margin-top: 128px;
  padding: 96px 0;
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.closing h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.018em;
}

.closing p {
  max-width: 34em;
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
}

.closing .cmd {
  max-width: 1010px;
  margin-top: 36px;
  background: var(--bg);
}

.closing .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 14px;
  color: var(--faint);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
}

/* ---------- 404 ---------- */

.lost {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0;
}

.lost h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lost p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
}

.lost .btn {
  align-self: flex-start;
  margin-top: 32px;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 1020px) {
  .site-nav {
    display: none;
  }

  .site-header .wrap {
    justify-content: space-between;
  }

  .chapter-head h2,
  .chapter-head p {
    grid-column: 1 / -1;
  }

  .chapter-head p {
    max-width: 38em;
    margin-top: 16px;
  }

  .split-head,
  .split-body {
    grid-column: 1 / -1;
  }

  .split-body {
    margin-top: 40px;
  }

  .facts,
  .points.four {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
  }

  .points {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 15px;
  }

  .header-link {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero .lede {
    margin-top: 20px;
    font-size: 16px;
  }

  .hero-shot {
    margin-top: 48px;
  }

  .chapter {
    padding-top: 88px;
  }

  .chapter-head {
    margin-bottom: 36px;
  }

  .facts,
  .points,
  .points.four {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 48px;
  }

  /* 截图在手机上按原样缩小看不清：保持可读的宽度，左右滑动查看 */
  .shot {
    overflow-x: auto;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .shot img {
    width: 820px;
    max-width: none;
  }

  .modes,
  .modes caption,
  .modes tbody,
  .modes tr,
  .modes th,
  .modes td {
    display: block;
    width: auto;
  }

  .modes th {
    padding: 18px 0 0;
  }

  .modes td,
  .modes tr:last-child td {
    padding: 4px 0 0;
    border: 0;
  }

  .modes td:last-child {
    width: auto;
    padding-bottom: 18px;
  }

  .modes tr:last-child th {
    border-bottom: 0;
  }

  .modes tr:last-child td:last-child {
    border-bottom: 1px solid var(--line);
  }

  .rows > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .steps > li {
    padding-left: 36px;
  }

  .cmd button {
    min-width: 56px;
    padding: 0 12px;
  }

  .closing {
    margin-top: 88px;
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
