/* Unitick · 没登录时的首页和登录窗口（landing.js，设计 15.11）。
   只用 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: 30px; height: 30px; }

/* ---------------------------------------------------------------- 按钮和链接（压过 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 var(--shadow-a14); }
.lp-page .lp-btn-primary:hover:not(:disabled) { border-color: var(--accent-hover); background: var(--accent-hover);
  box-shadow: 0 8px 24px -8px var(--shadow-a40); transform: translateY(var(--lift)); }
.lp-page .lp-btn-primary:active:not(:disabled) { background: var(--accent-pressed); box-shadow: 0 1px 2px var(--shadow-a14); 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 var(--inverse-a35); border-top-color: var(--on-dark); 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%, var(--tint-a7), transparent 70%),
    radial-gradient(520px 360px at 92% 18%, var(--purple-a5), 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; }

/* ---------------------------------------------------------------- 登录窗口（设计 15.11）：「登录」「注册」两个标签，滑块跟着走 */
/* 大圆角、三层软影子，像浮在页面上的一张卡 */
.lp-try { padding: 28px 32px 28px; border: 1px solid var(--overlay-a6); border-radius: 24px; background: var(--panel);
  box-shadow: 0 1px 2px var(--shadow-a4), 0 12px 32px -8px var(--shadow-a10), 0 40px 80px -24px var(--shadow-a12); }
.lp-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; padding: 3px; border-radius: 12px; background: var(--soft); }
.lp-seg-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 9px; background: var(--panel);
  box-shadow: 0 1px 2px var(--shadow-a6), 0 2px 8px -2px var(--shadow-a8); transition: transform 420ms var(--ease-out); }
.lp-seg-pill.is-right { transform: translateX(100%); }
.lp-page .lp-seg-b { position: relative; z-index: 1; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 9px; background: none;
  color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: color var(--dur-2) ease; }
.lp-page .lp-seg-b:hover:not(:disabled) { background: none; color: var(--ink); }
.lp-page .lp-seg-b.on { color: var(--ink); }
.lp-page .lp-seg-b:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--tint-a25); }
/* 换一屏：从右边淡入、略糊变清 */
.lp-pane-in { animation: lp-pane-in 480ms var(--ease-out) both; }
@keyframes lp-pane-in { from { opacity: 0; transform: translateX(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
.lp-h { margin: 0; font-size: 22px; font-weight: 650; line-height: 1.3; color: var(--ink); }
.lp-plead { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.lp-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; color: var(--text); }
.lp-fields { display: grid; gap: 14px; margin-top: 22px; }
.lp-field { display: block; }
.lp-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.lp-page .lp-input { display: block; width: 100%; height: 48px; margin: 0; padding: 0 16px; border: 1px solid var(--line-2);
  border-radius: 12px; background: var(--panel); color: var(--ink); font: inherit; font-size: 16px; 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: 0 0 0 4px var(--tint-a14); outline: none; }
.lp-page .lp-input::placeholder { color: var(--faint); }
.lp-page .lp-input.is-bad { border-color: var(--red); }
.lp-page .lp-input.is-bad:focus { box-shadow: 0 0 0 4px var(--red-a12); }
.lp-page .lp-input-invite { letter-spacing: .12em; }
.lp-page .lp-input-code { font-size: 22px; font-weight: 600; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.lp-try .lp-btn-block { margin-top: 22px; }
/* 框下面那一句：红字原因（前面一个圆圈感叹号，后面可带「去注册」「去登录」），或灰字说明 */
.lp-say { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted);
  animation: lp-say-in 320ms var(--ease-out) both; }
.lp-say:empty { display: none; }
.lp-say.is-bad { color: var(--red); }
.lp-say-i { flex: none; width: 16px; height: 16px; }
.lp-say .lp-link { font-size: 14px; }
@keyframes lp-say-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lp-page .lp-link.lp-back { display: inline-flex; align-items: center; gap: 2px; margin: -6px 0 10px -2px; font-size: 14px; text-decoration: none; }
.lp-back-i { width: 16px; height: 16px; }
.lp-under { display: flex; justify-content: center; margin-top: 12px; }
.lp-under .lp-link { min-height: 32px; font-size: 14px; text-decoration: none; }
.lp-under .lp-link:hover:not(:disabled) { color: var(--tint); text-decoration: underline; }
.lp-page .lp-link:disabled { color: var(--faint); cursor: default; text-decoration: none; }
.lp-dev { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.lp-devcode { font-size: 13px; }
.lp-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.lp-dots span { width: 18px; height: 4px; border-radius: 2px; background: var(--line); transition: background-color 320ms ease; }
.lp-dots span.on { background: var(--ink); }
.lp-phone { padding: 8px 0 4px; text-align: center; }
/* 验证码登录：邮箱框右边「发验证码」 */
.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; }
/* 门户扫码（wizard.js 的 portalQr，「更新课表」窗口用）：标题、二维码、状态、换一张 */
.lp-qr-note .lp-link { font-size: inherit; }
.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: var(--media-white); }
.lp-qr-img { display: block; width: 200px; height: 200px; object-fit: contain; }
.lp-qr-img.is-wait { visibility: hidden; }
.lp-qr-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); text-align: center; }
/* 学校快捷登录（设计 6.2、15.11）：「或」分隔线、次要按钮、一行小字；就地提示；选学校；扫码页 */
.lp-or { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.lp-or span { flex: 1; height: 1px; background: var(--line); }
.lp-try .lp-sc .lp-btn-block { margin-top: 14px; font-weight: 600; }
.lp-sc-btn .lp-ic { width: 18px; height: 18px; }
.lp-sc-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; text-align: center; color: var(--muted); }
.lp-sc-under { margin-top: 6px; }
.lp-hint { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--tint-a7);
  font-size: 13.5px; line-height: 1.55; color: var(--text); animation: lp-say-in 320ms var(--ease-out) both; }
.lp-hint[hidden] { display: none; }
.lp-hint > .lp-ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--tint); }
.lp-hint-t { display: flex; flex-direction: column; gap: 4px; }
.lp-page .lp-link.lp-hint-a { align-self: flex-start; font-size: 13.5px; font-weight: 600; color: var(--tint); }
.lp-sc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.lp-page .lp-icon-btn { display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 8px;
  background: var(--soft); color: var(--ink); cursor: pointer; }
.lp-page .lp-icon-btn:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }
.lp-icon-btn .lp-ic { width: 16px; height: 16px; }
.lp-pick { display: flex; flex-direction: column; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lp-pick:empty { display: none; }
.lp-page .lp-pick-row { display: flex; align-items: center; gap: 12px; min-height: 60px; margin: 0; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; background: var(--panel); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.lp-page .lp-pick-row:last-child { border-bottom: 0; }
.lp-page .lp-pick-row:hover { background: var(--soft); }
.lp-page .lp-pick-row:focus-visible { outline: 2px solid var(--tint); outline-offset: -2px; }
.lp-pick-mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--soft); font-size: 14px; font-weight: 600; }
.lp-pick-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.lp-pick-name { font-size: 15px; font-weight: 600; }
.lp-pick-way, .lp-pick-last { font-size: 12.5px; color: var(--muted); }
.lp-sc-qr { position: relative; }
.lp-qr-img.is-dim { opacity: .12; }
.lp-page .lp-qr-cover { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; border: 0; border-radius: 16px;
  background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.lp-page .lp-qr-cover[hidden] { display: none; }
.lp-sc-how { margin: 16px 0 0; font-size: 14px; text-align: center; color: var(--ink); }
.lp-sc-what { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--soft);
  font-size: 12.5px; line-height: 1.6; color: var(--text); }
.lp-sc-what b { color: var(--ink); }
.lp-sc-ways { gap: 20px; }
.lp-sc-phone { padding: 8px 0; }

/* ---------------------------------------------------------------- 它能做什么、五步开始 */
.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 var(--shadow-a5), 0 2px 6px var(--shadow-a6); }
.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 var(--shadow-a5); }
.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 { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; text-align: center; padding-top: 28px; padding-bottom: 40px; font-size: 12px; color: var(--muted); }
.lp-foot-a { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.lp-foot-ic { display: block; width: 14px; height: 15px; }
.lp-foot-a:hover { color: var(--text); text-decoration: underline; }

/* ---------------------------------------------------------------- 窄屏：平板窗口挪到开头下面，手机一列、两边留 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%, var(--tint-a7), 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: 24px 20px; border-radius: 20px; }
  .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-pane-in, .lp-say { animation: u-fade 200ms linear both; }
  .lp-seg-pill { transition: none; }
  .lp-step.lp-rv:not(.is-in)::after { transform: none; }
  .lp-rv { transition-duration: var(--dur-4); }
}
