:root {
  color-scheme: light;
  --bg: #f7f8f8;
  --bg-band: #ffffff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --line: #e6e9ea;
  --line-strong: #d9dee0;
  --control: #eef1f2;
  --control-strong: #d3d9dc;
  --text-strong: #0b0d0f;
  --text: #39424a;
  --text-soft: #48525a;
  --text-muted: #77818a;
  --accent: #00a99b;
  --accent-ink: #00796f;
  --accent-soft: #e6f5f3;
  --on-accent: #ffffff;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-sm: 10px;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code",
    Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --wide: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  background: none;
  -webkit-font-smoothing: antialiased;
}

/* 一层很淡的青色光，压在顶部；再叠一层会缓慢平移的方格，
   最上面是一团跟随指针的柔光。三层都在背景，不接收点击，
   也不参与排版。 */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70vh;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    rgba(0, 169, 155, 0.1),
    transparent 70%
  );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11, 13, 15, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 13, 15, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.45) 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.45) 72%, transparent 100%);
  animation: grid-pan 48s linear infinite;
}

@keyframes grid-pan {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -64px -64px;
  }
}

/* 跟随指针的一团柔光。只改 transform 和 opacity，
   不读页面内容，也不接收点击。 */
.pointer-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 44vmax;
  height: 44vmax;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(0, 169, 155, 0.16),
    rgba(0, 169, 155, 0.05) 58%,
    transparent 76%
  );
  filter: blur(48px);
  opacity: 0.38;
  pointer-events: none;
  transform: translate3d(50vw, 32vh, 0) translate(-50%, -50%);
  will-change: transform, opacity;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(0, 169, 155, 0.2);
  color: var(--text-strong);
}

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

main {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

/* 顶栏 */

.top {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-strong);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
}

.top nav a {
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.top nav a:hover,
.top nav a.on {
  color: var(--text-strong);
  text-decoration: none;
}

/* 首屏 */

.hero {
  padding: clamp(36px, 5vw, 64px) 0 0;
  text-align: center;
}

.hero > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero > :nth-child(2) {
  animation-delay: 0.05s;
}

.hero > :nth-child(3) {
  animation-delay: 0.1s;
}

.hero > :nth-child(4) {
  animation-delay: 0.15s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: clamp(24px, 8vw, 72px);
  height: 1px;
  background: var(--line-strong);
}

h1 {
  margin: 0 auto 18px;
  max-width: 820px;
  color: var(--text-strong);
  font-family: var(--mono);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

/* 标题末尾的方块光标，和参照站一样，只闪这一处。 */
.hero h1::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.82em;
  margin-left: 0.1em;
  background: var(--accent);
  vertical-align: -0.04em;
  animation: blink 1.1s steps(1, end) infinite;
}

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

.version {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

h2 {
  margin: 0 0 14px;
  color: var(--text-strong);
  font-family: var(--mono);
  font-size: clamp(24px, 2.9vw, 36px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.035em;
}

h3 {
  margin: 0 0 6px;
  color: var(--text-strong);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 auto 22px;
  max-width: 600px;
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.65;
}

.small {
  font-size: 13px;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--text-strong);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 600;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.button:hover {
  text-decoration: none;
  background: var(--accent-ink);
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  color: var(--text-strong);
  border: 1px solid var(--control-strong);
}

.button.ghost:hover {
  background: var(--surface);
  border-color: var(--text-muted);
}

.button.small-button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
  white-space: nowrap;
}

/* 应用截图：首屏的主视觉 */

.shot {
  position: relative;
  isolation: isolate;
  /* 比正文栏宽一档，宽屏上接近视口；窄屏自动退回正文宽度。 */
  --shot-w: min(1320px, calc(100vw - 2 * var(--gutter)));
  width: var(--shot-w);
  margin: clamp(32px, 4vw, 48px) 0 0 calc((100% - var(--shot-w)) / 2);
}

.shot::before {
  content: "";
  position: absolute;
  inset: 10% 8% -2%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 169, 155, 0.14), transparent);
  filter: blur(56px);
  pointer-events: none;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  box-shadow:
    0 30px 70px -30px rgba(12, 20, 28, 0.35),
    0 10px 24px -18px rgba(12, 20, 28, 0.25);
  cursor: zoom-in;
}

.shot figcaption {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12.5px;
  text-align: center;
}

/* 点击截图后的放大查看层：图片按比例缩放到视口内，不裁切。 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  background: rgba(11, 13, 15, 0.84);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.16s ease,
    visibility 0s linear 0.16s;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.16s ease;
}

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  background: var(--surface);
  box-shadow: 0 34px 90px -34px rgba(0, 0, 0, 0.7);
  transform: scale(0.985);
  transition: transform 0.16s ease;
}

.lightbox.open img {
  transform: scale(1);
}

body.lightbox-open {
  overflow: hidden;
}

/* 通用区块 */

.section {
  padding: clamp(44px, 5vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.section > h2,
.section > .lede {
  max-width: 62ch;
}

.section > .lede {
  margin-left: 0;
  margin-right: 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker::before {
  content: ">";
  font-weight: 700;
  opacity: 0.9;
}

.narrow {
  max-width: 820px;
  margin: 0;
  padding: clamp(40px, 5vw, 64px) 0 24px;
}

.narrow h1 {
  font-size: clamp(30px, 3.8vw, 44px);
  max-width: none;
}

.narrow .lede {
  margin-left: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--line-strong);
  overflow: hidden;
}

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

.grid article {
  padding: 22px;
  background: var(--surface);
  transition: background 0.2s ease;
}

.grid article:hover {
  background: #fbfcfc;
}

.grid article p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

/* 首页的四条短说明：只用分栏和细线，不加卡片 */
.section.points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(40px, 5vw, 56px) 0;
}

.points article {
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.points .index {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.points article p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}

.split .lede,
.split p {
  margin-left: 0;
}

.note-card {
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.note-card h3 {
  color: var(--text-strong);
}

.note-card p {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 14.5px;
}

.note-card p:last-child {
  margin-bottom: 0;
}

.cta {
  text-align: center;
}

.cta .kicker {
  justify-content: center;
}

.cta h2 {
  margin-left: auto;
  margin-right: auto;
}

.cta .lede {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.help ol {
  color: var(--text-soft);
  padding-left: 20px;
  margin: 0;
}

.help li {
  margin-bottom: 6px;
}

.help article p {
  color: var(--text-soft);
}

/* 下载页的说明区：比通用区块紧一档，说明文字不再额外限宽。 */
.section.help {
  padding: clamp(24px, 3vw, 32px) 0;
}

.help h2 {
  margin-bottom: 10px;
}

.help .lede {
  max-width: none;
  margin-bottom: 16px;
}

.help .grid {
  margin-top: 22px;
}

pre {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #f1f4f4;
  overflow-x: auto;
  line-height: 1.85;
}

code {
  font-family: var(--mono);
  font-size: 13.5px;
}

pre code {
  color: var(--text);
  font-size: 13px;
}

pre .c {
  color: var(--text-muted);
}

:not(pre) > code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
}

.help pre {
  margin: 10px 0;
}

/* 下载页 */

.download-list {
  margin: 28px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--line-strong);
  overflow: hidden;
}

.download-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.download-row:last-child {
  border-bottom: 0;
}

.download-row strong {
  display: block;
  color: var(--text-strong);
  font-size: 15px;
}

.download-row span {
  font-size: 13.5px;
  color: var(--text-muted);
}

.download-row .size {
  font-family: var(--mono);
  font-size: 12.5px;
}

/* 更新日志 */

.release {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

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

.release h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
}

.release h3 {
  margin-top: 16px;
}

.release ul {
  color: var(--text-soft);
  padding-left: 22px;
}

.release li {
  margin-bottom: 4px;
}

.release p {
  color: var(--text-soft);
}

.release-title {
  margin: 2px 0 0;
  color: var(--text-strong);
}

.badge.warn {
  background: #fff2dd;
  color: #9a6200;
}

.badge {
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  vertical-align: 3px;
}

/* 页脚 */

.bottom {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px var(--gutter) 24px;
  color: var(--text-muted);
  font-size: 13.5px;
  border-top: 1px solid var(--line);
}

.foot-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.foot-brand {
  margin: 0;
}

.bottom strong {
  color: var(--text-strong);
  font-family: var(--mono);
}

.credit {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.credit a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.credit a:hover {
  color: var(--accent-ink);
}

.copyright {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* 窄屏 */

@media (max-width: 1024px) {
  .grid,
  .section.points {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 32px;
  }

  .grid,
  .grid.two,
  .split,
  .section.points {
    grid-template-columns: 1fr;
  }

  .top {
    flex-wrap: wrap;
  }

  .top nav {
    gap: 18px;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(28px, 7.6vw, 34px);
  }

  .lede {
    font-size: 15.5px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .download-row {
    grid-template-columns: 1fr auto;
  }

  .download-row .size {
    display: none;
  }

  .grid article {
    padding: 18px;
  }

  .points article {
    padding-top: 14px;
  }
}

/* 系统的「减少动态效果」优先于页面上的任何动画。 */
@media (prefers-reduced-motion: reduce) {
  body::after,
  .hero > *,
  .hero h1::after {
    animation: none;
  }

  .pointer-glow {
    display: none;
  }

  .button,
  .grid article,
  .top nav a,
  .lightbox,
  .lightbox img {
    transition: none;
  }
}
