.login-body {
  min-height: 100dvh; overflow-x: hidden; position: relative;
  background: radial-gradient(1200px 700px at 78% 30%, #e6f3ff 0%, rgba(230, 243, 255, 0) 60%),
              radial-gradient(900px 600px at 10% 90%, #e5fbf6 0%, rgba(229, 251, 246, 0) 60%),
              linear-gradient(180deg, #f6f9fd 0%, #eef3fa 100%);
  display: flex; flex-direction: column;
}
#globe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.aurora { position: fixed; inset: -20%; z-index: 0; pointer-events: none; filter: blur(70px); opacity: .75; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: multiply; }
.aurora .a1 { width: 46vw; height: 46vw; left: 48%; top: 6%; background: radial-gradient(circle, rgba(56, 189, 248, .55), transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.aurora .a2 { width: 38vw; height: 38vw; left: 68%; top: 42%; background: radial-gradient(circle, rgba(45, 212, 191, .5), transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.aurora .a3 { width: 34vw; height: 34vw; left: 14%; top: 56%; background: radial-gradient(circle, rgba(251, 191, 36, .35), transparent 65%); animation: drift3 20s ease-in-out infinite alternate; }
.aurora .a4 { width: 30vw; height: 30vw; left: 22%; top: 4%; background: radial-gradient(circle, rgba(96, 165, 250, .42), transparent 65%); animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-8vw, 6vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-6vw, -8vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(8vw, -6vh) scale(1.1); } }
.mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.lg-top, .lg-main, .lg-foot { position: relative; z-index: 2; }
.lg-top { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(18px, 4vw, 56px) 0; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; box-shadow: 0 10px 24px -10px rgba(14, 140, 220, .7); }
.brand-mark img { width: 38px; height: 38px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.brand-tag { font-size: 12.5px; color: var(--muted); padding-left: 11px; border-left: 1px solid var(--line-2); }
.lg-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(10px); box-shadow: var(--shadow-1); }

.lg-main {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, 430px); gap: clamp(28px, 5vw, 80px);
  align-items: center; padding: 28px clamp(18px, 4vw, 56px) 20px; max-width: 1360px; width: 100%; margin: 0 auto;
}

/* 左侧展示 */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: #1e40af; background: rgba(255, 255, 255, .72); border: 1px solid rgba(37, 99, 235, .14); padding: 6px 13px 6px 8px; border-radius: 999px; backdrop-filter: blur(8px); animation: fadeUp .7s var(--ease) both; }
.eyebrow-ic { width: 18px; height: 18px; border-radius: 6px; background: var(--grad); position: relative; }
.eyebrow-ic::after { content: ""; position: absolute; inset: 5px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
.hero-title { margin: 20px 0 14px; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.12; letter-spacing: -.01em; font-weight: 800; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .l1 { animation: rise .9s .1s var(--ease) both; }
.hero-title .l2 { animation: rise .9s .25s var(--ease) both; }
.hero-title em { font-style: normal; background-size: 220% 100%; animation: sweep 6s ease-in-out infinite alternate; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes sweep { from { background-position: 0 0; } to { background-position: 100% 0; } }
.hero-sub { max-width: 600px; margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.8; animation: fadeUp .8s .35s var(--ease) both; }

.demo {
  max-width: 640px; border-radius: 18px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-3); backdrop-filter: blur(16px) saturate(1.3); overflow: hidden; animation: fadeUp .9s .45s var(--ease) both;
}
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(15, 23, 42, .06); font-size: 12px; color: var(--muted); }
.demo-dots { display: flex; gap: 5px; }
.demo-dots i { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.demo-dots i:nth-child(1) { background: #fca5a5; } .demo-dots i:nth-child(2) { background: #fcd34d; } .demo-dots i:nth-child(3) { background: #6ee7b7; }
.demo-title { font-weight: 600; color: var(--ink-2); }
.demo-agent { margin-left: auto; font-weight: 700; color: #0f766e; background: rgba(20, 184, 166, .12); padding: 2px 9px; border-radius: 999px; transition: all .3s; }
.demo-body { padding: 14px 16px 6px; height: 232px; overflow: hidden; position: relative; }
.demo-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, rgba(255, 255, 255, .95)); }
.demo-user { margin-left: auto; width: fit-content; max-width: 86%; padding: 8px 13px; border-radius: 14px 14px 4px 14px; background: var(--grad); color: #fff; font-size: 13px; box-shadow: 0 8px 18px -10px rgba(37, 99, 235, .8); min-height: 36px; }
.demo-user:empty { opacity: 0; }
.demo-think { display: flex; align-items: center; gap: 9px; margin: 12px 0 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); opacity: 0; transition: opacity .3s; }
.demo-think.on { opacity: 1; }
.orb { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 0deg, #2563eb, #0ea5e9, #14b8a6, #f59e0b, #2563eb); animation: spin 1.4s linear infinite; position: relative; }
.orb::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.think-text { background: linear-gradient(90deg, #23324a 30%, #0ea5e9 50%, #23324a 70%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmerText 1.8s linear infinite; }
@keyframes shimmerText { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.think-dots { display: inline-flex; gap: 3px; }
.think-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--sky); animation: bounce 1.2s infinite; }
.think-dots i:nth-child(2) { animation-delay: .15s; } .think-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.demo-out { margin: 0; font-family: var(--font); font-size: 12.5px; line-height: 1.75; color: var(--ink-2); white-space: pre-wrap; background: #f7fafd; border: 1px solid #e6edf5; border-radius: 12px; padding: 10px 12px; min-height: 40px; opacity: 0; transition: opacity .3s; }
.demo-out.on { opacity: 1; }
.demo-out .k { color: #0f766e; font-weight: 700; }
.demo-out .caret { display: inline-block; width: 7px; height: 14px; background: var(--sky); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(2) infinite; border-radius: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.demo-steps { display: flex; gap: 6px; padding: 10px 14px 12px; border-top: 1px solid rgba(15, 23, 42, .06); }
.demo-steps .step { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--faint); padding: 6px 0; border-radius: 9px; background: rgba(241, 245, 249, .8); transition: all .35s var(--ease); }
.demo-steps .step.on { color: #fff; background: var(--grad); box-shadow: 0 8px 16px -10px rgba(37, 99, 235, .9); }

.agent-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 640px; margin-top: 14px; animation: fadeUp .9s .6s var(--ease) both; }
.mini-agent { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .95); backdrop-filter: blur(10px); box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s; }
.mini-agent:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.mini-agent b { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; font-family: var(--serif); font-size: 19px; color: #fff; }
.mini-agent strong { display: block; font-size: 12.5px; line-height: 1.35; }
.mini-agent span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.t-teal b { background: linear-gradient(135deg, #0d9488, #34d399); }
.t-coral b { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.t-ink b { background: linear-gradient(135deg, #1e293b, #475569); box-shadow: inset -6px -6px 0 -3px rgba(214, 58, 31, .9); }

/* 右侧登录卡 */
.auth { display: flex; justify-content: center; }
.auth-card {
  position: relative; width: 100%; max-width: 430px; padding: 30px 30px 22px; border-radius: 26px;
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 40px 90px -30px rgba(14, 60, 130, .38), 0 0 0 1px rgba(37, 99, 235, .05);
  backdrop-filter: blur(22px) saturate(1.4); animation: cardIn 1s .2s var(--ease) both; overflow: hidden;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.auth-glow { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1.5px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0deg, rgba(14, 165, 233, .9) 40deg, rgba(20, 184, 166, .8) 80deg, transparent 130deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rotateAng 6s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rotateAng { to { --ang: 360deg; } }
.auth-head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: .01em; }
.auth-head p { margin: 4px 0 18px; color: var(--muted); font-size: 13.5px; }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #eef3f9; border-radius: 13px; margin-bottom: 18px; }
.auth-tabs .tab { position: relative; z-index: 1; height: 36px; border: 0; background: transparent; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; border-radius: 10px; transition: color .25s; }
.auth-tabs .tab.on { color: var(--ink); }
.auth-tabs .tab[disabled] { opacity: .45; cursor: not-allowed; }
.tab-ink { position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: 36px; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .18); transition: transform .35s var(--ease); }
.auth-tabs.reg .tab-ink { transform: translateX(100%); }
.auth-notice { margin: -6px 0 14px; padding: 9px 12px; border-radius: 11px; background: #fff7ed; color: #9a3412; font-size: 12.5px; border: 1px solid #fed7aa; }

.fl { position: relative; margin-bottom: 12px; }
.fl-input { width: 100%; height: 52px; padding: 20px 44px 6px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .9); outline: none; font-size: 14.5px; transition: border-color .2s, box-shadow .2s, background .2s; }
.fl-input.mono { font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.fl label { position: absolute; left: 15px; top: 16px; color: var(--faint); font-size: 14px; pointer-events: none; transition: all .2s var(--ease); }
.fl-input:focus, .fl-input:not(:placeholder-shown) { background: #fff; }
.fl-input:focus { border-color: var(--sky); box-shadow: var(--ring); }
.fl-input:focus + label, .fl-input:not(:placeholder-shown) + label { top: 7px; font-size: 11.5px; color: var(--blue); font-weight: 600; }
.fl-eye { position: absolute; right: 8px; top: 9px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--faint); cursor: pointer; border-radius: 9px; display: grid; place-items: center; }
.fl-eye:hover { color: var(--ink); background: #f1f5f9; }
.reg-only { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease), opacity .3s; opacity: 0; }
.reg-inner { overflow: hidden; min-height: 0; }
.auth-card.reg .reg-only { grid-template-rows: 1fr; opacity: 1; }
.auth-err { min-height: 20px; font-size: 12.5px; color: var(--red); margin: 2px 2px 8px; }
.auth-submit { margin-top: 2px; }
.sub-arrow { width: 18px; height: 18px; display: inline-grid; place-items: center; transition: transform .25s var(--ease); }
.auth-submit:hover .sub-arrow { transform: translateX(4px); }
.auth-submit.loading .sub-text::after { content: "中…"; }
.auth-foot { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--faint); }
.auth-perks { display: flex; justify-content: space-between; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 11.5px; color: var(--muted); }
.auth-perks span { display: inline-flex; align-items: center; gap: 5px; }
.auth-perks i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.auth-card.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.lg-foot { text-align: center; color: var(--faint); font-size: 12px; padding: 10px 16px 18px; }

@media (max-width: 980px) {
  .lg-main { grid-template-columns: 1fr; gap: 22px; padding-top: 14px; }
  .auth { order: -1; }
  .showcase { text-align: left; }
  .hero-title { margin-top: 14px; font-size: clamp(30px, 8vw, 44px); }
  .demo-body { height: 190px; }
  .brand-tag { display: none; }
}
@media (max-width: 560px) {
  .lg-top { padding: 14px 16px 0; }
  .lg-status { display: none; }
  .lg-main { padding: 10px 16px 14px; }
  .auth-card { padding: 22px 18px 18px; border-radius: 22px; }
  .agent-row { grid-template-columns: 1fr; }
  .hero-sub { font-size: 14px; }
  .auth-perks { flex-wrap: wrap; justify-content: center; }
}

/* 顶栏右侧：在线状态 + 日夜切换 */
.lg-top-right { display: flex; align-items: center; gap: 10px; }
/* 登录页智能体：最多 4 个，名称与介绍取自后台 */
.agent-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-width: 720px; }
.showcase { min-width: 0; }
.mini-agent > div { min-width: 0; }
.mini-agent span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-ic { width: 36px; height: 36px; flex: none; border-radius: 11px; object-fit: cover; box-shadow: var(--shadow-1); }
.mini-agent.t-blue b, .mini-agent.t-amber b, .mini-agent.t-red b { background: linear-gradient(135deg, var(--tg1, #2563eb), var(--tg2, #0ea5e9)); }
.mini-agent.t-blue { --tg1: #2563eb; --tg2: #0ea5e9; }
.mini-agent.t-amber { --tg1: #b45309; --tg2: #f59e0b; }
.mini-agent.t-red { --tg1: #b91c1c; --tg2: #ea580c; }
@media (max-width: 640px) { .lg-top-right .lg-status { display: none; } }
@media (max-width: 560px) { .agent-row { grid-template-columns: 1fr; } }
