/* ============ 开机（macOS 风格） ============ */
.boot {
  position: fixed; inset: 0; z-index: 4000;
  background: #000; color: #fff;
  display: grid; place-items: center;
  transition: opacity .6s ease;
}
.boot.boot-out { opacity: 0; pointer-events: none; }
.boot-mark { display: grid; justify-items: center; gap: 0; opacity: 0; transition: opacity .5s ease; }
.boot.on .boot-mark { opacity: 1; }
.boot-logo { width: 84px; height: 84px; color: #fff; }
.boot-progress {
  width: 172px; height: 4.5px; border-radius: 3px; margin-top: 64px;
  background: rgba(255, 255, 255, .26); overflow: hidden;
}
.boot-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: #fff; transition: width .4s cubic-bezier(.3, .6, .3, 1); }
.boot-word { margin-top: 18px; font-size: 12px; letter-spacing: .14em; color: rgba(255, 255, 255, .38); }
.boot-skip {
  position: absolute; right: 20px; bottom: 20px;
  font-size: 12px; color: rgba(255, 255, 255, .35);
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer; transition: color .2s, border-color .2s;
}
.boot-skip:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.boot-skip kbd { font: 11px var(--mono); opacity: .7; margin-left: 4px; }

/* ============ 登录 / 锁屏（共用） ============ */
.welcome {
  position: fixed; inset: 0; z-index: 3000;
  color: #fff;
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  background: rgba(0, 0, 0, 0);
  transition: backdrop-filter .7s ease, -webkit-backdrop-filter .7s ease, background .7s ease, opacity .6s ease;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .18);
  user-select: none;
}
.lk-date { font-weight: 600; opacity: .9; }
.lk-time { font-variant-numeric: tabular-nums; line-height: 1; }

/* ---------- macOS 登录 ---------- */
.welcome.is-mac {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 7vh 20px 9vh;
}
.welcome.is-mac.in { -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); background: rgba(0, 0, 0, .1); }
.is-mac .lk-top { text-align: center; opacity: 0; transform: translateY(-8px); transition: opacity .6s .1s, transform .7s var(--ease-out) .1s; }
.is-mac.in .lk-top { opacity: 1; transform: none; }
.is-mac .lk-date { font-size: 21px; }
.is-mac .lk-time {
  font-family: ui-rounded, "SF Pro Rounded", var(--font);
  font-size: clamp(88px, 11vw, 132px); font-weight: 600; letter-spacing: -.02em; margin-top: 2px;
  color: rgba(255, 255, 255, .92);
}
.is-mac .lk-msg { margin-top: 14px; font-size: 15px; font-weight: 500; opacity: .85; }
.lk-user { display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity .6s .35s, transform .7s var(--ease-out) .35s; }
.is-mac.in .lk-user { opacity: 1; transform: none; }
.lk-avatar .avatar { width: 72px; height: 72px; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.lk-name { font-size: 16px; font-weight: 600; }
.lk-field {
  position: relative; width: 200px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 0 4px 0 16px; color: rgba(255, 255, 255, .75); font-size: 13px;
  --glass-bg: rgba(255, 255, 255, .16);
  --glass-hi: rgba(255, 255, 255, .55);
  --glass-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  cursor: pointer; text-shadow: none;
  transition: transform .3s var(--ease-spring);
}
.lk-field:hover { color: #fff; }
.lk-field:active { transform: scale(.97); }
.lk-go { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); }
.lk-go .glyph { width: 15px; height: 15px; }
.lk-hint { font-size: 12px; opacity: .55; }
.welcome.is-mac.leaving { -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); background: rgba(0, 0, 0, 0); opacity: 0; pointer-events: none; }
.welcome.is-mac.leaving .lk-user { opacity: 0; transform: scale(.94); transition-delay: 0s; transition-duration: .3s; }
.welcome.is-mac.leaving .lk-top { opacity: 0; transform: translateY(-20px); transition-delay: .05s; }

/* ---------- iOS 锁屏 ---------- */
.welcome.is-ios {
  display: flex; flex-direction: column; align-items: center;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  touch-action: none; will-change: transform;
}
.welcome.is-ios.in { -webkit-backdrop-filter: blur(calc(var(--lift, 0) * 20px)); backdrop-filter: blur(calc(var(--lift, 0) * 20px)); }
.lk-status { align-self: stretch; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 30px; }
.lk-status-r { display: flex; align-items: center; gap: 6px; }
.lk-status-r .glyph { width: 17px; height: 17px; stroke-width: 2.2; }
.is-ios .lk-top { text-align: center; margin-top: 4vh; opacity: calc(1 - var(--lift, 0)); }
.lk-lock { display: grid; place-items: center; margin-bottom: 8px; }
.lk-lock .glyph { width: 20px; height: 20px; stroke-width: 2.2; }
.is-ios .lk-date { font-size: 20px; }
.is-ios .lk-time {
  font-family: ui-rounded, "SF Pro Rounded", var(--font);
  font-size: min(29vw, 118px); font-weight: 700; letter-spacing: -.03em; margin-top: 4px;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .12);
}
.lk-notice {
  position: relative; margin-top: auto; width: calc(100% - 20px); max-width: 400px;
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 24px;
  --glass-bg: rgba(255, 255, 255, .18);
  --glass-hi: rgba(255, 255, 255, .5);
  text-shadow: none; opacity: 0; transform: translateY(16px);
  transition: opacity .5s .4s, transform .6s var(--ease-spring) .4s;
}
.is-ios.in .lk-notice { opacity: 1; transform: none; }
.lk-notice-icon { width: 38px; height: 38px; flex: none; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(140deg, #4c7dff, #9a6bff); color: #fff; }
.lk-notice-icon .logo { width: 60%; height: 60%; }
.lk-notice > div { flex: 1; min-width: 0; }
.lk-notice-head { display: flex; justify-content: space-between; font-size: 14px; }
.lk-notice-head small { opacity: .7; font-size: 13px; }
.lk-notice p { margin: 1px 0 0; font-size: 14px; line-height: 1.4; opacity: .95; }
.lk-actions { width: 100%; display: flex; justify-content: space-between; padding: 0 44px; margin-top: 24px; }
.lk-round {
  position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  --glass-bg: rgba(0, 0, 0, .22);
  --glass-hi: rgba(255, 255, 255, .4);
}
.lk-round.on { --glass-bg: rgba(255, 255, 255, .9); color: #111; }
.lk-round .glyph { width: 22px; height: 22px; }
.lk-swipe { display: grid; justify-items: center; gap: 10px; padding: 18px 0 8px; }
.lk-swipe span { font-size: 14px; opacity: .8; animation: swipe-hint 2.4s ease-in-out infinite; }
.lk-homebar { width: 136px; height: 5px; border-radius: 5px; background: #fff; }
@keyframes swipe-hint { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-6px); opacity: .95; } }
