/* Unitick · 没登录时的首页和登录窗口（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; overflow-x: clip;
  -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: .5px solid var(--line-2); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .lp-top { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
}
@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: 56px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: var(--fw-title); letter-spacing: -.01em; 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-pill); background: var(--panel); color: var(--ink);
  font: inherit; font-size: 14.5px; font-weight: 500; line-height: 1; letter-spacing: .01em; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color var(--dur-2) ease, border-color var(--dur-2) ease, box-shadow var(--dur-3) var(--ease-out), transform var(--dur-4) var(--ease-spring); }
.lp-page .lp-btn:hover:not(:disabled) { border-color: var(--faint); background: var(--soft); }
.lp-page .lp-btn:active:not(:disabled) { transform: scale(var(--press)); transition-duration: var(--dur-2); }
.lp-page .lp-btn:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; }
.lp-page .lp-btn:disabled { opacity: .5; cursor: default; }
.lp-page .lp-btn-primary { border-color: var(--accent); background: var(--accent); color: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.lp-page .lp-btn-primary:hover:not(:disabled) { border-color: var(--accent-hover); background: var(--accent-hover);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .4); transform: translateY(var(--lift)); }
.lp-page .lp-btn-primary:active:not(:disabled) { background: #000; box-shadow: 0 1px 2px rgba(0, 0, 0, .14); transform: scale(var(--press)); }
.lp-page .lp-btn-block { width: 100%; height: 48px; font-size: 15px; }
.lp-page .lp-btn-block:active:not(:disabled) { transform: scale(.985); }
/* 正在登录：按钮里转一个小圈，字不变 */
.lp-page .lp-btn.is-busy { opacity: 1; }
.lp-btn.is-busy::before { content: ""; width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
  animation: u-spin .7s linear infinite; }
.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-page .lp-link:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- 开头 */
/* 开头：白底上一团极淡的强调色光，压在窗口后面，给页面一点纵深 */
.lp-hero { position: relative; isolation: isolate; padding: 112px 0 128px; }
.lp-hero::before { content: ""; position: absolute; z-index: -1; inset: -56px 0 0; pointer-events: none;
  background: radial-gradient(640px 420px at 78% 42%, rgba(10, 102, 216, .07), transparent 70%),
    radial-gradient(520px 360px at 92% 18%, rgba(122, 76, 194, .05), transparent 70%); }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: 80px; }
.lp-title { margin: 0; font-size: var(--fs-hero); line-height: 1.08; font-weight: var(--fw-display); letter-spacing: var(--track-display); color: var(--ink); }
.lp-sub { margin: 28px 0 0; font-size: 19px; line-height: 1.7; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }   /* 只在标点处换行 */
/* 进场：大标题、副标题、「看看它能做什么」依次淡入上移，窗口最后浮上来 */
.lp-hero-text > * { animation: u-rise var(--dur-5) var(--ease-out) backwards; }
.lp-hero-text > :nth-child(2) { animation-delay: 80ms; }
.lp-hero-text > :nth-child(3) { animation-delay: 160ms; }
.lp-hero-in > .lp-try { animation: lp-float-in 900ms var(--ease-out) 200ms backwards; }
@keyframes lp-float-in { from { opacity: 0; transform: translateY(calc(var(--rise) * 2)) scale(calc(var(--pop) + .02)); } }
.lp-sub span { display: block; }
/* 「看看它能做什么」：浅灰小字，不和登录抢视线；悬停变深、箭头往下探 */
.lp-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 36px; border-radius: 6px; font-size: 15px; color: var(--muted); text-decoration: none;
  transition: color var(--dur-2) ease; }
.lp-more .lp-ic { width: 15px; height: 15px; transition: transform var(--dur-4) var(--ease-spring); }
.lp-more:hover { color: var(--ink); }
.lp-more:hover .lp-ic { transform: translateY(3px); }
.lp-more:focus-visible { outline: 2px solid var(--tint); outline-offset: 4px; }

/* ---------------------------------------------------------------- 登录窗口 */
/* 登录窗口：大圆角、三层软影子，像浮在页面上的一张卡；没有标题，打开就是两个框 */
.lp-try { padding: 34px 34px 28px; border: 1px solid rgba(0, 0, 0, .06); border-radius: 24px; background: var(--panel);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -8px rgba(0, 0, 0, .1), 0 40px 80px -24px rgba(0, 0, 0, .12); }
/* 「登录」下面一句说明 */
.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: 48px; margin: 0; padding: 0 15px; border: 1px solid var(--line-2);
  border-radius: 12px; background: var(--panel); color: var(--ink); font: inherit; font-size: 15px; outline: none;
  transition: border-color var(--dur-2) ease, box-shadow var(--dur-2) ease, background-color var(--dur-2) ease; }
.lp-page .lp-input:hover { border-color: var(--faint); }
.lp-page .lp-input:focus { border-color: var(--tint); box-shadow: var(--ring); 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); animation: u-fade var(--dur-3) ease-out; }
.lp-msg:empty { display: none; }
.lp-field[style=""] { animation: u-rise var(--dur-4) var(--ease-out); }   /* 统一认证要验证码：验证码框滑出来 */
.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; }
/* 顶上两个标签：扫码（或学号）登录、邮箱登录（docs/specs/email-login.md）。浅灰的槽里一块白色滑块 */
.lp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: -6px 0 24px; padding: 4px; border-radius: 12px; background: var(--soft); }
.lp-page .lp-tab { height: 34px; margin: 0; padding: 0 4px; white-space: nowrap; border: 0; border-radius: 9px; background: none; color: var(--muted);
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background-color var(--dur-2) ease, color var(--dur-2) ease; }
.lp-page .lp-tab:hover { color: var(--ink); }
.lp-page .lp-tab.on { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .08); }
.lp-page .lp-tab:focus-visible { outline: 2px solid var(--tint); outline-offset: 1px; }
/* 邮箱验证码登录：验证码框右边「发验证码」 */
.lp-code-row { display: flex; gap: 8px; }
.lp-code-row .lp-input { flex: 1; min-width: 0; }
.lp-page .lp-code-send { flex: none; height: 48px; min-width: 96px; border-radius: 12px; }
.lp-qr-note .lp-link { font-size: inherit; }
/* 扫码登录（landing.js 的 qrView）：标题、二维码、状态、换一张 */
.lp-qr-t { margin: 0 0 18px; font-size: 16px; font-weight: 500; text-align: center; color: var(--ink); }
.lp-qr-box { display: grid; place-items: center; width: 216px; height: 216px; margin: 0 auto; border: 1px solid var(--line-2); border-radius: 16px; background: #fff; }
.lp-qr-img { display: block; width: 200px; height: 200px; object-fit: contain; }
.lp-qr-img.is-wait { visibility: hidden; }
.lp-try .lp-qr-box + .lp-msg { text-align: center; }
.lp-qr-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------- 它能做什么、五步开始 */
.lp-sec { padding: 128px 0; border-top: 1px solid var(--line); }
.lp-head { max-width: 640px; margin-bottom: 56px; }
.lp-h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.1; font-weight: var(--fw-display); letter-spacing: var(--track-display); color: var(--ink); }
.lp-lead { margin: 16px 0 0; font-size: 19px; line-height: 1.65; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
/* 往下翻到才出现：淡入上移，同一排的错开一点（landing.js 给要出现的块加 lp-rv，进到屏幕里加 is-in；没有这个功能的浏览器直接显示） */
.lp-rv { opacity: 0; transform: translateY(calc(var(--rise) * 2.5));
  transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--rv-d, 0ms); }
.lp-rv.is-in { opacity: 1; transform: none; }

/* 六项功能：一块圆角板，里面用细线隔开 */
/* 六项功能：浅灰的大圆角卡片拼成一块（像产品页上的功能格子），图标放在白色小方块里 */
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lp-feat { display: flex; flex-direction: column; padding: 34px 32px 30px; border-radius: 24px; background: var(--soft); }
.lp-feat-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--panel); color: var(--ink);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .05), 0 2px 6px rgba(0, 0, 0, .06); }
.lp-feat-ic .lp-ic { width: 22px; height: 22px; }
.lp-feat-t { margin: 22px 0 0; font-size: 20px; line-height: 1.35; font-weight: var(--fw-title); letter-spacing: var(--track-tight); 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: 10px; background: var(--panel); font-size: 12.5px; line-height: 1.55; color: var(--text);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .05); }
.lp-ex-k { color: var(--muted); }

/* 五步（和向导一样）：圆圈里的序号，中间一条细线连起来 */
.lp-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; 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: -12px; height: 1px; background: var(--line-2);
  transform-origin: 0 0; transition: transform 1s var(--ease-io) .3s; }
.lp-step.lp-rv:not(.is-in)::after { transform: scaleX(0); }
.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: 20px; line-height: 1.35; font-weight: var(--fw-title); letter-spacing: var(--track-tight); 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-foot { border-top: 1px solid var(--line); }
.lp-foot-in { padding-top: 28px; padding-bottom: 40px; font-size: 12px; 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: 72px 0 88px; }
  .lp-hero::before { background: radial-gradient(520px 380px at 50% 78%, rgba(10, 102, 216, .07), transparent 70%); }
  .lp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .lp-try { width: 100%; max-width: 460px; }
  .lp-more { display: none; }   /* 登录窗口挪到开头下面了，功能紧跟在它后面 */
  .lp-sec { padding: 96px 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.lp-rv:not(.is-in)::after { transform: scaleY(0); }
  .lp-step-t { margin-top: 5px; }
}
@media (max-width: 600px) {
  .lp-wrap { padding: 0 16px; }
  .lp-top-in { height: 52px; }
  .lp-hero { padding: 48px 0 64px; }
  .lp-hero-in { gap: 44px; }
  .lp-title { font-size: 42px; }
  .lp-sub { margin-top: 18px; font-size: 17px; }
  .lp-sub span { display: inline; }
  .lp-try { padding: 26px 20px 22px; border-radius: 20px; }
  .lp-page .lp-input { font-size: 16px; }   /* 手机上小于 16px 的输入框，一点就会被放大 */
  .lp-sec { padding: 72px 0; scroll-margin-top: 24px; }   /* 「看看它能做什么」滑过来时，标题不贴着顶栏 */
  .lp-head { margin-bottom: 32px; }
  .lp-h2 { font-size: 30px; }
  .lp-lead { font-size: 16px; }
  .lp-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lp-feat { padding: 26px 22px 24px; border-radius: 20px; }
  .lp-foot-in { padding-top: 22px; padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {   /* 位移、缩放已由变量归零，只剩淡入；连线直接画好 */
  .lp-step.lp-rv:not(.is-in)::after { transform: none; }
  .lp-rv { transition-duration: var(--dur-4); }
}
