/* 图床 —— 新拟物派 + 侧边栏布局 */
:root {
  --bg: #e0e5ec;
  --bg-dark: #c8cdd5;
  --surface: #e0e5ec;
  --text: #4a5568;
  --text-head: #2d3748;
  --text-soft: #718096;
  --muted: #a0aec0;
  --accent: #2563eb;
  --accent-bg: #dbeafe;
  --danger: #e53e3e;
  --ok: #38a169;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-out: 6px 6px 12px #b8bcc2, -6px -6px 12px #ffffff;
  --shadow-out-sm: 3px 3px 6px #b8bcc2, -3px -3px 6px #ffffff;
  --shadow-out-lg: 10px 10px 20px #b8bcc2, -10px -10px 20px #ffffff;
  --shadow-in: inset 4px 4px 8px #b8bcc2, inset -4px -4px 8px #ffffff;
  --shadow-in-sm: inset 2px 2px 5px #b8bcc2, inset -2px -2px 5px #ffffff;
  --sidebar-w: 210px;
  --topbar-h: 54px;
  --font-sans: -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  /* 弹性缓动：等效 GSAP back.out(1.6) / elastic 系，全站 Q 弹核心 */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-spring-2: cubic-bezier(.26, 1.9, .46, 1);
  --ease-elastic: cubic-bezier(.68, -.6, .32, 1.6);
  --pt-dur: .62s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }

/* ========== 侧边栏布局 ========== */
.layout-app { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--bg);
  box-shadow: 3px 0 8px rgba(184,188,194,.25);
  display: flex; flex-direction: column; height: 100vh; z-index: 10;
}
.sidebar-inner { display: flex; flex-direction: column; height: 100%; padding: 16px 0; }
.sidebar .brand {
  font-size: 17px; font-weight: 800; color: var(--text-head);
  letter-spacing: -.02em; padding: 0 20px 20px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar .brand:hover { color: var(--text-head); }
.side-nav { flex: 1; padding: 8px 12px 0; }
.side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  font-size: 14px; color: var(--text-soft);
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  cursor: pointer; margin-bottom: 8px;
  transition: box-shadow .2s var(--ease), color .2s var(--ease), background .2s var(--ease), transform .3s var(--ease-spring);
}
.side-item:hover { box-shadow: var(--shadow-out); color: var(--text-head); transform: translateX(3px); }
.side-item:active { transform: scale(.96); }
.side-item.active {
  box-shadow: var(--shadow-in-sm);
  color: var(--accent);
}
.side-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-footer { padding: 12px; }
.user-mini { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
  box-shadow: var(--shadow-out-sm);
}
.user-name { font-size: 13px; font-weight: 600; color: var(--text-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-logout { color: var(--muted); }
.side-logout:hover { color: var(--danger); }

.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; height: 100vh; overflow: hidden; }

.topbar {
  height: var(--topbar-h); flex-shrink: 0;
  background: var(--bg);
  box-shadow: 0 2px 6px rgba(184,188,194,.2);
  display: flex; align-items: center;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 28px; }
.topbar-title { font-size: 16px; font-weight: 700; color: var(--text-head); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.content { flex: 1; overflow-y: auto; padding: 24px 28px 80px; }

/* ========== 认证页 ========== */
.layout-auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.auth-bg { display: flex; align-items: center; justify-content: center; width: 100%; padding: 24px; }
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--bg); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow-out-lg);
}
.auth-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg); box-shadow: var(--shadow-out);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--accent);
}
.auth-icon svg { width: 24px; height: 24px; }
.auth-title { font-size: 22px; font-weight: 700; color: var(--text-head); margin-bottom: 6px; letter-spacing: -.01em; }
.auth-tip { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.auth-form { display: flex; flex-direction: column; gap: 2px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 13px; }
.auth-links a { color: var(--muted); }
.auth-links a:hover { color: var(--accent); }
.remember { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.remember input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: var(--radius-sm); border: none;
  font-size: 14px; font-weight: 600; font-family: inherit; line-height: 1.4;
  cursor: pointer; user-select: none; white-space: nowrap;
  background: var(--bg); color: var(--text);
  box-shadow: var(--shadow-out-sm);
  transition: box-shadow .2s var(--ease), color .2s var(--ease),
              transform .28s var(--ease-spring), background .2s var(--ease);
}
.btn:hover { box-shadow: var(--shadow-out); transform: translateY(-2px) scale(1.04); }
.btn:active { box-shadow: var(--shadow-in-sm); transform: translateY(0) scale(.94); animation: jelly .5s var(--ease-spring) both; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { color: var(--accent); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { color: var(--danger); }
.btn-ghost { box-shadow: none; background: transparent; color: var(--text-soft); }
.btn-ghost:hover { box-shadow: none; }
/* 按钮内图标: bouncy 弹簧手感, stroke-width 1.5 由 icons.mjs hydrate 兜底 */
.btn-ico { flex-shrink: 0; transition: transform .35s var(--ease-spring-2); }
.btn:hover .btn-ico { transform: scale(1.18) rotate(-8deg); }
.btn:hover .btn-ico.ico-down { transform: translateY(2px) scale(1.12); }
.btn:active .btn-ico { transform: scale(.8); }
.btn:disabled .btn-ico { transform: none; }

/* ========== 表单 ========== */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; }
.input {
  width: 100%; padding: 10px 14px; border: none; border-radius: var(--radius-sm);
  background: var(--bg); font-size: 14px; font-family: inherit; color: var(--text-head);
  box-shadow: var(--shadow-in-sm);
  transition: box-shadow .2s var(--ease);
}
.input:focus { outline: none; box-shadow: var(--shadow-in), 0 0 0 2px rgba(37,99,235,.12); }
.input::placeholder { color: var(--muted); }
.field-code { display: flex; gap: 10px; align-items: flex-end; }
.field-grow { flex: 1; }
.btn-code { height: 43px; padding: 0 14px; flex-shrink: 0; }

/* 注册实时检测提示 */
.field-check {
  margin-top: 5px; font-size: 12.5px; min-height: 18px; line-height: 1.4;
  color: var(--muted);
  animation: field-check-in .3s var(--ease-spring) both;
}
.field-check.ok { color: var(--ok); }
.field-check.err { color: var(--danger); }
@keyframes field-check-in {
  from { opacity: 0; transform: translateY(-4px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; animation: rise .25s var(--ease) both; box-shadow: var(--shadow-out-sm); }
.alert-err { background: #fff5f5; color: var(--danger); }
.alert-ok { background: #f0fff4; color: var(--ok); }

/* ========== 应用页 ========== */
.dropzone {
  border: 2px dashed rgba(184,188,194,.45); border-radius: var(--radius);
  background: var(--bg); padding: 44px 24px; text-align: center; cursor: pointer;
  box-shadow: var(--shadow-in);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .3s var(--ease-spring);
}
.dropzone:hover, .dropzone.drag, .dropzone:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-in), 0 0 0 3px rgba(37,99,235,.08);
  outline: none;
}
.dropzone:hover { transform: translateY(-3px) scale(1.01); }
.dropzone:active { transform: scale(.985); }
.dz-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg); box-shadow: var(--shadow-out-sm);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; color: var(--accent);
  transition: transform .4s var(--ease-spring);
}
.dropzone:hover .dz-icon { transform: translateY(-4px) scale(1.12) rotate(-4deg); }
.dz-icon svg { width: 24px; height: 24px; }
.dz-title { font-size: 16px; font-weight: 700; color: var(--text-head); margin-bottom: 6px; }
.dz-sub { font-size: 13px; color: var(--muted); line-height: 1.6; }
.dz-link { color: var(--accent); cursor: pointer; font-weight: 600; }
.dz-note {
  margin-top: 12px; width: 100%; padding: 8px 14px;
  border: none; border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  box-shadow: var(--shadow-in-sm);
  font-size: 13px; outline: none;
  transition: box-shadow .2s var(--ease);
}
.dz-note:focus { box-shadow: var(--shadow-in), 0 0 0 2px rgba(37,99,235,.15); }
.dz-note::placeholder { color: var(--muted); }

.upload-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.upload-item {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px;
  background: var(--bg); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-out-sm);
  animation: pop-in .4s var(--ease-spring) both; font-size: 13px;
}
.upload-item.done { animation: pop-done .45s var(--ease-spring) both; }
.upload-item.fail { animation: pop-in .4s var(--ease-spring) both; }
.upload-item.bye { transition: transform .35s var(--ease-spring), opacity .35s var(--ease); transform: scale(.8) translateY(8px); opacity: 0; }
.upload-item .u-name { flex: 0 1 auto; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item .u-bar { flex: 1; height: 5px; border-radius: 99px; background: var(--bg); box-shadow: var(--shadow-in-sm); overflow: hidden; }
.upload-item .u-bar > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .15s linear; }
.upload-item .u-pct { flex: 0 0 42px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.upload-item.done .u-bar > i { background: var(--ok); }
.upload-item.fail .u-bar > i { background: var(--danger); }

/* 结果流 */
.result-section { margin-top: 28px; }
.result-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.result-label { font-size: 15px; font-weight: 700; color: var(--text-head); }
.result-count { font-size: 13px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; width: 100%; }
/* 首页大卡片 */
.grid-large { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; width: 100%; }
.grid-large .thumb { aspect-ratio: 3 / 2; }
.card {
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  position: relative; box-shadow: var(--shadow-out-sm);
  transition: box-shadow .25s var(--ease), opacity .25s var(--ease), transform .35s var(--ease-spring);
  animation: pop-in .45s var(--ease-spring) both;
}
.card:hover { box-shadow: var(--shadow-out); transform: translateY(-4px) scale(1.02); }
.card:active { transform: scale(.97); }
.card.removing { opacity: 0; transform: scale(.9) translateY(10px) rotate(-2deg); transition: transform .4s var(--ease-spring), opacity .35s var(--ease); }
.card .thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-dark); cursor: zoom-in; transition: transform .4s var(--ease-spring); }
.card:hover .thumb { transform: scale(1.06); }
.card .meta { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 4px; font-size: 12px; color: var(--muted); }
.card .meta .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.card .actions { display: flex; gap: 6px; padding: 0 10px 10px; }
.card-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 6px 0; border-radius: 8px; font-size: 12.5px; font-weight: 600; font-family: inherit;
  border: none; background: var(--bg); color: var(--text); cursor: pointer;
  box-shadow: var(--shadow-out-sm); white-space: nowrap;
  transition: box-shadow .2s var(--ease), color .2s var(--ease), transform .25s var(--ease-spring);
}
.card-btn:first-child { flex: 1.6; }
.card-btn:hover { box-shadow: var(--shadow-out); transform: translateY(-1px) scale(1.05); }
.card-btn:active { box-shadow: var(--shadow-in-sm); transform: scale(.9); animation: jelly .45s var(--ease-spring) both; }
.card-btn.del { color: var(--danger); }
.card-btn morph-icon { flex-shrink: 0; }
.card-note {
  padding: 2px 12px 8px; font-size: 12px;
  color: var(--accent); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-height: 20px;
}
.card-note-empty { color: transparent; pointer-events: none; }

.empty { text-align: center; color: var(--muted); padding: 64px 0; font-size: 14px; }
.more-wrap { text-align: center; margin-top: 24px; }

/* 运行时间 - 固定底部 */
.uptime-bar {
  position: fixed; bottom: 0; left: var(--sidebar-w); right: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  background: rgba(224,229,236,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(184,188,194,.3);
  box-shadow: 0 -2px 8px rgba(184,188,194,.2);
  justify-content: center; z-index: 5;
}
.uptime-icon { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.uptime-icon svg { width: 100%; height: 100%; }
.uptime-text { font-size: 13px; color: var(--muted); }
.uptime-text b { color: var(--text-soft); font-weight: 600; }

/* ========== 管理页 ========== */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--bg); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-out); }
.stat-num { font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--text-head); }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.user-list { display: flex; flex-direction: column; gap: 12px; }
.user-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-out-sm);
  animation: pop-in .45s var(--ease-spring) both;
  transition: box-shadow .25s var(--ease), transform .3s var(--ease-spring);
}
.user-card:hover { box-shadow: var(--shadow-out); transform: translateY(-3px); }
.u-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
  box-shadow: var(--shadow-out-sm);
}
.u-info { flex: 1; min-width: 0; }
.u-name { font-size: 15px; font-weight: 600; color: var(--text-head); display: flex; align-items: center; gap: 8px; }
.u-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 用户管理: 操作按钮与封禁态 */
.u-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.user-card.banned { opacity: .72; }
.user-card.banned .u-avatar { background: var(--muted); }
.badge-ban {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  background: var(--danger); color: #fff;
  animation: field-check-in .3s var(--ease-spring) both;
}
.badge-me {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  background: var(--accent); color: #fff;
  animation: field-check-in .3s var(--ease-spring) both;
}
.user-card.is-me { box-shadow: var(--shadow-out); }
.user-card.is-me .u-avatar { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.btn-danger-soft { color: var(--danger); }
.btn-ok { color: var(--ok); }

.toolbar { margin-bottom: 16px; }
.table-wrap { background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-out-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid rgba(184,188,194,.25); vertical-align: middle; }
.table th { font-weight: 600; color: var(--muted); font-size: 12px; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(184,188,194,.12); }
.thumb-sm { width: 52px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--bg-dark); cursor: zoom-in; }
.td-actions { display: flex; gap: 8px; white-space: nowrap; }
.link-btn {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 600;
  background: none; border: none; font-family: inherit; padding: 0;
  transition: transform .3s var(--ease-spring);
}
.link-btn:hover { text-decoration: underline; transform: translateY(-1px) scale(1.06); }
.link-btn:active { transform: scale(.9); }
.link-btn.danger { color: var(--danger); }

/* ---------- 预览 ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; z-index: 60; opacity: 0; transition: opacity .25s var(--ease); }
.lightbox.show { opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius-sm); box-shadow: 0 8px 32px rgba(0,0,0,.4); transform: scale(.85); transition: transform .45s var(--ease-spring-2); }
.lightbox.show img { transform: scale(1); }
.lightbox .lb-close { position: absolute; top: 18px; right: 22px; color: #fff; font-size: 26px; cursor: pointer; background: none; border: none; opacity: .8; transition: transform .3s var(--ease-spring); }
.lightbox .lb-close:hover { opacity: 1; transform: rotate(90deg) scale(1.2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translate(-50%, -20px) scale(.9);
  background: var(--text-head); color: #fff; padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 14px; z-index: 70; opacity: 0; pointer-events: none;
  transition: transform .38s var(--ease-spring-2), opacity .25s var(--ease);
  box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: 80vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast.err { background: var(--danger); }

/* ---------- 落地页 ---------- */
.hero { padding: 64px 0 40px; text-align: center; }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: 900px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: var(--bg); box-shadow: var(--shadow-out-sm); color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 20px; transition: transform .3s var(--ease-spring); }
.hero-badge:hover { transform: scale(1.06); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; animation: dot-pulse 1.8s ease-in-out infinite; }
.hero-title { font-size: clamp(34px, 5vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--text-head); margin-bottom: 16px; }
.hero-sub { color: var(--text-soft); font-size: 17px; line-height: 1.75; max-width: 480px; margin: 0 auto; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-preview { background: var(--bg); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-out); width: 100%; max-width: 400px; transition: transform .4s var(--ease-spring); animation: floaty 5s ease-in-out infinite; }
.hero-preview:hover { transform: translateY(-5px) rotate(-1deg) scale(1.02); animation-play-state: paused; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(.6deg); }
}
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg); box-shadow: var(--shadow-in-sm); margin-bottom: 12px; font-size: 13px; color: var(--text-soft); }
.preview-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.preview-url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: monospace; color: var(--accent); }
.preview-img { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--accent-bg), #f0fff4); box-shadow: var(--shadow-in-sm); overflow: hidden; display: flex; align-items: center; justify-content: center; transition: transform .4s var(--ease-spring); }
.preview-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius-sm); }
.preview-img .preview-tag { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); pointer-events: none; }

.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 800px; margin: 0 auto 48px; }
.stat-card { background: var(--bg); border-radius: var(--radius); padding: 20px 18px; box-shadow: var(--shadow-out); display: flex; align-items: center; gap: 14px; transition: transform .35s var(--ease-spring), box-shadow .25s var(--ease); }
.stat-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-out-lg); }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-in-sm); }
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon-blue { color: var(--accent); }
.stat-icon-green { color: var(--ok); }
.stat-icon-amber { color: var(--warn, #d69e2e); }
.stat-num { font-size: 24px; font-weight: 700; color: var(--text-head); line-height: 1.2; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 800px; margin: 0 auto 48px; }
.step { background: var(--bg); border-radius: var(--radius); padding: 24px 20px; text-align: center; box-shadow: var(--shadow-out); transition: transform .35s var(--ease-spring), box-shadow .25s var(--ease); }
.step:hover { transform: translateY(-5px) scale(1.03); box-shadow: var(--shadow-out-lg); }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 14px; transition: transform .4s var(--ease-spring); }
.step:hover .step-num { transform: scale(1.2) rotate(8deg); }
.step h3 { font-size: 16px; font-weight: 700; color: var(--text-head); margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

.features { display: flex; justify-content: center; gap: 40px; padding: 0 24px 56px; flex-wrap: wrap; max-width: 800px; margin: 0 auto; }
.feature { text-align: center; transition: transform .35s var(--ease-spring); }
.feature:hover { transform: translateY(-4px) scale(1.05); }
.feature-tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--text-soft); padding: 5px 14px; border-radius: 99px; background: var(--bg); box-shadow: var(--shadow-out-sm); margin-bottom: 8px; transition: transform .3s var(--ease-spring), box-shadow .25s var(--ease); }
.feature:hover .feature-tag { transform: scale(1.1) rotate(-2deg); box-shadow: var(--shadow-out); }
.feature p { font-size: 13.5px; color: var(--muted); }

.foot-bare { border-top: 1px solid rgba(184,188,194,.3); padding: 20px 0; margin-top: 48px; }

/* ========== 动效 ========== */
/* 入场: 弹性上升 (等效 GSAP back.out(1.6), 带超调回弹) */
@keyframes rise {
  0%   { opacity: 0; transform: translateY(30px) scale(.96); }
  55%  { opacity: 1; transform: translateY(-5px) scale(1.01); }
  80%  { transform: translateY(2px); }
  100% { transform: none; }
}
.rise { animation: rise .65s var(--ease-spring) both; }

/* 卡片/列表项 弹簧弹入 (等效 GSAP back.out(2)) */
@keyframes pop-in {
  0%   { opacity: 0; transform: scale(.6) translateY(34px); }
  55%  { opacity: 1; transform: scale(1.08) translateY(-6px); }
  75%  { transform: scale(.97) translateY(3px); }
  90%  { transform: scale(1.02) translateY(-1px); }
  100% { transform: scale(1) translateY(0); }
}
/* 上传完成 弹一下 */
@keyframes pop-done {
  0% { transform: scale(1); }
  35% { transform: scale(1.03, .97); }
  65% { transform: scale(.97, 1.03); }
  100% { transform: scale(1); }
}
/* 果冻回弹（按钮/图标点击反馈） */
@keyframes jelly {
  0%   { transform: scale(1); }
  28%  { transform: scale(1.14, .86); }
  52%  { transform: scale(.92, 1.08); }
  74%  { transform: scale(1.05, .96); }
  100% { transform: scale(1); }
}
/* 呼吸圆点 */
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: .55; }
}

/* 开场/转场期间锁交互 */
body.pt-locked { pointer-events: none; }
body.pt-locked .pt-curtain { pointer-events: none; }

/* 开场幕布（页面加载）: 默认盖住(避免加载闪烁), JS 未运行则藏起(FOUC 防护) */
.pt-curtain {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transform: translateY(0);
}
html:not(.js-ok) .pt-curtain { transform: translateY(102%); }
.pt-curtain-inner {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  animation: curtain-inner .7s var(--ease-spring) both;
}
.pt-logo {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--bg); box-shadow: var(--shadow-out);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 26px; font-weight: 800;
  animation: curtain-logo .8s var(--ease-spring) both;
}
.pt-bar {
  width: 150px; height: 6px; border-radius: 99px;
  background: var(--bg); box-shadow: var(--shadow-in-sm);
  overflow: hidden; position: relative;
}
.pt-bar::after {
  content: ''; position: absolute; inset: 0;
  width: 40%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), #7dd3fc, var(--accent));
  animation: curtain-bar 1.1s var(--ease) infinite;
}
@keyframes curtain-inner {
  from { opacity: 0; transform: scale(.8) translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes curtain-logo {
  from { transform: scale(.4) rotate(-14deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(4deg); }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes curtain-bar {
  from { transform: translateX(-120%); }
  to { transform: translateX(380%); }
}
/* 幕布过渡类(兼容保留, JS 主要用 WAAPI 驱动) */
.pt-curtain.done { transition: transform .7s var(--ease-spring-2); transform: translateY(-102%); }
.pt-curtain.transit { transition: transform .55s var(--ease); transform: translateY(0); }
/* 转场时进度条改为铺满 */
.pt-curtain.transit .pt-bar::after { width: 100%; animation: none; background: linear-gradient(90deg, var(--accent), #60a5fa); transform: translateX(0); transition: transform .55s var(--ease); }
/* 转场完成前不显示 logo 内容,快速盖住即可 */
.pt-curtain.transit .pt-curtain-inner { opacity: 0; animation: none; }

/* 转场滚动感: 页面内容上移淡出(模拟向下滚动翻页) */
body.pt-leaving .content,
body.pt-leaving .hero,
body.pt-leaving .auth-card {
  transition: transform .48s var(--ease), opacity .48s var(--ease);
  transform: translateY(-58px) scale(.985);
  opacity: .25;
}

/* 转场进入: 内容从下方弹性滚上来(等效 GSAP back.out) */
body.pt-enter .content,
body.pt-enter .hero,
body.pt-enter .auth-card {
  animation: pt-enter .78s var(--ease-spring-2) both;
}
@keyframes pt-enter {
  from { opacity: 0; transform: translateY(46px) scale(.985); }
  to { opacity: 1; transform: none; }
}

/* 滚动显现（IntersectionObserver 驱动） */
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(.97);
  transition: opacity .6s var(--ease), transform .65s var(--ease-spring);
  will-change: transform, opacity;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-stagger] { transition-delay: calc(var(--i, 0) * 70ms); }

/* FOUC 防护: 若 JS 未运行, 3s 后强制显示 */
html:not(.js-ok) .reveal { animation: rise .6s var(--ease-spring) both; animation-delay: 3s; }

/* ---------- 响应式 ---------- */
@media (max-width: 780px) {
  .layout-app { flex-direction: column; height: auto; min-height: 100vh; }
  .sidebar { width: 100%; height: auto; box-shadow: 0 3px 8px rgba(184,188,194,.25); }
  .sidebar-inner { height: auto; padding: 10px 14px; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .sidebar .brand { border-bottom: none; padding: 0; font-size: 16px; }
  .side-nav { display: flex; flex-direction: row; gap: 4px; padding: 0; flex: unset; }
  .side-item { padding: 8px 12px; font-size: 13px; margin-bottom: 0; }
  .side-item span { display: none; }
  .sidebar-footer { display: flex; flex-direction: row; gap: 6px; padding: 0; }
  .user-mini { display: none; }
  .side-logout span { display: none; }
  .main-area { height: auto; overflow: visible; }
  .content { padding: 16px 14px 36px; overflow: visible; }
  .stats-bar { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .features { flex-direction: column; align-items: center; gap: 20px; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .hero-preview { max-width: 100%; }
  .page-head { flex-direction: column; gap: 4px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .dropzone { padding: 32px 16px; }
  .uptime-bar { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
