/* trylet.net — 不加载外部字体；苹果设备上使用系统圆体，与 App 一致。 */
:root {
  --paper: #f5f8fc;
  --ink: #0f1b2d;
  --muted: #53627a;
  --line: #c4d2e4;
  --blue: #1677f2;
  --coral: #ff6b4a;
  --teal: #0e9aa0;
  --green: #23984a;
  --display: ui-rounded, "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--body);
}

h1, h2, h3, .counter, .brand, .level-mark, .ladder-title {
  font-family: var(--display);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 0.5em;
  max-width: 18ch;
}

h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.2em; }

p { margin: 0 0 1em; max-width: var(--measure); }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:focus-visible, .lang:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; }

/* 顶栏 */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.35rem; }
.brand img { border-radius: 9px; display: block; }
.top nav { display: flex; gap: clamp(14px, 3vw, 28px); align-items: center; font-size: 0.98rem; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.top nav .lang { border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 14px; }

main > section { padding: clamp(56px, 9vw, 120px) var(--gutter); }

/* 首屏：标题在左，做深蹲的小人站在右边的地面线上 */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end; gap: 24px;
  padding-top: clamp(28px, 6vw, 72px); padding-bottom: 0;
}
.hero-text { padding-bottom: clamp(28px, 5vw, 56px); }
h1 {
  margin: 0 0 0.45em;
  font-weight: 900;
  font-size: clamp(2.9rem, 9.2vw, 7.4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
h1 span { display: block; white-space: nowrap; }
/* 第二行整体向前迈一步 */
h1 .further { color: var(--blue); margin-left: clamp(0.5em, 6vw, 1.4em); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 34em; }
.status {
  display: inline-block; margin: 0.4em 0 0; padding: 10px 18px;
  background: var(--ink); color: #fff; border-radius: 14px; font-weight: 600; font-size: 1rem;
}

.demo { position: relative; justify-self: end; width: min(100%, 340px); }
.demo svg { display: block; width: 100%; height: auto; overflow: visible; }
.counter {
  position: absolute; left: 0; top: 4%; margin: 0;
  font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; color: var(--coral);
  font-variant-numeric: tabular-nums;
}
.counter .unit { font-size: 0.34em; font-weight: 700; color: var(--muted); letter-spacing: 0; }

/* 地面线横贯整页，小人站在上面 */
.ground { height: 3px; background: var(--ink); margin: 0 var(--gutter); border-radius: 2px; }

/* 四步 */
.how { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.how h2 { grid-column: 1 / -1; }
.how > * { min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 12px; padding: 18px 0; border-top: 1.5px solid var(--line); }
.steps li::before {
  content: counter(step); grid-row: span 2;
  font: 900 2rem/1 var(--display); color: var(--blue);
}
.steps li:last-child { border-bottom: 1.5px solid var(--line); }
.steps p { margin: 0; color: var(--muted); }
.shots { display: flex; gap: clamp(8px, 1.6vw, 18px); align-items: flex-start; }
.shots img {
  flex: 1 1 0; min-width: 0; height: auto; border-radius: clamp(14px, 2.4vw, 30px);
  border: 1.5px solid var(--line); background: #fff;
}
.shots img:nth-child(2) { margin-top: clamp(16px, 4vw, 48px); }
.shots img:nth-child(3) { margin-top: clamp(32px, 8vw, 96px); }

/* 三级阶梯：一级比一级高 */
.levels { background: var(--ink); color: #fff; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: end; }
.levels h2 { color: #fff; }
.levels p { color: #c9d5e6; }
.ladder-title { margin: 0 0 14px; font-weight: 700; color: #fff; }
.ladder ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 6px; }
.level { display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 14px; border-radius: 12px 12px 0 0; color: var(--ink); }
.level-1 { background: #8fe0e3; min-height: 150px; }
.level-2 { background: #9be3ae; min-height: 230px; }
.level-3 { background: #ffb39f; min-height: 310px; }
.level-name { font-weight: 800; font-family: var(--display); }
.level-mark { font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.05; margin: 2px 0 8px; }
.level-text { font-size: 0.92rem; line-height: 1.4; }
.levels .note { grid-column: 1 / -1; margin: 0; font-size: 0.92rem; color: #9fb0c8; max-width: 76ch; }

/* 没有的东西 */
.nots dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 clamp(20px, 4vw, 48px); }
.nots dl > div { padding: 18px 0; border-top: 1.5px solid var(--ink); }
.nots dt { font: 800 1.35rem/1.2 var(--display); }
.nots dd { margin: 6px 0 0; color: var(--muted); }

/* 项目清单 */
.catalog { padding-top: 0; }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px clamp(20px, 4vw, 48px); }
.group h3 { color: var(--blue); padding-bottom: 8px; border-bottom: 1.5px solid var(--line); margin-bottom: 8px; }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { padding: 3px 0; }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 1.6em; }

/* 页脚 */
.foot { padding: 36px var(--gutter) 48px; border-top: 3px solid var(--ink); margin: 0 0; color: var(--muted); font-size: 0.95rem; }
.foot p { max-width: 76ch; }
.foot .small { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }

/* 文档页 */
.doc { padding: clamp(24px, 5vw, 56px) var(--gutter) clamp(48px, 8vw, 96px); max-width: calc(68ch + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.025em; margin-bottom: 0.3em; }
.doc h2 { font-size: 1.3rem; max-width: none; margin: 2em 0 0.4em; letter-spacing: 0; }
.doc .date, .doc .back { color: var(--muted); }
.doc .back { margin-top: 3em; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 8px; }
  .demo { justify-self: center; width: min(78%, 300px); }
  .how, .levels { grid-template-columns: 1fr; }
  /* 手机上三张截图并排太小：改成可以横向滑动的一排 */
  .shots {
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; gap: 12px;
  }
  .shots img, .shots img:nth-child(2), .shots img:nth-child(3) { flex: 0 0 64%; margin-top: 0; scroll-snap-align: center; }
  .level-1 { min-height: 120px; }
  .level-2 { min-height: 170px; }
  .level-3 { min-height: 220px; }
  .level { padding: 12px 10px; }
  .level-text { font-size: 0.82rem; }
}

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