/* ==========================================================
   MacPen 官网
   ========================================================== */

:root {
  color-scheme: light dark;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;

  --bg: #f6f8fc;
  --bg-2: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-3: #edf1f8;
  --surface-glass: rgba(255, 255, 255, .62);
  --text: #0d172e;
  --text-2: #465272;
  --text-3: #7d88a4;
  --border: rgba(13, 23, 46, .08);
  --border-2: rgba(13, 23, 46, .14);
  --link: #2f62d6;

  --accent: #e8434f;
  --ring: rgba(53, 99, 214, .35);
  --hl: rgba(255, 149, 0, .38);
  --rule: rgba(53, 99, 214, .055);
  --dot: rgba(13, 23, 46, .11);
  --glow-1: rgba(79, 202, 187, .22);
  --glow-2: rgba(232, 67, 79, .13);
  --glow-stage: rgba(53, 99, 214, .30);

  --nav-bg: rgba(246, 248, 252, .86);
  --kbd-bg: linear-gradient(#ffffff, #f0f3f8);
  --toast-bg: #0f1628;
  --visual-bg: linear-gradient(180deg, #f8faff, #eef2f9);
  --line-fill: #e2e7f1;
  --block-fill: #dbe5fb;

  --shadow-sm: 0 1px 2px rgba(13, 23, 46, .05), 0 2px 10px rgba(13, 23, 46, .04);
  --shadow-md: 0 14px 36px -14px rgba(13, 23, 46, .22);
  --shadow-lg: 0 50px 100px -40px rgba(18, 34, 80, .38), 0 20px 44px -24px rgba(18, 34, 80, .22);

  /* 首屏插画 */
  --wp-a: #cddbf7;
  --wp-b: #e5dff6;
  --wp-c: #f9e1d9;
  --blob-1: #97d6ec;
  --blob-2: #f6b3c0;
  --mb: rgba(255, 255, 255, .55);
  --mb-text: #1a2238;
  --win: #ffffff;
  --win-bar: #f3f5f9;
  --win-sep: #e3e7ef;
  --win-title: #7d88a4;
  --s-text: #0d172e;
  --s-text-2: #4b5675;
  --s-muted: #98a2bb;
  --s-accent: #3563d6;
  --s-bar: #cdd9f3;
  --s-axis: #e3e8f1;

  /* 工具栏（仿 macOS 控件） */
  --tb-bg: rgba(246, 247, 250, .92);
  --tb-border: rgba(0, 0, 0, .12);
  --tb-btn: #ffffff;
  --tb-btn-border: rgba(0, 0, 0, .06);
  --tb-text: #1d1d1f;
  --tb-on: rgba(0, 122, 255, .14);
  --tb-on-stroke: rgba(0, 122, 255, .75);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b16;
    --bg-2: #0b1122;
    --surface: #10182c;
    --surface-2: #0d1426;
    --surface-3: #1a2440;
    --surface-glass: rgba(255, 255, 255, .04);
    --text: #eef2fb;
    --text-2: #a9b4cf;
    --text-3: #6d7894;
    --border: rgba(255, 255, 255, .07);
    --border-2: rgba(255, 255, 255, .13);
    --link: #86abff;

    --hl: rgba(255, 149, 0, .5);
    --rule: rgba(120, 150, 255, .06);
    --dot: rgba(255, 255, 255, .08);
    --glow-1: rgba(79, 202, 187, .12);
    --glow-2: rgba(232, 67, 79, .14);
    --glow-stage: rgba(80, 120, 255, .26);

    --nav-bg: rgba(7, 11, 22, .84);
    --kbd-bg: linear-gradient(#253050, #1a2239);
    --toast-bg: #1b2440;
    --visual-bg: linear-gradient(180deg, #131c33, #0e1528);
    --line-fill: #26314d;
    --block-fill: #22325a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 14px 36px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 50px 100px -40px rgba(0, 0, 0, .8), 0 20px 44px -24px rgba(0, 0, 0, .6);

    --wp-a: #1b2750;
    --wp-b: #2a2150;
    --wp-c: #3b1f30;
    --blob-1: #1d6d8e;
    --blob-2: #8e2d49;
    --mb: rgba(10, 14, 28, .5);
    --mb-text: #e8ecf6;
    --win: #141b2e;
    --win-bar: #1b2338;
    --win-sep: #262f47;
    --win-title: #7f8aa8;
    --s-text: #eef2fb;
    --s-text-2: #b3bdd6;
    --s-muted: #6f7a97;
    --s-accent: #6e9bff;
    --s-bar: #2a375c;
    --s-axis: #273150;

    --tb-bg: rgba(42, 44, 50, .92);
    --tb-border: rgba(255, 255, 255, .12);
    --tb-btn: #3a3b41;
    --tb-btn-border: rgba(255, 255, 255, .04);
    --tb-text: #f2f2f5;
    --tb-on: rgba(10, 132, 255, .32);
    --tb-on-stroke: rgba(10, 132, 255, .9);
  }
}

/* ---------- 基础 ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; }

section[id], [id="install"] { scroll-margin-top: 72px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { color: var(--text); text-wrap: balance; }

h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 0;
}

code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--surface-3);
  padding: .12em .42em;
  border-radius: 6px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75em;
  height: 1.75em;
  padding: 0 .42em;
  margin: 0 .1em;
  border-radius: .42em;
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  background: var(--kbd-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: .8em;
  font-weight: 600;
  line-height: 1;
  vertical-align: .08em;
}

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

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background-color .25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { height: 34px; padding: 0 15px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn small { font-size: .8em; font-weight: 500; opacity: .72; margin-left: .3em; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #f3555f 0%, #e03946 100%);
  box-shadow: 0 10px 26px -10px rgba(232, 67, 79, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:hover { box-shadow: 0 16px 34px -10px rgba(232, 67, 79, .85), inset 0 1px 0 rgba(255, 255, 255, .28); }

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-2), var(--shadow-sm);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--border-2), var(--shadow-md); }

.btn-text { color: var(--text-2); padding: 0 8px; }
.btn-text:hover { color: var(--text); transform: none; }

/* ---------- 导航 ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-color: var(--border);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-link { display: inline-flex; color: var(--text-2); padding: 6px; border-radius: 8px; }
.icon-link:hover { color: var(--text); }

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

.hero {
  position: relative;
  padding: 148px 0 24px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 12% 8%, var(--glow-1), transparent 70%),
    radial-gradient(50% 40% at 92% 18%, var(--glow-2), transparent 70%),
    repeating-linear-gradient(to bottom, transparent 0 43px, var(--rule) 43px 44px);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 78%);
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.chip:hover { text-decoration: none; color: var(--text); }
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, .2);
}
.chip-arrow { transition: transform .2s ease; }
.chip:hover .chip-arrow { transform: translateX(3px); }

.hero-title {
  margin: 30px 0 0;
  font-size: clamp(46px, 8.6vw, 108px);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 800;
}

/* 标题里的「荧光笔」 */
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.06em;
  right: -.08em;
  bottom: .04em;
  height: .44em;
  border-radius: .18em .34em .22em .3em;
  background: var(--hl);
  transform: skewX(-10deg) scaleX(0);
  transform-origin: left center;
  animation: hl-in .95s .45s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes hl-in { to { transform: skewX(-10deg) scaleX(1); } }

.hero-lead {
  max-width: 660px;
  margin: 28px auto 0;
  color: var(--text-2);
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.8;
  text-wrap: balance;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}
.hero-meta { margin: 18px 0 0; color: var(--text-3); font-size: 13px; text-wrap: balance; }

.hero-stage { position: relative; margin-top: 72px; }
.stage-glow {
  position: absolute;
  inset: 12% 8% -4%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--glow-stage), transparent);
  filter: blur(48px);
}
.mock {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
  font-family: var(--font);
}

/* 插画配色 */
.wp-a { stop-color: var(--wp-a); }
.wp-b { stop-color: var(--wp-b); }
.wp-c { stop-color: var(--wp-c); }
.blob-1 { fill: var(--blob-1); opacity: .75; }
.blob-2 { fill: var(--blob-2); opacity: .65; }
.mb { fill: var(--mb); }
.mb-text { fill: var(--mb-text); }
.mb-icons { fill: none; stroke: var(--mb-text); }
.mb-icons .mb-fill { fill: var(--mb-text); stroke: none; }
.mb-icons .mb-active { fill: var(--mb-text); fill-opacity: .12; stroke: none; }
.win { fill: var(--win); }
.win-bar { fill: var(--win-bar); }
.win-sep { stroke: var(--win-sep); }
.win-title { fill: var(--win-title); }
.s-kicker { fill: var(--s-accent); }
.s-title, .s-strong { fill: var(--s-text); }
.s-body { fill: var(--s-text-2); }
.s-bullet { fill: var(--s-accent); }
.s-muted { fill: var(--s-muted); }
.s-axis { stroke: var(--s-axis); stroke-width: 1; }
.s-bars rect { fill: var(--s-bar); }
.s-bars .s-bar-hi { fill: var(--s-accent); }

.ink path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.js .ink path { visibility: hidden; }

.tb-panel { fill: var(--tb-bg); stroke: var(--tb-border); }
.tbb rect { fill: var(--tb-btn); stroke: var(--tb-btn-border); transition: fill .15s ease; }
.tbb text { fill: var(--tb-text); }
.tbb { transform-box: fill-box; transform-origin: center; transition: transform .12s ease; }
.tbb.is-on rect { fill: var(--tb-on); stroke: var(--tb-on-stroke); stroke-width: 1.5; }
.tbb.is-press { transform: scale(.9); }
.tbb.is-press rect { fill: var(--tb-on); stroke: var(--tb-on-stroke); stroke-width: 1.5; }

.cursor { pointer-events: none; }
.js .cursor { opacity: 0; }
.cursor.is-ready { opacity: 1; }
.cursor.mode-arrow .cur-dot,
.cursor.mode-dot .cur-arrow { display: none; }
.cur-halo { fill-opacity: .28; }

.usecases {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 40px auto 0;
  padding: 0 24px;
}
.usecases li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-glass);
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- 通用区块 ---------- */

.section { position: relative; padding: 128px 0; }
.section-alt { background: var(--bg-2); }

.section-head {
  max-width: 740px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.8;
  text-wrap: balance;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
}

/* ---------- 功能卡片 ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.card-wide { grid-column: span 2; }
.card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 228px;
  padding: 18px;
  background: var(--visual-bg);
  border-bottom: 1px solid var(--border);
}
.card-visual svg { width: 100%; height: 100%; }
.visual-dark { background: radial-gradient(120% 90% at 30% 20%, #18223f, #0a0f1f); }
.card-body { padding: 24px 26px 28px; }
.card-body h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.01em; }
.card-body p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.75; }

.pens-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.js .pens-svg path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 1.2s cubic-bezier(.65, 0, .35, 1), opacity 0s linear;
}
.js .is-visible .pens-svg path { stroke-dashoffset: 0; opacity: 1; }
.pens-svg path:nth-child(2) { transition-delay: .12s; }
.pens-svg path:nth-child(3) { transition-delay: .24s; }
.pens-svg path:nth-child(4) { transition-delay: .36s; }
.pens-svg path:nth-child(5) { transition-delay: .5s; }
.pens-svg path:nth-child(6) { transition-delay: .64s; }

.laser-lines rect { fill: rgba(255, 255, 255, .09); }

.v-win { fill: var(--surface); stroke: var(--border-2); }
.v-line { fill: var(--line-fill); }
.v-block { fill: var(--block-fill); }
.v-btn { fill: #3563d6; }
.v-overlay { stroke: var(--accent); stroke-opacity: .55; }
.v-ripple { fill: none; stroke: #3563d6; stroke-opacity: .4; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ripple 2.4s ease-out infinite; }
.v-ripple-2 { animation-delay: .6s; }
@keyframes ripple { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.v-select { fill: rgba(53, 99, 214, .07); stroke: var(--text-2); }
.v-handle rect { fill: var(--surface); stroke: var(--text-2); stroke-width: 1.5; }
.v-toast { fill: var(--surface); stroke: var(--border-2); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12)); }
.v-toast-text { fill: var(--text); }
.v-screen { fill: var(--surface); stroke: var(--text-3); stroke-width: 3; }
.v-stand { stroke: var(--text-3); }
.v-ink { fill: var(--text); }
.v-caption { fill: var(--text-3); }

/* 迷你设置窗 */
.visual-ui { padding: 20px 24px; }
.mini-settings {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 310px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-md);
  font-size: 13px;
}
.ms-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.ms-keys kbd { font-size: 12px; }
.ms-cursors { display: flex; gap: 5px; }
.ms-cursors i {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #3a4668;
}
.ms-cursors i:first-child { box-shadow: 0 0 0 2px #0a84ff; }
.ms-cursors i::before, .ms-cursors i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.cur-ring::before { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #fff; }
.cur-ring::after { width: 3px; height: 3px; border-radius: 50%; background: #fff; }
.cur-solid::after { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 1px #fff, 0 0 0 4px rgba(255, 59, 48, .25); }
.cur-cross::before { width: 16px; height: 1.5px; background: #ff6b61; }
.cur-cross::after { width: 1.5px; height: 16px; background: #ff6b61; }
.cur-soft::before { width: 13px; height: 13px; border-radius: 50%; border: 1.3px solid #fff; box-shadow: 0 0 0 3px rgba(255, 59, 48, .35); }
.cur-pencil::after { width: 4px; height: 14px; border-radius: 1px 1px 2px 2px; background: #fff; transform: translate(-50%, -50%) rotate(40deg); box-shadow: 0 0 0 1px #111; }
.ms-slider { justify-content: flex-start; }
.ms-track { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); }
.ms-track span { position: relative; display: block; height: 100%; border-radius: 2px; background: #0a84ff; }
.ms-track span::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(0, 0, 0, .1);
}
.ms-val { min-width: 34px; color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }

/* 迷你菜单栏 */
.mini-menu { width: 100%; max-width: 270px; font-size: 13px; }
.mm-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
.mm-icon { display: inline-flex; padding: 2px 6px; border-radius: 5px; background: rgba(127, 127, 127, .2); }
.mm-list {
  width: 206px;
  margin: 6px 44px 0 auto;
  padding: 5px;
  list-style: none;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-md);
}
.mm-list li {
  display: flex;
  justify-content: space-between;
  padding: 2px 10px;
  border-radius: 5px;
  color: var(--text);
  line-height: 1.55;
}
.mm-list li.is-hover { background: #0a84ff; color: #fff; }
.mm-list li.mm-sep { height: 1px; margin: 4px 8px; padding: 0; background: var(--border-2); }
.mm-list kbd { all: unset; color: var(--text-3); font-size: 12px; }

/* ---------- 在线试玩 ---------- */

.pg {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
  outline: none;
}
.pg:focus-visible { box-shadow: 0 0 0 3px var(--ring), var(--shadow-lg); }
.pg-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  background: var(--win-bar);
  border-bottom: 1px solid var(--border);
}
.pg-lights { display: flex; gap: 8px; }
.pg-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.pg-lights i:nth-child(2) { background: #febc2e; }
.pg-lights i:nth-child(3) { background: #28c840; }
.pg-title { color: var(--text-3); font-size: 13px; }
.pg-status {
  justify-self: end;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pg-stage {
  position: relative;
  height: 540px;
  background-color: var(--surface);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 22px 22px;
}
.pg-doc { position: absolute; inset: 0; padding: 52px 60px 120px; }
.pg-kicker { margin: 0; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.pg-h { margin: 12px 0 26px; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.02em; line-height: 1.2; }
.pg-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 1.3em;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
}
.pg-list b { color: var(--text); }
.pg-num { color: var(--text); font-size: 1.2em; font-weight: 800; }
.pg-pass {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--text-3);
  font-size: 15px;
}
.pg-click {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, background-color .2s ease;
}
.pg-click:hover { background: var(--surface-3); }
.pg-click:active { transform: scale(.96); }
.pg-click b { display: inline-block; min-width: 1.2em; font-variant-numeric: tabular-nums; }
.pg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}
.pg.is-pointer .pg-canvas { pointer-events: none; }

.tb {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: calc(100% - 32px);
  padding: 8px;
  border-radius: 10px;
  background: var(--tb-bg);
  border: 1px solid var(--tb-border);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pg.is-pointer .tb { border-color: rgba(255, 149, 0, .9); box-shadow: 0 0 0 1px rgba(255, 149, 0, .6), 0 12px 30px -12px rgba(0, 0, 0, .35); }
.tb-btn {
  height: 38px;
  min-width: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--tb-btn);
  box-shadow: inset 0 0 0 1px var(--tb-btn-border);
  color: var(--tb-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .1s ease, background-color .15s ease, box-shadow .15s ease;
}
.tb-btn:hover,
.tb-btn.is-on { background: var(--tb-on); box-shadow: inset 0 0 0 1.5px var(--tb-on-stroke); }
.tb-btn:active,
.tb-btn.is-flash { transform: scale(.92); background: var(--tb-on); box-shadow: inset 0 0 0 1.5px var(--tb-on-stroke); }
.tb-dot, .tb-sq { width: 38px; min-width: 38px; padding: 0; }
.tb-dot::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: auto;
  border-radius: 50%;
  background: var(--c);
  opacity: var(--a, 1);
}

.pg-toast {
  position: absolute;
  top: 16px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(18, 22, 34, .9);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity .25s ease, transform .25s ease;
}
.pg-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 快捷键 ---------- */

.section-dark {
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(53, 99, 214, .22), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(232, 67, 79, .16), transparent 70%),
    #0a1022;
  color: #eef2fb;
}
.section-dark h2 { color: #fff; }
.shortcuts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: center;
}
.shortcuts-intro > p:not(.eyebrow) { margin: 18px 0 0; color: #a9b4cf; font-size: 17px; line-height: 1.8; }
.section-dark .eyebrow { color: #ff7a73; }
.hotkey-hero { display: flex; gap: 14px; margin-top: 40px; }
.shortcuts-intro .hotkey-caption { margin-top: 18px; color: #8591ad; font-size: 14px; }

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, #2b3555, #1c243f);
  box-shadow: 0 2px 0 #070b16, 0 6px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  color: #f2f5fc;
  font-size: 16px;
  font-weight: 600;
}
.keycap-lg {
  min-width: 88px;
  height: 88px;
  border-radius: 18px;
  font-size: 36px;
  font-weight: 500;
  box-shadow: 0 5px 0 #060a14, 0 22px 44px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.keycap-wide { min-width: 64px; font-size: 14px; }

.keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.keys > div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
}
.keys dt { display: flex; gap: 6px; min-width: 96px; }
.keys dd { margin: 0; color: #d5dcec; font-size: 15px; }
.keys .keys-wide { grid-column: span 2; }

/* ---------- 下载 ---------- */

.download {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 40px 44px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.download-glow {
  position: absolute;
  top: -260px;
  left: 50%;
  width: 760px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(232, 67, 79, .16), transparent);
  pointer-events: none;
}
.download > :not(.download-glow) { position: relative; }
.download-icon { width: 136px; height: 136px; }
.download h2 { margin-top: 14px; }
.download-sub { margin: 14px 0 0; color: var(--text-2); font-size: 17px; }
.download-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.download-meta li {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 13px;
}
.download-meta strong { color: var(--text); }
.download-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.download-alt { margin: 20px 0 0; color: var(--text-3); font-size: 14px; line-height: 1.7; }

.copy-btn {
  flex: none;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.copy-btn:hover { background: var(--surface-3); }
.copy-btn.is-copied { color: #1f9d4c; }

.install { max-width: 1080px; margin: 96px auto 0; }
.install-title { margin: 0 0 32px; font-size: 28px; letter-spacing: -.02em; text-align: center; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  padding: 28px 28px 30px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.step-num { color: var(--accent); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.step h4 { margin: 12px 0 10px; font-size: 19px; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.75; }
.step .step-or { margin-top: 14px; color: var(--text-3); font-size: 13px; }
.cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 8px 8px 12px;
  border-radius: 10px;
  background: #0d1426;
  border: 1px solid rgba(255, 255, 255, .06);
}
.cmd code {
  flex: 1;
  min-width: 0;
  padding: 0;
  overflow-x: auto;
  background: none;
  color: #e7ecf7;
  font-size: 12px;
  white-space: nowrap;
  scrollbar-width: none;
}
.cmd .copy-btn { background: #1c2540; border-color: rgba(255, 255, 255, .1); color: #e7ecf7; }
.cmd .copy-btn.is-copied { color: #5fe08a; }

/* ---------- FAQ ---------- */

.faq-wrap { max-width: 840px; }
.faq { display: grid; gap: 12px; }
.faq details {
  padding: 0 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  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: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { margin: 0 0 22px; color: var(--text-2); line-height: 1.8; }

/* ---------- 页脚 ---------- */

.footer { padding: 60px 0 32px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand p { margin: 12px 0 0; color: var(--text-3); font-size: 14px; }
.footer-cols { display: flex; gap: 80px; }
.footer-cols h4 { margin: 0 0 14px; font-size: 13px; }
.footer-cols a { display: block; margin-bottom: 10px; color: var(--text-3); font-size: 14px; }
.footer-cols a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px;
}
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 下载提示 ---------- */

.dl-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 12px 12px 12px 14px;
  border-radius: 14px;
  background: var(--toast-bg);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity .3s ease, transform .3s ease;
}
.dl-toast.is-show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.dl-toast a { color: #8db8ff; font-weight: 600; }
.dl-toast-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #34c759;
  font-size: 13px;
  font-weight: 700;
}
.dl-toast-close {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- 入场动画 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcuts { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .section { padding: 88px 0; }
  .hero { padding-top: 116px; }
  .hero-stage { margin-top: 52px; }
  .section-head { margin-bottom: 44px; }
  .pg-stage { height: 620px; }
  .pg-doc { padding: 30px 22px 90px; }
  .pg-list { font-size: 16px; }
  .pg-title { display: none; }
  .pg-chrome { grid-template-columns: 1fr 1fr; }
  .tb {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .tb::-webkit-scrollbar { display: none; }
  .tb-btn { flex: none; }
  .download { padding: 56px 20px 32px; border-radius: 26px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .usecases { padding: 0 16px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card-wide { grid-column: auto; }
  .card-visual { height: 200px; }
  .keys { grid-template-columns: minmax(0, 1fr); }
  .keys .keys-wide { grid-column: auto; }
  .keycap-lg { min-width: 72px; height: 72px; font-size: 30px; }
  .footer-cols { gap: 48px; }
}

@media (max-width: 480px) {
  .hero-cta .btn, .download-cta .btn { width: 100%; }
  .mock { border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hl::before { animation: none; transform: skewX(-10deg); }
  .js .pens-svg path { transition: none; stroke-dashoffset: 0; opacity: 1; }
  .v-ripple { animation: none; opacity: .5; }
}
