/* ════════════════════════════════════════════════════════════
   Slate 登录页样式 · 移植自 Codex「视频自动化登录页设计_副本 03」（重设计版）
   由 scripts/scope_login_v2.py 自动生成（选择器统一加 #login-overlay 前缀）
   配套：static/login.js（左侧叙事 + 滚轮切屏 + 密码显隐）
   请勿手改本文件，改源 CSS 后重新运行脚本。
   ════════════════════════════════════════════════════════════ */

/* —— overlay 宿主：display 由 showLoginOverlay/hideLoginOverlay 切换 —— */
#login-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
}
#login-overlay .slate-login-page {
  flex: 1 1 auto;
  min-width: 0;
}
/* 登录错误提示（slate 的 doLogin 写入 #li_err） */
#login-overlay .login-error {
  margin: 14px 0 0;
  min-height: 18px;
  color: #e0335b;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

#login-overlay .slate-login-page {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(410px, 34vw, 640px);
  align-items: start;
  color: #09142f;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.95) 0 16%, transparent 36%),
    linear-gradient(135deg, #f9fbff 0%, #eef4ff 45%, #f8fbff 100%);
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  overflow: hidden;
  overscroll-behavior: contain;
}

#login-overlay .slate-login-page * {
  box-sizing: border-box;
}

#login-overlay .slate-login-page button,
#login-overlay .slate-login-page input {
  font: inherit;
}

#login-overlay .slate-showcase {
  position: relative;
  height: 100vh;
  overflow: clip;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), rgba(228, 237, 255, 0.62)),
    radial-gradient(circle at 77% 45%, rgba(139, 79, 255, 0.18), transparent 34%),
    radial-gradient(circle at 47% 74%, rgba(54, 228, 219, 0.15), transparent 30%);
}

#login-overlay .slate-showcase::before,
#login-overlay .slate-showcase::after {
  content: "";
  position: absolute;
  inset: auto -8% 7% 10%;
  height: 36%;
  border-radius: 999px;
  background:
    linear-gradient(100deg, transparent 8%, rgba(52, 106, 255, 0.22), rgba(189, 81, 255, 0.2), transparent 86%);
  filter: blur(14px);
  transform: rotate(-7deg);
  pointer-events: none;
}

#login-overlay .slate-showcase::after {
  inset: 10% -15% auto 44%;
  height: 24%;
  opacity: 0.7;
  transform: rotate(-18deg);
}

#login-overlay .ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  pointer-events: none;
}

#login-overlay .ambient-one {
  width: 340px;
  height: 340px;
  left: 44%;
  top: 8%;
  background: rgba(119, 83, 255, 0.18);
  animation: ambientDrift 15s ease-in-out infinite alternate;
}

#login-overlay .ambient-two {
  width: 260px;
  height: 260px;
  right: 12%;
  top: 52%;
  background: rgba(53, 221, 218, 0.16);
  animation: ambientDrift 18s ease-in-out 1.8s infinite alternate-reverse;
}

#login-overlay .top-brand {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  pointer-events: none;
}

#login-overlay .top-brand .slate-logo {
  margin: clamp(28px, 3.6vw, 58px) clamp(30px, 4vw, 68px);
}

#login-overlay .slate-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

#login-overlay .slate-logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  background:
    radial-gradient(circle at 68% 28%, #82f6ff 0 14%, transparent 22%),
    linear-gradient(145deg, #1c65ff 6%, #8b4cff 52%, #31d6e2 100%);
  box-shadow: 0 12px 28px rgba(55, 100, 255, 0.28);
}

#login-overlay .slate-logo-text {
  display: flex;
  align-items: center;
  gap: 26px;
}

#login-overlay .slate-logo-text strong {
  color: #071128;
  font-size: 30px;
  font-weight: 850;
}

#login-overlay .slate-logo-text span {
  position: relative;
  color: #44506f;
  font-size: 17px;
  font-weight: 500;
}

#login-overlay .slate-logo-text span::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 1px;
  bottom: 1px;
  width: 1px;
  background: #dce4f3;
}

#login-overlay .story-track {
  position: relative;
  height: 100%;
  z-index: 3;
}

#login-overlay .story-indicator {
  position: absolute;
  right: clamp(12px, 1.4vw, 24px);
  top: 50%;
  z-index: 30;
  display: grid;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow:
    0 14px 34px rgba(66, 88, 150, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  transform: translateY(-50%);
}

#login-overlay .story-indicator button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(92, 111, 151, 0.28);
  cursor: pointer;
  transition:
    width 220ms ease,
    height 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

#login-overlay .story-indicator button:hover {
  background: rgba(42, 102, 255, 0.5);
  transform: scale(1.12);
}

#login-overlay .story-indicator button.is-active {
  width: 9px;
  height: 34px;
  background: linear-gradient(180deg, #1267ff, #8d4df4);
  box-shadow: 0 8px 16px rgba(49, 102, 255, 0.28);
}

#login-overlay .story-indicator button:focus-visible {
  outline: 3px solid rgba(23, 104, 255, 0.24);
  outline-offset: 3px;
}

#login-overlay .story-slide {
  position: absolute;
  inset: 0;
  height: 100vh;
  min-height: 760px;
  padding: clamp(174px, 18vh, 205px) clamp(30px, 4vw, 68px) clamp(34px, 4vh, 56px);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 520ms ease,
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

#login-overlay .story-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#login-overlay .story-slide.is-before {
  transform: translateY(-34px) scale(0.985);
}

#login-overlay .story-slide::before,
#login-overlay .story-slide::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

#login-overlay .story-slide::before {
  width: 48%;
  height: 24%;
  right: -10%;
  top: 18%;
  background: linear-gradient(100deg, rgba(45, 105, 255, 0.14), rgba(161, 76, 255, 0.18), transparent);
  filter: blur(22px);
  transform: rotate(-15deg);
}

#login-overlay .story-slide::after {
  width: 70%;
  height: 20%;
  left: 16%;
  bottom: 8%;
  background: linear-gradient(100deg, transparent, rgba(62, 217, 219, 0.14), rgba(153, 87, 255, 0.16), transparent);
  filter: blur(18px);
  transform: rotate(-7deg);
}

#login-overlay .story-copy {
  position: relative;
  z-index: 5;
  width: min(620px, 52vw);
  transition:
    opacity 520ms ease,
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

#login-overlay .showcase-dashboard .story-copy,
#login-overlay .showcase-handoff .story-copy {
  width: min(760px, 70vw);
}

#login-overlay .showcase-hero .story-copy {
  width: min(760px, 58vw);
}

#login-overlay .showcase-workflow .story-copy {
  width: min(980px, 72vw);
}

#login-overlay .showcase-hero .slide-title {
  font-size: clamp(42px, 4.6vw, 68px);
  max-width: 760px;
}

#login-overlay .showcase-dashboard .slide-title,
#login-overlay .showcase-handoff .slide-title {
  font-size: clamp(42px, 4.7vw, 66px);
  max-width: 760px;
}

#login-overlay .slide-badge-row {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 20px;
}

#login-overlay .slide-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 20px;
  border-radius: 999px;
  color: #1267ff;
  font-size: 14px;
  font-weight: 750;
  isolation: isolate;
}

#login-overlay .slide-eyebrow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 2px solid transparent;
  border-radius: inherit;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #1267ff, #944cff) border-box;
  box-shadow: 0 12px 26px rgba(71, 101, 255, 0.1);
}

#login-overlay .slide-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 28px;
  font-size: clamp(46px, 5.6vw, 82px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

#login-overlay .gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #0869ff 0%, #8c4df5 92%);
  -webkit-background-clip: text;
  background-clip: text;
}

#login-overlay .story-copy > p {
  margin: 0;
  color: #3c4967;
  font-size: clamp(17px, 1.2vw, 21px);
  line-height: 1.7;
  white-space: pre-line;
}

#login-overlay .glass-card {
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(248, 251, 255, 0.64));
  box-shadow:
    0 18px 44px rgba(61, 88, 160, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
}

#login-overlay .slide-artwork {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  transition:
    opacity 560ms ease,
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

#login-overlay .story-slide.is-after .story-copy {
  opacity: 0;
  transform: translateY(26px);
}

#login-overlay .story-slide.is-before .story-copy {
  opacity: 0;
  transform: translateY(-26px);
}

#login-overlay .story-slide.is-after .slide-artwork {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
}

#login-overlay .story-slide.is-before .slide-artwork {
  opacity: 0;
  transform: translateY(-28px) scale(1.01);
}

#login-overlay .story-slide.is-active .story-copy,
#login-overlay .story-slide.is-active .slide-artwork {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#login-overlay .story-slide.is-after :where(.feature-grid, .agent-cards, .workflow-row, .metrics-strip, .dashboard-panel, .benefit-list) {
  opacity: 0;
  transform: translateY(60px) scale(0.985);
}

#login-overlay .story-slide.is-before :where(.feature-grid, .agent-cards, .workflow-row, .metrics-strip, .dashboard-panel, .benefit-list) {
  opacity: 0;
  transform: translateY(-54px) scale(1.012);
}

#login-overlay .story-slide.is-active :where(.feature-grid, .agent-cards, .workflow-row, .metrics-strip, .dashboard-panel, .benefit-list) {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#login-overlay .story-slide.is-after :where(.hero-orbit, .dashboard-tabs, .pipeline-map) {
  opacity: 0;
  transform: translateY(26px) scale(0.965);
}

#login-overlay .story-slide.is-before :where(.hero-orbit, .dashboard-tabs, .pipeline-map) {
  opacity: 0;
  transform: translateY(-18px) scale(1.035);
}

#login-overlay .story-slide.is-active :where(.hero-orbit, .dashboard-tabs, .pipeline-map) {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#login-overlay .showcase-dashboard .slide-artwork,
#login-overlay .showcase-handoff .slide-artwork {
  position: absolute;
  inset: 0;
  z-index: 4;
}

#login-overlay .showcase-dashboard .slide-artwork {
  transform: none;
}

#login-overlay .showcase-handoff .slide-artwork {
  transform: none;
}

#login-overlay .hero-orbit {
  position: absolute;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  right: 5%;
  top: 31%;
}

#login-overlay .planet-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.98) 0 7%, transparent 16%),
    radial-gradient(circle at 68% 72%, rgba(48, 226, 216, 0.82), transparent 24%),
    radial-gradient(circle at 38% 34%, rgba(255, 137, 243, 0.78), transparent 32%),
    linear-gradient(145deg, #f9efff 0%, #1e6cff 48%, #9a55f2 100%);
  box-shadow:
    0 0 80px rgba(117, 87, 255, 0.38),
    inset 24px 30px 64px rgba(255, 255, 255, 0.68);
  opacity: 0.9;
  animation: planetFloat 6.8s ease-in-out infinite;
}

#login-overlay .orbital-ring {
  position: absolute;
  inset: 18%;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(89, 133, 255, 0.3);
}

#login-overlay .ring-one {
  transform: rotate(-18deg) scaleX(1.34);
  animation: ringSwayOne 8s ease-in-out infinite alternate;
}

#login-overlay .ring-two {
  transform: rotate(18deg) scaleX(1.22);
  border-color: rgba(160, 236, 255, 0.48);
  animation: ringSwayTwo 9.5s ease-in-out 0.6s infinite alternate;
}

#login-overlay .ring-three {
  transform: rotate(42deg) scaleX(1.14);
  border-color: rgba(255, 194, 255, 0.44);
  animation: ringSwayThree 11s ease-in-out 1.1s infinite alternate;
}

#login-overlay .spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px #7df4ff;
}

#login-overlay .spark-a {
  left: 16%;
  top: 55%;
  animation: sparkPulse 3.8s ease-in-out infinite;
}

#login-overlay .spark-b {
  right: 14%;
  top: 34%;
  animation: sparkPulse 4.6s ease-in-out 0.8s infinite;
}

#login-overlay .spark-c {
  left: 55%;
  bottom: 26%;
  animation: sparkPulse 4.2s ease-in-out 1.5s infinite;
}

#login-overlay .feature-grid {
  position: absolute;
  left: clamp(30px, 4vw, 68px);
  right: clamp(30px, 4vw, 68px);
  bottom: clamp(26px, 4vh, 50px);
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 22px;
  transition:
    opacity 560ms ease,
    transform 740ms cubic-bezier(0.22, 1, 0.36, 1);
}

#login-overlay .showcase-hero .feature-grid {
  top: clamp(690px, 76vh, 760px);
  bottom: auto;
}

#login-overlay .mini-feature {
  min-height: 124px;
  padding: 16px 18px;
  border-radius: 18px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  text-align: center;
  animation: cardFloat 7.2s ease-in-out infinite;
}

#login-overlay .mini-feature:nth-child(2),
#login-overlay .agent-card:nth-child(2),
#login-overlay .workflow-item:nth-child(2) .workflow-card,
#login-overlay .metric:nth-child(2),
#login-overlay .benefit-card:nth-child(2) {
  animation-delay: 0.45s;
}

#login-overlay .mini-feature:nth-child(3),
#login-overlay .agent-card:nth-child(3),
#login-overlay .workflow-item:nth-child(3) .workflow-card,
#login-overlay .metric:nth-child(3),
#login-overlay .benefit-card:nth-child(3) {
  animation-delay: 0.9s;
}

#login-overlay .mini-feature:nth-child(4),
#login-overlay .agent-card:nth-child(4),
#login-overlay .workflow-item:nth-child(4) .workflow-card,
#login-overlay .metric:nth-child(4) {
  animation-delay: 1.35s;
}

#login-overlay .icon-bubble,
#login-overlay .round-icon,
#login-overlay .square-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #225dff;
  background: linear-gradient(145deg, rgba(232, 239, 255, 0.96), rgba(181, 164, 255, 0.62));
  border-radius: 16px;
  box-shadow: 0 12px 22px rgba(67, 98, 255, 0.2);
}

#login-overlay .mini-feature strong,
#login-overlay .agent-card strong,
#login-overlay .workflow-card strong,
#login-overlay .benefit-card strong {
  color: #09142f;
  font-size: 17px;
  font-weight: 850;
}

#login-overlay .mini-feature p,
#login-overlay .agent-card p,
#login-overlay .workflow-card p,
#login-overlay .benefit-card p {
  margin: 0;
  color: #62708d;
  font-size: 13px;
  line-height: 1.45;
}

#login-overlay .agent-stage {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: clamp(70px, 7vh, 88px);
}

#login-overlay .agent-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 20px;
  align-items: end;
  transition:
    opacity 560ms ease,
    transform 740ms cubic-bezier(0.22, 1, 0.36, 1);
}

#login-overlay .agent-card {
  --agent-rgb-one: 169, 100, 255;
  --agent-rgb-two: 90, 70, 238;
  --agent-rgb-three: 49, 214, 226;
  min-height: 340px;
  padding: 20px;
  border-radius: 24px;
  overflow: hidden;
  animation: cardFloat 7.8s ease-in-out infinite;
}

#login-overlay .agent-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

#login-overlay .agent-code {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(145deg, #7c53ff, #2e6aff);
}

#login-overlay .tone-cyan .agent-code,
#login-overlay .tone-cyan.round-icon {
  background: linear-gradient(145deg, #2bcddd, #22aaa4);
}

#login-overlay .tone-pink .agent-code,
#login-overlay .tone-pink.round-icon {
  background: linear-gradient(145deg, #ff6faf, #e93a72);
}

#login-overlay .tone-blue .agent-code,
#login-overlay .tone-blue.round-icon {
  background: linear-gradient(145deg, #59a7ff, #165df0);
}

#login-overlay .tone-violet .agent-code,
#login-overlay .tone-violet.round-icon {
  background: linear-gradient(145deg, #a964ff, #5a46ee);
}

#login-overlay .agent-card.tone-violet {
  --agent-rgb-one: 169, 100, 255;
  --agent-rgb-two: 90, 70, 238;
  --agent-rgb-three: 49, 214, 226;
}

#login-overlay .agent-card.tone-blue {
  --agent-rgb-one: 89, 167, 255;
  --agent-rgb-two: 22, 93, 240;
  --agent-rgb-three: 125, 244, 255;
}

#login-overlay .agent-card.tone-cyan {
  --agent-rgb-one: 43, 205, 221;
  --agent-rgb-two: 34, 170, 164;
  --agent-rgb-three: 94, 255, 225;
}

#login-overlay .agent-card.tone-pink {
  --agent-rgb-one: 255, 111, 175;
  --agent-rgb-two: 233, 58, 114;
  --agent-rgb-three: 255, 190, 226;
}

#login-overlay .agent-avatar {
  position: relative;
  height: 142px;
  margin: 18px 0 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 255, 255, 0.7) 0 9%, transparent 18%),
    radial-gradient(circle at 22% 82%, rgba(var(--agent-rgb-two), 0.16) 0 16%, transparent 34%),
    linear-gradient(145deg, rgba(var(--agent-rgb-one), 0.2), rgba(var(--agent-rgb-two), 0.13) 46%, rgba(255, 255, 255, 0.54));
}

#login-overlay .agent-avatar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.98) 0 13%, rgba(255, 255, 255, 0.62) 14% 24%, transparent 25%),
    radial-gradient(circle at 74% 78%, rgba(var(--agent-rgb-three), 0.96) 0 22%, transparent 48%),
    linear-gradient(145deg, rgb(var(--agent-rgb-one)) 0%, rgb(var(--agent-rgb-two)) 58%, rgb(var(--agent-rgb-three)) 100%);
  box-shadow:
    0 16px 22px rgba(var(--agent-rgb-two), 0.26),
    inset 0 -12px 20px rgba(18, 26, 57, 0.14),
    inset 14px 16px 24px rgba(255, 255, 255, 0.28);
  transform: translate(-50%, -50%);
  animation: agentOrbPulse 4.8s ease-in-out infinite;
}

#login-overlay .agent-avatar span,
#login-overlay .agent-avatar i {
  position: absolute;
  z-index: 2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 8px 18px rgba(69, 90, 160, 0.12);
}

#login-overlay .agent-avatar span {
  width: 76px;
  height: 42px;
  right: 16px;
  top: 24px;
}

#login-overlay .agent-avatar i {
  width: 92px;
  height: 32px;
  left: 18px;
  bottom: 22px;
}

#login-overlay .agent-card ul,
#login-overlay .workflow-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 14px 16px;
  color: #465576;
  list-style: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

#login-overlay .agent-card li,
#login-overlay .workflow-card li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
}

#login-overlay .agent-card li::before,
#login-overlay .workflow-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b55ff;
}

#login-overlay .workflow-scene {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: clamp(28px, 4vh, 54px);
}

#login-overlay .workflow-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 28px;
  align-items: center;
  transition:
    opacity 560ms ease,
    transform 740ms cubic-bezier(0.22, 1, 0.36, 1);
}

#login-overlay .workflow-item {
  position: relative;
}

#login-overlay .workflow-card {
  min-height: 276px;
  padding: 20px 18px;
  border-radius: 18px;
  display: grid;
  gap: 9px;
  justify-items: center;
  text-align: center;
  animation: cardFloat 8s ease-in-out infinite;
}

#login-overlay .workflow-number {
  justify-self: start;
  color: #8e66ff;
  font-size: 18px;
  font-weight: 800;
}

#login-overlay .round-icon {
  border-radius: 50%;
  color: #fff;
}

#login-overlay .flow-arrow {
  position: absolute;
  right: -28px;
  top: 42%;
  color: #6a75ff;
}

#login-overlay .metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding: 18px 24px;
  border-radius: 18px;
  transition:
    opacity 560ms ease,
    transform 740ms cubic-bezier(0.22, 1, 0.36, 1);
}

#login-overlay .metric {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  animation: softRise 7.4s ease-in-out infinite;
}

#login-overlay .metric > span {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #7a58ff;
  border-radius: 50%;
  background: rgba(236, 241, 255, 0.92);
}

#login-overlay .metric strong {
  display: inline-block;
  color: #115bff;
  font-size: 26px;
  font-weight: 900;
  margin-right: 8px;
}

#login-overlay .metric b {
  color: #111c3b;
  font-size: 15px;
}

#login-overlay .metric p {
  margin: 3px 0 0;
  color: #6a7690;
  font-size: 12px;
}

#login-overlay .dashboard-scene {
  position: absolute;
  inset: clamp(505px, 51.5vh, 555px) 4% auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}

#login-overlay .showcase-dashboard .dashboard-scene {
  position: absolute;
  inset: clamp(505px, 51.5vh, 555px) 4% auto;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
}

#login-overlay .dashboard-tabs {
  display: grid;
  align-content: start;
  gap: 22px;
  transition:
    opacity 560ms ease,
    transform 740ms cubic-bezier(0.22, 1, 0.36, 1);
}

#login-overlay .dashboard-tab {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
}

#login-overlay .dashboard-tab strong {
  color: #0d1733;
  font-size: 15px;
}

#login-overlay .dashboard-tab p {
  margin: 6px 0 0;
  color: #61708d;
  font-size: 12px;
}

#login-overlay .square-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(145deg, #6aa8ff, #1e62ff);
}

#login-overlay .tab-1 {
  background: linear-gradient(145deg, #b064ff, #7354f6);
}

#login-overlay .tab-2 {
  background: linear-gradient(145deg, #48d9d1, #13b59d);
}

#login-overlay .tab-3 {
  background: linear-gradient(145deg, #ffc35b, #ff8b2e);
}

#login-overlay .dashboard-panel {
  padding: 20px;
  border-radius: 22px;
  transition:
    opacity 560ms ease,
    transform 740ms cubic-bezier(0.22, 1, 0.36, 1);
}

#login-overlay .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

#login-overlay .panel-head button {
  border: 0;
  padding: 8px 12px;
  color: #1764ff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  background: #eaf1ff;
}

#login-overlay .stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

#login-overlay .stat-card,
#login-overlay .chart-card {
  min-width: 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(226, 233, 247, 0.9);
}

#login-overlay .stat-card span {
  color: #52607a;
  font-size: 12px;
}

#login-overlay .stat-card strong {
  display: block;
  margin-top: 5px;
  color: #0d1733;
  font-size: 20px;
  font-weight: 900;
}

#login-overlay .stat-card p {
  margin: 3px 0 0;
  color: #13b083;
  font-size: 11px;
}

#login-overlay .chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

#login-overlay .chart-card {
  min-height: 132px;
}

#login-overlay .chart-card > strong {
  display: block;
  margin-bottom: 10px;
  color: #0c1732;
  font-size: 13px;
}

#login-overlay .line-chart {
  position: relative;
  height: 92px;
  overflow: hidden;
}

#login-overlay .line-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#login-overlay .line-chart path {
  fill: none;
  stroke: #1768ff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: lineDraw 1.7s ease forwards;
}

#login-overlay .line-chart.purple path {
  stroke: #8b54ff;
}

#login-overlay .grid-line {
  display: block;
  height: 1px;
  margin-top: 27px;
  background: #e8edf8;
}

#login-overlay .donut-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

#login-overlay .donut {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: conic-gradient(#1768ff 0 34%, #8b54ff 34% 62%, #23c7bf 62% 78%, #f255a4 78% 100%);
  box-shadow: inset 0 0 0 22px #fff;
  animation: donutBreathe 5.8s ease-in-out infinite;
}

#login-overlay .donut-row.colorful .donut {
  background: conic-gradient(#1768ff 0 22%, #16c878 22% 48%, #ffd34e 48% 62%, #ef4fa4 62% 82%, #8855ff 82% 100%);
}

#login-overlay .donut-row p {
  margin: 5px 0;
  color: #53627e;
  font-size: 12px;
}

#login-overlay .load-row {
  display: grid;
  grid-template-columns: 34px 1fr 36px;
  gap: 10px;
  align-items: center;
  margin: 9px 0;
  color: #53627e;
  font-size: 12px;
}

#login-overlay .load-row span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #2f6bff, #8b54ff);
  font-weight: 800;
}

#login-overlay .load-row i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf8;
}

#login-overlay .load-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6bff, #8b54ff);
}

#login-overlay .load-row em,
#login-overlay .task-list em {
  font-style: normal;
}

#login-overlay .task-list p {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
  color: #53627e;
  font-size: 12px;
}

#login-overlay .task-list b {
  padding: 4px 7px;
  color: #11a77e;
  border-radius: 999px;
  background: #dffaf3;
  font-size: 11px;
}

#login-overlay .handoff-scene {
  position: absolute;
  inset: clamp(500px, 52vh, 540px) 5% auto;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
}

#login-overlay .showcase-handoff .handoff-scene {
  position: absolute;
  inset: clamp(500px, 52vh, 540px) 5% auto;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

#login-overlay .benefit-list {
  display: grid;
  min-height: 456px;
  gap: 24px;
  align-content: center;
  transition:
    opacity 560ms ease,
    transform 740ms cubic-bezier(0.22, 1, 0.36, 1);
}

#login-overlay .benefit-card {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  animation: cardFloat 7.4s ease-in-out infinite;
}

#login-overlay .benefit-card .round-icon {
  flex: 0 0 56px;
  color: #fff;
  background: linear-gradient(145deg, #256bff, #8a4df3);
}

#login-overlay .pipeline-map {
  position: relative;
  min-height: 500px;
  transition:
    opacity 560ms ease,
    transform 740ms cubic-bezier(0.22, 1, 0.36, 1);
}

#login-overlay .pipeline-map::before {
  content: "";
  position: absolute;
  inset: 18% 12% 16% 8%;
  border: 14px solid rgba(129, 101, 255, 0.22);
  border-left-color: rgba(38, 198, 211, 0.24);
  border-bottom-color: rgba(240, 80, 159, 0.22);
  border-radius: 48% 52% 45% 55%;
  transform: rotate(-10deg);
}

#login-overlay .map-node {
  position: absolute;
  z-index: 2;
  width: 210px;
  min-height: 94px;
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(75, 95, 158, 0.16);
  animation: mapNodeFloat 7.6s ease-in-out infinite;
}

#login-overlay .map-node:nth-child(2) {
  animation-delay: 0.45s;
}

#login-overlay .map-node:nth-child(3) {
  animation-delay: 0.9s;
}

#login-overlay .map-node:nth-child(4) {
  animation-delay: 1.35s;
}

#login-overlay .map-node:nth-child(5) {
  animation-delay: 1.8s;
}

#login-overlay .map-node .round-icon {
  grid-row: span 2;
}

#login-overlay .map-node strong {
  font-size: 15px;
}

#login-overlay .map-node p {
  margin: 4px 0 0;
  color: #62708d;
  font-size: 12px;
}

#login-overlay .node-0 {
  left: 8%;
  top: 3%;
}

#login-overlay .node-1 {
  left: 43%;
  top: 21%;
}

#login-overlay .node-2 {
  left: 18%;
  top: 48%;
}

#login-overlay .node-3 {
  left: 42%;
  bottom: 7%;
}

#login-overlay .node-4 {
  right: 5%;
  bottom: 20%;
}

#login-overlay .map-board {
  position: absolute;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(223, 233, 255, 0.4)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(81, 111, 185, 0.08) 22px 23px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 46px rgba(76, 94, 158, 0.12);
}

#login-overlay .board-one {
  right: 8%;
  top: 4%;
  width: 310px;
  height: 180px;
  transform: rotate(8deg);
}

#login-overlay .board-two {
  right: 20%;
  bottom: 4%;
  width: 250px;
  height: 220px;
  transform: rotate(13deg);
}

#login-overlay .board-three {
  left: 0;
  bottom: 22%;
  width: 230px;
  height: 150px;
  transform: rotate(-9deg);
}

#login-overlay .login-panel {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px clamp(30px, 4vw, 76px);
  background:
    radial-gradient(circle at 40% 18%, rgba(233, 240, 255, 0.88), transparent 32%),
    linear-gradient(180deg, #fbfdff, #f7fbff);
  box-shadow: -1px 0 0 rgba(211, 222, 242, 0.72);
}

#login-overlay .login-panel-inner {
  width: min(100%, 440px);
  margin: auto;
  text-align: center;
}

#login-overlay .login-panel .slate-logo {
  justify-content: center;
}

#login-overlay .slate-logo-compact .slate-logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 41px;
}

#login-overlay .slate-logo-compact .slate-logo-text strong {
  font-size: 44px;
}

#login-overlay .login-product {
  display: block;
  margin: 14px 0 38px;
  color: transparent;
  background: linear-gradient(90deg, #0869ff, #8b4df5);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 24px;
  font-weight: 850;
}

#login-overlay .welcome-copy h2 {
  margin: 0 0 10px;
  color: #071128;
  font-size: 22px;
  font-weight: 850;
}

#login-overlay .welcome-copy p {
  margin: 0 0 26px;
  color: #69758f;
  font-size: 16px;
}

#login-overlay .login-card {
  padding: 38px 32px 30px;
  border: 1px solid rgba(230, 235, 247, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(66, 85, 139, 0.13);
  backdrop-filter: blur(18px);
  animation: panelBreath 8s ease-in-out infinite;
}

#login-overlay .field {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 0 18px;
  color: #8b96b0;
  border: 1px solid #dce5f4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

#login-overlay .field:focus-within {
  border-color: #6f91ff;
  box-shadow: 0 0 0 4px rgba(47, 104, 255, 0.1);
}

#login-overlay .field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #15213d;
  background: transparent;
}

#login-overlay .field input::placeholder {
  color: #94a0b8;
}

#login-overlay .icon-button,
#login-overlay .link-button,
#login-overlay .agreement button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

#login-overlay .icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  color: #7a86a0;
  border-radius: 8px;
}

#login-overlay .icon-button:hover {
  color: #1768ff;
  background: #eef4ff;
}

#login-overlay .form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 26px;
  gap: 18px;
  color: #5d6882;
  font-size: 14px;
}

#login-overlay .remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

#login-overlay .remember input {
  width: 18px;
  height: 18px;
  accent-color: #1768ff;
}

#login-overlay .link-button,
#login-overlay .agreement button {
  color: #1768ff;
  font-weight: 750;
}

#login-overlay .primary-login {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  /* 中文字体（苹方）无 900 字重，用描边强制加粗笔画 */
  -webkit-text-stroke: 0.6px currentColor;
  cursor: pointer;
}

#login-overlay .primary-login {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #1268ff, #9349ef);
  background-size: 160% 100%;
  box-shadow: 0 18px 28px rgba(53, 103, 255, 0.25);
  transition:
    background-position 260ms ease,
    box-shadow 260ms ease,
    transform 260ms ease;
  animation: buttonSheen 5.6s ease-in-out infinite;
}

#login-overlay .primary-login:hover {
  background-position: 100% 0;
  box-shadow: 0 22px 34px rgba(53, 103, 255, 0.32);
  transform: translateY(-1px);
}

#login-overlay .agreement {
  margin: 24px 0 0;
  color: #6d7891;
  font-size: 13px;
  line-height: 1.7;
}

#login-overlay .copyright {
  width: min(100%, 440px);
  margin: 28px auto 0;
  color: #79859d;
  text-align: center;
  font-size: 13px;
}

#login-overlay .primary-login:focus-visible,
#login-overlay .link-button:focus-visible,
#login-overlay .agreement button:focus-visible,
#login-overlay .icon-button:focus-visible {
  outline: 3px solid rgba(23, 104, 255, 0.24);
  outline-offset: 3px;
}

@keyframes slateFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slateFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes storyCopyDrift {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0.78;
    transform: translateY(-34px) scale(0.99);
  }
}

@keyframes storyArtworkDrift {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0.82;
    transform: translateY(-22px) scale(1.01);
  }
}

@keyframes foregroundDepthDrift {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0.9;
    transform: translateY(-42px) scale(1.012);
  }
}

@keyframes backgroundDepthDrift {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0.86;
    transform: translateY(24px) scale(1.035);
  }
}

@keyframes heroForegroundDepthDrift {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0.82;
    transform: translateY(-22px) scale(1.01);
  }
}

@keyframes ambientDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(18px, -20px, 0) scale(1.08);
  }
}

@keyframes planetFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1);
  }
  50% {
    transform: translate3d(0, -12px, 0) scale(1.025);
    filter: saturate(1.08);
  }
}

@keyframes ringSwayOne {
  0% {
    transform: rotate(-18deg) scaleX(1.34);
  }
  100% {
    transform: rotate(-10deg) scaleX(1.38);
  }
}

@keyframes ringSwayTwo {
  0% {
    transform: rotate(18deg) scaleX(1.22);
  }
  100% {
    transform: rotate(27deg) scaleX(1.26);
  }
}

@keyframes ringSwayThree {
  0% {
    transform: rotate(42deg) scaleX(1.14);
  }
  100% {
    transform: rotate(34deg) scaleX(1.18);
  }
}

@keyframes sparkPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes softRise {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes agentOrbPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: saturate(1);
  }
  50% {
    transform: translate(-50%, -56%) scale(1.08);
    filter: saturate(1.16);
  }
}

@keyframes lineDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes donutBreathe {
  0%,
  100% {
    transform: scale(1);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.045);
    filter: saturate(1.12);
  }
}

@keyframes mapNodeFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -9px, 0);
  }
}

@keyframes panelBreath {
  0%,
  100% {
    box-shadow: 0 24px 70px rgba(66, 85, 139, 0.13);
  }
  50% {
    box-shadow: 0 30px 82px rgba(66, 85, 139, 0.18);
  }
}

@keyframes buttonSheen {
  0%,
  100% {
    background-position: 0% 0;
  }
  50% {
    background-position: 100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #login-overlay .slate-login-page *,
#login-overlay .slate-login-page *::before,
#login-overlay .slate-login-page *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  #login-overlay .line-chart path {
    stroke-dashoffset: 0;
  }
}

@media (min-width: 2560px) and (min-height: 1440px) {
  #login-overlay .slate-login-page {
    grid-template-columns: minmax(0, 1fr) clamp(560px, 26vw, 720px);
  }

  #login-overlay .top-brand .slate-logo {
    margin: clamp(64px, 4vw, 96px) clamp(72px, 4.6vw, 120px);
  }

  #login-overlay .slate-logo-mark {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 40px;
  }

  #login-overlay .slate-logo-text strong {
    font-size: 40px;
  }

  #login-overlay .slate-logo-text span {
    font-size: 22px;
  }

  #login-overlay .story-indicator {
    right: clamp(48px, 2.2vw, 88px);
    gap: 16px;
    padding: 14px 12px;
  }

  #login-overlay .story-indicator button {
    width: 12px;
    height: 12px;
  }

  #login-overlay .story-indicator button.is-active {
    width: 12px;
    height: 46px;
  }

  #login-overlay .story-slide {
    padding: clamp(230px, 14vh, 300px) clamp(72px, 4.6vw, 120px) clamp(76px, 5vh, 120px);
  }

  #login-overlay .story-copy,
#login-overlay .showcase-dashboard .story-copy,
#login-overlay .showcase-handoff .story-copy,
#login-overlay .showcase-hero .story-copy,
#login-overlay .showcase-workflow .story-copy {
    width: min(980px, 58vw);
  }

  #login-overlay .slide-badge-row {
    min-height: 48px;
    margin-bottom: 28px;
  }

  #login-overlay .slide-eyebrow {
    min-height: 46px;
    padding: 0 26px;
    font-size: 18px;
  }

  #login-overlay .slide-title,
#login-overlay .showcase-hero .slide-title,
#login-overlay .showcase-dashboard .slide-title,
#login-overlay .showcase-handoff .slide-title {
    max-width: 1060px;
    font-size: clamp(76px, 4.2vw, 116px);
  }

  #login-overlay .story-copy > p {
    max-width: 920px;
    font-size: clamp(24px, 1.05vw, 32px);
  }

  #login-overlay .hero-orbit {
    width: min(31vw, 920px);
    right: 9%;
    top: 30%;
  }

  #login-overlay .showcase-hero .feature-grid {
    top: auto;
    bottom: clamp(92px, 6vh, 150px);
  }

  #login-overlay .feature-grid,
#login-overlay .agent-cards,
#login-overlay .workflow-row {
    gap: 32px;
  }

  #login-overlay .mini-feature {
    min-height: 170px;
    padding: 24px 26px;
  }

  #login-overlay .icon-bubble,
#login-overlay .round-icon,
#login-overlay .square-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  #login-overlay .mini-feature strong,
#login-overlay .agent-card strong,
#login-overlay .workflow-card strong,
#login-overlay .benefit-card strong {
    font-size: 22px;
  }

  #login-overlay .mini-feature p,
#login-overlay .agent-card p,
#login-overlay .workflow-card p,
#login-overlay .benefit-card p,
#login-overlay .agent-card li,
#login-overlay .workflow-card li {
    font-size: 17px;
  }

  #login-overlay .agent-stage {
    left: 5.5%;
    right: 5.5%;
    bottom: clamp(110px, 6vh, 150px);
  }

  #login-overlay .agent-card {
    min-height: 460px;
    padding: 28px;
  }

  #login-overlay .agent-code {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  #login-overlay .agent-avatar {
    height: 190px;
    margin: 26px 0 20px;
  }

  #login-overlay .workflow-scene {
    left: 5%;
    right: 5%;
    bottom: clamp(100px, 5.5vh, 140px);
  }

  #login-overlay .workflow-card {
    min-height: 360px;
    padding: 28px 24px;
  }

  #login-overlay .workflow-number {
    font-size: 24px;
  }

  #login-overlay .metrics-strip {
    gap: 24px;
    margin-top: 48px;
    padding: 26px 32px;
  }

  #login-overlay .metric > span {
    flex-basis: 68px;
    width: 68px;
    height: 68px;
  }

  #login-overlay .metric strong {
    font-size: 34px;
  }

  #login-overlay .metric b {
    font-size: 19px;
  }

  #login-overlay .metric p {
    font-size: 15px;
  }

  #login-overlay .dashboard-scene,
#login-overlay .showcase-dashboard .dashboard-scene {
    inset: clamp(680px, 37vh, 840px) 5.5% auto;
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    gap: 32px;
  }

  #login-overlay .dashboard-tabs {
    gap: 28px;
  }

  #login-overlay .dashboard-tab {
    min-height: 122px;
    padding: 24px;
  }

  #login-overlay .dashboard-tab strong {
    font-size: 20px;
  }

  #login-overlay .dashboard-tab p,
#login-overlay .stat-card span,
#login-overlay .donut-row p,
#login-overlay .load-row,
#login-overlay .task-list p {
    font-size: 16px;
  }

  #login-overlay .dashboard-panel {
    padding: 28px;
  }

  #login-overlay .panel-head {
    margin-bottom: 20px;
  }

  #login-overlay .panel-head strong {
    font-size: 22px;
  }

  #login-overlay .panel-head button {
    padding: 11px 16px;
    font-size: 15px;
  }

  #login-overlay .stat-grid,
#login-overlay .chart-grid {
    gap: 18px;
  }

  #login-overlay .stat-card,
#login-overlay .chart-card {
    padding: 20px;
  }

  #login-overlay .stat-card strong {
    font-size: 30px;
  }

  #login-overlay .stat-card p {
    font-size: 15px;
  }

  #login-overlay .chart-card {
    min-height: 188px;
  }

  #login-overlay .chart-card > strong {
    font-size: 18px;
  }

  #login-overlay .line-chart {
    height: 132px;
  }

  #login-overlay .donut {
    width: 118px;
    height: 118px;
    box-shadow: inset 0 0 0 30px #fff;
  }

  #login-overlay .handoff-scene,
#login-overlay .showcase-handoff .handoff-scene {
    inset: clamp(680px, 37vh, 840px) 5.5% auto;
    grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
    gap: 48px;
  }

  #login-overlay .benefit-list {
    min-height: 620px;
    gap: 32px;
  }

  #login-overlay .benefit-card {
    min-height: 152px;
    padding: 28px;
  }

  #login-overlay .pipeline-map {
    min-height: 660px;
  }

  #login-overlay .map-node {
    width: 280px;
    min-height: 124px;
    grid-template-columns: 72px 1fr;
    padding: 24px;
  }

  #login-overlay .map-node strong {
    font-size: 20px;
  }

  #login-overlay .map-node p {
    font-size: 16px;
  }

  #login-overlay .board-one {
    width: 410px;
    height: 240px;
  }

  #login-overlay .board-two {
    width: 330px;
    height: 290px;
  }

  #login-overlay .board-three {
    width: 300px;
    height: 200px;
  }

  #login-overlay .login-panel {
    padding: clamp(56px, 4vh, 92px) clamp(56px, 3.4vw, 108px);
  }

  #login-overlay .login-panel-inner,
#login-overlay .copyright {
    width: min(100%, 540px);
  }

  #login-overlay .slate-logo-compact .slate-logo-mark {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    font-size: 54px;
  }

  #login-overlay .slate-logo-compact .slate-logo-text strong {
    font-size: 58px;
  }

  #login-overlay .login-product {
    margin: 18px 0 48px;
    font-size: 30px;
  }

  #login-overlay .welcome-copy h2 {
    font-size: 30px;
  }

  #login-overlay .welcome-copy p {
    margin-bottom: 34px;
    font-size: 20px;
  }

  #login-overlay .login-card {
    padding: 46px 40px 36px;
  }

  #login-overlay .field {
    min-height: 76px;
    padding: 0 22px;
  }

  #login-overlay .field input,
#login-overlay .form-row,
#login-overlay .primary-login {
    font-size: 18px;
  }

  #login-overlay .icon-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  #login-overlay .primary-login {
    min-height: 68px;
  }

  #login-overlay .agreement,
#login-overlay .copyright {
    font-size: 16px;
  }
}

@media (min-width: 1281px) and (max-height: 1120px) {
  #login-overlay .agent-stage {
    bottom: 28px;
  }

  #login-overlay .agent-cards {
    gap: 14px;
  }

  #login-overlay .agent-card {
    min-height: 300px;
    padding: 16px;
    border-radius: 20px;
  }

  #login-overlay .agent-avatar {
    height: 118px;
    margin: 12px 0;
  }

  #login-overlay .agent-card ul,
#login-overlay .workflow-card ul {
    gap: 7px;
    padding: 10px 12px;
  }

  #login-overlay .workflow-scene {
    bottom: 28px;
  }

  #login-overlay .workflow-row {
    gap: 18px;
  }

  #login-overlay .workflow-card {
    min-height: 220px;
    padding: 14px 12px;
    gap: 7px;
  }

  #login-overlay .workflow-number {
    font-size: 16px;
  }

  #login-overlay .metrics-strip {
    gap: 12px;
    margin-top: 14px;
    padding: 12px 18px;
  }

  #login-overlay .metric {
    gap: 10px;
  }

  #login-overlay .metric > span {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  #login-overlay .metric strong {
    font-size: 22px;
  }

  #login-overlay .metric b {
    font-size: 13px;
  }

  #login-overlay .metric p {
    font-size: 11px;
  }

  #login-overlay .dashboard-scene,
#login-overlay .showcase-dashboard .dashboard-scene {
    inset: calc(100vh - 488px) 4% auto;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 12px;
    transform: scale(0.86);
    transform-origin: left top;
  }

  #login-overlay .dashboard-tabs {
    gap: 10px;
  }

  #login-overlay .dashboard-tab {
    min-height: 66px;
    padding: 10px 12px;
  }

  #login-overlay .dashboard-tab p {
    display: none;
  }

  #login-overlay .dashboard-panel {
    padding: 14px;
  }

  #login-overlay .stat-grid,
#login-overlay .chart-grid {
    gap: 8px;
  }

  #login-overlay .stat-grid {
    margin-bottom: 10px;
  }

  #login-overlay .stat-card,
#login-overlay .chart-card {
    padding: 12px;
  }

  #login-overlay .chart-card {
    min-height: 104px;
  }

  #login-overlay .chart-card > strong {
    margin-bottom: 8px;
  }

  #login-overlay .line-chart {
    height: 62px;
  }

  #login-overlay .donut {
    width: 60px;
    height: 60px;
    box-shadow: inset 0 0 0 16px #fff;
  }

  #login-overlay .task-list p {
    margin-top: 8px;
  }

  #login-overlay .handoff-scene,
#login-overlay .showcase-handoff .handoff-scene {
    inset: calc(100vh - 420px) 4% auto;
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
    gap: 22px;
  }

  #login-overlay .benefit-list {
    min-height: 340px;
    gap: 12px;
  }

  #login-overlay .benefit-card {
    min-height: 92px;
    padding: 14px;
  }

  #login-overlay .benefit-card .round-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  #login-overlay .pipeline-map {
    min-height: 390px;
  }

  #login-overlay .pipeline-map::before {
    inset: 12% 10% 12% 8%;
    border-width: 10px;
  }

  #login-overlay .map-node {
    width: 178px;
    min-height: 74px;
    grid-template-columns: 42px 1fr;
    column-gap: 10px;
    padding: 12px;
  }

  #login-overlay .map-node .round-icon {
    width: 42px;
    height: 42px;
  }

  #login-overlay .map-node strong {
    font-size: 13px;
  }

  #login-overlay .map-node p {
    font-size: 11px;
  }

  #login-overlay .node-0 {
    left: 8%;
    top: 0;
  }

  #login-overlay .node-1 {
    left: 42%;
    top: 17%;
  }

  #login-overlay .node-2 {
    left: 18%;
    top: 45%;
  }

  #login-overlay .node-3 {
    left: 42%;
    bottom: 3%;
  }

  #login-overlay .node-4 {
    right: 4%;
    bottom: 18%;
  }

  #login-overlay .board-one {
    width: 240px;
    height: 132px;
  }

  #login-overlay .board-two {
    width: 190px;
    height: 170px;
  }

  #login-overlay .board-three {
    width: 180px;
    height: 112px;
  }
}

@media (max-width: 1280px) {
  #login-overlay .slate-login-page {
    grid-template-columns: minmax(0, 1fr) 410px;
  }

  #login-overlay .slide-title {
    font-size: clamp(40px, 5vw, 64px);
  }

  #login-overlay .agent-card {
    min-height: 310px;
    padding: 16px;
  }

  #login-overlay .showcase-handoff .handoff-scene {
    transform: none;
  }

  #login-overlay .dashboard-scene,
#login-overlay .showcase-dashboard .dashboard-scene {
    inset: clamp(470px, 48vh, 505px) 4% auto;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #login-overlay .dashboard-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  #login-overlay .dashboard-tab {
    min-height: 72px;
    padding: 12px;
  }

  #login-overlay .dashboard-tab p {
    display: none;
  }

  #login-overlay .dashboard-panel {
    padding: 16px;
  }

  #login-overlay .chart-card {
    min-height: 112px;
  }

  #login-overlay .line-chart {
    height: 72px;
  }

  #login-overlay .donut {
    width: 68px;
    height: 68px;
    box-shadow: inset 0 0 0 18px #fff;
  }
}

@media (max-width: 1100px) {
  #login-overlay .slate-login-page {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  #login-overlay .login-panel {
    position: relative;
    order: -1;
    min-height: auto;
    height: auto;
    padding: 34px 20px 28px;
  }

  #login-overlay .slate-showcase {
    min-height: auto;
  }

  #login-overlay .story-slide {
    min-height: auto;
    padding: 120px 20px 72px;
  }

  #login-overlay .story-copy {
    width: min(100%, 720px);
  }

  #login-overlay .hero-orbit {
    right: 3%;
    top: 28%;
    width: min(68vw, 560px);
  }

  #login-overlay .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    bottom: 86px;
  }

  #login-overlay .agent-stage,
#login-overlay .workflow-scene,
#login-overlay .dashboard-scene,
#login-overlay .handoff-scene {
    position: relative;
    inset: auto;
    margin-top: 36px;
  }

  #login-overlay .slide-artwork {
    position: relative;
    inset: auto;
  }

  #login-overlay .story-indicator {
    right: 16px;
  }

  #login-overlay .showcase-hero .slide-artwork {
    position: absolute;
    inset: 0;
  }

  #login-overlay .agent-cards,
#login-overlay .workflow-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #login-overlay .flow-arrow {
    display: none;
  }

  #login-overlay .dashboard-scene,
#login-overlay .handoff-scene,
#login-overlay .showcase-dashboard .dashboard-scene,
#login-overlay .showcase-handoff .handoff-scene {
    grid-template-columns: 1fr;
  }

  #login-overlay .benefit-list {
    min-height: auto;
    align-content: start;
  }

  #login-overlay .dashboard-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  #login-overlay .stat-grid,
#login-overlay .chart-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #login-overlay .pipeline-map {
    min-height: 520px;
  }
}

@media (max-width: 720px) {
  #login-overlay .slate-login-page {
    background: #f7fbff;
  }

  #login-overlay .login-panel {
    padding: 28px 14px 24px;
  }

  #login-overlay .login-card {
    padding: 24px 18px 22px;
    border-radius: 16px;
  }

  #login-overlay .slate-logo-compact .slate-logo-mark {
    width: 46px;
    height: 46px;
    font-size: 32px;
  }

  #login-overlay .slate-logo-compact .slate-logo-text strong {
    font-size: 34px;
  }

  #login-overlay .login-product {
    margin-bottom: 26px;
    font-size: 20px;
  }

  #login-overlay .slate-showcase {
    min-height: auto;
    overflow: clip;
  }

  #login-overlay .top-brand {
    padding: 24px 20px 12px;
  }

  #login-overlay .top-brand .slate-logo-text {
    gap: 12px;
  }

  #login-overlay .top-brand .slate-logo-text span {
    display: none;
  }

  #login-overlay .slide-badge-row {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
  }

  #login-overlay .slide-eyebrow {
    min-height: 34px;
    padding: 0 16px;
    font-size: 14px;
  }

  #login-overlay .slide-title {
    font-size: clamp(34px, 11vw, 48px);
  }

  #login-overlay .story-copy > p {
    font-size: 16px;
  }

  #login-overlay .showcase-hero .slide-artwork {
    position: relative;
    min-height: 540px;
  }

  #login-overlay .hero-orbit {
    top: 18px;
    left: 50%;
    right: auto;
    width: min(88vw, 420px);
    transform: translateX(-50%);
  }

  #login-overlay .feature-grid {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #login-overlay .story-indicator {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 18px;
    display: flex;
    transform: translateX(-50%);
  }

  #login-overlay .story-indicator button.is-active {
    width: 34px;
    height: 9px;
  }

  #login-overlay .mini-feature {
    min-height: 108px;
  }

  #login-overlay .agent-cards,
#login-overlay .workflow-row,
#login-overlay .metrics-strip,
#login-overlay .dashboard-tabs,
#login-overlay .stat-grid,
#login-overlay .chart-grid {
    grid-template-columns: 1fr;
  }

  #login-overlay .agent-card,
#login-overlay .workflow-card {
    min-height: auto;
  }

  #login-overlay .metrics-strip {
    padding: 16px;
  }

  #login-overlay .dashboard-panel {
    padding: 14px;
  }

  #login-overlay .pipeline-map {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  #login-overlay .pipeline-map::before,
#login-overlay .map-board {
    display: none;
  }

  #login-overlay .map-node {
    position: relative;
    inset: auto;
    width: 100%;
  }

  #login-overlay .form-row {
    align-items: flex-start;
  }
}


/* ════════════════════════════════════════════════════════════
   接入修复（slate 侧追加，放最后覆盖）
   2026-06-03 整合 Codex 重设计版：新版 CSS 已自带动画 / eyebrow / 标题 /
   avatar / 完整响应式（max-height:1120、2560×1440 等档），故旧 FOOTER 的
   标题统一、dashboard top:580、eyebrow 胶囊、各种动画 全部移除。
   只保留 slate 运行环境真正必需的两块。
   ════════════════════════════════════════════════════════════ */

/* ① showcase 右缘竖向 5 分屏指示点：由 login.js 注入，Codex 源 CSS 里没有，须在此补样式 */
#login-overlay .story-dots {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 14px 9px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(74, 86, 138, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
#login-overlay .story-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c2c9da;
  cursor: pointer;
  transition: height 0.32s cubic-bezier(0.22, 1, 0.36, 1), background 0.32s ease;
}
#login-overlay .story-dot:hover {
  background: #a3acc6;
}
#login-overlay .story-dot.is-active {
  height: 30px;
  background: linear-gradient(180deg, #7b6cff, #5a2fe0);
}

/* ② 类名冲突兜底：slate 主程序自带 .agent-avatar（侧栏头像 42×42，width:42/display:flex），
   作用域下「新版未显式设的属性」会漏用 slate 的值。新版 .agent-avatar 只设了 height，
   没设 width/display → 补兜底，防卡片头像被压成 42px。 */
#login-overlay .agent-avatar {
  width: auto;
  display: block;
}

/* ③ 第3屏统计条第4项「持续优化 / AI 学习与迭代」是文字型（非 90%+/7 这类短数字），
   在等分 1fr 列里放不下，b「AI 学习与迭代」被挤换行。大屏下把列宽改成
   minmax(max-content, 1fr) 让内容长的列自己撑开（4 项内容总宽 < 容器，1080 放得下），
   并给 strong/b 加 nowrap 防拆词。限 min-width:1101 不干扰窄屏（max-width:1100 已转流式）。 */
@media (min-width: 1101px) {
  #login-overlay .metrics-strip {
    grid-template-columns: repeat(4, minmax(max-content, 1fr));
  }
  #login-overlay .metric strong,
  #login-overlay .metric b {
    white-space: nowrap;
  }
}
