/* §359 首页落地页 / 登录注册 / AI 对话输入框共用的视觉(用户 0924:照 DeepSeek 首页的感觉,配色用站里的橙色)。
   叠在 portal.css 之上用它的变量(--p-*);夜间跟全站同一个开关(body.dark-theme)。
   结构:.lp-bg(浅底 + 细网格 + 几团慢慢飘的模糊光斑)→ 内容层;毛玻璃卡片 .lp-glass;输入框 .lp-box。 */
:root {
  --lp-ink: #1d2433;
  --lp-ink-2: #4a5263;
  --lp-bg: #f6f6f8;
  --lp-grid: rgba(24, 32, 56, .05);
  --lp-glass: rgba(255, 255, 255, .72);
  --lp-glass-border: rgba(255, 255, 255, .92);
  --lp-glass-shadow: 0 1px 2px rgba(20, 28, 56, .04), 0 14px 44px rgba(24, 32, 72, .09);
  --lp-blob-1: rgba(255, 107, 53, .30);
  --lp-blob-2: rgba(255, 176, 120, .34);
  --lp-blob-3: rgba(150, 170, 255, .26);
  --lp-chip: rgba(255, 255, 255, .7);
  --lp-chip-border: rgba(20, 28, 56, .10);
}
body.dark-theme {
  --lp-ink: #eceef4;
  --lp-ink-2: #aab1c0;
  --lp-bg: #0d1015;
  --lp-grid: rgba(255, 255, 255, .045);
  --lp-glass: rgba(24, 28, 37, .72);
  --lp-glass-border: rgba(255, 255, 255, .07);
  --lp-glass-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 44px rgba(0, 0, 0, .38);
  --lp-blob-1: rgba(255, 107, 53, .20);
  --lp-blob-2: rgba(255, 150, 90, .12);
  --lp-blob-3: rgba(110, 130, 255, .14);
  --lp-chip: rgba(32, 37, 48, .8);
  --lp-chip-border: rgba(255, 255, 255, .09);
}

body.lp { background: var(--lp-bg); color: var(--lp-ink); min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
body.lp a { color: inherit; text-decoration: none; }

/* ── 背景 ── */
.lp-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lp-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, var(--lp-grid) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--lp-grid) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 35%, transparent 100%);
}
.lp-blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.lp-blob.b1 { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; left: -12vw; top: 28vh;
  background: radial-gradient(circle at 40% 40%, var(--lp-blob-1), transparent 68%); animation: lp-float1 26s ease-in-out infinite alternate; }
.lp-blob.b2 { width: 40vw; height: 40vw; max-width: 640px; max-height: 640px; right: -10vw; top: -14vh;
  background: radial-gradient(circle at 50% 50%, var(--lp-blob-2), transparent 70%); animation: lp-float2 31s ease-in-out infinite alternate; }
.lp-blob.b3 { width: 34vw; height: 34vw; max-width: 560px; max-height: 560px; right: 8vw; bottom: -18vh;
  background: radial-gradient(circle at 50% 50%, var(--lp-blob-3), transparent 70%); animation: lp-float3 36s ease-in-out infinite alternate; }
@keyframes lp-float1 { to { transform: translate(8vw, -6vh) scale(1.08); } }
@keyframes lp-float2 { to { transform: translate(-6vw, 8vh) scale(.94); } }
@keyframes lp-float3 { to { transform: translate(-8vw, -5vh) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .lp-blob { animation: none !important; } }

/* ── 顶栏(透明) ── */
.lp-top { position: relative; z-index: 20; max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 20px;
  display: flex; align-items: center; gap: 14px; }
.lp-logo { display: inline-flex; align-items: center; gap: 8px; }
.lp-logo img { height: 30px; display: block; }
.lp-logo-text { font-weight: 800; font-size: 19px; color: var(--p-primary); letter-spacing: -.02em; }
.lp-top-links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.lp-top-links a { padding: 7px 12px; border-radius: 10px; color: var(--lp-ink-2); font-weight: 500; white-space: nowrap; }
.lp-top-links a:hover { color: var(--lp-ink); background: var(--lp-chip); }
.lp-top-right { display: flex; align-items: center; gap: 10px; }
.lp-pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--lp-chip-border); background: var(--lp-chip); color: var(--lp-ink); font: inherit; font-weight: 500;
  cursor: pointer; white-space: nowrap; backdrop-filter: blur(8px); }
.lp-pill-btn:hover { border-color: color-mix(in srgb, var(--p-primary) 45%, var(--lp-chip-border)); }
.lp-pill-btn.primary { background: var(--p-primary); border-color: var(--p-primary); color: #fff; }
.lp-pill-btn.primary:hover { background: var(--p-primary-dark); }
.lp-icon-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--lp-chip-border); background: var(--lp-chip);
  cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; color: var(--lp-ink); }
.lp-top .p-balance { background: var(--p-primary-soft); }
.lp-top .p-user-btn { background: var(--lp-chip); border-color: var(--lp-chip-border); }
.lp-top .p-user-menu { z-index: 30; }

/* ── 首屏 ── */
.lp-main { position: relative; z-index: 10; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px);
  display: flex; flex-direction: column; align-items: center; padding: 0 16px 56px; }
.lp-hero { width: 100%; max-width: 780px; margin-top: clamp(40px, 17vh, 190px); display: flex; flex-direction: column; align-items: center; }
.lp-notice { display: block; max-width: 620px; color: var(--lp-ink-2); font-size: 14.5px; line-height: 1.8; text-align: center;
  padding: 2px 6px; border-radius: 10px; text-wrap: balance; }
.lp-notice:hover { color: var(--lp-ink); }
.lp-notice .lp-spark { color: var(--p-primary); display: inline-block; vertical-align: -1px; margin-right: 6px; }
.lp-notice .lp-arrow { transition: transform .2s; display: inline-block; }
.lp-notice:hover .lp-arrow { transform: translateX(3px); }
.lp-title { margin: 22px 0 34px; font-size: clamp(34px, 6.2vw, 58px); font-weight: 500; letter-spacing: .34em; text-indent: .34em;
  color: var(--lp-ink); line-height: 1.2; text-align: center; white-space: nowrap; }
.lp-title b { font-weight: 500; background: linear-gradient(100deg, var(--lp-ink) 30%, var(--p-primary) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── 毛玻璃卡片 / 输入框 ── */
.lp-glass { background: var(--lp-glass); border: 1px solid var(--lp-glass-border); box-shadow: var(--lp-glass-shadow);
  -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); }
.lp-box { width: 100%; border-radius: 22px; padding: 14px 14px 12px; transition: box-shadow .2s, border-color .2s; }
.lp-box.focus { border-color: color-mix(in srgb, var(--p-primary) 38%, var(--lp-glass-border));
  box-shadow: var(--lp-glass-shadow), 0 0 0 4px color-mix(in srgb, var(--p-primary) 10%, transparent); }
.lp-box.drag { border-style: dashed; border-color: var(--p-primary); }
.lp-box textarea { display: block; width: 100%; border: 0; outline: 0; resize: none; background: transparent; color: var(--lp-ink);
  font: inherit; font-size: 15.5px; line-height: 1.65; min-height: 68px; max-height: 240px; padding: 4px 6px; }
.lp-box textarea::placeholder { color: var(--p-faint); }
.lp-box-bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--lp-chip-border); background: transparent; color: var(--lp-ink-2); font: inherit; font-size: 13px;
  cursor: pointer; white-space: nowrap; user-select: none; transition: background .15s, color .15s, border-color .15s; }
.lp-chip:hover { color: var(--lp-ink); background: var(--lp-chip); }
.lp-chip svg { width: 15px; height: 15px; flex: none; }
.lp-chip.on { color: var(--p-primary); border-color: color-mix(in srgb, var(--p-primary) 45%, transparent); background: var(--p-primary-soft); }
.lp-box-hint { margin-left: auto; color: var(--p-faint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lp-send { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; background: var(--p-primary); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, transform .15s, opacity .15s;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--p-primary) 35%, transparent); }
.lp-send:hover { background: var(--p-primary-dark); }
.lp-send:active { transform: scale(.94); }
.lp-send:disabled { background: color-mix(in srgb, var(--p-faint) 55%, transparent); box-shadow: none; cursor: not-allowed; }
.lp-send svg { width: 18px; height: 18px; }
.lp-send.stop { background: var(--lp-ink); }
.lp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px 6px 8px; }
.lp-thumb { position: relative; width: 58px; height: 58px; border-radius: 12px; overflow: hidden; border: 1px solid var(--lp-chip-border); }
.lp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-thumb button { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; line-height: 18px; cursor: pointer; }
.lp-msg { margin-top: 12px; min-height: 22px; font-size: 13.5px; color: var(--lp-ink-2); text-align: center; }
.lp-msg a, .lp-msg button { color: var(--p-primary); font-weight: 600; background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }
.lp-msg.bad { color: var(--p-bad); }

/* ── 两个入口 ── */
.lp-entries { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.lp-entry { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 999px; font-size: 15.5px;
  font-weight: 500; color: var(--lp-ink); transition: transform .18s, border-color .18s, box-shadow .18s; }
.lp-entry:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--p-primary) 40%, var(--lp-glass-border)); }
.lp-entry svg { width: 19px; height: 19px; color: var(--p-primary); }
.lp-entry small { color: var(--p-faint); font-weight: 400; font-size: 12.5px; }
.lp-foot { position: relative; z-index: 10; text-align: center; color: var(--p-faint); font-size: 12px; padding: 0 16px 22px; }
.lp-foot a:hover { color: var(--lp-ink-2); }

@media (max-width: 720px) {
  .lp-top { padding: 0 14px; }
  .lp-top-links { display: none; }
  .lp-top-right { margin-left: auto; }
  .lp-top .p-balance .p-bal-label { display: none; }
  .lp-title { letter-spacing: .2em; text-indent: .2em; margin: 18px 0 26px; }
  .lp-hero { margin-top: 9vh; }
  .lp-entry { height: 46px; padding: 0 18px; font-size: 14.5px; }
  .lp-entry small { display: none; }
  .lp-box-hint { display: none; }
}

/* ── 登录 / 注册 ── */
.au-main { position: relative; z-index: 10; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); display: flex;
  align-items: flex-start; justify-content: center; padding: clamp(12px, 8vh, 90px) 16px 48px; }
.au-card { width: 100%; max-width: 420px; border-radius: 24px; padding: 34px 32px 26px; }
.au-head { text-align: center; margin-bottom: 22px; }
.au-head img { height: 44px; display: inline-block; }
.au-head h1 { margin: 14px 0 6px; font-size: 24px; font-weight: 650; letter-spacing: .02em; }
.au-head p { margin: 0; color: var(--lp-ink-2); font-size: 14px; }
.au-field { margin-bottom: 14px; }
.au-field label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px 2px; color: var(--lp-ink-2); }
.au-input { position: relative; }
.au-input svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--p-faint); pointer-events: none; }
.au-input input { width: 100%; height: 46px; border-radius: 13px; border: 1px solid var(--lp-chip-border); background: var(--lp-chip);
  color: var(--lp-ink); font: inherit; font-size: 15px; padding: 0 14px 0 40px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.au-input input:focus { border-color: color-mix(in srgb, var(--p-primary) 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p-primary) 12%, transparent); }
.au-input input::placeholder { color: var(--p-faint); }
.au-hint { font-size: 12px; color: var(--p-faint); margin: 5px 0 0 2px; }
.au-btn { width: 100%; height: 48px; margin-top: 8px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-size: 16px; font-weight: 650;
  letter-spacing: .08em; color: #fff; background: linear-gradient(100deg, var(--p-primary), #ff8a4c);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--p-primary) 30%, transparent); transition: filter .15s, transform .15s, opacity .15s; }
.au-btn:hover { filter: brightness(1.04); }
.au-btn:active { transform: translateY(1px); }
.au-btn:disabled { opacity: .7; cursor: default; }
.au-msg { display: none; margin-bottom: 14px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.6; }
.au-msg.error-msg { background: var(--p-bad-soft); color: var(--p-bad); }
.au-msg.info-msg { display: block; background: var(--p-primary-soft); color: var(--lp-ink); }
.au-msg[hidden] { display: none !important; }
.au-foot { margin-top: 18px; text-align: center; color: var(--lp-ink-2); font-size: 14px; }
.au-foot a { color: var(--p-primary); font-weight: 600; margin-left: 4px; }
.au-side-note { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--p-faint); }
.reg-success-card { text-align: center; line-height: 1.8; padding: 6px 2px; }
.reg-success-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.reg-success-hint { color: var(--lp-ink-2); font-size: 13px; margin-top: 6px; }
.reg-success-btn { display: inline-block; margin-top: 4px; padding: 10px 22px; border-radius: 12px; background: var(--p-primary); color: #fff !important; font-weight: 600; }
@media (max-width: 480px) { .au-card { padding: 26px 20px 22px; border-radius: 20px; } }
