/* 部署 4.10：登录页改版（index.html 的 #login-view.lp；文字、套餐卡片和页尾由 js/login.js 填写）。
   颜色全部用 app.css 的变量：浅色 / 深色跟随网站主题（系统设置或者用户选的主题）。
   动画和「先隐藏、滚动到才出现」都写在 prefers-reduced-motion: no-preference 里：系统设置了「减少动态效果」时全部静止、直接显示。
   动画只改 transform / opacity（光晕用 box-shadow）。装饰都是 aria-hidden，不挡点击。
   部署 4.11：第一屏加了「支持模型」一行（.lp-models，在小标签下面；手机上只是一行摘要 .lp-msum）；页尾加了「服务状态」的两条链接
   （.lp-status）。 */

/* 装饰用的颜色（设计稿 LOGIN-REDESIGN-SPEC §2）；页尾：浅色主题是深色底（和设计稿一样），深色主题用侧边栏的颜色 */
:root { --blob-a: var(--accent-soft); --blob-b: rgba(233, 216, 196, .3); --lp-foot-bg: var(--text); --lp-foot-fg: var(--bg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --blob-b: rgba(58, 53, 48, .6); --lp-foot-bg: var(--sidebar); --lp-foot-fg: var(--text); }
}
:root[data-theme="dark"] { --blob-b: rgba(58, 53, 48, .6); --lp-foot-bg: var(--sidebar); --lp-foot-fg: var(--text); }

.lp { position: relative; height: 100vh; height: 100dvh; overflow-x: hidden; overflow-y: auto; background: var(--bg); color: var(--text); }
.lp h1, .lp h2, .lp h3 { font-family: var(--font); }
.lp a:focus-visible, .lp button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp section:focus, .lp footer:focus { outline: none; }

/* ---- 顶栏 ---- */
.lp-top {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; min-height: 64px; padding: 10px 40px;
  border-bottom: 1px solid var(--border); background: var(--bg);
}
.lp-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--text); }
.lp-logo { width: 32px; height: 32px; }
.lp-nav { display: flex; gap: 28px; margin-left: auto; }
.lp-nav a { color: var(--text-2); text-decoration: none; font-size: 14px; padding: 4px 2px; border-radius: 6px; }
.lp-nav a:hover { color: var(--text); }
.lp-nav .lp-nav-plans { visibility: hidden; }   /* 先占位：拿到套餐数据、确实有套餐才显示（不会让别的导航项移位） */
.lp-nav .lp-nav-plans.on { visibility: visible; }
.lp .lang-switch { position: static; margin: 0; }

/* ---- 第一屏：标语 + 登录框 ---- */
.lp-hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px);
  display: flex; flex-direction: column; justify-content: center; padding: 56px 40px 104px;
}
.lp-hero-in {
  width: min(1200px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: center;
}
.lp-pitch h1 { margin: 0; font-size: 50px; line-height: 1.2; font-weight: 700; letter-spacing: .5px; }
.lp-pitch h1 span { display: block; }
.lp-sub { margin: 22px 0 0; font-size: 17px; color: var(--text-2); }
.lp-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; }
.lp-pills li {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 999px; font-size: 13px;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border);
}
.lp-pills li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
/* 部署 4.11：三个小标签下面的「支持模型」（js/login.js 用 /api/public/site 登录页显示的套餐的模型填，按系列分组；只是文字）。
   拿到数据之前先占好位置（.wait：看不见）：数据晚到时标语和登录框不会被推动。没有模型时整行不显示。颜色、底色和上面的小标签一样 */
.lp-models { margin: 18px 0 0; min-height: 94px; }   /* 标题一行 + 两行（现在的十个模型在 1400 px 宽是两行） */
.lp-models.wait { visibility: hidden; }
.lp-models-h { margin: 0 0 8px; font-size: 12px; line-height: 18px; letter-spacing: .5px; color: var(--text-3); }
.lp-mlist { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.lp-mchip {
  max-width: 100%; padding: 5px 13px; border-radius: 15px; font-size: 13px; line-height: 18px; overflow-wrap: anywhere;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border);
}
.lp-mchip b { margin-right: 7px; font-weight: 600; color: var(--text); }
.lp-m:not(:last-child)::after { content: "\a0 ·"; color: var(--text-3); }
.lp-m:not(:last-child)::after { content: "\a0 ·" / ""; }   /* 读屏不读分隔点（不支持这种写法的浏览器用上一行） */
/* 手机上只显示一行摘要（站长 2026-11-13：完整的一格格会把登录框推下去约 142 px）：「支持模型：Claude 5 款 · GPT 4 款 · 生图 1 款」。
   高度固定一行：数据晚到、模型多了都不会变高；太长时这一行自己可以左右滑，页面本身不会左右滚动。电脑上不显示（见手机的 @media） */
.lp-msum {
  display: none; width: max-content; max-width: 100%; height: 18px; margin: 0 auto; overflow-x: auto; overflow-y: hidden;
  white-space: nowrap; font-size: 12px; line-height: 18px; color: var(--text-2); scrollbar-width: none;
}
.lp-msum::-webkit-scrollbar { display: none; }
.lp-msum-h { color: var(--text-3); }
.lp-msum b { font-weight: 600; color: var(--text); }
.lp-ms:not(:last-child)::after { content: "\a0 · "; color: var(--text-3); }
.lp-ms:not(:last-child)::after { content: "\a0 · " / ""; }

.lp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px 32px 26px; box-shadow: var(--shadow); }
.lp-card-title {
  position: relative; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
  text-align: center; font-size: 16px; font-weight: 600; color: var(--accent);
}
.lp-card-title::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 72px; height: 2px; margin-left: -36px; border-radius: 2px; background: var(--accent);
}
.lp-field { display: block; margin-bottom: 16px; }
.lp-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
.lp .input { background: var(--surface-2); border-color: var(--border); }
.lp .input::placeholder { color: var(--text-3); }
.lp-pw { position: relative; }
.lp-pw .input { padding-right: 48px; }
.lp-eye {
  position: absolute; right: 6px; top: 5px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--text-3); cursor: pointer;
}
.lp-eye:hover { color: var(--text); background: var(--hover); }
.lp-eye input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lp-eye:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.lp-row { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.lp-forgot { font-size: 13px; color: var(--text-2); text-decoration: none; }
.lp-forgot:hover { color: var(--accent); text-decoration: underline; }
.lp-submit { width: 100%; height: 46px; border-radius: 12px; font-size: 15px; }
/* 登录提示（后台的「登录页提示」）：先留两行的位置，数据晚到不会把登录框撑开、让页面跳 */
.lp-notice { margin: 16px 0 0; min-height: 3.2em; font-size: 13px; line-height: 1.6; color: var(--text-2); text-align: center; white-space: pre-line; }

.lp-down {
  position: absolute; left: 0; right: 0; bottom: 22px; width: max-content; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px;
  border: 0; border-radius: 10px; background: transparent; color: var(--text-3); font-size: 12px;
}
.lp-down:hover { color: var(--text-2); }

/* 装饰（A 背景光斑、B 四角星） */
.lp-deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lp-blob { position: absolute; border-radius: 50%; filter: blur(60px); }
.lp-b1 { width: 520px; height: 520px; left: 12%; top: 2%; background: var(--blob-a); }
.lp-b2 { width: 440px; height: 440px; right: 4%; top: 28%; background: var(--blob-b); }
.lp-b3 { width: 360px; height: 360px; left: 40%; bottom: -10%; background: var(--blob-a); }
.lp-star { position: absolute; fill: var(--accent); opacity: .55; }
.lp-s1 { left: 7%; top: 13%; width: 14px; height: 14px; }
.lp-s2 { left: 40%; top: 8%; width: 10px; height: 10px; opacity: .45; }
.lp-s3 { left: 54%; top: 19%; width: 16px; height: 16px; opacity: .6; }
.lp-s4 { left: 10%; top: 84%; width: 9px; height: 9px; opacity: .4; }
.lp-s5 { left: 89%; top: 90%; width: 13px; height: 13px; }
.lp-s6 { left: 86%; top: 9%; width: 11px; height: 11px; opacity: .5; }

/* ---- 卖点 ---- */
.lp-band { padding: 88px 40px 96px; background: var(--sidebar); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-h2 { margin: 0; text-align: center; font-size: 30px; line-height: 1.3; font-weight: 700; }
.lp-band .lp-h2::after { content: ""; display: block; width: 44px; height: 4px; margin: 16px auto 0; border-radius: 2px; background: var(--accent); }
.lp-fgrid { width: min(1020px, 100%); margin: 48px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.lp-fcard { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 26px; }
.lp-ico {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 20px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
}
.lp-fcard h3 { margin: 0 0 8px; font-size: 16.5px; line-height: 1.45; font-weight: 600; }
.lp-fcard p { margin: 0; font-size: 13.5px; color: var(--text-2); }

/* ---- 套餐（/api/public/site） ---- */
.lp-plans { padding: 96px 40px 88px; scroll-margin-top: 0; }
.lp-plans-sub { margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--text-2); }
.lp-pgrid {
  width: min(1240px, 100%); margin: 52px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; align-items: stretch;
}
.lp-pcard {
  position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
}
.lp-pcard.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lp-tag {
  position: absolute; top: -12px; right: 18px; overflow: hidden; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.5;
}
.lp-tag.hot { background: var(--accent); color: #fff; }
.lp-tag.full { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.lp-pcard h3 { margin: 0 0 18px; font-size: 18px; font-weight: 700; }
.lp-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lp-chip {
  height: 34px; padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text-2); font-size: 13px;
}
.lp-chip:hover { border-color: var(--border-strong); color: var(--text); }
.lp-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.lp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 22px 0 18px; }
.lp-price b { font-size: 34px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-pcard.hot .lp-price b { color: var(--accent); }
.lp-price small { font-size: 13px; color: var(--text-3); }
.lp-feats { list-style: none; display: grid; gap: 10px; margin: 0 0 24px; padding: 0; font-size: 13.5px; color: var(--text-2); }
.lp-feats li { display: flex; align-items: flex-start; gap: 8px; }
.lp-feats svg { margin-top: 3px; color: var(--accent); }
.lp-feats span { min-width: 0; overflow-wrap: anywhere; }
.lp-buy {
  width: 100%; height: 42px; margin-top: auto; border-radius: 12px; text-decoration: none;
  border: 1px solid var(--accent); background: transparent; color: var(--accent);
}
.lp-buy:hover { background: var(--accent-soft); }
.lp-buy.primary { background: var(--accent); color: #fff; }
.lp-buy.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ---- 页尾：联系客服 ---- */
.lp-foot { padding: 56px 40px 104px; background: var(--lp-foot-bg); color: var(--lp-foot-fg); }
.lp-foot-in { width: min(1240px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.lp-foot .lp-brand { color: var(--lp-foot-fg); }
.lp-small { margin: 10px 0 0; font-size: 13px; color: color-mix(in srgb, var(--lp-foot-fg) 62%, transparent); }
.lp-foot h2 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.lp-wx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; font-size: 14px; overflow-wrap: anywhere; }
.lp-copy {
  height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; background: transparent; color: var(--lp-foot-fg);
  border: 1px solid color-mix(in srgb, var(--lp-foot-fg) 35%, transparent);
}
.lp-copy:hover { border-color: var(--lp-foot-fg); }
.lp-note { margin: 0; font-size: 13px; white-space: pre-line; color: color-mix(in srgb, var(--lp-foot-fg) 72%, transparent); overflow-wrap: anywhere; }
.lp-qr { margin: 0; text-align: center; }
/* 二维码要白底才扫得出（和 app.css 的 .support-qr 一样） */
.lp-qr img { display: block; width: 168px; height: auto; padding: 8px; border-radius: 12px; background: #fff; }
.lp-qr figcaption { margin-top: 8px; font-size: 12px; color: color-mix(in srgb, var(--lp-foot-fg) 62%, transparent); }
/* 部署 4.11（站长 2026-11-13）：页尾「服务状态：Claude 官方状态 · OpenAI 官方状态」（js/login.js 加在版权那几行下面，本身是 .lp-small）：
   链接和旁边的字同一个颜色，加下划线看得出是链接 */
.lp-status a {
  color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 3px; white-space: nowrap;
}
.lp-status a:hover { color: var(--lp-foot-fg); text-decoration-color: currentColor; }

/* ---- 中等宽度 ---- */
@media (max-width: 1100px) {
  .lp-hero-in { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
  .lp-pitch h1 { font-size: 40px; }
  .lp-models { min-height: 150px; }   /* 部署 4.11：左栏窄了，现在的模型最多要标题 + 三行（其中一格两行） */
  .lp-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- 手机（390 px 设计稿） ---- */
@media (max-width: 760px) {
  .lp-top { min-height: 56px; padding: 8px 16px; gap: 10px; }
  .lp-logo { width: 28px; height: 28px; }
  .lp-nav { display: none; }
  .lp .lang-switch { margin-left: auto; }
  .lp .lang-switch button { padding: 5px 8px; font-size: 12.5px; }
  .lp-hero { min-height: 0; justify-content: flex-start; padding: 28px 16px 84px; }
  .lp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lp-pitch { text-align: center; }
  .lp-pitch h1 { font-size: 28px; line-height: 1.3; }
  .lp-sub { margin-top: 10px; font-size: 14px; }
  .lp-pills { justify-content: center; gap: 8px; margin-top: 14px; }
  .lp-pills li { padding: 3px 10px; font-size: 12px; }
  .lp-models { margin-top: 10px; min-height: 18px; }   /* 部署 4.11：手机上只占一行（.lp-msum 的摘要），登录框只往下移 28 px */
  .lp-models-h, .lp-mlist { display: none; }
  .lp-msum { display: block; }
  .lp-card { padding: 24px 20px 20px; border-radius: 18px; }
  .lp-notice { min-height: 4.8em; }
  .lp-b1 { width: 320px; height: 320px; left: -30%; top: -4%; }
  .lp-b2 { width: 300px; height: 300px; left: auto; right: -35%; top: 42%; }
  .lp-b3, .lp-s5, .lp-s6 { display: none; }
  .lp-s1 { left: 3px; top: 6%; width: 10px; height: 10px; }
  .lp-s2 { left: auto; right: 3px; top: 3%; width: 9px; height: 9px; }
  .lp-s3 { left: 2px; top: 52%; width: 10px; height: 10px; }
  .lp-s4 { left: auto; right: 2px; top: 74%; width: 9px; height: 9px; }
  .lp-band, .lp-plans { padding: 56px 16px 64px; }
  .lp-h2 { font-size: 22px; }
  .lp-fgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
  .lp-fcard { display: flex; align-items: center; gap: 14px; padding: 18px 16px; }
  .lp-ico { flex: none; width: 40px; height: 40px; margin: 0; }
  .lp-fcard h3 { margin-bottom: 2px; font-size: 15px; }
  .lp-fcard p { font-size: 13px; }
  .lp-pgrid { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 32px; }
  .lp-foot { padding: 44px 16px 104px; text-align: center; }
  .lp-foot-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .lp-foot-contact { display: contents; }
  .lp-foot h2 { order: 1; margin: 0; }
  .lp-qr { order: 2; }
  .lp-wx { order: 3; justify-content: center; margin: 0; }
  .lp-note { order: 4; }
  .lp-foot-brand { order: 5; margin-top: 18px; }
  .lp-foot-brand .lp-brand { justify-content: center; }
}

/* ---- 动画（LOGIN-REDESIGN-SPEC §3 的 A–J；K–M 是开账号成功页的，这一版没有那一页） ---- */
@media (prefers-reduced-motion: no-preference) {
  .lp-b1 { animation: lp-drift 18s ease-in-out infinite alternate; }
  .lp-b2 { animation: lp-drift-b 22s ease-in-out -7s infinite alternate; }
  .lp-b3 { animation: lp-drift 26s ease-in-out -13s infinite alternate; }
  .lp-star { animation: lp-twinkle 4s ease-in-out infinite; }
  .lp-s2 { animation-duration: 3.2s; animation-delay: -1.1s; }
  .lp-s3 { animation-duration: 4.6s; animation-delay: -2.3s; }
  .lp-s4 { animation-duration: 3.6s; animation-delay: -.6s; }
  .lp-s5 { animation-duration: 5s; animation-delay: -3.2s; }
  .lp-s6 { animation-duration: 3.9s; animation-delay: -1.7s; }
  .lp-brand .lp-logo { transition: transform .4s ease; }
  .lp-top .lp-brand:hover .lp-logo { transform: rotate(90deg); }
  .lp-card { animation: lp-card-in .6s cubic-bezier(.2, .8, .2, 1) both; }
  .lp-models.fresh .lp-mchip { animation: lp-chip-in .45s cubic-bezier(.2, .8, .2, 1) both; }   /* 部署 4.11：模型第一次出现时淡入 */
  .lp-models.fresh .lp-mchip:nth-child(2) { animation-delay: 70ms; }
  .lp-models.fresh .lp-mchip:nth-child(3) { animation-delay: 140ms; }
  .lp-models.fresh .lp-mchip:nth-child(n+4) { animation-delay: 210ms; }
  .lp-models.fresh .lp-msum { animation: lp-chip-in .45s cubic-bezier(.2, .8, .2, 1) both; }   /* 手机上的一行摘要 */
  .lp .input { transition: border-color .15s, box-shadow .15s; }
  .lp-down svg { animation: lp-bounce 1.6s ease-in-out infinite; }
  .lp.lp-js .lp-fcard { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
  .lp.lp-js .lp-fcard.in { opacity: 1; transform: none; }
  .lp-fcard:nth-child(2) { transition-delay: 80ms; }
  .lp-fcard:nth-child(3) { transition-delay: 160ms; }
  .lp-fcard:nth-child(4) { transition-delay: 240ms; }
  .lp-fcard:nth-child(5) { transition-delay: 320ms; }
  .lp-fcard:nth-child(6) { transition-delay: 400ms; }
  .lp-fcard:hover .lp-ico { animation: tip-pulse 1s ease-out; }
  .lp-tag.hot::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    animation: lp-shimmer 3s ease-in-out infinite;
  }
  .lp-pcard.hot { animation: lp-glow 4s ease-in-out infinite; }
  .lp.lp-paused *, .lp-hero.lp-off * { animation-play-state: paused !important; }
}
@keyframes lp-drift { to { transform: translate(40px, -30px) scale(1.12); } }
@keyframes lp-drift-b { to { transform: translate(-36px, 26px) scale(1.08); } }
@keyframes lp-twinkle { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes lp-card-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes lp-chip-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes lp-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes lp-shimmer { 0% { transform: translateX(-120%); } 27%, 100% { transform: translateX(260%); } }
@keyframes lp-glow { 0%, 100% { box-shadow: 0 0 0 1px var(--accent); } 50% { box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px var(--accent-soft); } }
