/*
 * 登录页扩展模板皮肤（aurora / noir / paper / grid / neon / ink）
 *
 * 原站只有 5 套模板（split / immersive / cinematic / showcase / orbit），
 * 且模板预览卡全部共用同一张紫粉色背景，看起来像一个模板的五种排版。
 * 这里在不改 DOM、不改交互的前提下，用纯 CSS 给 6 套新模板做完整的视觉皮肤。
 *
 * 作用域（两个选择器写在同一个 :is() 里，后台预览与线上效果完全一致）：
 *   · 线上登录页  html[data-login-template="aurora"] .auth-hero-shell
 *   · 后台预览卡  [data-testid="login-template-option-aurora"] .auth-hero-shell
 *
 * 基础布局（由 JS 补丁映射）：aurora / ink → immersive，noir / neon → cinematic，
 * grid → showcase，paper → split。
 *
 * ── v2 排版重构（本次优化）──────────────────────────────────────────
 * 原站三个基础版式都是「为全屏大图配的排版」，没有大图时只剩大片空白：
 *   · .auth-immersive-hero 带 translateY(-135px)：它和底部卖点的总高
 *     恰好等于容器高度，这个负位移正好在中间挖出 135px 的空洞；
 *   · .auth-cinematic-story 带 margin-top:407px + translateY(90px)：
 *     整块文案贴在屏幕底部，上方 70% 一片黑；
 *   · .auth-template-nav 带 translateY(-48.4px)：品牌字被顶进公告条里看不见。
 * 这里把位移全部归零、把文案块改成垂直居中，并重做各模板的构图与层级。
 */

/* ==================================================================
   0. 共用：衬线 / 等宽字族
   ================================================================== */
:is(html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell,
  html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell,
  html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) {
  --lt-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, "Times New Roman", serif;
  --lt-mono: ui-monospace, SFMono-Regular, Menlo, "Cascadia Mono", monospace;
  --lt-sans: "Inter", -apple-system, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

/* 顶部导航：原站把它上移 48.4px 去「压住」大图边缘，但本站顶部有公告条，
   结果是品牌字被公告条整条盖掉。这里让导航回到正常位置。 */
:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell,
  html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell,
  html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell,
  html[data-login-template="neon"] .auth-hero-shell,
  [data-testid="login-template-option-neon"] .auth-hero-shell) .auth-template-nav {
  transform: none !important;
}

/* ==================================================================
   aurora：极光玻璃 —— 深空青绿，细字重标题，磨砂玻璃卡片
   ================================================================== */
:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) {
  background:
    radial-gradient(120% 80% at 18% 6%, rgba(32, 128, 168, 0.5) 0%, rgba(8, 20, 34, 0) 58%),
    radial-gradient(90% 70% at 86% 14%, rgba(64, 200, 170, 0.3) 0%, rgba(8, 20, 34, 0) 55%),
    radial-gradient(80% 60% at 60% 100%, rgba(96, 76, 210, 0.26) 0%, rgba(4, 10, 18, 0) 60%),
    linear-gradient(180deg, #061019 0%, #050c14 55%, #03070c 100%) !important;
  color: #eaf5fb !important;
}

:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-hero-bg,
:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-hero-overlay {
  display: none !important;
}

/* 极光丝带：两条倾斜的模糊光带，压在内容之下 */
:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell)::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(104deg, transparent 32%, rgba(126, 240, 208, 0.4) 46%, rgba(90, 190, 255, 0.24) 56%, transparent 68%),
    linear-gradient(96deg, transparent 50%, rgba(170, 150, 255, 0.28) 61%, transparent 74%);
  filter: blur(46px) saturate(1.15);
}

/* 标题区：取消 -135px 的负位移，让它和底部卖点连成一块居中的构图。
   高度原本被锁死 640px，会把卖点卡推到屏幕边缘，这里改成由内容撑开。 */
/* 让「标题块 + 卖点区」作为一整组在舞台上居中：
   原站把 hero 设成 flex:1 撑满整个舞台，内容居中后下方必然留出一条大缝。 */
:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell,
  html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-template-stage-immersive {
  justify-content: center !important;
  padding-top: 4.6rem !important;
}

:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell,
  html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-template-stage-immersive .auth-template-nav {
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  margin-block: 0 !important;
}

:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell,
  html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-hero {
  flex: 0 0 auto !important;
}

:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-immersive-hero {
  transform: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(1rem, 3vh, 2rem) 1.1rem clamp(0.6rem, 2vh, 1.4rem) !important;
}

:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-hero-wordmark {
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  color: #dff4f2 !important;
}

:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-immersive-hero h1 {
  /* 原来 106px，比正文大 7 倍，压得下方内容没有立足点 */
  font-size: clamp(2.3rem, 4.4vw, 4.05rem) !important;
  line-height: 1.2 !important;
  font-weight: 300 !important;
  letter-spacing: 0.055em !important;
  color: #f4fbff !important;
  text-shadow: 0 0 70px rgba(120, 220, 235, 0.26);
}

:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-immersive-hero p {
  margin-top: 1.45rem !important;
  max-width: 33rem !important;
  font-size: clamp(0.85rem, 1.02vw, 0.94rem) !important;
  line-height: 1.95 !important;
  color: rgba(219, 238, 246, 0.72) !important;
  letter-spacing: 0.035em;
}

:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-immersive-actions {
  margin-top: 1.9rem !important;
  gap: 12px !important;
}

:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-immersive-hero button,
:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-immersive-secondary button {
  min-width: 9.6rem;
  height: 3rem;
  border-radius: 999px !important;
  border: 1px solid rgba(190, 240, 235, 0.34) !important;
  background: linear-gradient(180deg, rgba(190, 240, 235, 0.17), rgba(120, 200, 210, 0.07)) !important;
  color: #f2ffff !important;
  font-size: 0.9em !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 14px 40px rgba(20, 140, 150, 0.26) !important;
  backdrop-filter: blur(10px) saturate(1.1);
}

/* 主按钮：整颗提亮成极光色，和玻璃次要按钮拉开层级 */
:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-immersive-hero button:first-child {
  background: linear-gradient(180deg, rgba(214, 250, 255, 0.97), rgba(122, 226, 236, 0.82)) !important;
  color: #052e38 !important;
  border-color: rgba(214, 250, 255, 0.9) !important;
  font-weight: 600 !important;
  box-shadow: 0 10px 34px rgba(60, 200, 220, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-immersive-hero button:last-child {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(205, 240, 244, 0.2) !important;
  color: rgba(234, 250, 252, 0.84) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* 底部卖点：原来是 11px 三列小字贴着屏幕底边，像三块孤儿。
   改成三张磨砂玻璃卡，和标题区连成一个整体。 */
:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-immersive-proof {
  align-self: center !important;
  width: min(1060px, 100%) !important;
  margin: clamp(2rem, 5.5vh, 3.4rem) auto 0 !important;
  padding: 0 !important;
  gap: 12px !important;
  border-top: 0 !important;
  align-items: stretch !important;
}

:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-immersive-proof > span {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 6.6rem;
  padding: 18px 20px 19px;
  border: 1px solid rgba(180, 235, 240, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(188, 240, 245, 0.08), rgba(188, 240, 245, 0.022));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 18px 40px -28px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  text-align: left !important;
  font-size: 13px !important;
  line-height: 1.78 !important;
  letter-spacing: 0.012em !important;
  color: rgba(216, 240, 248, 0.82) !important;
  opacity: 1 !important;
  text-shadow: none;
}

/* 每张卡左上角一道极光短线 */
:is(html[data-login-template="aurora"] .auth-hero-shell,
  [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-immersive-proof > span::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 16px;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(150, 245, 228, 0.95), rgba(150, 245, 228, 0));
}

/* ==================================================================
   ink：水墨 —— 宣纸底 + 墨晕 + 朱印
   ================================================================== */
:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) {
  background:
    /* 墨晕只留在四角、且大幅降低浓度：原来 0.86 的浓墨正好压在大标题左侧 */
    radial-gradient(34% 30% at -2% -4%, rgba(26, 36, 34, 0.3) 0%, rgba(248, 244, 234, 0) 72%),
    radial-gradient(30% 26% at 102% 8%, rgba(30, 40, 38, 0.14) 0%, rgba(248, 244, 234, 0) 70%),
    radial-gradient(40% 34% at 96% 104%, rgba(34, 42, 40, 0.2) 0%, rgba(248, 244, 234, 0) 70%),
    radial-gradient(46% 40% at 6% 100%, rgba(32, 42, 40, 0.12) 0%, rgba(248, 244, 234, 0) 72%),
    linear-gradient(180deg, #f8f4ea 0%, #efe9dc 100%) !important;
  color: #1e211f !important;
}

:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-hero-bg,
:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-hero-overlay {
  display: none !important;
}

/* 宣纸纤维 */
:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    repeating-linear-gradient(90deg, rgba(90, 80, 60, 0.05) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(0deg, rgba(90, 80, 60, 0.035) 0 1px, transparent 1px 11px);
  mask-image: radial-gradient(120% 100% at 50% 50%, #000 45%, transparent 95%);
}

/* 朱印：一方带字的钤印，落在右下角 */
:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell)::after {
  content: "墨";
  position: absolute;
  right: clamp(2.4rem, 4.4vw, 4.2rem);
  bottom: clamp(2rem, 4.4vh, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  z-index: 2;
  pointer-events: none;
  font-family: var(--lt-serif);
  font-size: 1.5rem;
  line-height: 1;
  color: #fbf7ee;
  background: #a5342a;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px rgba(248, 244, 234, 0.9), 0 6px 18px rgba(165, 52, 42, 0.26);
  transform: rotate(-3deg);
  opacity: 0.94;
}

:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-hero-body {
  z-index: 10;
}

:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) :is(.auth-brand-panel, .auth-hero-brand, .auth-template-nav) {
  color: #1e211f !important;
}

/* 原站品牌字是 background-clip:text 的白色渐变，浅底上会彻底消失 */
:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-hero-wordmark {
  font-family: var(--lt-serif) !important;
  letter-spacing: 0.24em !important;
  color: #1e211f !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #1e211f !important;
}

/* 右上角「登录」原站是白色 72%，浅底上几乎看不见 */
:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-template-nav-action {
  color: #4a4438 !important;
  border-color: rgba(58, 48, 30, 0.22) !important;
}

/* 正文区：同样去掉 -135px 位移，让标题、说明、按钮、落款合成一块 */
:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-hero {
  transform: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(1rem, 3vh, 2rem) 1.1rem clamp(0.5rem, 1.8vh, 1.2rem) !important;
}

:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-hero h1 {
  font-family: var(--lt-serif) !important;
  font-size: clamp(2.15rem, 4vw, 3.7rem) !important;
  font-weight: 500 !important;
  line-height: 1.28 !important;
  letter-spacing: 0.16em !important;
  color: #141715 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-hero p {
  margin-top: 1.2rem !important;
  max-width: 31rem !important;
  font-family: var(--lt-serif) !important;
  font-size: clamp(0.86rem, 1.02vw, 0.95rem) !important;
  color: #4b4740 !important;
  letter-spacing: 0.06em;
  line-height: 2.05 !important;
}

:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-actions {
  margin-top: 2rem !important;
  gap: 14px !important;
}

:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) :is(.auth-immersive-hero, .auth-immersive-secondary, .auth-immersive-proof) :is(h1, h2, p, span, div, small) {
  color: inherit;
}

:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-hero button,
:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-secondary button {
  min-width: 8.4rem;
  height: 2.85rem;
  border-radius: 3px !important;
  border: 1px solid #24211c !important;
  background: transparent !important;
  color: #1b1a16 !important;
  font-family: var(--lt-serif) !important;
  font-size: 0.88em !important;
  letter-spacing: 0.24em !important;
  text-indent: 0.24em;
  box-shadow: none !important;
}

:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-hero button:first-child {
  background: #1b1a16 !important;
  color: #f8f4ea !important;
}

/* 落款：三条卖点改成一行「题跋」，用细竖线分隔，不再是三段等宽小字 */
:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-proof {
  align-self: center !important;
  width: min(1000px, 100%) !important;
  margin: clamp(1.6rem, 4.2vh, 2.8rem) auto 0 !important;
  padding: clamp(1rem, 2.4vh, 1.5rem) 0 0 !important;
  gap: 0 !important;
  justify-content: center !important;
  border-top: 1px solid rgba(60, 58, 50, 0.16) !important;
}

:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-proof,
:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-proof * {
  opacity: 1 !important;
  color: #5c574c !important;
  font-family: var(--lt-serif) !important;
  font-size: 12.5px !important;
  line-height: 1.85 !important;
  letter-spacing: 0.05em !important;
}

:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-proof > span {
  padding: 0 clamp(0.9rem, 1.8vw, 1.6rem);
}

:is(html[data-login-template="ink"] .auth-hero-shell,
  [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-proof > span + span {
  border-left: 1px solid rgba(60, 58, 50, 0.18);
}

/* 预览卡尺寸小，把朱印收进安全区 */
[data-testid^="login-template-option-ink"] .auth-hero-shell::after {
  right: 0.9rem;
  bottom: 0.8rem;
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.8rem;
  box-shadow: inset 0 0 0 1px rgba(248, 244, 234, 0.9);
}

/* ==================================================================
   noir：暗夜胶片 —— 近黑 + 颗粒 + 宋体细标题 + 方角按钮
   ================================================================== */
:is(html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell) {
  background:
    radial-gradient(58% 52% at 26% 76%, rgba(104, 88, 64, 0.36) 0%, rgba(10, 10, 11, 0) 62%),
    radial-gradient(70% 60% at 92% 8%, rgba(52, 52, 58, 0.55) 0%, rgba(6, 6, 7, 0) 60%),
    linear-gradient(205deg, rgba(255, 206, 154, 0.14) 0%, rgba(255, 206, 154, 0.04) 16%, rgba(6, 6, 7, 0) 34%),
    linear-gradient(180deg, #0c0c0e 0%, #08080a 55%, #050506 100%) !important;
  color: #ece7db !important;
}

:is(html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell) .auth-hero-bg,
:is(html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell) .auth-hero-overlay {
  display: none !important;
}

/* 胶片颗粒 + 暗角（颗粒用 SVG 噪声，不额外请求文件） */
:is(html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.75;
  background-image:
    radial-gradient(115% 85% at 50% 55%, transparent 46%, rgba(0, 0, 0, 0.66) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-blend-mode: normal, overlay;
}

/* 片框：一圈极细的暖白线，把「留白」变成画面的一部分 */
:is(html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell)::after {
  content: "";
  position: absolute;
  inset: clamp(0.9rem, 1.9vw, 1.6rem);
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(236, 231, 219, 0.1);
  border-radius: 1px;
}

/* 文案块：原站贴底（margin-top 407px + translateY 90px），
   这里改成整块垂直居中，上半屏的「夜」才像构图，不像漏排。 */
:is(html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell) .auth-cinematic-story {
  position: absolute !important;
  inset-inline: calc(-1 * 1.65rem) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: auto !important;
  margin: 0 !important;
  padding: clamp(1.8rem, 3.6vh, 2.6rem) clamp(2.6rem, 4.8vw, 4.8rem) 0 !important;
  justify-content: center !important;
  /* 一道极淡的地平线，把上方切成「夜空」 */
  border-top: 1px solid rgba(236, 231, 219, 0.11) !important;
}

:is(html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell) .auth-cinematic-story h1 {
  font-family: var(--lt-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2.25rem, 4.3vw, 4rem) !important;
  line-height: 1.18 !important;
  letter-spacing: 0.1em !important;
  color: #f7f2e6 !important;
  text-shadow: 0 2px 50px rgba(0, 0, 0, 0.75);
}

:is(html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell) .auth-cinematic-story p {
  font-family: var(--lt-serif) !important;
  font-size: 13.5px !important;
  width: auto !important;
  max-width: 33rem !important;
  margin-top: 1.15rem !important;
  color: rgba(236, 231, 219, 0.68) !important;
  letter-spacing: 0.055em;
  line-height: 2 !important;
}

/* 按钮原来比标题多缩进 53px，对不齐正文 */
:is(html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell) .auth-cinematic-actions {
  margin: 1.9rem 0 0 !important;
  padding-left: 0 !important;
  gap: 12px !important;
}

:is(html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell) .auth-cinematic-actions button {
  min-width: 8.6rem;
  height: 2.85rem;
  border-radius: 2px !important;
  border: 1px solid rgba(236, 231, 219, 0.38) !important;
  background: transparent !important;
  color: #f7f2e6 !important;
  font-family: var(--lt-serif) !important;
  font-size: 0.82em !important;
  letter-spacing: 0.22em !important;
  text-indent: 0.22em;
  padding-inline: 1.2em !important;
  box-shadow: none !important;
}

:is(html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell) .auth-cinematic-actions button:first-child {
  background: #ece5d5 !important;
  color: #101012 !important;
  border-color: #ece5d5 !important;
  font-weight: 600 !important;
}

:is(html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell) .auth-hero-wordmark {
  font-family: var(--lt-serif) !important;
  letter-spacing: 0.18em !important;
  color: rgba(236, 231, 219, 0.82) !important;
}

/* 右缘竖排小字：给右半屏一个落点，避免「只有左边有东西」 */
:is(html[data-login-template="noir"] .auth-hero-shell,
  [data-testid="login-template-option-noir"] .auth-hero-shell) .auth-template-stage-cinematic::after {
  content: "NOIR  ·  EDITION  I  ·  MMXXV";
  position: absolute;
  right: clamp(1.4rem, 2.6vw, 2.4rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  writing-mode: vertical-rl;
  font-family: var(--lt-mono);
  font-size: 9.5px;
  letter-spacing: 0.42em;
  color: rgba(236, 231, 219, 0.26);
}

/* ==================================================================
   neon：霓虹赛博 —— 洋红 / 青双光晕 + 扫描线 + 透视网格地面
   ================================================================== */
:is(html[data-login-template="neon"] .auth-hero-shell,
  [data-testid="login-template-option-neon"] .auth-hero-shell) {
  background:
    radial-gradient(50% 40% at 6% 86%, rgba(255, 47, 179, 0.22) 0%, rgba(5, 3, 9, 0) 62%),
    radial-gradient(55% 45% at 92% 12%, rgba(33, 230, 255, 0.18) 0%, rgba(5, 3, 9, 0) 60%),
    linear-gradient(180deg, #080510 0%, #040309 100%) !important;
  color: #f2ecff !important;
}

:is(html[data-login-template="neon"] .auth-hero-shell,
  [data-testid="login-template-option-neon"] .auth-hero-shell) .auth-hero-bg,
:is(html[data-login-template="neon"] .auth-hero-shell,
  [data-testid="login-template-option-neon"] .auth-hero-shell) .auth-hero-overlay {
  display: none !important;
}

/* 扫描线 + 一道细地平线辉光 */
:is(html[data-login-template="neon"] .auth-hero-shell,
  [data-testid="login-template-option-neon"] .auth-hero-shell)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(46% 2.4% at 50% 57%, rgba(255, 47, 179, 0.52) 0%, rgba(255, 47, 179, 0) 72%),
    linear-gradient(to right, transparent 4%, rgba(33, 230, 255, 0.42) 50%, transparent 96%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 4px);
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 100% 100%, 100% 1px, 100% 4px;
  background-position: 0 0, 0 57%, 0 0;
}

/* 透视网格地面：把下方空出来的地方变成「赛博空间」的一部分 */
:is(html[data-login-template="neon"] .auth-hero-shell,
  [data-testid="login-template-option-neon"] .auth-hero-shell)::after {
  content: "";
  position: absolute;
  left: -32%;
  right: -32%;
  bottom: -2%;
  height: 34%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 47, 179, 0.44) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 230, 255, 0.3) 1px, transparent 1px);
  background-size: 100% 62px, 88px 100%;
  transform: perspective(300px) rotateX(66deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 4%, rgba(0, 0, 0, 0.3) 52%, transparent 86%);
}

/* 文案块：与 noir 同样从「贴底」改成垂直居中 */
:is(html[data-login-template="neon"] .auth-hero-shell,
  [data-testid="login-template-option-neon"] .auth-hero-shell) .auth-cinematic-story {
  position: absolute !important;
  inset-inline: calc(-1 * 1.65rem) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: auto !important;
  margin: 0 !important;
  padding: clamp(1.8rem, 3.6vh, 2.6rem) clamp(2.6rem, 4.8vw, 4.8rem) 0 !important;
  justify-content: center !important;
  border-top: 1px solid rgba(33, 230, 255, 0.28) !important;
  box-shadow: 0 -1px 26px rgba(33, 230, 255, 0.16) !important;
}

:is(html[data-login-template="neon"] .auth-hero-shell,
  [data-testid="login-template-option-neon"] .auth-hero-shell) .auth-cinematic-story h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.9rem) !important;
  line-height: 1.16 !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  color: #ffffff !important;
  text-shadow: 0 0 18px rgba(255, 47, 179, 0.6), 0 0 60px rgba(255, 47, 179, 0.32), 0 0 130px rgba(33, 230, 255, 0.22);
}

:is(html[data-login-template="neon"] .auth-hero-shell,
  [data-testid="login-template-option-neon"] .auth-hero-shell) .auth-cinematic-story p {
  font-size: 13px !important;
  width: auto !important;
  max-width: 33rem !important;
  margin-top: 1.15rem !important;
  line-height: 1.9 !important;
  letter-spacing: 0.03em !important;
  color: rgba(226, 218, 255, 0.7) !important;
}

:is(html[data-login-template="neon"] .auth-hero-shell,
  [data-testid="login-template-option-neon"] .auth-hero-shell) .auth-cinematic-actions {
  margin: 1.9rem 0 0 !important;
  padding-left: 0 !important;
  gap: 12px !important;
}

:is(html[data-login-template="neon"] .auth-hero-shell,
  [data-testid="login-template-option-neon"] .auth-hero-shell) .auth-cinematic-actions button {
  min-width: 9rem;
  height: 2.85rem;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 47, 179, 0.65) !important;
  background: rgba(255, 47, 179, 0.07) !important;
  color: #ffd9f1 !important;
  font-family: var(--lt-mono) !important;
  font-size: 0.78em !important;
  letter-spacing: 0.14em !important;
  box-shadow: 0 0 22px rgba(255, 47, 179, 0.3), inset 0 0 18px rgba(255, 47, 179, 0.1) !important;
}

:is(html[data-login-template="neon"] .auth-hero-shell,
  [data-testid="login-template-option-neon"] .auth-hero-shell) .auth-cinematic-actions button:first-child {
  border-color: rgba(33, 230, 255, 0.78) !important;
  background: rgba(33, 230, 255, 0.1) !important;
  color: #d8fbff !important;
  box-shadow: 0 0 26px rgba(33, 230, 255, 0.4), inset 0 0 18px rgba(33, 230, 255, 0.14) !important;
}

:is(html[data-login-template="neon"] .auth-hero-shell,
  [data-testid="login-template-option-neon"] .auth-hero-shell) .auth-hero-wordmark {
  color: #ffd9f1 !important;
  font-family: var(--lt-mono) !important;
  letter-spacing: 0.14em !important;
  text-shadow: 0 0 16px rgba(255, 47, 179, 0.6);
}

:is(html[data-login-template="neon"] .auth-hero-shell,
  [data-testid="login-template-option-neon"] .auth-hero-shell) .auth-template-stage-cinematic::after {
  content: "SYS.ONLINE  //  AUTH GATEWAY";
  position: absolute;
  right: clamp(1.4rem, 2.6vw, 2.4rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  writing-mode: vertical-rl;
  font-family: var(--lt-mono);
  font-size: 9.5px;
  letter-spacing: 0.36em;
  color: rgba(33, 230, 255, 0.34);
}

/* ==================================================================
   grid：蓝图网格 —— 工程坐标纸 + 等宽字 + 青色描边
   版式：标题左上 → 说明紧随其下 → 登录按钮在右栏 → 底部整条规格栏
   ================================================================== */
:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) {
  background: linear-gradient(180deg, #08131f 0%, #050d16 100%) !important;
  color: #dceaf6 !important;
}

:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-hero-bg,
:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-hero-overlay {
  display: none !important;
}

/* 蓝图坐标纸：120px 主网格 + 24px 细网格 + 边缘淡出 */
:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(110, 200, 255, 0.17) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 200, 255, 0.17) 1px, transparent 1px),
    linear-gradient(to right, rgba(110, 200, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 200, 255, 0.07) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(125% 95% at 50% 45%, #000 32%, transparent 90%);
}

/* 图框 */
:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell)::after {
  content: "";
  position: absolute;
  inset: 1.1rem;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(110, 200, 255, 0.16);
  border-radius: 2px;
}

/* 导航：原站 showcase 把它做成一枚居中的胶囊，宽 662px，字被截断成「聚合引擎 Age…」。
   这里改回通栏一条，品牌靠左、操作靠右。 */
:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-template-nav {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: clamp(1.4rem, 2.6vw, 2.6rem) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
}

:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-hero-wordmark {
  font-family: var(--lt-mono) !important;
  font-size: 0.84em !important;
  letter-spacing: 0.18em !important;
  color: #a8dcff !important;
  /* 原站给它锁了 7rem 宽，通栏后仍然被截成「聚合引擎 Age…」 */
  max-width: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

/* 主区：海报式构图 —— 两行大标题 / 标语 / 按钮竖排在左下，长文案压在底部通栏。
   原来右栏只有 200px 宽，一段 60 字的说明被压成 10 字一行；底部还空 230px。 */
:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-hero {
  position: relative !important;
  color: #eaf6ff !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto 1fr !important;
  align-content: start !important;
  align-items: start !important;
  justify-items: start !important;
  row-gap: clamp(0.9rem, 2.2vh, 1.4rem) !important;
  padding: clamp(2.4rem, 9vh, 5.4rem) clamp(2rem, 4vw, 4.4rem) clamp(1.5rem, 3.4vh, 2.3rem) !important;
}

/* 右下角的同心圆刻度：补住那片空白，同时呼应蓝图主题 */
:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-hero::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 14%;
  width: min(330px, 25vw);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at center, rgba(110, 200, 255, 0.16) 0 1px, transparent 1px 30px),
    radial-gradient(circle at center, rgba(110, 200, 255, 0.32) 0 1.5px, transparent 2px),
    linear-gradient(to right, transparent calc(50% - 0.5px), rgba(110, 200, 255, 0.18) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), rgba(110, 200, 255, 0.18) 50%, transparent calc(50% + 0.5px));
  mask-image: radial-gradient(circle at center, #000 26%, transparent 72%);
}

/* 说明文字从右栏挪到标题正下方：整栏交给 display:contents，
   让它三个子元素直接成为网格项，不再被挤在 200px 的窄条里。 */
:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-footer {
  display: contents !important;
}

:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-hero :is(h1, h2) {
  align-self: end !important;
  justify-self: start !important;
  width: auto !important;
  /* 4.2em 处正好在「聚合引擎」和「Agent」之间断行，形成两行海报标题 */
  max-width: 4.2em !important;
  margin: 0 !important;
  overflow: visible !important;
  font-family: var(--lt-sans) !important;
  font-size: clamp(3rem, 8.2vw, 8rem) !important;
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.035em !important;
  text-align: left !important;
  text-transform: none !important;
  white-space: normal !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  color: #f3fbff !important;
  text-shadow: 0 0 90px rgba(80, 180, 255, 0.24), 0 2px 0 rgba(0, 0, 0, 0.3) !important;
}

/* 标题上方一道尺规刻度线 */
:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-hero :is(h1, h2)::before {
  content: "";
  display: block;
  width: clamp(72px, 8.5vw, 132px);
  height: 8px;
  margin: 0 0 clamp(12px, 2.2vh, 22px);
  border-top: 1px solid rgba(120, 205, 255, 0.72);
  background: repeating-linear-gradient(to right,
      rgba(120, 205, 255, 0.72) 0 1px, transparent 1px 9px) left 1px / 100% 6px no-repeat;
}

/* 标语：紧跟标题，做成大一号的副标题 */
:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-description {
  grid-column: 1 !important;
  grid-row: 2 !important;
  justify-self: start !important;
  align-self: start !important;
  width: auto !important;
  max-width: 42ch !important;
  margin: 0 !important;
  font-family: var(--lt-sans) !important;
  font-size: clamp(1rem, 1.35vw, 1.22rem) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: 0.06em !important;
  color: #9fc4de !important;
}

/* 按钮：竖排两枚等宽，接在标语下方 */
:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-actions {
  grid-column: 1 !important;
  grid-row: 3 !important;
  align-self: start !important;
  justify-self: start !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: clamp(15rem, 19vw, 18rem) !important;
  margin: clamp(0.4rem, 1.4vh, 0.9rem) 0 0 !important;
  padding: 0 !important;
  border-top: 0 !important;
}

:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-actions button {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  height: 3rem;
  border-radius: 3px !important;
  border: 1px solid rgba(110, 200, 255, 0.46) !important;
  background: rgba(10, 36, 58, 0.72) !important;
  color: #c6e9ff !important;
  font-family: var(--lt-mono) !important;
  font-size: 12.5px !important;
  letter-spacing: 0.14em !important;
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(110, 200, 255, 0.07) !important;
}

:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-actions button:first-child {
  background: #6fd3ff !important;
  color: #04121d !important;
  border-color: #6fd3ff !important;
  font-weight: 700 !important;
  box-shadow: 0 0 28px rgba(111, 211, 255, 0.28) !important;
}

/* 底部规格栏：通栏贴底，上方一条发丝线，等宽小字 */
:is(html[data-login-template="grid"] .auth-hero-shell,
  [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-proof {
  grid-column: 1 !important;
  grid-row: 4 !important;
  align-self: end !important;
  justify-self: stretch !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-top: clamp(0.9rem, 2vh, 1.3rem) !important;
  border-top: 1px solid rgba(110, 200, 255, 0.22) !important;
  font-family: var(--lt-mono) !important;
  font-size: 11.5px !important;
  line-height: 1.8 !important;
  letter-spacing: 0.04em !important;
  color: rgba(176, 212, 236, 0.55) !important;
  text-align: left !important;
}

/* 手机端：双栏回落成上下两段 */
@media (max-width: 860px) {
  :is(html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-hero {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto !important;
    align-content: center !important;
    align-items: start !important;
    row-gap: clamp(18px, 3.4vh, 28px) !important;
    padding: 1.6rem 1.4rem !important;
  }

  :is(html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-hero::after {
    display: none;
  }

  :is(html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-hero :is(h1, h2) {
    font-size: clamp(2rem, 8.4vw, 2.9rem) !important;
    line-height: 1.14 !important;
    white-space: normal !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  :is(html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-hero :is(h1, h2)::before {
    width: 72px;
    margin-bottom: 14px;
  }

  :is(html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-description {
    grid-column: 1 !important;
    grid-row: 2 !important;
    max-width: none !important;
    font-size: 15px !important;
  }

  :is(html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-actions {
    grid-column: 1 !important;
    grid-row: 3 !important;
    flex-direction: row !important;
    width: 100% !important;
  }

  :is(html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-proof {
    grid-column: 1 !important;
    grid-row: 4 !important;
    font-size: 11px !important;
  }
}

/* ==================================================================
   paper：纸感留白（浅色）—— 米白纸面 + 宋体标题 + 墨色按钮
   ================================================================== */
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) {
  background:
    radial-gradient(80% 60% at 8% 0%, #fffdf8 0%, rgba(255, 253, 248, 0) 60%),
    linear-gradient(180deg, #f7f3ea 0%, #efe9dc 100%) !important;
  color: #23201a !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-hero-bg,
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-hero-overlay {
  display: none !important;
}

/* 纸纤维：极淡的斜向细纹 */
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(94deg, rgba(120, 104, 80, 0.05) 0 1px, transparent 1px 7px);
}

/* ---- 左右两栏 ---- */
/* 原来两栏按各自内容高度垂直居中，左边 598 高、右边 723 高，
   底边错开 60px。拉成等高后左右成为一对真正的「版」。 */
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-login-split {
  align-items: stretch !important;
  gap: clamp(2rem, 4vw, 4.4rem) !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) :is(.auth-brand-panel, .auth-hero-brand, .auth-template-nav) {
  color: #23201a !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-hero-wordmark {
  color: #23201a !important;
  /* 原站品牌字用 background-clip:text 的白色渐变描字，浅底上会淡到看不见 */
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #23201a !important;
  font-family: var(--lt-serif) !important;
  letter-spacing: 0.16em !important;
  font-weight: 500 !important;
}

/* 导航右上角「登录」原站是白色 72% 透明，浅底上几乎不可见 */
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-template-nav-action {
  color: #5b5446 !important;
  border-color: rgba(58, 48, 30, 0.18) !important;
}

/* 顶部导航已有品牌，左侧品牌区那份重复的 logo 去掉 */
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-panel .auth-hero-brand {
  display: none !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-panel {
  justify-content: center !important;
  padding-right: clamp(1rem, 3vw, 3rem) !important;
}

/* 底部的安全承诺脱离文档流压到栏底，正文那一段才能真正垂直居中 */
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-panel {
  position: relative !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-trust {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-headline {
  font-family: var(--lt-serif) !important;
  font-weight: 500 !important;
  letter-spacing: 0.045em !important;
  line-height: 1.36 !important;
  color: #1b1813 !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) :is(.auth-brand-subcopy, .auth-brand-feature, .auth-brand-trust) {
  color: #5b5446 !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) :is(.auth-brand-subcopy, .auth-brand-feature, .auth-brand-trust) * {
  color: inherit !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-feature-icon {
  color: #8c7f63 !important;
}

/* 标题下加一条发丝线，纸感的关键细节 */
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-headline::after {
  content: "";
  display: block;
  width: 3.4rem;
  height: 1px;
  margin-top: 1.7rem;
  background: #c3b69c;
}

/* ---- 右侧登录卡 ---- */
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card {
  align-self: center !important;
  max-width: 28.5rem !important;
  background: #fffdf9 !important;
  border: 1px solid #e3dac9 !important;
  border-radius: 18px !important;
  box-shadow: 0 30px 70px -34px rgba(58, 48, 30, 0.55), 0 1px 0 #fff inset !important;
  color: #23201a !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card :is(h1, h2, h3, h4, label, p, span, div, small, strong) {
  color: #2b261d !important;
}

/* 卡片里那些 bg-base/24、bg-black/32 的半透明黑，在米白卡上会糊成灰块 */
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card :is([class*="bg-base/"], [class*="bg-black/"]) {
  background-color: rgba(74, 63, 44, 0.05) !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card :is(input, select, textarea) {
  background-color: #fffefb !important;
  border-color: #e3dac9 !important;
  color: #23201a !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-card-heading {
  font-family: var(--lt-serif) !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-card-eyebrow {
  color: #8d8168 !important;
  letter-spacing: 0.34em !important;
  font-size: 0.66em !important;
  text-transform: uppercase;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card :is(a, .auth-card-partner-row *) {
  color: #7a6a4e !important;
}

/* 输入框 / 验证码段 */
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card :is(input, textarea) {
  background: #f9f5ec !important;
  border: 1px solid #e5dccb !important;
  color: #23201a !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  --tw-ring-color: rgba(160, 140, 100, 0.35);
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card :is(input, textarea)::placeholder {
  color: #ab9f88 !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) :is(.auth-input-wrap, .auth-input-segment) {
  background: #f9f5ec !important;
  border-color: #e5dccb !important;
  color: #2b261d !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

/* 分段 tab：未选中米色、选中更深的纸色 */
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .core-refined-auth-inner button[class*="rounded-xl"] {
  background: transparent !important;
  color: #857a66 !important;
  box-shadow: none !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .core-refined-auth-inner button[class*="bg-white/5"] {
  background: #f1ead9 !important;
  color: #2b261d !important;
}

/* 副按钮（先逛逛）与浅色块：卡片里任何 bg-white/5、bg-primary/10 都要换成纸色 */
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card :is([class*="bg-white/5"], [class*="bg-white/10"], [class*="bg-primary/10"], [class*="bg-base/5"]) {
  background: #f5efe2 !important;
  border-color: #e5dccb !important;
  color: #4b4535 !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card button[class*="bg-primary/10"] {
  border: 1px solid #e0d6c3 !important;
  box-shadow: none !important;
}

/* 主按钮：墨色实心 */
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card .sh-cta {
  background: #1f1c16 !important;
  color: #f8f4ea !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 24px -12px rgba(31, 28, 22, 0.8) !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card .sh-cta * {
  color: #f8f4ea !important;
}

:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card button[class*="text-primary"],
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card .auth-card-signal,
:is(html[data-login-template="paper"] .auth-hero-shell,
  [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card .auth-card-summary {
  background: #f6f1e5 !important;
  border-color: #e5dccb !important;
  color: #5b5446 !important;
}

/* ==================================================================
   5. 小屏兜底：去掉装饰性构图元素，回到单列
   ================================================================== */
@media (max-width: 860px) {
  :is(html[data-login-template="noir"] .auth-hero-shell,
    [data-testid="login-template-option-noir"] .auth-hero-shell) .auth-template-stage-cinematic::after,
  :is(html[data-login-template="neon"] .auth-hero-shell,
    [data-testid="login-template-option-neon"] .auth-hero-shell) .auth-template-stage-cinematic::after {
    display: none;
  }

  /* 卖点卡在小屏堆叠 */
  :is(html[data-login-template="aurora"] .auth-hero-shell,
    [data-testid="login-template-option-aurora"] .auth-hero-shell) .auth-immersive-proof {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  :is(html[data-login-template="ink"] .auth-hero-shell,
    [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-proof {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }

  :is(html[data-login-template="ink"] .auth-hero-shell,
    [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-proof > span + span {
    border-left: 0 !important;
  }

  /* paper：小屏隐藏左栏，只留登录卡 */
  :is(html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-login-split {
    justify-content: center !important;
  }
}

/* ==================================================================
   6. 后台模板选择卡：预览是按「卡宽 555px」重新排版渲染的，
      但 vw 仍按 1440 视口计算，于是 8vw 的标题在卡里等于 118px，
      直接被撑成三行、盖住导航。这里用容器查询按卡宽重算，
      仅作用于 [data-testid="login-bg-preview"]，真实登录页不受影响。
   ================================================================== */
[data-testid="login-bg-preview"] {
  container-type: inline-size;
}

@container (max-width: 820px) {
  /* ---- 标题：收到卡宽的 8.4%（555 宽 ≈ 46px）---- */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="aurora"] .auth-hero-shell,
    [data-testid="login-template-option-aurora"] .auth-hero-shell,
    html[data-login-template="ink"] .auth-hero-shell,
    [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-hero h1 {
    font-size: 8.6cqw !important;
    line-height: 1.08 !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="noir"] .auth-hero-shell,
    [data-testid="login-template-option-noir"] .auth-hero-shell,
    html[data-login-template="neon"] .auth-hero-shell,
    [data-testid="login-template-option-neon"] .auth-hero-shell) .auth-cinematic-story h1 {
    font-size: 8.4cqw !important;
    line-height: 1.1 !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-hero :is(h1, h2) {
    font-size: 8.4cqw !important;
    line-height: 1.06 !important;
  }

  /* ---- paper：两栏布局必须整版重算，单改字号不够 ----
     实测（616×385 的预览框）：左栏内容区只剩 160px，右栏卡片 453px 高、
     左栏带 min-h-[34rem] 撑到 598px，整版 667px 塞进 385px → 底部被裁掉一截；
     标题字 68px 的桌面值落进 160px 宽的栏里就是一字一行。
     下面按容器宽（cqw）重算两栏的字号与留白，让整版真正落进缩略框。 */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-login-split {
    gap: 2.6cqw !important;
    padding: 1.6cqw 2.8cqw 0 !important;
  }

  /* 桌面版上下留白（body 22px、split 顶 35px、底部留白带 17px）合计 110px，
     卡里 385 高塞不下，按容器宽收到 ~1cqw */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-hero-body {
    padding-block: 1.3cqw !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-template-stage-split > div:last-child {
    padding-bottom: 0.9cqw !important;
  }

  /* 左栏：34rem 的最小高度是为桌面留白设的，缩略卡里放开撑高 */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-panel {
    min-height: 0 !important;
    padding-right: 1.4cqw !important;
  }

  /* 左栏标题：桌面 clamp 到 68px，这里 5cqw ≈ 31px，
     栏内可用 ~285px，「连接所有 AI」≈ 5.5 字宽刚好落成两行 */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-headline {
    font-size: 5cqw !important;
    line-height: 1.24 !important;
    letter-spacing: 0.02em !important;
    word-break: keep-all !important;
    white-space: pre-line !important;
  }

  /* 标题下那条发丝线：桌面 1.7rem 的间距在小卡里太空 */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-headline::after {
    width: 2.4rem !important;
    margin-top: 0.85rem !important;
  }

  /* 左栏标题/正文/特性三块之间桌面是 1.75rem 的大间距，
     在 325px 高的栏里占了近 90px，收到 1.7cqw 才有底部呼吸空间 */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-panel-mid {
    gap: 1.7cqw !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-subcopy {
    font-size: 2cqw !important;
    line-height: 1.72 !important;
  }

  /* 三条 feature + 底部安全承诺：桌面 16.7/14.4px，按同一比例收到 ~11/9px */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-feature {
    font-size: 1.8cqw !important;
    line-height: 1.5 !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-feature
    :is(svg, img) {
    width: 2.2cqw !important;
    height: 2.2cqw !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-trust {
    /* 底部承诺是 absolute bottom:0 钉在栏底的，内容撑满时正好贴住预览框边，
       抬 1.2cqw 才不显得被切掉 */
    bottom: 1.2cqw !important;
    font-size: 1.5cqw !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-brand-trust
    :is(svg, img) {
    width: 1.8cqw !important;
    height: 1.8cqw !important;
  }

  /* 右栏登录卡：卡内 h1 桌面 44px、整卡 453px 高，直接顶出框外。
     卡片自身被 zoom: var(--auth-card-fit) 包着，这里统一按容器宽收字号，
     并把卡宽提到 40cqw 给「欢迎登录」留单行的余量。 */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card {
    /* 卡片被 zoom: var(--auth-card-fit)（实测 1.111）放大，
       33cqw 在视觉上约等于 203px，左栏因此能拿到 ~345px，
       与真实页面「左宽右窄」的关系一致。 */
    max-width: 33cqw !important;
    padding: 3.2cqw !important;
    border-radius: 13px !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card :is(h1, h2) {
    font-size: 3cqw !important;
    line-height: 1.3 !important;
    letter-spacing: 0.02em !important;
    word-break: keep-all !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card
    :is(p, label, span, small, strong, a, div:not([class*="auth-card-heading"])) {
    font-size: 1.65cqw !important;
    line-height: 1.55 !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card .auth-card-eyebrow {
    font-size: 1.15cqw !important;
    letter-spacing: 0.3em !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card :is(input, textarea) {
    font-size: 1.7cqw !important;
    padding: 1.3cqw 1.6cqw !important;
    border-radius: 7px !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card button,
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="paper"] .auth-hero-shell,
    [data-testid="login-template-option-paper"] .auth-hero-shell) .auth-page-card .sh-cta {
    font-size: 1.75cqw !important;
    padding: 1.3cqw !important;
    border-radius: 8px !important;
  }

  /* ---- 说明文字 / 眉标：跟着卡宽走 ---- */
  [data-testid="login-bg-preview"] :is(.auth-immersive-lead, .auth-cinematic-lead, .auth-showcase-lead) {
    font-size: 2.55cqw !important;
    line-height: 1.62 !important;
    /* neon 的标语在 555 宽下最后一行只剩「换。」两个字，
       balance 把两行调成等长，孤字尾行就消失了 */
    text-wrap: balance;
  }

  /* neon / noir 的标语 <p> 没有类名，只能按结构命中：37 个字正好卡满
     423px 的第一行，末尾「换。」掉到第二行成孤字，balance 让两行等长 */
  [data-testid="login-bg-preview"] .auth-cinematic-story > p {
    text-wrap: balance;
  }


  /* ---- grid（海报版）：整版按 vh 排版，pad-top 会 clamp 到 95px、行距 23.8px，
          385 高的框里内容 579px，说明文字和按钮全被切掉 ---- */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-hero {
    padding: 2.4cqw 5cqw 1.8cqw !important;
    row-gap: 1.4cqw !important;
  }

  /* 标题 8.4cqw ≈ 52px 两行加刻度线占 139px，7cqw 才留得下按钮 */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-hero :is(h1, h2) {
    font-size: 7cqw !important;
    line-height: 1.02 !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-hero :is(h1, h2)::before {
    width: 12cqw !important;
    height: 0.85cqw !important;
    margin-bottom: 1.2cqw !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-description {
    font-size: 2.2cqw !important;
    line-height: 1.6 !important;
    letter-spacing: 0.04em !important;
    text-wrap: pretty;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-actions {
    width: 26cqw !important;
    gap: 0.9cqw !important;
    margin-top: 0.6cqw !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-actions button {
    height: 5.6cqw !important;
    font-size: 1.7cqw !important;
    letter-spacing: 0.1em !important;
  }

  /* ---- ink：stage 顶部 81px + 正文行高 2.05 + 落款 padding 26px，
          合计把整版顶到 557px，底部两枚按钮和落款被切 ---- */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="ink"] .auth-hero-shell,
    [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-template-stage-immersive {
    padding-top: 2.6cqw !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="ink"] .auth-hero-shell,
    [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-hero {
    padding: 2cqw 2.4cqw !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="ink"] .auth-hero-shell,
    [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-hero h1 {
    font-size: 7cqw !important;
    line-height: 1.2 !important;
    letter-spacing: 0.12em !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="ink"] .auth-hero-shell,
    [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-hero p {
    margin-top: 1.2cqw !important;
    font-size: 2.05cqw !important;
    line-height: 1.7 !important;
    max-width: 34rem !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="ink"] .auth-hero-shell,
    [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-actions {
    margin-top: 1.4cqw !important;
    gap: 1.2cqw !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="ink"] .auth-hero-shell,
    [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-actions button {
    padding-block: 1.1cqw !important;
    font-size: 1.7cqw !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="ink"] .auth-hero-shell,
    [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-proof {
    padding-top: 1.4cqw !important;
    font-size: 1.55cqw !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="ink"] .auth-hero-shell,
    [data-testid="login-template-option-ink"] .auth-hero-shell) .auth-immersive-proof > span {
    padding-inline: 1.4cqw !important;
    line-height: 1.4 !important;
  }

  [data-testid="login-bg-preview"] :is(
    .auth-immersive-kicker,
    .auth-cinematic-kicker,
    .auth-showcase-kicker,
    .auth-immersive-eyebrow,
    .auth-cinematic-eyebrow) {
    font-size: 1.75cqw !important;
    letter-spacing: 0.24em !important;
  }

  /* ---- showcase（大字展厅）：标题桌面 4.4rem = 70px、通栏铺满，
          footer 里的说明被挤到 123px 宽、只剩 6.7px 字号，基本读不出来 ---- */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="showcase"] .auth-hero-shell,
    [data-testid="login-template-option-showcase"] .auth-hero-shell) .auth-showcase-hero :is(h1, h2) {
    font-size: 9.2cqw !important;
    line-height: 1.02 !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="showcase"] .auth-hero-shell,
    [data-testid="login-template-option-showcase"] .auth-hero-shell) .auth-showcase-footer {
    gap: 2cqw !important;
    font-size: 1.5cqw !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="showcase"] .auth-hero-shell,
    [data-testid="login-template-option-showcase"] .auth-hero-shell) .auth-showcase-description {
    /* footer 是三列 grid（190 / 130 / 190），这里只能放开宽度；
       max-width: 44% 会按列宽算成 84px，把说明再压窄一遍 */
    max-width: none !important;
    font-size: 1.7cqw !important;
    line-height: 1.55 !important;
    text-wrap: pretty;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="showcase"] .auth-hero-shell,
    [data-testid="login-template-option-showcase"] .auth-hero-shell) .auth-showcase-proof {
    max-width: none !important;
    font-size: 1.5cqw !important;
    line-height: 1.5 !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="showcase"] .auth-hero-shell,
    [data-testid="login-template-option-showcase"] .auth-hero-shell) .auth-showcase-actions {
    flex: 0 0 auto !important;
    gap: 1.2cqw !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="showcase"] .auth-hero-shell,
    [data-testid="login-template-option-showcase"] .auth-hero-shell) .auth-showcase-actions button {
    height: auto !important;
    padding: 0.9cqw 2cqw !important;
    font-size: 1.55cqw !important;
    letter-spacing: 0.08em !important;
  }

  /* cinematic / immersive 的正文与按钮都是无类名的 <p>/<button>，
     桌面小字号落进卡里只剩 6~8px，按容器宽抬回来 */
  [data-testid="login-bg-preview"] .auth-cinematic-story > p {
    font-size: 2.3cqw !important;
    line-height: 1.65 !important;
    text-wrap: pretty;
  }

  [data-testid="login-bg-preview"] .auth-cinematic-actions button {
    font-size: 1.6cqw !important;
    padding: 1cqw 2.4cqw !important;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="immersive"] .auth-hero-shell,
    [data-testid="login-template-option-immersive"] .auth-hero-shell) .auth-immersive-hero > p {
    font-size: 1.9cqw !important;
    line-height: 1.6 !important;
    text-wrap: pretty;
  }

  [data-testid="login-bg-preview"] :is(
    html[data-login-template="immersive"] .auth-hero-shell,
    [data-testid="login-template-option-immersive"] .auth-hero-shell) .auth-immersive-actions button {
    font-size: 1.6cqw !important;
  }

  /* 正文放大后 hero 会顶出 3px，把桌面级的顶部留白收掉补回来 */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="immersive"] .auth-hero-shell,
    [data-testid="login-template-option-immersive"] .auth-hero-shell) .auth-immersive-hero {
    padding-top: 0.4cqw !important;
  }

  /* ---- 内边距：卡里不需要桌面级的 5rem 留白 ---- */
  [data-testid="login-bg-preview"] :is(
    html[data-login-template="grid"] .auth-hero-shell,
    [data-testid="login-template-option-grid"] .auth-hero-shell) .auth-showcase-stage {
    padding: 6.5cqw 5cqw 4cqw !important;
  }
}
