/* 拾时 · 没登录时的首页和「立即体验」窗口（landing.js，docs/specs/16-landing-visual.md）。
   只用 app.css 开头的配色和尺寸变量；类名都以 lp- 开头。纯白底、细线、留白；不用外部字体、图片和库。 */

/* ---------------------------------------------------------------- 骨架 */
.lp-page { background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.lp-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.lp-ic { display: block; flex: none; width: 20px; height: 20px; }

/* ---------------------------------------------------------------- 顶栏：往下翻时停在顶上；浏览器支持的话，翻动后才出现底下那条细线 */
.lp-top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) and (color: color-mix(in srgb, red 50%, blue)) {
  .lp-top { background: color-mix(in srgb, var(--bg) 84%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
}
@supports (animation-timeline: scroll()) {
  .lp-top { animation: lp-top-line linear both; animation-timeline: scroll(); animation-range: 0 48px; }
}
@keyframes lp-top-line { from { border-bottom-color: transparent; } to { border-bottom-color: var(--line); } }
#topbar + #app .lp-top { top: 34px; }   /* 「正在重连」「网站更新了」那一条在最上面时，让开它 */
.lp-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: .08em; color: var(--ink); }
.lp-mark { display: block; flex: none; width: 24px; height: 24px; }
.lp-mark-bg { fill: var(--accent); }
.lp-mark-line { fill: none; stroke: var(--bg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- 按钮和链接（压过 app.css 里通用的 button、input） */
.lp-page .lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; margin: 0; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--panel); color: var(--ink);
  font: inherit; font-size: 14.5px; font-weight: 500; line-height: 1; letter-spacing: .02em; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .2s ease, transform .15s ease; }
.lp-page .lp-btn:hover:not(:disabled) { border-color: var(--faint); background: var(--soft); }
.lp-page .lp-btn:active:not(:disabled) { transform: translateY(1px); }
.lp-page .lp-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lp-page .lp-btn:disabled { opacity: .5; cursor: default; }
.lp-page .lp-btn-primary { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.lp-page .lp-btn-primary:hover:not(:disabled) { border-color: var(--text); background: var(--text); box-shadow: 0 6px 18px var(--accent-soft); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .lp-page .lp-btn-primary:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 84%, var(--bg));
    background: color-mix(in srgb, var(--accent) 84%, var(--bg)); }
}
.lp-page .lp-btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.lp-page .lp-btn-lg { height: 48px; padding: 0 20px 0 22px; font-size: 15.5px; }
.lp-page .lp-btn-block { width: 100%; height: 46px; font-size: 15px; }
.lp-btn .lp-ic { width: 17px; height: 17px; transition: transform .2s ease; }
.lp-btn:hover:not(:disabled) .lp-ic { transform: translateX(2px); }
.lp-page .lp-link { margin: 0; padding: 0; border: 0; background: none; color: var(--link); font: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lp-page .lp-link:hover:not(:disabled) { color: var(--ink); }

/* ---------------------------------------------------------------- 开头 */
.lp-hero { padding: 96px 0 112px; }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: 80px; }
.lp-eyebrow { margin: 0 0 20px; font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--muted); }
.lp-title { margin: 0; font-size: clamp(36px, 5.2vw, 58px); line-height: 1.14; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.lp-sub { margin: 24px 0 0; font-size: 18px; line-height: 1.75; color: var(--text); word-break: keep-all; overflow-wrap: anywhere; }   /* 只在标点处换行 */
.lp-sub span { display: block; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.lp-more { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; font-size: 15px; color: var(--text); text-decoration: none; }
.lp-more .lp-ic { width: 16px; height: 16px; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.lp-more:hover { color: var(--ink); }
.lp-more:hover .lp-ic { transform: translateY(2px); color: var(--ink); }
.lp-more:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------------------------------------------------------------- 「立即体验」窗口 */
.lp-try { padding: 32px 32px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  box-shadow: var(--shadow); scroll-margin: 84px 0 24px; }
.lp-try-t { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.lp-try-note { margin: 8px 0 26px; font-size: 13.5px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.lp-field { display: block; }
.lp-field + .lp-field { margin-top: 16px; }
.lp-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--text); }
.lp-page .lp-input { display: block; width: 100%; height: 46px; margin: 0; padding: 0 14px; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: var(--panel); color: var(--ink); font: inherit; font-size: 15px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease; }
.lp-page .lp-input:hover { border-color: var(--faint); }
.lp-page .lp-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.lp-page .lp-input::placeholder { color: var(--faint); }
.lp-try .lp-btn-block { margin-top: 24px; }
.lp-msg { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.lp-msg:empty { display: none; }
.lp-msg.lp-err { color: var(--red); }
.lp-dev { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.lp-dev:empty { display: none; }
.lp-dev p { margin: 0; }
.lp-dev .lp-link { display: block; margin-top: 8px; font-size: 12.5px; text-align: left; }
/* 点了「立即体验」：窗口边上轻轻亮一下 */
.lp-hi { animation: lp-hi 1.4s ease-out; }
@keyframes lp-hi {
  from { border-color: var(--line-2); box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow); }
  to { border-color: var(--line); box-shadow: 0 0 0 0 transparent, var(--shadow); }
}

/* ---------------------------------------------------------------- 它能做什么、三步开始 */
.lp-sec { padding: 112px 0; border-top: 1px solid var(--line); }
.lp-head { max-width: 620px; margin-bottom: 52px; }
.lp-h2 { margin: 0; font-size: 34px; line-height: 1.24; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.lp-lead { margin: 14px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }

/* 六项功能：一块圆角板，里面用细线隔开 */
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); overflow: hidden; }
.lp-feat { display: flex; flex-direction: column; padding: 34px 32px 32px; background: var(--panel); }
.lp-feat-ic { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); }
.lp-feat-ic .lp-ic { width: 22px; height: 22px; }
.lp-feat-t { margin: 22px 0 0; font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.lp-feat-d { margin: 8px 0 22px; font-size: 14.5px; line-height: 1.75; color: var(--text); text-wrap: pretty; }
/* 一行小例子：同一排的几项对齐在底下 */
.lp-ex { display: inline-flex; flex-wrap: wrap; align-items: baseline; align-self: flex-start; gap: 2px 8px; max-width: 100%;
  margin: auto 0 0; padding: 7px 12px; border-radius: 8px; background: var(--soft); font-size: 12.5px; line-height: 1.55; color: var(--text); }
.lp-ex-k { color: var(--muted); }

/* 三步：圆圈里的序号，中间一条细线连起来 */
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.lp-step { position: relative; }
.lp-step:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: 52px; right: -24px; height: 1px; background: var(--line-2); }
.lp-step-n { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--panel); font-size: 13.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.lp-step-t { margin: 22px 0 0; font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.lp-step-d { margin: 8px 0 0; font-size: 14.5px; line-height: 1.75; color: var(--text); text-wrap: pretty; }
.lp-end { margin-top: 56px; }

/* ---------------------------------------------------------------- 页脚 */
.lp-foot { border-top: 1px solid var(--line); }
.lp-foot-in { padding-top: 28px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- 窄屏：平板窗口挪到开头下面，手机一列、两边留 16px */
@media (max-width: 1080px) {
  .lp-hero-in { grid-template-columns: minmax(0, 1fr) 372px; gap: 56px; }
}
@media (max-width: 960px) {
  .lp-hero { padding: 64px 0 80px; }
  .lp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .lp-try { width: 100%; max-width: 460px; }
  .lp-sec { padding: 88px 0; }
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lp-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 18px; padding-bottom: 32px; }
  .lp-step:last-child { padding-bottom: 0; }
  .lp-step:not(:last-child)::after { top: 42px; bottom: 8px; left: 17px; right: auto; width: 1px; height: auto; }
  .lp-step-t { margin-top: 5px; }
}
@media (max-width: 600px) {
  .lp-wrap { padding: 0 16px; }
  .lp-top-in { height: 56px; }
  .lp-hero { padding: 44px 0 64px; }
  .lp-hero-in { gap: 44px; }
  .lp-eyebrow { margin-bottom: 16px; }
  .lp-title { font-size: 36px; }
  .lp-sub { margin-top: 18px; font-size: 16px; }
  .lp-sub span { display: inline; }
  .lp-cta { gap: 14px 24px; margin-top: 30px; }
  .lp-try { padding: 26px 20px 22px; }
  .lp-page .lp-input { font-size: 16px; }   /* 手机上小于 16px 的输入框，一点就会被放大 */
  .lp-sec { padding: 64px 0; scroll-margin-top: 24px; }   /* 「看看它能做什么」滑过来时，标题不贴着顶栏 */
  .lp-head { margin-bottom: 32px; }
  .lp-h2 { font-size: 26px; }
  .lp-lead { font-size: 15.5px; }
  .lp-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-feat { padding: 26px 22px 24px; }
  .lp-end { margin-top: 40px; }
  .lp-foot-in { padding-top: 22px; padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-page *, .lp-page *::before, .lp-page *::after { transition: none !important; animation: none !important; }
}
