/* 本文提案。主题令牌来自 develop ccf0963 的原样快照；这里只定义登录布局与光带几何。 */
* { box-sizing: border-box; }
html { min-width: 320px; }
body.wb-root { margin: 0; font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); background: var(--bg); --review-height: 88px; --login-paper: var(--fc-cream, var(--bg)); --login-ribbon: var(--fc-blush, var(--surface-3)); --login-ribbon-light: var(--fc-apricot, var(--surface-raised)); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
button, a, input, select { touch-action: manipulation; }
button, input, select { caret-color: var(--accent); }
a { color: inherit; text-underline-offset: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
:disabled { opacity: .6; }
[hidden] { display: none !important; }
.icon { display: inline-block; width: 20px; height: 20px; flex: none; vertical-align: middle; }
.skip { position: absolute; top: 12px; left: 16px; transform: translateY(-160%); z-index: 5; padding: 10px 18px; background: var(--surface-raised); border-radius: var(--radius-sm); }
.skip:focus { transform: none; }
.login-stage { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: calc(100dvh - var(--review-height)); background: var(--login-paper); overflow: clip; }
.atmosphere { position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(135deg, var(--login-paper) 30%, var(--bg)); overflow: hidden; }
.ribbon { width: 100%; height: 100%; position: absolute; inset: 0; }
.ribbon-deep { stop-color: var(--login-ribbon); }
.ribbon-tone { stop-color: var(--login-ribbon-light); }
.ribbon-glow { stop-color: var(--login-paper); }
.ribbon-motion { transform-origin: 45% 65%; animation: breathe 24s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: translate(-12px, 12px) rotate(-1.5deg) scale(1.015); } to { transform: translate(18px, -14px) rotate(1.3deg) scale(1.045); } }
[data-motion="paused"] .ribbon-motion { animation-play-state: paused; }
[data-motion="static"] .ribbon-motion { animation: none; }
[data-skin="night-glass"] body.wb-root { --login-paper: var(--bg); --login-ribbon: var(--surface-3); --login-ribbon-light: var(--bg-2); }
[data-skin="night-glass"] .ribbon { opacity: .8; }
[data-theme="dark"] .atmosphere { background: var(--bg); }
[data-theme="dark"] .ribbon { opacity: .75; }
.page-header, .page-footer { width: min(100% - 128px, 1280px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-shrink: 0; }
.page-header { padding-block: 36px; }
.wb-brand .wb-logo .icon { width: 15px; height: 15px; }
.quiet-control { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; color: var(--ink-2); background: transparent; border: 0; border-radius: var(--radius-btn); font-size: var(--fs-caption); transition: background var(--dur-fast) var(--ease); }
.quiet-control .icon { width: 16px; height: 16px; }
.quiet-control:hover { background: var(--accent-soft); }
.page-main { flex: 1; width: min(100% - 128px, 1168px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 408px; gap: 96px; align-items: center; padding: 52px 0 84px; }
.intro { padding-bottom: 100px; }
h1, h2, p { margin: 0; }
h1 { font-family: var(--font-display); font-size: var(--fs-display); font-weight: var(--fw-heading); line-height: 1.42; letter-spacing: -.025em; text-wrap: balance; }
.intro-description { margin-top: 24px; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.9; max-width: 440px; }
.auth-card { background: var(--surface-raised); box-shadow: var(--shadow-card); border-radius: var(--radius-panel); padding: 40px 36px 28px; }
.auth-heading h2 { font-family: var(--font-display); font-size: var(--fs-page); font-weight: var(--fw-strong); line-height: 1.4; letter-spacing: -.02em; }
.auth-heading p { color: var(--ink-2); margin-top: 10px; font-size: var(--fs-body); }
.uc-entry { margin-top: 36px; }
.primary-button { position: relative; isolation: isolate; border: 0; border-radius: var(--radius-btn); color: var(--btn-solid-fg); background: var(--btn-solid-bg); display: flex; width: 100%; min-height: 52px; padding: 14px 24px; gap: 12px; justify-content: center; align-items: center; font-size: var(--fs-body); font-weight: var(--fw-strong); transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.primary-button:hover:not(:disabled) { background: var(--btn-solid-hover); }
.primary-button:active:not(:disabled) { box-shadow: inset 0 2px 4px var(--line-strong); }
.primary-button:disabled { opacity: 1; }
.primary-button .icon { width: 18px; height: 18px; }
.uc-helper { color: var(--ink-2); font-size: var(--fs-caption); text-align: center; line-height: 1.7; margin-top: 14px; }
.demo-entry { margin-top: 28px; }
.demo-toggle { margin-inline: auto; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 12px; border: 0; background: transparent; color: var(--ink-2); font-size: var(--fs-caption); border-radius: var(--radius-sm); transition: background var(--dur-fast) var(--ease); }
.demo-toggle:hover:not(:disabled) { background: var(--surface-2); }
.demo-toggle .icon { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.demo-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
#demo-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.demo-description { font-size: var(--fs-caption); color: var(--ink-2); margin-bottom: 20px; line-height: 1.8; }
.form-field + .form-field { margin-top: 16px; }
.form-field label { display: block; font-size: var(--fs-body); margin-bottom: 7px; font-weight: var(--fw-strong); }
.form-field input { color: var(--ink); width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); padding: 11px 14px; background: var(--surface-raised); }
.form-field input::placeholder { color: var(--ink-2); }
.demo-submit { margin-top: 24px; width: 100%; min-height: 48px; padding: 12px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-btn); background: var(--surface-2); color: var(--ink); font-weight: var(--fw-strong); }
.demo-submit:hover:not(:disabled) { background: var(--surface-3); }
.notice, .context-message { font-size: var(--fs-body); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 24px; line-height: 1.7; overflow-wrap: anywhere; }
.notice { color: var(--late-ink); background: var(--late-bg); }
.notice[data-tone="neutral"], .context-message { color: var(--ink-2); background: var(--surface-2); }
.demo-error { margin-top: 16px; color: var(--late-ink); font-size: var(--fs-caption); }
.retry-button { margin-top: 20px; width: 100%; min-height: 48px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-btn); display: flex; align-items: center; justify-content: center; gap: 8px; }
.spinner { width: 16px; height: 16px; flex-shrink: 0; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-footer { padding-block: 20px 28px; color: var(--ink-2); font-size: var(--fs-caption); }
.review-bar { position: relative; z-index: 2; min-height: var(--review-height); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface-raised); border-top: 1px solid var(--line-strong); font-size: var(--fs-caption); }
.review-title { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; align-items: center; }
.review-title strong { font-size: var(--fs-body); font-weight: var(--fw-strong); }
.review-title span { color: var(--ink-2); }
.review-disclaimer { width: 100%; }
.review-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-controls select { height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); color: var(--ink); background: var(--surface-raised); padding: 0 24px 0 8px; max-width: 180px; }
.review-controls a { min-height: 36px; display: flex; align-items: center; gap: 5px; padding: 4px 8px; }
.review-controls .icon { width: 13px; height: 13px; }
.check-control { display: flex; align-items: center; gap: 6px; min-height: 36px; }
.check-control input { accent-color: var(--accent); }
.prototype-toast { position: fixed; z-index: 10; bottom: calc(var(--review-height) + 20px); left: 50%; transform: translateX(-50%); max-width: min(480px, calc(100% - 32px)); width: max-content; padding: 14px 20px; font-size: var(--fs-body); background: var(--surface-raised); color: var(--ink); border-radius: var(--radius-ctl); box-shadow: var(--shadow-pop); }
html[data-view="clean"] body { --review-height: 0px; }
html[data-view="clean"] .review-bar { display: none; }
body { scrollbar-color: var(--ink-3) var(--bg); scrollbar-width: thin; }
@media (min-width: 1600px) { .page-main { gap: 144px; } }
@media (max-width: 1050px) { .page-header, .page-footer { width: calc(100% - 80px); } .page-main { width: calc(100% - 80px); grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; } h1 { font-size: var(--fs-hero); } .intro-description { font-size: var(--fs-body); } .desktop-break { display: none; } .review-bar { flex-wrap: wrap; } }
@media (max-width: 760px) {
  body.wb-root { --review-height: 156px; }
  .page-header { width: calc(100% - 48px); padding-block: 20px; }
  .page-main { width: min(100% - 40px, 440px); grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px 0 36px; align-content: center; }
  .intro { padding: 0 8px; }
  h1 { font-size: var(--fs-hero); line-height: 1.4; }
  .intro-description { margin-top: 16px; font-size: var(--fs-body); max-width: 330px; line-height: 1.85; }
  .auth-card { padding: 28px 24px 20px; }
  .auth-heading h2 { font-size: var(--fs-page-sm); }
  .auth-heading p { margin-top: 8px; }
  .uc-entry { margin-top: 28px; }
  .primary-button { padding-inline: 16px; }
  .uc-helper { font-size: var(--fs-caption); }
  .demo-entry { margin-top: 20px; }
  .page-footer { width: calc(100% - 48px); padding-block: 8px 20px; gap: 8px; }
  .page-footer p { max-width: 170px; }
  .page-footer .quiet-control { padding-inline: 8px; }
  .ribbon { width: 180%; left: -65%; opacity: .72; }
  .review-bar { padding: 16px; gap: 12px; }
  .review-controls { gap: 6px; }
  .review-controls select { max-width: 148px; }
}
@media (prefers-reduced-motion: reduce) { .ribbon-motion, .spinner { animation: none; } *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; } }
@media (forced-colors: active) { .atmosphere { display: none; } .auth-card, button { border: 1px solid ButtonText; } }

/* 2026-10-19 修订：用户指定 TODAY. 衬线字，仅用于登录页的装饰标题，不修改全局令牌。 */
.today-lockup { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 24px; row-gap: 16px; }
#intro-heading { position: relative; font-family: Georgia, "Times New Roman", serif; font-size: 96px; line-height: 1; font-weight: 400; letter-spacing: -.035em; }
.today-word { display: block; animation: today-settle 1250ms cubic-bezier(.16,1,.3,1) both; }
.today-echo { position: absolute; inset: 0; pointer-events: none; opacity: 0; animation: today-unfold 1250ms cubic-bezier(.16,1,.3,1) both; }
.today-dot { color: var(--today-ink); }
.today-caption { margin-top: 12px; font-size: var(--fs-body); color: var(--ink-2); white-space: nowrap; }
.auth-heading h2 > span { display: inline-block; animation: title-hop 650ms cubic-bezier(.22,1,.36,1) both; animation-delay: calc(650ms + var(--letter) * 45ms); }
@keyframes today-settle { from { transform: translateY(14px) rotate(-4deg); } to { transform: none; } }
@keyframes today-unfold { 0% { transform: translate(14px, 30px) rotate(-170deg); opacity: .22; } 40% { opacity: .15; } 100% { transform: translate(0, -28px) rotate(0); opacity: 0; } }
@keyframes title-hop { 0%, 100% { transform: translateY(0); } 38% { transform: translateY(-7px); } 70% { transform: translateY(2px); } }
.page-footer { justify-content: flex-end; }
[data-motion="paused"] :is(.today-word,.today-echo,.auth-heading h2 > span), [data-hidden="true"] :is(.ribbon-motion,.today-word,.today-echo,.auth-heading h2 > span) { animation-play-state: paused; }
[data-motion="static"] :is(.today-word,.today-echo,.auth-heading h2 > span) { animation: none; }
@media (max-width: 1050px) { #intro-heading { font-size: 78px; } .today-lockup { row-gap: 20px; } }
@media (max-width: 760px) { #intro-heading { font-size: clamp(64px, 18vw, 80px); } .today-lockup { display: block; } .today-caption { margin-top: 8px; } .today-greeting { margin-top: 20px; } }
@media (prefers-reduced-motion: reduce) { :is(.today-word,.today-echo,.auth-heading h2 > span) { animation: none; } }

/* 最新确认：中文主句在左侧；UC 按钮使用项目 solid 令牌和沿边移动的细线。 */
.today-greeting { margin-top: 28px; color: var(--ink); font-size: var(--fs-page-sm); font-weight: var(--fw-body); line-height: 1.7; letter-spacing: .04em; }
.today-greeting-phrase { display: inline-block; white-space: nowrap; }
.today-greeting-phrase > span { display: inline-block; animation: text-reveal 800ms cubic-bezier(.22,1,.36,1) both; }
@keyframes text-reveal { from { opacity: 0; filter: blur(6px); transform: translateY(5px); } to { opacity: 1; filter: blur(0); transform: none; } }
.moving-border { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.moving-border rect { x: 1px; y: 1px; width: calc(100% - 2px); height: calc(100% - 2px); fill: none; stroke: var(--today-ink); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 18 82; animation: border-orbit 6s linear infinite; }
@keyframes border-orbit { to { stroke-dashoffset: -100; } }
.primary-button:disabled .moving-border { display: none; }
[data-motion="paused"] :is(.today-word,.today-echo,.auth-heading h2 > span,.today-greeting-phrase > span), [data-hidden="true"] :is(.today-word,.today-echo,.auth-heading h2 > span,.today-greeting-phrase > span) { animation: none; }
[data-motion="paused"] .moving-border rect, [data-hidden="true"] .moving-border rect { animation-play-state: paused; }
[data-motion="static"] :is(.today-greeting-phrase > span,.moving-border rect) { animation: none; }
@media (max-width: 760px) { .today-greeting { margin-top: 20px; } }
@media (prefers-reduced-motion: reduce) { :is(.today-greeting-phrase > span,.moving-border rect) { animation: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ===== 2026-10-19 动效改版（本文提案）=====
   去掉右下角「暂停动效」：动效在系统「减少动态效果」时静止，标签页在后台时暂停，卡片轮播在鼠标悬停、键盘聚焦时停住。 */
.page-main { padding-bottom: 72px; }
.intro { padding-bottom: 0; }

/* --- 左侧文字：主句与小字每段换一套，入场方式轮着换 --- */
.story { min-height: 92px; }
.today-greeting { min-height: 1.7em; }
.story .ch { display: inline-block; white-space: pre; }
.story[data-fx="blur"] .ch { animation: fx-blur 760ms cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i) * 42ms); }
@keyframes fx-blur { from { opacity: 0; filter: blur(7px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.story[data-fx="rise"] .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.story[data-fx="rise"] .ln > span { display: inline-block; animation: fx-rise 820ms cubic-bezier(.16,1,.3,1) both; }
.story[data-fx="rise"] .today-caption .ln > span { animation-delay: 140ms; }
@keyframes fx-rise { from { transform: translateY(105%); } to { transform: none; } }
.story[data-fx="drop"] .ch { animation: fx-drop 620ms cubic-bezier(.34,1.4,.64,1) both; animation-delay: calc(var(--i) * 36ms); transform-origin: 50% 100%; }
@keyframes fx-drop { from { opacity: 0; transform: translateY(-14px) rotate(-8deg); } to { opacity: 1; transform: none; } }
.story[data-fx="decode"] .ch { color: inherit; }
.story[data-fx="decode"] .ch.is-noise { color: var(--ink-3); }
.story.is-leaving { animation: fx-leave 320ms cubic-bezier(.4,0,1,1) both; }
@keyframes fx-leave { to { opacity: 0; filter: blur(4px); transform: translateY(-8px); } }

/* --- 会切换的卡片 --- */
.showcase { margin-top: 36px; width: min(100%, 460px); }
.scene-card { position: relative; overflow: hidden; height: 196px; padding: 16px 18px; border-radius: var(--radius-card); background: var(--surface-raised); box-shadow: var(--shadow-card); transition: transform 420ms cubic-bezier(.22,1,.36,1); }
.scene-card.is-switching { animation: card-pulse 640ms cubic-bezier(.22,1,.36,1); }
@keyframes card-pulse { 0% { transform: none; } 35% { transform: translateY(2px) scale(.985); } 100% { transform: none; } }
.scene-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, var(--login-sheen) 50%, transparent 65%); transform: translateX(-120%); }
.scene-card.is-switching .scene-sheen { animation: sheen 900ms cubic-bezier(.4,0,.2,1); }
@keyframes sheen { to { transform: translateX(120%); } }
body.wb-root { --login-sheen: rgba(255, 255, 255, .55); }
[data-theme="dark"] body.wb-root { --login-sheen: rgba(255, 255, 255, .07); }
.scene-body { position: relative; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.scene-body.is-leaving > * { animation: part-leave 260ms cubic-bezier(.4,0,1,1) both; }
@keyframes part-leave { to { opacity: 0; transform: translateY(-6px); filter: blur(2px); } }
.scene-body > *, .s-in { animation: part-in 520ms cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes part-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.s-head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-body); font-weight: var(--fw-strong); }
.s-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); color: var(--ink); flex: none; }
.s-ico svg { width: 15px; height: 15px; }
.s-chip { padding: 1px 7px; border-radius: 999px; font-size: var(--fs-caption); font-weight: 500; background: var(--wait-bg); color: var(--wait-ink); }
.s-chip.is-quiet { background: var(--surface-2); color: var(--ink-2); }
.s-state { margin-left: auto; font-size: var(--fs-caption); font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.s-title { font-size: var(--fs-strong); font-weight: var(--fw-strong); line-height: 1.45; }
.s-sub { font-size: var(--fs-caption); color: var(--ink-2); }
/* 早上：一条迷你时间轴，AI 把两件事排进空档 */
.s-axis { position: relative; height: 46px; margin-top: 2px; }
.s-axis::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line-strong); }
.s-blk { position: absolute; top: 18px; height: 9px; border-radius: 5px; background: var(--ink-3); opacity: .55; }
.s-blk.is-ai { background: var(--wait-dot); opacity: 1; transform-origin: left center; animation: blk-grow 560ms cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--d) * 1ms); }
@keyframes blk-grow { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
.s-lab { position: absolute; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.s-lab.is-top { top: 0; } .s-lab.is-bottom { top: 31px; color: var(--wait-ink); font-weight: 600; }
.s-scan { position: absolute; top: 10px; bottom: 10px; width: 40px; background: linear-gradient(90deg, transparent, var(--wait-bg), transparent); animation: scan 1300ms cubic-bezier(.45,0,.25,1) 250ms both; }
@keyframes scan { from { left: -10%; opacity: 1; } 85% { opacity: 1; } to { left: 100%; opacity: 0; } }
.s-row { display: flex; align-items: center; gap: 8px; font-size: var(--fs-caption); color: var(--ink); }
.s-box { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line-strong); flex: none; display: grid; place-items: center; }
.s-box.is-on { background: var(--accent); box-shadow: none; animation: tick 360ms cubic-bezier(.34,1.5,.64,1) both; animation-delay: calc(var(--d) * 1ms); }
.s-box.is-on::after { content: ""; width: 7px; height: 4px; border: 1.5px solid var(--on-accent); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
@keyframes tick { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.s-time { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--wait-bg); color: var(--wait-ink); font-variant-numeric: tabular-nums; }
.s-tag { padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.s-btns { display: flex; gap: 8px; margin-top: auto; }
.s-btn { padding: 4px 10px; border-radius: 999px; font-size: var(--fs-caption); background: var(--surface-2); color: var(--ink); }
.s-btn.is-solid { background: var(--btn-solid-bg); color: var(--btn-solid-fg); }
/* 会后：纪要亮起，两件待办落下来 */
.s-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--done-dot); box-shadow: 0 0 0 0 var(--done-dot); animation: ping 1200ms ease-out 300ms 2; }
@keyframes ping { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--done-dot) 60%, transparent); } to { box-shadow: 0 0 0 8px transparent; } }
/* 会前：铃铛摇一下，倒计时条走着 */
.s-bell svg { animation: bell 900ms ease-in-out 300ms 2; transform-origin: 50% 15%; }
@keyframes bell { 0%, 100% { transform: none; } 20% { transform: rotate(14deg); } 40% { transform: rotate(-11deg); } 60% { transform: rotate(7deg); } 80% { transform: rotate(-4deg); } }
.s-count { font-family: var(--font-num); font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.s-bar { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.s-bar > i { display: block; height: 100%; width: 100%; background: var(--today-dot); transform-origin: left; animation: drain 6500ms linear both; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(.92); } }
/* 收工：三张小卡收成一摞 */
.s-stack { position: relative; height: 62px; margin-top: 2px; }
.s-paper { position: absolute; left: 0; top: 0; width: 46%; height: 30px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; animation: stack 1100ms cubic-bezier(.65,0,.35,1) both; animation-delay: calc(var(--d) * 1ms); }
@keyframes stack { from { transform: translate(var(--fx), var(--fy)) rotate(0deg); } to { transform: translate(var(--tx), var(--ty)) rotate(var(--r)); } }
.s-moon svg { color: var(--wait-dot); }

/* 进度：四段，走完一段换下一张；悬停、聚焦时停住 */
.scene-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.scene-steps { display: flex; gap: 6px; }
.scene-step { position: relative; width: 28px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: var(--line-strong); overflow: hidden; cursor: pointer; }
.scene-step::before { content: ""; position: absolute; inset: -8px -2px; }
.scene-step > i { position: absolute; inset: 0; background: var(--ink-2); transform-origin: left; transform: scaleX(0); }
.scene-step.is-done > i { transform: none; }
.scene-step.is-on > i { animation: step-fill var(--dwell, 6500ms) linear both; }
@keyframes step-fill { to { transform: none; } }
.showcase:is(:hover, :focus-within) .scene-step.is-on > i, [data-motion="paused"] .scene-step.is-on > i { animation-play-state: paused; }
.scene-note { font-size: 11px; color: var(--ink-3); white-space: nowrap; }

/* 后台与静态 */
[data-hidden="true"] :is(.scene-step.is-on > i, .eyebrow-dot, .uc-shine) { animation-play-state: paused; }
[data-motion="static"] :is(.eyebrow-dot, .uc-shine, .eyebrow, .auth-card, .story *, .story, .scene-card, .scene-sheen, .scene-body *, .scene-step > i) { animation: none !important; }
[data-motion="static"] .scene-step.is-on > i { transform: none; }
[data-motion="static"] .s-paper { transform: translate(var(--tx), var(--ty)) rotate(var(--r)); }
@media (prefers-reduced-motion: reduce) { :is(.eyebrow-dot, .uc-shine, .eyebrow, .auth-card, .story *, .story, .scene-card, .scene-sheen, .scene-body *) { animation: none !important; } .s-paper { transform: translate(var(--tx), var(--ty)) rotate(var(--r)); } }

@media (max-width: 1050px) { .showcase { width: 100%; } }
@media (max-width: 760px) { .showcase { display: none; } .story { min-height: 0; } .page-main { padding-bottom: 36px; } }
/* 收工卡：左边一摞纸，右边两个数 */
.s-even { display: flex; align-items: center; gap: 20px; flex: 1; }
.s-even .s-stack { position: relative; flex: 0 0 58%; height: 84px; margin: 0; }
.s-even .s-paper { width: 82%; height: 34px; padding: 8px 12px; font-size: 12px; background: var(--surface-raised); box-shadow: 0 0 0 1px var(--line-strong), 0 2px 6px var(--line); }
.s-even .s-paper.is-top { color: var(--ink); font-weight: 600; z-index: 1; }
.s-stats { display: flex; gap: 22px; }
.s-stats > div { display: flex; flex-direction: column; gap: 2px; }
.s-num { font-family: var(--font-num); font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.s-stats span { font-size: var(--fs-caption); color: var(--ink-2); }

/* ===== 第二轮（本文提案）：新背景、眉标代替 TODAY.、重做登录卡、整体布局 ===== */
/* 背景：画布铺满；网格聚光模式只用 CSS；颗粒一直在，给画面一点质感 */
.atmosphere { background: var(--bg); }
#bg-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.atmosphere[data-gl="off"] { background: radial-gradient(70% 60% at 20% 90%, var(--login-ribbon), transparent 70%), linear-gradient(135deg, var(--login-paper) 30%, var(--bg)); }
.bg-grid, .bg-spot { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms ease; }
.atmosphere[data-bg="grid"] #bg-gl { visibility: hidden; }
.atmosphere[data-bg="grid"] .bg-grid { opacity: 1; background-image: radial-gradient(var(--line-strong) 1px, transparent 1.6px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(80% 70% at 60% 45%, #000 30%, transparent 85%); mask-image: radial-gradient(80% 70% at 60% 45%, #000 30%, transparent 85%); }
.atmosphere[data-bg="grid"] .bg-spot { opacity: 1; background: radial-gradient(520px circle at var(--mx, 72%) var(--my, 42%), var(--login-spot), transparent 70%), radial-gradient(40% 50% at 78% 50%, var(--login-spot-2), transparent 70%); }
body.wb-root { --login-spot: rgba(240, 160, 110, .16); --login-spot-2: rgba(255, 255, 255, .7); }
[data-theme="dark"] body.wb-root { --login-spot: rgba(158, 214, 255, .09); --login-spot-2: rgba(255, 255, 255, .03); }
[data-skin="night-glass"] body.wb-root { --login-spot: rgba(242, 179, 61, .16); }
[data-skin="night-glass"][data-theme="dark"] body.wb-root { --login-spot: rgba(242, 179, 61, .1); }
.bg-grain { position: absolute; inset: 0; opacity: .05; mix-blend-mode: multiply; background-image: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
[data-theme="dark"] .bg-grain { mix-blend-mode: screen; opacity: .035; }

/* 布局：左右两栏，左边略宽；内容整体在视口里垂直居中 */
.page-header { width: min(100% - 160px, 1240px); padding-block: 32px; }
.page-main { width: min(100% - 160px, 1240px); grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(64px, 9vw, 140px); padding: 24px 0 80px; }

/* 眉标：代替原来的大号 TODAY. */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface-raised) 62%, transparent); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--font-num); font-size: 12px; letter-spacing: .14em; color: var(--ink-2); font-variant-numeric: tabular-nums; animation: part-in 700ms cubic-bezier(.16,1,.3,1) 80ms both; }
.eyebrow-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--today-dot); }
.eyebrow-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--today-dot); animation: dot-ping 2.4s cubic-bezier(0,0,.2,1) infinite; }
@keyframes dot-ping { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
.eyebrow-word { color: var(--ink); font-weight: 700; letter-spacing: .22em; }
.eyebrow-sep { width: 1px; height: 12px; background: var(--line-strong); }
.eyebrow-time { color: var(--ink-3); letter-spacing: .06em; }

/* 主标题：轮换的主句放大成页面主角 */
.story { margin-top: 26px; min-height: 112px; }
.story .today-greeting { margin-top: 0; font-family: var(--font-display); font-size: 44px; font-weight: 650; line-height: 1.22; letter-spacing: -.012em; color: var(--ink); }
.story .today-caption { margin-top: 14px; font-size: var(--fs-lead); color: var(--ink-2); white-space: normal; }
.showcase { margin-top: 40px; width: min(100%, 500px); }

/* 登录卡 */
.auth-card { position: relative; padding: 36px 36px 26px; border-radius: var(--radius-panel); background: color-mix(in srgb, var(--surface-raised) 84%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .55); animation: part-in 760ms cubic-bezier(.16,1,.3,1) 160ms both; }
[data-theme="dark"] .auth-card { box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .06); }
.auth-mark { margin-bottom: 22px; }
.auth-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--btn-solid-bg); color: var(--btn-solid-fg); box-shadow: 0 6px 18px color-mix(in srgb, var(--btn-solid-bg) 28%, transparent); }
.auth-logo .icon { width: 20px; height: 20px; }
.auth-heading h2 { font-size: 26px; letter-spacing: -.015em; }
.auth-sub { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-body); }
.uc-entry { margin-top: 28px; }
.primary-button { overflow: hidden; min-height: 54px; justify-content: flex-start; padding: 0 18px 0 12px; border-radius: var(--radius-ctl); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 8px 20px -8px color-mix(in srgb, var(--btn-solid-bg) 60%, transparent); }
.primary-button #uc-label { flex: 1; text-align: left; }
.uc-badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--btn-solid-fg) 14%, transparent); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.uc-arrow { transition: transform 220ms cubic-bezier(.22,1,.36,1); }
.primary-button:hover:not(:disabled) .uc-arrow { transform: translateX(3px); }
.uc-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--btn-solid-fg) 22%, transparent) 50%, transparent 70%); transform: translateX(-110%); animation: uc-shine 5.5s cubic-bezier(.4,0,.2,1) 1.4s infinite; }
@keyframes uc-shine { 0% { transform: translateX(-110%); } 22%, 100% { transform: translateX(110%); } }
.primary-button:disabled .uc-shine { display: none; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--ink-3); font-size: var(--fs-caption); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-entry { margin-top: 0; }
.demo-toggle { width: 100%; min-height: 48px; gap: 8px; border-radius: var(--radius-ctl); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-size: var(--fs-body); }
.demo-toggle .icon { width: 16px; height: 16px; }
.demo-toggle .chev { margin-left: 2px; width: 14px; height: 14px; color: var(--ink-3); }
.demo-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.demo-toggle[aria-expanded="true"] .icon:not(.chev) { transform: none; }
#demo-form { margin-top: 16px; padding-top: 0; border-top: 0; animation: part-in 420ms cubic-bezier(.16,1,.3,1) both; }
.auth-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--fs-caption); color: var(--ink-3); }
.auth-foot > span:first-child { margin-right: 2px; }
.svc { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.svc i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.notice, .context-message { margin-top: 20px; }

@media (max-width: 1050px) {
  .page-header, .page-main { width: calc(100% - 80px); }
  .page-main { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; }
  .story .today-greeting { font-size: 36px; }
}
@media (max-width: 760px) {
  .page-header { width: calc(100% - 40px); }
  .page-main { width: min(100% - 32px, 440px); grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 12px 0 32px; }
  .intro { padding: 0 4px; }
  .story { margin-top: 18px; min-height: 0; }
  .story .today-greeting { font-size: 28px; }
  .story .today-caption { font-size: var(--fs-body); margin-top: 8px; }
  .auth-card { padding: 26px 22px 20px; }
  .auth-mark { display: none; }
}
.story .today-greeting { min-height: 0; }
.story { min-height: 96px; }
[data-motion="static"] .eyebrow-dot::after, [data-hidden="true"] .eyebrow-dot::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .eyebrow-dot::after { animation: none; } }
