/* ==========================================================================
   神奇小殷 · 电赛协作平台  设计系统 v2
   --------------------------------------------------------------------------
   设计语言：Apple 的「材质与层次」 + Google Material 3 的「状态层与动效」
   1  设计令牌        2  基础层        3  材质与表面    4  通用组件
   5  表单            6  数据展示      7  Markdown      8  业务模块
   9  动效系统        10 响应式
   ========================================================================== */

/* ============================ 1. 设计令牌 ============================== */
:root {
  --brand:        #6366f1;
  --brand-2:      #06b6d4;
  --brand-3:      #8b5cf6;
  --brand-ink:    #4f46e5;
  --grad:         linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --grad-warm:    linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --grad-soft:    linear-gradient(135deg, rgba(99,102,241,.14), rgba(6,182,212,.08));

  --ok:     #10b981;
  --warn:   #f59e0b;
  --danger: #ef4444;
  --info:   #0ea5e9;

  --chart-1: #6366f1;  --chart-2: #06b6d4;  --chart-3: #8b5cf6;
  --chart-4: #10b981;  --chart-5: #f59e0b;  --chart-6: #ec4899;

  --r-xs:   6px;
  --r-sm:   10px;
  --r:      14px;
  --r-lg:   20px;
  --r-xl:   26px;
  --r-2xl:  34px;
  --r-full: 999px;

  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --ease-in-out:cubic-bezier(.65, 0, .35, 1);
  --ease-spring:cubic-bezier(.34, 1.56, .64, 1);
  --ease-std:   cubic-bezier(.2, 0, 0, 1);

  --d-instant: .1s;
  --d-fast:    .18s;
  --d-base:    .28s;
  --d-slow:    .5s;
  --d-page:    .62s;

  --sidebar-w: 262px;
  --topbar-h:  68px;
  --content-max: 1360px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei",
          system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  --bg:            #05060a;
  --bg-2:          #090b12;
  --elev-0:        #0b0d15;
  --elev-1:        #10131d;
  --elev-2:        #161a26;
  --elev-3:        #1d2231;

  --surface:       rgba(255,255,255,.036);
  --surface-2:     rgba(255,255,255,.058);
  --surface-3:     rgba(255,255,255,.085);
  --surface-solid: #12151f;

  --border:        rgba(255,255,255,.075);
  --border-2:      rgba(255,255,255,.13);
  --hairline:      rgba(255,255,255,.11);

  --text:          #f2f5fb;
  --text-2:        #a2aec4;
  --text-3:        #69748c;

  --shadow-xs:  0 1px 2px rgba(0,0,0,.4);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.3);
  --shadow:     0 16px 42px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.35);
  --shadow-lg:  0 32px 80px rgba(0,0,0,.62), 0 4px 16px rgba(0,0,0,.4);
  --glow:       0 0 0 1px rgba(99,102,241,.3), 0 14px 44px rgba(99,102,241,.22);
  --scroll:     rgba(255,255,255,.13);
  --noise-op:   .028;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg:            #f7f8fb;
  --bg-2:          #ffffff;
  --elev-0:        #ffffff;
  --elev-1:        #ffffff;
  --elev-2:        #ffffff;
  --elev-3:        #f3f5f9;

  --surface:       rgba(255,255,255,.86);
  --surface-2:     rgba(15,23,42,.032);
  --surface-3:     rgba(15,23,42,.058);
  --surface-solid: #ffffff;

  --border:        rgba(15,23,42,.082);
  --border-2:      rgba(15,23,42,.16);
  --hairline:      rgba(15,23,42,.1);

  --text:          #0c1220;
  --text-2:        #56628a;
  --text-3:        #8b96b2;

  --shadow-xs:  0 1px 2px rgba(15,23,42,.06);
  --shadow-sm:  0 2px 8px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.04);
  --shadow:     0 16px 42px rgba(15,23,42,.1), 0 2px 8px rgba(15,23,42,.05);
  --shadow-lg:  0 32px 80px rgba(15,23,42,.16), 0 4px 16px rgba(15,23,42,.07);
  --glow:       0 0 0 1px rgba(99,102,241,.24), 0 14px 40px rgba(99,102,241,.15);
  --scroll:     rgba(15,23,42,.17);
  --noise-op:   .014;
  color-scheme: light;
}

/* ============================= 2. 基础层 =============================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.62;
  letter-spacing: -.006em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: hidden;
  transition: background var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out);
}

html[data-theme="dark"] body::before,
html[data-theme="light"] body::before {
  content: "";
  position: fixed; inset: -12%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(52rem 42rem at 12% -8%,  rgba(99,102,241,.22), transparent 62%),
    radial-gradient(46rem 38rem at 92% 4%,   rgba(6,182,212,.16),  transparent 62%),
    radial-gradient(40rem 40rem at 48% 108%, rgba(139,92,246,.15), transparent 60%);
  animation: meshDrift 26s var(--ease-in-out) infinite alternate;
  will-change: transform;
}
html[data-theme="light"] body::before { opacity: .55; }

@keyframes meshDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2.2%, 1.6%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1.4%, 0) scale(1.02); }
}

body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: var(--noise-op);
  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='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 640; line-height: 1.28; letter-spacing: -.028em; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; transition: color var(--d-fast) var(--ease-out), opacity var(--d-fast); }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
kbd { font-family: var(--font-mono); font-size: 11px; }

::selection { background: rgba(99,102,241,.32); color: var(--text); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 99px; border: 3.5px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); background-clip: content-box; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm); }

.mono { font-family: var(--font-mono); font-size: .92em; font-variant-ligatures: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 16px; }
.fw-6 { font-weight: 600; }
.gap-4{gap:4px}.gap-6{gap:6px}.gap-8{gap:8px}.gap-12{gap:12px}.gap-16{gap:16px}.gap-20{gap:20px}
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-20{margin-top:20px}.mt-24{margin-top:24px}
.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}.mb-20{margin-bottom:20px}.mb-24{margin-bottom:24px}

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7;
     stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 15px; height: 15px; stroke-width: 1.85; }
.i-lg { width: 23px; height: 23px; }

/* ========================== 3. 材质与表面 ============================== */
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: var(--shadow-xs);
  isolation: isolate;
  transition: transform var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              background var(--d-base) var(--ease-out);
}
.card::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(170deg,
      rgba(255,255,255,.16), rgba(255,255,255,.05) 34%, rgba(255,255,255,.015) 62%, rgba(255,255,255,.055));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none; z-index: 2;
}
html[data-theme="light"] .card::before {
  background: linear-gradient(170deg, rgba(255,255,255,.95), rgba(15,23,42,.055) 45%, rgba(15,23,42,.03));
}
.card.pad { padding: 22px; }
.card.hoverable { transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out); }
.card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.clickable { cursor: pointer; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 17px 22px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 15px; font-weight: 640; letter-spacing: -.018em; display: flex; align-items: center; gap: 9px; }
.card-title .i { color: var(--brand); }
.card-body { padding: 20px 22px; }
.card-foot { padding: 15px 22px; border-top: 1px solid var(--border); }

[data-spotlight] { position: relative; }
[data-spotlight]::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; z-index: 1;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              rgba(99,102,241,.15), rgba(6,182,212,.06) 42%, transparent 68%);
  opacity: 0;
  transition: opacity var(--d-slow) var(--ease-out);
  pointer-events: none;
}
[data-spotlight].spot-on::after { opacity: 1; }
html[data-theme="light"] [data-spotlight]::after {
  background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%),
              rgba(99,102,241,.11), rgba(6,182,212,.05) 42%, transparent 68%);
}
[data-spotlight] > * { position: relative; z-index: 3; }

/* =========================== 4. 通用组件 =============================== */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px;
  border-radius: var(--r); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text);
  font-size: 13.6px; font-weight: 580; letter-spacing: -.008em;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform var(--d-fast) var(--ease-spring),
              background var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              opacity var(--d-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: currentColor; opacity: 0;
  transition: opacity var(--d-fast) var(--ease-out);
  pointer-events: none;
}
.btn:hover::before { opacity: .07; }
.btn:active { transform: scale(.965); }
.btn:active::before { opacity: .12; }
.btn:disabled, .btn.disabled { opacity: .42; cursor: not-allowed; transform: none; }
.btn:disabled::before { opacity: 0; }

.btn-primary {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgba(99,102,241,.3), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(99,102,241,.44), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary::before { background: #fff; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }

.btn-soft { background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.22); color: #a9b6ff; }
html[data-theme="light"] .btn-soft { color: #4f46e5; background: rgba(99,102,241,.09); }

.btn-danger { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.26); color: #ffb4b4; }
.btn-danger:hover { background: rgba(239,68,68,.2); }
html[data-theme="light"] .btn-danger { color: #dc2626; }

.btn-ok { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.26); color: #7ff0c4; }
html[data-theme="light"] .btn-ok { color: #047857; }

.btn-sm { height: 32px; padding: 0 12px; font-size: 12.6px; border-radius: var(--r-sm); gap: 5px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 15.5px; border-radius: var(--r-lg); font-weight: 620; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-block { width: 100%; }

.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.32); border-top-color: #fff;
  animation: spin .62s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.42), rgba(255,255,255,0) 68%);
  transform: scale(0); opacity: .85;
  animation: rippleOut .6s var(--ease-out) forwards;
}
html[data-theme="light"] .ripple { background: radial-gradient(circle, rgba(15,23,42,.22), rgba(15,23,42,0) 68%); }
@keyframes rippleOut { to { transform: scale(1); opacity: 0; } }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 11.5px; font-weight: 600; line-height: 1.65; letter-spacing: -.004em;
  background: var(--surface-3); color: var(--text-2); border: 1px solid transparent;
  white-space: nowrap;
}
.badge-brand  { background: rgba(99,102,241,.15);  color: #b3bfff; border-color: rgba(99,102,241,.22); }
.badge-ok     { background: rgba(16,185,129,.15);  color: #7ff0c4; border-color: rgba(16,185,129,.22); }
.badge-warn   { background: rgba(245,158,11,.15);  color: #fcd66b; border-color: rgba(245,158,11,.22); }
.badge-danger { background: rgba(239,68,68,.15);   color: #ffb4b4; border-color: rgba(239,68,68,.22); }
.badge-info   { background: rgba(14,165,233,.15);  color: #8fdcff; border-color: rgba(14,165,233,.22); }
html[data-theme="light"] .badge-brand { color: #4f46e5; }
html[data-theme="light"] .badge-ok { color: #047857; }
html[data-theme="light"] .badge-warn { color: #b45309; }
html[data-theme="light"] .badge-danger { color: #b91c1c; }
html[data-theme="light"] .badge-info { color: #0369a1; }

.tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px; border-radius: var(--r-xs); font-size: 11.5px; font-weight: 520;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
  transition: all var(--d-fast) var(--ease-out);
}
.tag.clickable { cursor: pointer; }
.tag.clickable:hover { background: var(--surface-3); color: var(--text); border-color: var(--border-2); transform: translateY(-1px); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 15px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 13px; font-weight: 540;
  cursor: pointer; white-space: nowrap; position: relative; overflow: hidden;
  transition: all var(--d-base) var(--ease-out);
}
.chip:hover { border-color: var(--border-2); color: var(--text); transform: translateY(-1px); }
.chip.active { background: var(--grad-soft); border-color: rgba(99,102,241,.38); color: var(--text); font-weight: 620; box-shadow: 0 4px 14px rgba(99,102,241,.16); }
.chip .count { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  object-fit: cover; background: var(--surface-3);
  border: 1.5px solid var(--border);
  transition: transform var(--d-base) var(--ease-spring);
}
.avatar-xs { width: 22px; height: 22px; }
.avatar-sm { width: 29px; height: 29px; }
.avatar-lg { width: 54px; height: 54px; }
.avatar-xl { width: 88px; height: 88px; border-width: 2.5px; }
.avatar-ring { box-shadow: 0 0 0 3px rgba(99,102,241,.22); }
.avatar-text {
  display: grid; place-items: center;
  color: #fff; font-weight: 700; line-height: 1; letter-spacing: .01em;
  font-size: 15px; user-select: none;
  border: 1.5px solid rgba(255,255,255,.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.avatar-xs.avatar-text { font-size: 10px; }
.avatar-sm.avatar-text { font-size: 11.5px; }
.avatar-lg.avatar-text { font-size: 21px; }
.avatar-xl.avatar-text { font-size: 34px; }
.avatar-group { display: flex; }
.avatar-group .avatar { margin-left: -10px; box-shadow: 0 0 0 2px var(--bg); transition: transform var(--d-base) var(--ease-spring); }
.avatar-group .avatar:hover { transform: translateY(-3px) scale(1.08); z-index: 2; }
.avatar-group .avatar:first-child { margin-left: 0; }

.divider { height: 1px; background: var(--border); margin: 18px 0; }
.vdivider { width: 1px; align-self: stretch; background: var(--border); margin: 0 4px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab {
  padding: 11px 16px; font-size: 13.6px; font-weight: 550; color: var(--text-2);
  cursor: pointer; border: 0; background: none; position: relative; white-space: nowrap;
  transition: color var(--d-base) var(--ease-out);
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); font-weight: 640; }
.tab.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  border-radius: 2px 2px 0 0; background: var(--grad);
  animation: tabIn var(--d-base) var(--ease-out);
}
@keyframes tabIn { from { transform: scaleX(.3); opacity: 0; } to { transform: none; opacity: 1; } }

.segmented {
  display: inline-flex; padding: 3px; gap: 2px; position: relative;
  border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border);
}
.segmented-item {
  padding: 7px 14px; border-radius: var(--r-sm); font-size: 13px; font-weight: 550;
  color: var(--text-2); cursor: pointer; border: 0; background: none;
  position: relative; overflow: hidden; white-space: nowrap;
  transition: color var(--d-base) var(--ease-out), background var(--d-base) var(--ease-out);
}
.segmented-item:hover { color: var(--text); }
.segmented-item.active {
  background: var(--surface-solid); color: var(--text); font-weight: 620;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.06);
  animation: segPop var(--d-base) var(--ease-spring);
}
@keyframes segPop { from { transform: scale(.94); } to { transform: none; } }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 200;
  min-width: 196px; padding: 7px;
  border-radius: var(--r-lg); border: 1px solid var(--border-2);
  background: color-mix(in srgb, var(--elev-1) 94%, transparent);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  transform-origin: top right;
  animation: menuIn var(--d-base) var(--ease-out);
}
.dropdown-menu.left { left: 0; right: auto; transform-origin: top left; }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px) scale(.96); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 520; color: var(--text-2); cursor: pointer;
  transition: background var(--d-fast) var(--ease-out), color var(--d-fast), transform var(--d-fast) var(--ease-out);
  border: 0; background: none; width: 100%; text-align: left;
}
.dropdown-item:hover { background: var(--surface-2); color: var(--text); transform: translateX(2px); }
.dropdown-item.danger { color: #ff9d9d; }
.dropdown-item.danger:hover { background: rgba(239,68,68,.12); }
html[data-theme="light"] .dropdown-item.danger { color: #dc2626; }
.dropdown-sep { height: 1px; background: var(--border); margin: 6px 5px; }

.modal-mask {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(2,4,10,.62);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  display: flex; align-items: center; justify-content: center;
  padding: 26px 16px; overflow-y: auto;
  animation: maskIn var(--d-base) var(--ease-out);
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 580px; margin: auto;
  background: var(--elev-1);
  border: 1px solid var(--border-2);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  animation: modalIn .42s var(--ease-spring);
  max-height: calc(100vh - 52px); display: flex; flex-direction: column;
  overflow: hidden;
}
.modal.wide { max-width: 900px; }
.modal.narrow { max-width: 430px; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(22px) scale(.955); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 26px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 17px; font-weight: 680; letter-spacing: -.024em; flex: 1; }
.modal-body { padding: 24px 26px; overflow-y: auto; flex: 1; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 16px 26px; border-top: 1px solid var(--border); background: var(--surface); }

#toasts {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 900; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none; width: min(94vw, 470px);
}
.toast {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 19px; border-radius: var(--r-full);
  background: color-mix(in srgb, var(--elev-2) 95%, transparent);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  font-size: 13.6px; font-weight: 540; letter-spacing: -.008em;
  animation: toastIn .48s var(--ease-spring);
  pointer-events: auto; max-width: 100%;
}
.toast.out { animation: toastOut var(--d-base) var(--ease-out) forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-22px) scale(.9); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes toastOut { to { opacity: 0; transform: translateY(-16px) scale(.94); filter: blur(4px); } }
.toast .i { flex: none; }
.toast.ok .i { color: var(--ok); }
.toast.err .i { color: var(--danger); }
.toast.info .i { color: var(--info); }

.skeleton {
  background: linear-gradient(100deg, var(--surface-2) 24%, var(--surface-3) 38%, var(--surface-2) 52%);
  background-size: 220% 100%;
  animation: shimmer 1.5s var(--ease-in-out) infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { 0% { background-position: 130% 50%; } 100% { background-position: -30% 50%; } }
.sk-line { height: 13px; margin-bottom: 10px; }
.sk-title { height: 20px; width: 42%; margin-bottom: 15px; }
.sk-card { height: 112px; border-radius: var(--r-lg); }

.empty { padding: 60px 22px; text-align: center; animation: fadeUp .6s var(--ease-out); }
.empty-icon {
  width: 76px; height: 76px; margin: 0 auto 20px;
  border-radius: var(--r-xl); display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.empty-icon .i { width: 32px; height: 32px; stroke-width: 1.5; }
.empty-title { font-size: 15.5px; font-weight: 640; margin-bottom: 7px; letter-spacing: -.018em; }
.empty-desc { color: var(--text-3); font-size: 13.2px; max-width: 360px; margin: 0 auto 20px; line-height: 1.78; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.pager { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 26px 0 8px; }
.pager-btn {
  min-width: 36px; height: 36px; padding: 0 11px;
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer;
  display: grid; place-items: center;
  transition: all var(--d-base) var(--ease-out);
}
.pager-btn:hover:not(:disabled) { border-color: var(--border-2); color: var(--text); transform: translateY(-2px); }
.pager-btn.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(99,102,241,.3); }
.pager-btn:disabled { opacity: .35; cursor: not-allowed; }
.pager-info { color: var(--text-3); font-size: 12.5px; margin: 0 9px; font-variant-numeric: tabular-nums; }

.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress-bar { height: 100%; border-radius: 99px; background: var(--grad);
  transition: width .7s var(--ease-out); position: relative; overflow: hidden; }
.progress-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  animation: flow 2.4s var(--ease-in-out) infinite;
}
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.tooltip {
  position: fixed; z-index: 800; pointer-events: none;
  padding: 7px 12px; border-radius: var(--r-sm); font-size: 12.2px;
  background: color-mix(in srgb, var(--elev-2) 96%, transparent); color: var(--text);
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: tipIn var(--d-fast) var(--ease-out); max-width: 300px; line-height: 1.62;
}
@keyframes tipIn { from { opacity: 0; transform: translateY(5px) scale(.96); } to { opacity: 1; transform: none; } }

/* ============================== 5. 表单 ================================ */
.field { margin-bottom: 18px; }
.label { display: block; font-size: 12.8px; font-weight: 600; color: var(--text-2);
  margin-bottom: 8px; letter-spacing: -.006em; }
.label .req { color: var(--danger); margin-left: 3px; }
.hint { font-size: 12px; color: var(--text-3); margin-top: 7px; line-height: 1.7; }
.err-text { font-size: 12.5px; color: #ff9d9d; margin-top: 7px; }

.input, .textarea, .select {
  width: 100%; padding: 11px 14px;
  border-radius: var(--r); border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  font-size: 14px; outline: none;
  transition: border-color var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              background var(--d-base) var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--border-2); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand); background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(99,102,241,.14);
}
.textarea { resize: vertical; min-height: 116px; line-height: 1.78; }
.select { appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23968fae' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 15px; }
.input-lg { padding: 14px 17px; font-size: 15px; border-radius: var(--r-lg); }
.input-sm { padding: 8px 12px; font-size: 13px; border-radius: var(--r-sm); }
.input-icon { position: relative; }
.input-icon .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-icon .input { padding-left: 40px; }

.switch { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch-track { width: 44px; height: 25px; border-radius: 99px; background: var(--surface-3);
  border: 1px solid var(--border); position: relative; flex: none;
  transition: background var(--d-base) var(--ease-out), border-color var(--d-base); }
.switch-track::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--text-3);
  transition: all var(--d-base) var(--ease-spring); box-shadow: var(--shadow-xs);
}
.switch input:checked + .switch-track { background: var(--grad); border-color: transparent; box-shadow: 0 4px 12px rgba(99,102,241,.3); }
.switch input:checked + .switch-track::after { left: 22px; background: #fff; }
.switch-label { font-size: 13.5px; color: var(--text-2); }

.checkbox { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; padding: 7px 0; }
.checkbox input { display: none; }
.checkbox .box { width: 20px; height: 20px; flex: none; margin-top: 1px;
  border-radius: 7px; border: 1.6px solid var(--border-2); background: var(--surface);
  display: grid; place-items: center; transition: all var(--d-base) var(--ease-spring); }
.checkbox .box .i { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.4); transition: all var(--d-base) var(--ease-spring); }
.checkbox input:checked + .box { background: var(--grad); border-color: transparent; box-shadow: 0 3px 10px rgba(99,102,241,.3); }
.checkbox input:checked + .box .i { opacity: 1; transform: none; }
.checkbox-text { font-size: 13.5px; line-height: 1.62; }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card { flex: 1 1 156px; padding: 14px 16px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  transition: all var(--d-base) var(--ease-out); }
.radio-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.radio-card.active { border-color: var(--brand); background: var(--grad-soft); box-shadow: 0 0 0 4px rgba(99,102,241,.1); }
.radio-card b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.radio-card span { font-size: 12px; color: var(--text-3); }

/* ============================ 6. 数据展示 ============================== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 16px; }
.stat-card {
  position: relative; overflow: hidden;
  padding: 20px 21px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  isolation: isolate;
  transition: transform var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out);
}
.stat-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.stat-card::after {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--grad); opacity: .1; filter: blur(24px);
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
  pointer-events: none;
}
.stat-card:hover::after { opacity: .2; transform: scale(1.18); }
.stat-top { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.stat-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand); border: 1px solid rgba(99,102,241,.2);
  transition: transform var(--d-base) var(--ease-spring);
}
.stat-card:hover .stat-icon { transform: scale(1.08) rotate(-4deg); }
.stat-icon .i { width: 17px; height: 17px; }
.stat-label { font-size: 12.6px; color: var(--text-2); font-weight: 550; letter-spacing: -.006em; }
.stat-value {
  font-size: 30px; font-weight: 700; letter-spacing: -.042em; line-height: 1.08;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 72%, transparent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-value small { font-size: 14px; font-weight: 520; color: var(--text-3); margin-left: 4px; -webkit-text-fill-color: var(--text-3); }
.stat-foot { display: flex; align-items: center; gap: 7px; margin-top: 11px; font-size: 12px; color: var(--text-3); }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 660; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--danger); }

.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  position: relative; transition: background var(--d-base) var(--ease-out);
}
.list-item:last-child { border-bottom: 0; }
.list-item.clickable { cursor: pointer; }
.list-item.clickable::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2.5px;
  background: var(--grad); opacity: 0; transform: scaleY(.3);
  transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}
.list-item.clickable:hover { background: var(--surface-2); }
.list-item.clickable:hover::after { opacity: 1; transform: none; }
.list-main { flex: 1; min-width: 0; }
.list-title { font-size: 14.6px; font-weight: 620; line-height: 1.48; margin-bottom: 5px; letter-spacing: -.014em; }
.list-desc { font-size: 13.2px; color: var(--text-2); line-height: 1.72; }
.list-meta { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; font-size: 12.4px; color: var(--text-3); margin-top: 9px; }
.list-meta .mi { display: inline-flex; align-items: center; gap: 4px; }

.feed-item { display: flex; gap: 12px; padding: 12px 0; position: relative; }
.feed-item:not(:last-child)::before {
  content: ""; position: absolute; left: 15px; top: 40px; bottom: -6px;
  width: 1px; background: linear-gradient(180deg, var(--border), transparent);
}
.feed-text { font-size: 13.2px; color: var(--text-2); line-height: 1.66; }
.feed-text b { color: var(--text); font-weight: 620; }
.feed-title { font-size: 13.6px; font-weight: 600; margin-top: 3px; letter-spacing: -.012em; }

/* ============================= 7. Markdown ============================= */
.md-body { font-size: 14.6px; line-height: 1.86; color: var(--text); word-wrap: break-word; overflow-wrap: anywhere; }
.md-body > *:first-child { margin-top: 0 !important; }
.md-body > *:last-child { margin-bottom: 0 !important; }
.md-body h1, .md-body h2, .md-body h3, .md-body h4, .md-body h5, .md-body h6 {
  margin: 30px 0 14px; font-weight: 680; line-height: 1.38; letter-spacing: -.026em; }
.md-body h1 { font-size: 23px; }
.md-body h2 { font-size: 19.5px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.md-body h3 { font-size: 17px; }
.md-body h4 { font-size: 15.5px; }
.md-body h5, .md-body h6 { font-size: 14px; color: var(--text-2); }
.md-body p { margin: 13px 0; }
.md-body a { color: var(--brand-2); border-bottom: 1px solid rgba(6,182,212,.3); }
.md-body a:hover { border-bottom-color: var(--brand-2); }
.md-body strong { font-weight: 680; color: var(--text); }
.md-body em { font-style: italic; color: var(--text-2); }
.md-body del { color: var(--text-3); }
.md-body ul, .md-body ol { margin: 13px 0; padding-left: 26px; }
.md-body li { margin: 6px 0; }
.md-body li > ul, .md-body li > ol { margin: 6px 0; }
.md-body blockquote {
  margin: 16px 0; padding: 13px 18px;
  border-left: 3px solid transparent; border-image: var(--grad) 1;
  background: var(--surface-2); border-radius: 0 var(--r) var(--r) 0; color: var(--text-2);
}
.md-body blockquote p { margin: 6px 0; }
.md-body code {
  font-family: var(--font-mono); font-size: .875em;
  padding: 2.5px 7px; border-radius: 7px;
  background: var(--surface-3); color: #b3bfff; border: 1px solid var(--border);
}
html[data-theme="light"] .md-body code { color: #4f46e5; }
.md-body .md-pre {
  margin: 17px 0; padding: 17px 19px; overflow-x: auto;
  border-radius: var(--r); border: 1px solid var(--border);
  background: rgba(0,0,0,.42); line-height: 1.74; position: relative;
}
html[data-theme="light"] .md-body .md-pre { background: #f8fafc; }
.md-body .md-pre code { padding: 0; background: none; border: 0; color: var(--text); font-size: 12.9px; white-space: pre; }
.md-body table { width: 100%; margin: 17px 0; border-collapse: collapse;
  font-size: 13.5px; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.md-body th, .md-body td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.md-body th { background: var(--surface-2); font-weight: 650; }
.md-body tr:nth-child(even) td { background: var(--surface); }
.md-body hr { margin: 26px 0; }
.md-body img { border-radius: var(--r); margin: 14px 0; border: 1px solid var(--border); }
.md-body .md-task { list-style: none; margin-left: -22px; display: flex; align-items: flex-start; gap: 9px; }
.md-body .md-task input { margin-top: 6px; accent-color: var(--brand); }
.mention { color: var(--brand-2); font-weight: 600; background: rgba(6,182,212,.11);
  padding: 1.5px 6px; border-radius: 7px; border-bottom: 0 !important;
  transition: background var(--d-fast) var(--ease-out); }
.mention:hover { background: rgba(6,182,212,.2); }

.tok-com  { color: #6b7a91; font-style: italic; }
.tok-str  { color: #86efac; }
.tok-num  { color: #fcd34d; }
.tok-kw   { color: #c4b5fd; font-weight: 600; }
.tok-fn   { color: #7dd3fc; }
.tok-op   { color: #f9a8d4; }
.tok-pre  { color: #fca5a5; }
.tok-var  { color: #fdba74; }
.tok-punc { color: var(--text-2); }
html[data-theme="light"] .tok-com { color: #94a3b8; }
html[data-theme="light"] .tok-str { color: #15803d; }
html[data-theme="light"] .tok-num { color: #b45309; }
html[data-theme="light"] .tok-kw  { color: #6d28d9; }
html[data-theme="light"] .tok-fn  { color: #0369a1; }
html[data-theme="light"] .tok-op  { color: #be185d; }
html[data-theme="light"] .tok-pre { color: #b91c1c; }
html[data-theme="light"] .tok-var { color: #c2410c; }

/* ============================ 8. 业务模块 ============================== */
#boot { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: var(--bg); transition: opacity .55s var(--ease-out), visibility .55s; }
#boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-inner { text-align: center; padding: 22px; }
.boot-logo {
  width: 84px; height: 84px; margin: 0 auto 24px; border-radius: var(--r-2xl);
  display: grid; place-items: center; font-size: 38px; font-weight: 800; color: #fff;
  background: var(--grad);
  box-shadow: 0 22px 60px rgba(99,102,241,.46), inset 0 1px 0 rgba(255,255,255,.3);
  position: relative; overflow: hidden;
  animation: bootPulse 2.6s var(--ease-in-out) infinite;
}
.boot-logo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.55) 48%, transparent 62%);
  transform: translateX(-130%);
  animation: sheen 2.8s var(--ease-in-out) infinite;
}
@keyframes bootPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 22px 60px rgba(99,102,241,.46), inset 0 1px 0 rgba(255,255,255,.3); }
  50%      { transform: scale(1.045); box-shadow: 0 30px 74px rgba(99,102,241,.6), inset 0 1px 0 rgba(255,255,255,.3); }
}
@keyframes sheen { 0%, 62% { transform: translateX(-130%); } 88%, 100% { transform: translateX(130%); } }
.boot-name { font-size: 20px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 6px; }
.boot-sub { font-size: 12.8px; color: var(--text-3); margin-bottom: 28px; }
.boot-bar { width: 200px; height: 3px; margin: 0 auto; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.boot-bar span { display: block; width: 42%; height: 100%; border-radius: 99px; background: var(--grad);
  animation: bootBar 1.2s var(--ease-in-out) infinite; }
@keyframes bootBar { 0% { transform: translateX(-105%); } 100% { transform: translateX(255%); } }
.boot-tip { margin-top: 17px; font-size: 12px; color: var(--text-3); }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 36px 16px; position: relative; z-index: 2; }
.auth-card {
  width: 100%; max-width: 430px; padding: 42px 38px;
  border-radius: var(--r-2xl); border: 1px solid var(--border-2);
  background: color-mix(in srgb, var(--elev-1) 82%, transparent);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: var(--shadow-lg);
  animation: authIn .78s var(--ease-out);
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(28px) scale(.97); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.auth-logo {
  width: 68px; height: 68px; margin: 0 auto 22px; border-radius: var(--r-xl);
  display: grid; place-items: center; font-size: 31px; font-weight: 800; color: #fff;
  background: var(--grad);
  box-shadow: 0 18px 48px rgba(99,102,241,.44), inset 0 1px 0 rgba(255,255,255,.3);
  position: relative; overflow: hidden;
}
.auth-logo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,.5) 48%, transparent 62%);
  transform: translateX(-130%);
  animation: sheen 6s var(--ease-in-out) infinite;
}
.auth-title { text-align: center; font-size: 24px; font-weight: 720; letter-spacing: -.036em; margin-bottom: 8px; }
.auth-sub { text-align: center; font-size: 13.2px; color: var(--text-3); margin-bottom: 30px; line-height: 1.78; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid-main-side { display: grid; grid-template-columns: minmax(0,1fr) 336px; gap: 22px; align-items: start; }
.grid-side-main { display: grid; grid-template-columns: 258px minmax(0,1fr); gap: 22px; align-items: start; }

#app { position: relative; z-index: 1; }
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex: none;
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  display: flex; flex-direction: column;
  padding: 20px 15px 15px;
  background: color-mix(in srgb, var(--elev-0) 76%, transparent);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  transition: transform var(--d-base) var(--ease-out);
}
html[data-theme="light"] .sidebar { background: rgba(255,255,255,.78); }

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 9px 22px; }
.brand-logo {
  width: 44px; height: 44px; border-radius: var(--r); flex: none;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: 0 10px 26px rgba(99,102,241,.42), inset 0 1px 0 rgba(255,255,255,.28);
  position: relative; overflow: hidden;
  transition: transform var(--d-slow) var(--ease-spring);
}
.brand-logo:hover { transform: rotate(-6deg) scale(1.06); }
.brand-logo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.55) 48%, transparent 62%);
  transform: translateX(-130%);
  animation: sheen 5.5s var(--ease-in-out) infinite;
}
.brand-text { min-width: 0; }
.brand-name { font-size: 15.6px; font-weight: 700; letter-spacing: -.026em; }
.brand-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; letter-spacing: .01em; }

.nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 10px; margin: 0 -4px; position: relative; }
.nav-indicator {
  position: absolute; left: 4px; right: 4px; top: 0; height: 42px;
  border-radius: var(--r);
  background: var(--grad-soft);
  border: 1px solid rgba(99,102,241,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 4px 16px rgba(99,102,241,.12);
  opacity: 0; pointer-events: none; z-index: 0;
  transition: transform .42s var(--ease-spring), height .32s var(--ease-out), opacity var(--d-base);
}
.nav-group { margin-bottom: 16px; position: relative; z-index: 1; }
.nav-group-title {
  font-size: 10.5px; font-weight: 640; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-3); padding: 7px 13px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 13px; margin: 2px 4px;
  border-radius: var(--r); color: var(--text-2);
  font-size: 14px; font-weight: 530; cursor: pointer;
  position: relative; overflow: hidden;
  transition: color var(--d-base) var(--ease-out), transform var(--d-fast) var(--ease-out);
}
.nav-item:hover { color: var(--text); transform: translateX(2px); }
.nav-item.active { color: var(--text); font-weight: 640; }
.nav-item.active .i { color: var(--brand); }
.nav-item .i { transition: transform var(--d-base) var(--ease-spring); }
.nav-item:hover .i { transform: scale(1.12); }
.nav-badge {
  margin-left: auto; min-width: 21px; height: 21px; padding: 0 7px;
  border-radius: var(--r-full); background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  font-variant-numeric: tabular-nums; animation: badgePop .45s var(--ease-spring);
}
@keyframes badgePop { from { transform: scale(0); } to { transform: none; } }
.nav-badge.soft { background: var(--surface-3); color: var(--text-2); }

.sidebar-foot { border-top: 1px solid var(--border); padding-top: 13px; margin-top: 9px; }
.user-chip {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px;
  border-radius: var(--r); cursor: pointer; position: relative; overflow: hidden;
  transition: background var(--d-base) var(--ease-out);
}
.user-chip:hover { background: var(--surface-2); }
.user-chip-name { font-size: 13.6px; font-weight: 620; letter-spacing: -.01em; }
.user-chip-role { font-size: 11.5px; color: var(--text-3); }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h); position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .topbar { background: rgba(247,248,251,.8); }

.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center; position: relative; overflow: hidden;
  border-radius: var(--r); border: 1px solid transparent;
  background: transparent; color: var(--text-2); cursor: pointer;
  transition: all var(--d-base) var(--ease-out);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); transform: translateY(-1px); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--danger);
  box-shadow: 0 0 0 2.5px var(--elev-0);
  animation: dotPulse 2.2s var(--ease-in-out) infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 2.5px var(--elev-0), 0 0 0 0 rgba(239,68,68,.52); }
  50%      { box-shadow: 0 0 0 2.5px var(--elev-0), 0 0 0 7px rgba(239,68,68,0); }
}

.searchbox {
  flex: 1; max-width: 480px;
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px;
  border-radius: var(--r); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-3); cursor: pointer;
  transition: all var(--d-base) var(--ease-out);
}
.searchbox:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.searchbox kbd {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  padding: 3px 7px; border-radius: var(--r-xs); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-3);
}

.content { flex: 1; padding: 28px; max-width: var(--content-max); width: 100%; margin: 0 auto; }
.page-head { margin-bottom: 24px; }
.page-title { font-size: 29px; font-weight: 720; letter-spacing: -.042em; line-height: 1.2;
  display: flex; align-items: center; gap: 11px; }
.page-title .i { color: var(--brand); }
.page-desc { color: var(--text-2); font-size: 13.6px; margin-top: 8px; letter-spacing: -.006em; }

.hero {
  position: relative; overflow: hidden;
  padding: 38px 40px; border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background: var(--grad-soft);
  isolation: isolate;
  animation: heroIn .9s var(--ease-out);
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px) scale(.985); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.hero::before {
  content: ""; position: absolute; top: -140px; right: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: var(--grad); opacity: .17; filter: blur(50px);
  animation: orbFloat 14s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -170px; left: -60px;
  width: 340px; height: 340px; border-radius: 50%;
  background: var(--grad-warm); opacity: .12; filter: blur(50px);
  animation: orbFloat 18s var(--ease-in-out) infinite alternate-reverse;
  pointer-events: none;
}
@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-34px, 28px, 0) scale(1.14); }
}
.hero > * { position: relative; z-index: 1; }
.hero-title { font-size: 34px; font-weight: 740; letter-spacing: -.046em; line-height: 1.16; margin-bottom: 11px; }
.hero-sub { color: var(--text-2); font-size: 14px; line-height: 1.85; letter-spacing: -.006em; max-width: 640px; }
.hero-sub b { color: var(--text); font-weight: 660; }

.countdown { display: flex; align-items: baseline; gap: 10px; }
.countdown-num {
  font-size: 54px; font-weight: 780; letter-spacing: -.055em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums;
}

.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.sec-title { font-size: 16.5px; font-weight: 660; letter-spacing: -.024em; display: flex; align-items: center; gap: 9px; }
.sec-title .i { color: var(--brand); }
.sec-more { font-size: 12.6px; color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; gap: 3px;
  transition: color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out); }
.sec-more:hover { color: var(--brand); transform: translateX(2px); }

.kanban { display: grid; grid-template-columns: repeat(5, minmax(238px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 12px; }
.kanban-col { display: flex; flex-direction: column; min-width: 238px; }
.kanban-col-head {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px; margin-bottom: 12px;
  border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13.2px; font-weight: 640; letter-spacing: -.01em;
}
.kanban-count { margin-left: auto; font-size: 11.5px; color: var(--text-3); font-weight: 620; font-variant-numeric: tabular-nums; }
.kanban-body {
  display: flex; flex-direction: column; gap: 11px; flex: 1; min-height: 84px;
  border-radius: var(--r); outline: 1.5px dashed transparent; outline-offset: 4px;
  transition: background var(--d-base) var(--ease-out), outline-color var(--d-base) var(--ease-out);
}
.kanban-body.drag-over { background: rgba(99,102,241,.08); outline-color: rgba(99,102,241,.42); }
.dot-status { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.task-card {
  padding: 15px 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out);
}
.task-card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.task-card.dragging { opacity: .42; transform: rotate(1.8deg) scale(.97); }
.task-card-title { font-size: 13.9px; font-weight: 620; line-height: 1.5; margin-bottom: 10px; letter-spacing: -.012em; }
.task-card-foot { display: flex; align-items: center; gap: 9px; margin-top: 11px; }
.prio-bar { width: 3px; border-radius: 3px; align-self: stretch; flex: none; }

.editor { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.editor-toolbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.editor-tool {
  width: 32px; height: 32px; border-radius: var(--r-sm); border: 0; background: none;
  color: var(--text-2); cursor: pointer; display: grid; place-items: center;
  transition: all var(--d-fast) var(--ease-out); font-size: 12.5px; font-weight: 700;
  position: relative; overflow: hidden;
}
.editor-tool:hover { background: var(--surface-3); color: var(--text); transform: translateY(-1px); }
.editor-tool.active { background: var(--grad-soft); color: var(--brand); }
.editor-sep { width: 1px; height: 18px; background: var(--border); margin: 0 6px; }
.editor-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 350px; }
.editor-body.single { grid-template-columns: 1fr; }
.editor-input {
  width: 100%; border: 0; outline: none; resize: none; padding: 17px 19px;
  background: transparent; color: var(--text); font-size: 14.2px; line-height: 1.86;
  font-family: var(--font); min-height: 350px;
}
.editor-preview { padding: 17px 20px; border-left: 1px solid var(--border);
  overflow-y: auto; max-height: 640px; background: rgba(0,0,0,.14); }
html[data-theme="light"] .editor-preview { background: rgba(15,23,42,.018); }
.editor-foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-top: 1px solid var(--border); background: var(--surface-2); font-size: 12px; color: var(--text-3); }

.upload-zone {
  display: flex; align-items: center; gap: 13px; padding: 17px 19px;
  border-radius: var(--r); border: 1.5px dashed var(--border-2);
  background: var(--surface); cursor: pointer; font-size: 13px; color: var(--text-2);
  position: relative; overflow: hidden;
  transition: all var(--d-base) var(--ease-out);
}
.upload-zone:hover, .upload-zone.over { border-color: var(--brand); background: var(--grad-soft); color: var(--text); transform: translateY(-2px); }
.attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 11px; margin-top: 13px; }
.attach-item { position: relative; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out); }
.attach-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.attach-thumb { width: 100%; height: 108px; object-fit: cover; display: block; background: var(--surface-3); }
.attach-file { display: flex; align-items: center; gap: 10px; padding: 12px; }
.attach-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-del { position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; border-radius: var(--r-xs);
  background: rgba(0,0,0,.66); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; opacity: 0; backdrop-filter: blur(8px);
  transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-spring); }
.attach-item:hover .attach-del { opacity: 1; }
.attach-del:hover { transform: scale(1.12); }

.cmd-mask {
  position: fixed; inset: 0; z-index: 700; background: rgba(2,4,10,.58);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  display: flex; justify-content: center; padding: 11vh 16px 24px;
  animation: maskIn var(--d-base) var(--ease-out);
}
.cmd {
  width: 100%; max-width: 660px; height: fit-content; max-height: 68vh;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--border-2);
  background: color-mix(in srgb, var(--elev-2) 96%, transparent);
  box-shadow: var(--shadow-lg); animation: cmdIn .44s var(--ease-spring);
}
@keyframes cmdIn {
  from { opacity: 0; transform: translateY(-22px) scale(.965); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.cmd-input { width: 100%; padding: 19px 24px; border: 0; outline: none; background: none;
  font-size: 16.5px; color: var(--text); border-bottom: 1px solid var(--border); letter-spacing: -.016em; }
.cmd-list { overflow-y: auto; padding: 9px; }
.cmd-group-title { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-3); padding: 11px 13px 6px; }
.cmd-item { display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border-radius: var(--r); cursor: pointer;
  transition: background var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out); }
.cmd-item.active { background: var(--grad-soft); transform: translateX(3px); }
.cmd-item .i { color: var(--text-3); transition: color var(--d-fast); }
.cmd-item.active .i { color: var(--brand); }
.cmd-item-title { font-size: 14px; font-weight: 550; letter-spacing: -.01em; }
.cmd-item-sub { font-size: 12px; color: var(--text-3); }
.cmd-foot { padding: 10px 18px; border-top: 1px solid var(--border); display: flex; gap: 18px;
  font-size: 11.5px; color: var(--text-3); align-items: center; }
.cmd-foot kbd { font-family: var(--font-mono); background: var(--surface-2); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 5px; }

.profile-hero { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.profile-name { font-size: 27px; font-weight: 730; letter-spacing: -.042em; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.profile-bio { color: var(--text-2); font-size: 13.6px; margin-top: 10px; line-height: 1.84; max-width: 640px; }
.skill-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 5px; border-radius: var(--r);
  transition: background var(--d-base) var(--ease-out); }
.rank-row:hover { background: var(--surface-2); }
.rank-no { width: 27px; height: 27px; border-radius: var(--r-sm); display: grid; place-items: center;
  font-size: 12px; font-weight: 730; background: var(--surface-3); color: var(--text-2); flex: none;
  font-variant-numeric: tabular-nums; transition: transform var(--d-base) var(--ease-spring); }
.rank-row:hover .rank-no { transform: scale(1.12); }
.rank-no.top1 { background: linear-gradient(135deg,#fbbf24,#f59e0b); color: #fff; box-shadow: 0 4px 14px rgba(245,158,11,.4); }
.rank-no.top2 { background: linear-gradient(135deg,#cbd5e1,#94a3b8); color: #fff; box-shadow: 0 4px 14px rgba(148,163,184,.35); }
.rank-no.top3 { background: linear-gradient(135deg,#fdba74,#f97316); color: #fff; box-shadow: 0 4px 14px rgba(249,115,22,.35); }

.notif-item { display: flex; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--border);
  cursor: pointer; position: relative; transition: background var(--d-base) var(--ease-out); }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: rgba(99,102,241,.055); }
.notif-item.unread::before {
  content: ""; position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}
.notif-icon { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-2); flex: none;
  transition: transform var(--d-base) var(--ease-spring); }
.notif-item:hover .notif-icon { transform: scale(1.08); }

.adm-nav { display: flex; flex-direction: column; gap: 3px; }
.adm-nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: var(--r);
  font-size: 13.5px; font-weight: 540; color: var(--text-2); cursor: pointer; position: relative; overflow: hidden;
  transition: all var(--d-base) var(--ease-out); }
.adm-nav-item:hover { background: var(--surface-2); color: var(--text); transform: translateX(2px); }
.adm-nav-item.active { background: var(--grad-soft); color: var(--text); font-weight: 650; border: 1px solid rgba(99,102,241,.2); }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; padding: 12px 16px; font-weight: 620; color: var(--text-2); font-size: 12.4px;
  border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); letter-spacing: -.004em; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--d-base) var(--ease-out); }
.table tbody tr:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }

.chart-box { position: relative; width: 100%; }
.chart-tip { position: absolute; z-index: 30; pointer-events: none;
  padding: 8px 12px; border-radius: var(--r-sm); font-size: 12px; line-height: 1.7;
  background: color-mix(in srgb, var(--elev-2) 96%, transparent);
  border: 1px solid var(--border-2); box-shadow: var(--shadow); backdrop-filter: blur(20px);
  white-space: nowrap; transition: opacity var(--d-fast) var(--ease-out); }
.legend { display: flex; gap: 15px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.heatmap-wrap { overflow-x: auto; padding-bottom: 8px; }

/* ============================ 9. 动效系统 ============================== */
.view-enter { animation: viewIn var(--d-page) var(--ease-out); }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(7px); }
  to   { opacity: 1; transform: none; filter: none; }
}
#viewRoot.page-in { animation: pageIn var(--d-page) var(--ease-out); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px) scale(.995); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
#viewRoot.page-out { opacity: 0; transform: translateY(-8px); filter: blur(4px);
  transition: opacity .14s var(--ease-out), transform .14s var(--ease-out), filter .14s; }

[data-reveal] { opacity: 0; transform: translateY(20px); filter: blur(7px); will-change: opacity, transform; }
[data-reveal].revealed {
  opacity: 1; transform: none; filter: none;
  transition: opacity .82s var(--ease-out), transform .82s var(--ease-out), filter .82s var(--ease-out);
}

.stagger > * { animation: viewIn .5s var(--ease-out) backwards; }
.stagger > *:nth-child(1) { animation-delay: .03s; }
.stagger > *:nth-child(2) { animation-delay: .06s; }
.stagger > *:nth-child(3) { animation-delay: .09s; }
.stagger > *:nth-child(4) { animation-delay: .12s; }
.stagger > *:nth-child(5) { animation-delay: .15s; }
.stagger > *:nth-child(6) { animation-delay: .18s; }
.stagger > *:nth-child(7) { animation-delay: .21s; }
.stagger > *:nth-child(8) { animation-delay: .24s; }

#globalBar { transition: width .34s var(--ease-out), opacity .34s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero::before, .hero::after, body::before { animation: none !important; }
}

/* ============================ 10. 响应式 =============================== */
@media (max-width: 1200px) {
  .grid-main-side { grid-template-columns: minmax(0,1fr); }
  .grid-side-main { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 920px) {
  .hide-md { display: none !important; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0,1fr); }
  .content { padding: 20px 17px; }
  .topbar { padding: 0 15px; gap: 11px; }
  .editor-body { grid-template-columns: 1fr; }
  .editor-preview { border-left: 0; border-top: 1px solid var(--border); }
  .hero { padding: 28px 26px; }
  .hero-title { font-size: 27px; }
  .countdown-num { font-size: 40px; }
}
@media (max-width: 780px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); width: 278px; }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .page-title { font-size: 23px; letter-spacing: -.034em; }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; }
  .stat-value { font-size: 24px; }
  .searchbox kbd, .searchbox .sb-text { display: none; }
  .searchbox { flex: none; width: 42px; padding: 0; justify-content: center; }
  .modal { border-radius: var(--r-xl); }
  .modal-mask { padding: 12px; align-items: flex-end; }
  .modal { max-height: 90vh; }
  .card-body { padding: 16px; }
  .list-item { padding: 14px 16px; }
  .profile-hero { gap: 18px; }
  .kanban { grid-template-columns: repeat(5, minmax(210px, 1fr)); }
  .auth-card { padding: 32px 24px; border-radius: var(--r-xl); }
}

/* ==========================================================================
   设计系统 v3 —— 精修层
   --------------------------------------------------------------------------
   本层叠在 v2 之上，只做三件事：
   1. 收敛（字号 6 档、特效密度、描边噪音、文字对比度）
   2. 精确（数字对齐、正文 measure、缓动纪律）
   3. 补全（阅读进度条、看板落点、表单错误、登录叙事）
   不推翻 v2 的材质与层次，只做减法与打磨。
   ========================================================================== */

/* ---------------------- 1. 六档字号 + 动效时长纪律 ---------------------- */
:root {
  --fs-caption: 11px;    /* 徽章、极小辅助信息 */
  --fs-small:   12.5px;  /* 元信息、hint、次要标签 */
  --fs-body:    14px;    /* 正文、列表标题、按钮 */
  --fs-lead:    15.5px;  /* 卡片主标题、小节标题 */
  --fs-title:   20px;    /* 区块标题 */
  --fs-display: 30px;    /* 数据数值、页面主标题 */

  --d-reveal: .62s;      /* 内容揭示独立时长（原来与页面转场混用） */
  --d-count:  .8s;       /* 数字滚动 */
}

/* 暗色正文降一档，减少长时间阅读的锐利感（17:1 → 约 13:1） */
html[data-theme="dark"] {
  --text:   #e6eaf2;
  --text-2: #9aa7bf;
  --text-3: #6b7688;
}

/* --------------------------- 2. 字号吸附覆盖 ---------------------------- */
/* 把 v2 里 25 种零散字号向 6 档吸附；差异 ≤1px 的直接合并 */
.btn            { font-size: var(--fs-body); }
.btn-sm         { font-size: var(--fs-small); }
.btn-lg         { font-size: var(--fs-lead); }
.input          { font-size: var(--fs-body); }
.input-sm       { font-size: var(--fs-small); }
.input-lg       { font-size: var(--fs-lead); }
.label          { font-size: var(--fs-small); }
.hint           { font-size: var(--fs-small); }
.textarea       { font-size: var(--fs-body); }
.select         { font-size: var(--fs-body); }
.badge          { font-size: var(--fs-caption); }
.tag            { font-size: var(--fs-caption); }
.chip           { font-size: var(--fs-body); }
.chip .count    { font-size: var(--fs-caption); }
.tab            { font-size: var(--fs-body); }
.segmented-item { font-size: var(--fs-body); }
.dropdown-item  { font-size: var(--fs-body); }
.nav-item       { font-size: var(--fs-body); }
.nav-group-title{ font-size: var(--fs-caption); }
.card-title     { font-size: var(--fs-lead); }
.list-title     { font-size: var(--fs-body); }
.list-desc      { font-size: var(--fs-body); }
.list-meta      { font-size: var(--fs-small); }
.feed-text      { font-size: var(--fs-small); }
.feed-title     { font-size: var(--fs-body); }
.stat-label     { font-size: var(--fs-small); }
.stat-value     { font-size: var(--fs-display); }
.stat-foot      { font-size: var(--fs-small); }
.rank-row       { font-size: var(--fs-body); }
.rank-no        { font-size: var(--fs-small); }
.table          { font-size: var(--fs-body); }
.table th       { font-size: var(--fs-small); }
.editor-input   { font-size: var(--fs-body); }
.editor-tool    { font-size: var(--fs-small); }
.editor-foot    { font-size: var(--fs-small); }
.upload-zone    { font-size: var(--fs-body); }
.attach-name    { font-size: var(--fs-small); }
.cmd-item-title { font-size: var(--fs-body); }
.cmd-item-sub   { font-size: var(--fs-small); }
.cmd-input      { font-size: var(--fs-lead); }
.auth-sub       { font-size: var(--fs-body); }
.page-desc      { font-size: var(--fs-body); }
.hero-sub       { font-size: var(--fs-body); }
.sec-title      { font-size: var(--fs-lead); }
.sec-more       { font-size: var(--fs-small); }
.task-card-title{ font-size: var(--fs-body); }
.kanban-col-head{ font-size: var(--fs-body); }
.kanban-count   { font-size: var(--fs-caption); }
.notif-item     { font-size: var(--fs-body); }
.adm-nav-item   { font-size: var(--fs-body); }
.switch-label   { font-size: var(--fs-body); }
.checkbox-text  { font-size: var(--fs-body); }
.radio-card b   { font-size: var(--fs-body); }
.radio-card span{ font-size: var(--fs-small); }
.md-body        { font-size: var(--fs-body); }
.md-body code   { font-size: 12.5px; }
.md-body .md-pre code { font-size: 12.5px; }
.profile-bio    { font-size: var(--fs-body); }
.list-item .text-xs, .text-xs { font-size: var(--fs-small); }
.text-sm        { font-size: var(--fs-body); }
.text-lg        { font-size: var(--fs-lead); }
.pager-info     { font-size: var(--fs-small); }

/* --------------------------- 3. 数字一律等宽 ---------------------------- */
.table td, .list-meta, .rank-row, .pager-info, .kanban-count,
.stat-value, .countdown-num, .table th, .notif-item time,
.status-value, .ring-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "kern" 1;
}

/* --------------------------- 4. 正文 measure ---------------------------- */
.md-body { max-width: 72ch; line-height: 1.8; }
.md-body .md-pre { max-width: 100%; }

/* --------------------------- 5. 特效密度收敛 ---------------------------- */
/* 数据卡只保留「聚光 + 抬升」，去掉图标旋转等装饰性动作 */
.stat-card:hover .stat-icon { transform: none; }
.stat-card:hover { transform: translateY(-2px); }
.card.hoverable:hover { transform: translateY(-2px); }
.list-item:hover { transform: none; }
.badge:hover { transform: none; }

/* 聚光强度下调，避免多卡连扫时闪烁 */
[data-spotlight]::after {
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
              rgba(99,102,241,.10), rgba(6,182,212,.04) 40%, transparent 62%);
}
html[data-theme="light"] [data-spotlight]::after {
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,50%),
              rgba(99,102,241,.075), transparent 62%);
}

/* --------------------------- 6. 卡片描边分两级 -------------------------- */
/* 列表流里的卡片用素边（8 张镜面边叠在一起就是噪音），浮层卡片保留镜面 */
.card--flat { border: 1px solid var(--border); box-shadow: none; }
.card--flat::before { display: none; }
.card--flat:hover { border-color: var(--border-2); }

/* --------------------------- 7. 微交互精修 ------------------------------ */
.btn:active { transform: scale(.98); }
.btn-primary:active { box-shadow: 0 2px 8px rgba(99,102,241,.28), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-sm:active { transform: scale(.975); }

.input:focus, .textarea:focus, .select:focus {
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* 列表 hover 渐变条加 40ms 延迟，快速扫过时不闪烁 */
.list-item.clickable::after { transition-delay: 40ms; }

/* 表单错误：边框变红 + 两次水平抖动 */
.input--error, .textarea--error {
  border-color: rgba(239,68,68,.62) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important;
  animation: fieldShake .34s var(--ease-out);
}
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  18%      { transform: translateX(-4px); }
  38%      { transform: translateX(3px); }
  58%      { transform: translateX(-2px); }
  78%      { transform: translateX(1px); }
}

/* 复选框：描线动画替代缩放（更有「打勾」实感） */
.checkbox .box .i { opacity: 0; transform: none; stroke-dasharray: 26; stroke-dashoffset: 26; }
.checkbox input:checked + .box .i { opacity: 1; animation: drawCheck .3s var(--ease-out) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* 分段控件回弹降幅 */
@keyframes segPop { from { transform: scale(.97); } to { transform: none; } }

/* 上传区拖入：虚线呼吸 */
.upload-zone.over { outline: 2px dashed rgba(99,102,241,.55); outline-offset: 3px; animation: zonePulse 1.4s var(--ease-in-out) infinite; }
@keyframes zonePulse { 0%,100% { outline-color: rgba(99,102,241,.35); } 50% { outline-color: rgba(99,102,241,.7); } }

/* 复制成功反馈 */
.btn.copied, .icon-btn.copied { color: var(--ok) !important; }
.btn.copied::before, .icon-btn.copied::before { background: var(--ok) !important; opacity: .14 !important; }

/* --------------------------- 8. 阅读进度条 ------------------------------ */
#readBar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9998;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #6366f1, #06b6d4, #8b5cf6);
  box-shadow: 0 0 10px rgba(99,102,241,.55);
  pointer-events: none; opacity: 0;
  transition: opacity var(--d-base) var(--ease-out);
}
#readBar.on { opacity: 1; }

/* --------------------------- 9. 看板拖拽增强 ---------------------------- */
.kanban-body { position: relative; }
/* 源卡片占位虚影：给出明确的"它从哪来" */
.task-card.ghost-source {
  opacity: .28; border-style: dashed; border-color: var(--border-2);
  background: transparent; box-shadow: none;
}
/* 落点插入线 */
.drop-line {
  height: 2px; border-radius: 2px; margin: -5px 0;
  background: linear-gradient(90deg, transparent, #6366f1, #06b6d4, transparent);
  box-shadow: 0 0 10px rgba(99,102,241,.6);
  animation: dropLineIn .18s var(--ease-out);
}
@keyframes dropLineIn { from { transform: scaleX(.35); opacity: 0; } to { transform: none; opacity: 1; } }
/* 拖拽中的浮层卡片 */
.drag-ghost {
  position: fixed; z-index: 900; pointer-events: none; margin: 0;
  box-shadow: 0 26px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(99,102,241,.35);
  transform-origin: 50% 50%; will-change: transform;
}
.kanban-body.drag-over { background: rgba(99,102,241,.07); outline-color: rgba(99,102,241,.4); }

/* --------------------------- 10. 登录页滚动叙事 ------------------------- */
.auth-stage {
  display: grid; grid-template-columns: 1.12fr .88fr;
  height: 100vh; overflow: hidden; position: relative; z-index: 2;
}
.auth-scenes {
  height: 100vh; overflow-y: auto; scroll-snap-type: y mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.auth-scenes::-webkit-scrollbar { display: none; }

.auth-scene {
  height: 100vh; scroll-snap-align: start;
  display: grid; place-items: center; padding: 56px 60px;
}
.auth-scene-inner { width: 100%; max-width: 560px; }
.auth-scene-kicker {
  font-family: var(--font-mono); font-size: var(--fs-caption);
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 18px; opacity: .9;
}
.auth-scene-title {
  font-size: 40px; font-weight: 740; letter-spacing: -.046em; line-height: 1.18;
  margin-bottom: 16px;
}
.auth-scene-desc { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.85; max-width: 46ch; }

/* 产品界面复刻（纯 CSS，不用素材图 —— Apple 的产品页也越来越依赖真实 UI） */
.auth-mock {
  margin-top: 32px; padding: 18px;
  border-radius: var(--r-lg); border: 1px solid var(--border-2);
  background: color-mix(in srgb, var(--elev-1) 72%, transparent);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.mock-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-col { display: flex; flex-direction: column; gap: 8px; }
.mock-col-head {
  font-size: var(--fs-caption); font-weight: 650; color: var(--text-3);
  display: flex; align-items: center; gap: 6px; margin-bottom: 2px;
}
.mock-card {
  padding: 9px 10px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: var(--fs-small); line-height: 1.45; color: var(--text-2);
}
.mock-card b { display: block; color: var(--text); font-weight: 600; margin-bottom: 5px; }
.mock-bar { height: 3px; border-radius: 99px; background: var(--surface-3); margin-top: 7px; overflow: hidden; }
.mock-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }

.mock-chat { display: flex; flex-direction: column; gap: 12px; }
.mock-msg { display: flex; gap: 10px; align-items: flex-start; }
.mock-msg.right { flex-direction: row-reverse; }
.mock-bubble {
  padding: 10px 13px; border-radius: 14px; font-size: var(--fs-small); line-height: 1.6;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
  max-width: 78%;
}
.mock-msg.right .mock-bubble {
  background: rgba(99,102,241,.13); border-color: rgba(99,102,241,.26); color: var(--text);
}
.mock-dot {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
}

/* 场景指示点 */
.auth-dots {
  position: absolute; left: 30px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 5;
}
.auth-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--border-2);
  transition: all var(--d-base) var(--ease-out); cursor: pointer;
}
.auth-dot.on { background: var(--brand); height: 20px; border-radius: 99px; box-shadow: 0 0 12px rgba(99,102,241,.6); }

/* 右侧表单常驻 —— 叙事在动，行动点不动 */
.auth-panel {
  height: 100vh; display: grid; place-items: center; padding: 28px;
  border-left: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.auth-panel .auth-card { margin: 0; }

@media (max-width: 1020px) {
  .auth-stage { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .auth-scenes { height: auto; overflow: visible; }
  .auth-scene { height: auto; min-height: 62vh; padding: 48px 24px; }
  .auth-scene-title { font-size: 30px; }
  .auth-panel { height: auto; border-left: 0; border-top: 1px solid var(--border); padding: 36px 20px 56px; }
  .auth-dots { display: none; }
}

/* --------------------------- 11. 共享元素转场锚点 ----------------------- */
.flip-anchor { will-change: transform, opacity; }

/* --------------------------- 12. 降级策略 ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .auth-scenes { scroll-snap-type: none; }
  .drop-line { animation: none; }
  .input--error, .textarea--error { animation: none; }
  .upload-zone.over { animation: none; }
  .checkbox input:checked + .box .i { animation: none; stroke-dashoffset: 0; }
}
@media (hover: none) {
  [data-spotlight]::after { display: none; }
}

/* ====================== v3 补遗：列表卡片 + 登录叙事 ===================== */

/* 学习进度卡：10 个视觉元素 → 6 个。去掉角色徽章、「学习时长」冗余标签、列表内标签组 */
.log-card { padding: 16px 18px; }
.log-card__head { display: flex; align-items: center; gap: 11px; }
.log-card__who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.log-card__name { font-weight: 620; font-size: var(--fs-body); letter-spacing: -.012em; }
.log-card__when { font-size: var(--fs-small); color: var(--text-3); margin-top: 4px; }
.log-card__time {
  font-size: var(--fs-lead); font-weight: 680; letter-spacing: -.022em;
  white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text);
}
.log-card__title {
  font-size: var(--fs-lead); font-weight: 650; letter-spacing: -.02em;
  margin: 14px 0 7px; line-height: 1.4;
}
.log-card__excerpt {
  font-size: var(--fs-body); color: var(--text-2); line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 登录叙事：滚动提示 */
.auth-scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: var(--fs-caption); color: var(--text-3); letter-spacing: .1em;
  animation: hintFloat 2.6s var(--ease-in-out) infinite;
}
.auth-scroll-hint .i { width: 16px; height: 16px; }
@keyframes hintFloat { 0%,100% { transform: translate(-50%, 0); opacity: .65; } 50% { transform: translate(-50%, 6px); opacity: 1; } }

/* 场景内的复刻界面：随场景入场做轻微上浮 */
.auth-scene[data-reveal] .auth-mock { transform: translateY(10px); transition: transform .7s var(--ease-out) .12s; }
.auth-scene.revealed .auth-mock { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .auth-scroll-hint { animation: none; }
  .auth-scene[data-reveal] .auth-mock { transform: none; }
}

/* ============================ v3 修正 ==================================== */

/* 关键修复：position:fixed 且 left/top 为 auto 时，元素停在「静态位置」
   （即 body 内容末尾，通常在视口之外），导致拖拽浮层不可见。
   必须显式归零，再由 translate3d 驱动。 */
.drag-ghost { left: 0; top: 0; }
.drag-ghost .task-card { cursor: grabbing; box-shadow: none; }
.drag-ghost .task-card:hover { transform: none; }

/* 落点插入线更明确 */
.drop-line { height: 3px; box-shadow: 0 0 12px rgba(99,102,241,.75); }

/* 列高亮弱化一点，避免整列描边过重 */
.kanban-body.drag-over { outline-width: 1px; outline-offset: 2px; }

/* 列表卡再收紧一档，一屏能多放一条 */
.log-card { padding: 14px 16px; }
.log-card__title { margin: 12px 0 6px; }

/* 场景内的滚动提示改为相对「第一个场景」定位，而不是相对整个 stage */
.auth-scene { position: relative; }
.auth-scroll-hint { bottom: 30px; }

/* v3 补遗：登录叙事里的迷你进度条轨道更清晰 */
.mock-bar { height: 4px; background: var(--surface-3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
html[data-theme="light"] .mock-bar { box-shadow: inset 0 0 0 1px rgba(15,23,42,.06); }
/* ==========================================================================
   设计系统 v4 —— Liquid Glass 材质层
   --------------------------------------------------------------------------
   参考 Apple Liquid Glass（WWDC25 / iOS 26 · macOS 26）的四条核心原则：
     1. 折射（Refraction）—— 玻璃边缘像透镜一样弯折背后的光
     2. 镜面（Specular）—— 顶缘高光 + 跟随指针的动态反光
     3. 层次（Layering）—— 玻璃悬浮于内容之上，投影明确
     4. 适应性（Adaptive）—— 玻璃从背后取色，背景因此必须有色彩可取样
   因此本层先重做背景（6 个独立漂移的光斑），再把材质升级为真玻璃。
   ========================================================================== */

/* ======================= 一、背景：可被折射的色彩 ======================= */
/* 旧版背景是三层一起漂移的静态光晕，几乎等于纯黑；玻璃没有东西可折射，
   看上去只能是"深色卡片"。改为六个各自独立漂移的大光斑。 */
#bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  contain: strict;
}
.orb {
  position: absolute; border-radius: 50%;
  opacity: 0; will-change: transform;
  animation: orbIn 1.6s var(--ease-out) forwards, var(--drift, driftA) var(--dur, 26s) var(--ease-in-out) infinite;
  animation-delay: var(--delay, 0s), var(--delay, 0s);
}
@keyframes orbIn { to { opacity: var(--o, .8); } }

@keyframes driftA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(5%, -4%, 0) scale(1.13); }
}
@keyframes driftB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.06); }
  50%      { transform: translate3d(-6%, 5%, 0) scale(.93); }
}
@keyframes driftC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.95); }
  50%      { transform: translate3d(4%, 6%, 0) scale(1.11); }
}

html[data-theme="dark"] .orb-1 { --o: .58; --dur: 30s; --drift: driftA;
  width: 52vmax; height: 52vmax; left: -14vmax; top: -20vmax;
  background: radial-gradient(circle, rgba(99,102,241,.62) 0%, rgba(99,102,241,.22) 42%, transparent 70%); }
html[data-theme="dark"] .orb-2 { --o: .50; --dur: 38s; --drift: driftB; --delay: .12s;
  width: 46vmax; height: 46vmax; right: -16vmax; top: -14vmax;
  background: radial-gradient(circle, rgba(6,182,212,.58) 0%, rgba(6,182,212,.20) 44%, transparent 70%); }
html[data-theme="dark"] .orb-3 { --o: .46; --dur: 44s; --drift: driftC; --delay: .24s;
  width: 58vmax; height: 58vmax; left: 14vmax; bottom: -28vmax;
  background: radial-gradient(circle, rgba(139,92,246,.55) 0%, rgba(139,92,246,.18) 46%, transparent 72%); }
html[data-theme="dark"] .orb-4 { --o: .34; --dur: 34s; --drift: driftB; --delay: .3s;
  width: 34vmax; height: 34vmax; left: -10vmax; bottom: 6vmax;
  background: radial-gradient(circle, rgba(59,130,246,.55) 0%, transparent 68%); }
html[data-theme="dark"] .orb-5 { --o: .30; --dur: 40s; --drift: driftA; --delay: .18s;
  width: 32vmax; height: 32vmax; right: -8vmax; bottom: -6vmax;
  background: radial-gradient(circle, rgba(20,184,166,.52) 0%, transparent 68%); }
html[data-theme="dark"] .orb-6 { --o: .22; --dur: 48s; --drift: driftC; --delay: .36s;
  width: 26vmax; height: 26vmax; left: 46%; top: 4vmax;
  background: radial-gradient(circle, rgba(236,72,153,.48) 0%, transparent 66%); }

/* 亮色主题：光斑更淡、更接近"阳光透过磨砂玻璃" */
html[data-theme="light"] .orb { mix-blend-mode: multiply; }
html[data-theme="light"] .orb-1 { --o: .30; --dur: 30s; --drift: driftA;
  width: 52vmax; height: 52vmax; left: -14vmax; top: -20vmax;
  background: radial-gradient(circle, rgba(129,140,248,.55) 0%, transparent 70%); }
html[data-theme="light"] .orb-2 { --o: .26; --dur: 38s; --drift: driftB; --delay: .12s;
  width: 46vmax; height: 46vmax; right: -16vmax; top: -14vmax;
  background: radial-gradient(circle, rgba(34,211,238,.50) 0%, transparent 70%); }
html[data-theme="light"] .orb-3 { --o: .24; --dur: 44s; --drift: driftC; --delay: .24s;
  width: 58vmax; height: 58vmax; left: 14vmax; bottom: -28vmax;
  background: radial-gradient(circle, rgba(167,139,250,.48) 0%, transparent 72%); }
html[data-theme="light"] .orb-4 { --o: .18; --dur: 34s; --drift: driftB;
  width: 34vmax; height: 34vmax; left: -10vmax; bottom: 6vmax;
  background: radial-gradient(circle, rgba(96,165,250,.50) 0%, transparent 68%); }
html[data-theme="light"] .orb-5 { --o: .16; --dur: 40s; --drift: driftA;
  width: 32vmax; height: 32vmax; right: -8vmax; bottom: -6vmax;
  background: radial-gradient(circle, rgba(45,212,191,.48) 0%, transparent 68%); }
html[data-theme="light"] .orb-6 { display: none; }

/* 缓慢横扫的高光带 —— 让背景有"活"的感觉，而不是几个死掉的色块 */
.orb-sheen {
  position: absolute; inset: -30%;
  background: linear-gradient(102deg,
      transparent 38%, rgba(255,255,255,.05) 47%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.05) 53%, transparent 62%);
  animation: sheenSweep 22s var(--ease-in-out) infinite;
  will-change: transform;
}
@keyframes sheenSweep {
  0%, 100% { transform: translate3d(-22%, 0, 0) rotate(-2deg); }
  50%      { transform: translate3d(22%, 0, 0) rotate(2deg); }
}
html[data-theme="light"] .orb-sheen { background: linear-gradient(102deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%); opacity: .5; }

/* 暗角：把边缘压暗，保证四角内容依然可读 */
#bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(130% 100% at 50% 38%, transparent 42%, rgba(3,4,9,.42) 100%);
}
html[data-theme="light"] #bg::after {
  background: radial-gradient(130% 100% at 50% 38%, transparent 46%, rgba(226,232,240,.5) 100%);
}

/* 旧版三层光晕退居为静态底噪（不再参与动画，由光斑负责律动） */
body::before { animation: none !important; opacity: .62 !important; }
html[data-theme="light"] body::before { opacity: .3 !important; }

/* 启动页透明化，让光斑在加载时就能透出来 */
#boot { background: transparent; }

/* ======================= 二、玻璃材质：三个等级 ========================= */
/* 等级由「背后内容的可见度」决定：越靠上层，模糊越强、取样越多 */

.glass-1,   /* 面板：侧栏 / 顶栏 */
.glass-2,   /* 卡片：内容承载面 */
.glass-3 {  /* 浮层：弹窗 / 下拉 / 命令面板 / 轻提示 */
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg,
      rgba(255,255,255,.085) 0%,
      rgba(255,255,255,.048) 40%,
      rgba(255,255,255,.030) 100%);
  backdrop-filter: blur(22px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),        /* 顶部镜面高光 */
    inset 0 -1px 0 rgba(255,255,255,.05),       /* 底部环境反射 */
    0 16px 40px rgba(0,0,0,.42),                /* 悬浮投影 */
    0 2px 8px rgba(0,0,0,.28);
}
.glass-1 { backdrop-filter: blur(30px) saturate(190%) brightness(1.05); -webkit-backdrop-filter: blur(30px) saturate(190%) brightness(1.05); }
.glass-3 {
  backdrop-filter: blur(40px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.08);
  border-color: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 34px 80px rgba(0,0,0,.6), 0 4px 16px rgba(0,0,0,.4);
}

/* ---- 折射环：玻璃边缘像透镜一样弯折光线（Liquid Glass 的标志性细节）---- */
.glass-1::before,
.glass-2::before,
.glass-3::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.4px; pointer-events: none; z-index: 2;
  background: linear-gradient(148deg,
      rgba(255,255,255,.72) 0%,
      rgba(255,255,255,.20) 11%,
      rgba(255,255,255,.04) 30%,
      rgba(255,255,255,.02) 52%,
      rgba(255,255,255,.06) 72%,
      rgba(255,255,255,.16) 88%,
      rgba(255,255,255,.52) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* 浮层额外开启「透镜」：给边缘那条 1.4px 的环加一次极短景深的背景模糊，
   光在边缘被压亮、背景被拉伸，就是玻璃厚度带来的折射感。只给浮层用，控制开销。 */
.glass-3::before { backdrop-filter: blur(3px) brightness(1.9) saturate(1.6); -webkit-backdrop-filter: blur(3px) brightness(1.9) saturate(1.6); }

/* ======================= 三、指针镜面反光 ============================== */
/* v2 只是"一团柔光"，液态玻璃需要的是「镜面高光 + 环境色晕」两层 */
[data-spotlight]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1;
  background:
    radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.14), transparent 56%),
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
        rgba(99,102,241,.17), rgba(6,182,212,.07) 44%, transparent 72%);
  opacity: 0;
  transition: opacity var(--d-slow) var(--ease-out);
  pointer-events: none;
}
[data-spotlight].spot-on::after { opacity: 1; }
html[data-theme="light"] [data-spotlight]::after {
  background:
    radial-gradient(150px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.75), transparent 56%),
    radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(99,102,241,.10), transparent 70%);
}
[data-spotlight] > * { position: relative; z-index: 3; }

/* ======================= 四、各组件的玻璃化 ============================ */
.card, .stat-card, .task-card, .log-card, .table-wrap, .editor, .upload-zone, .attach-item {
  border-color: rgba(255,255,255,.10);
  background: linear-gradient(180deg,
      rgba(255,255,255,.075) 0%,
      rgba(255,255,255,.045) 42%,
      rgba(255,255,255,.028) 100%);
  backdrop-filter: blur(20px) saturate(175%) brightness(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(175%) brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 12px 32px rgba(0,0,0,.34),
    0 2px 6px rgba(0,0,0,.24);
}
/* 列表流卡片：玻璃更薄，保持密集阅读时的清爽 */
.card--flat, .log-card {
  background: linear-gradient(180deg, rgba(255,255,255,.048), rgba(255,255,255,.026));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 18px rgba(0,0,0,.22);
}
.card--flat:hover, .log-card:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
  border-color: rgba(255,255,255,.16);
}
/* 数据卡去掉旧的角落光斑（与镜面反光争抢视觉） */
.stat-card::after { display: none; }

.sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.020) 100%);
  backdrop-filter: blur(32px) saturate(200%) brightness(1.04);
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.04);
  border-right: 1px solid rgba(255,255,255,.09);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.04), 24px 0 60px rgba(0,0,0,.3);
}
.topbar {
  background: linear-gradient(180deg, rgba(255,255,255,.062) 0%, rgba(255,255,255,.026) 100%);
  backdrop-filter: blur(28px) saturate(195%) brightness(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(195%) brightness(1.05);
  border-bottom: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 30px rgba(0,0,0,.28);
}

.modal, .dropdown-menu, .cmd, .toast { border-color: rgba(255,255,255,.14); }
.modal {
  background: linear-gradient(180deg, rgba(28,32,46,.82) 0%, rgba(18,21,31,.86) 100%);
  backdrop-filter: blur(44px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(44px) saturate(200%) brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 40px 100px rgba(0,0,0,.66), 0 6px 20px rgba(0,0,0,.4);
}
.dropdown-menu, .cmd {
  background: linear-gradient(180deg, rgba(30,34,48,.88) 0%, rgba(19,22,33,.9) 100%);
  backdrop-filter: blur(40px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.06);
}
.toast {
  background: linear-gradient(180deg, rgba(30,34,48,.9) 0%, rgba(20,23,34,.92) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
}
.modal-mask { backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.cmd-mask { backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }

/* 输入控件：浅玻璃，聚焦时透出更多背后色彩 */
.input, .textarea, .select {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-color: rgba(255,255,255,.11);
}
.input:focus, .textarea:focus, .select:focus {
  background: rgba(255,255,255,.07);
  border-color: rgba(129,140,248,.7);
  box-shadow: 0 0 0 3px rgba(99,102,241,.16), inset 0 1px 0 rgba(255,255,255,.16);
}

/* 按钮：主按钮做成「着色玻璃胶囊」 */
.btn {
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  border-color: rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 3px 10px rgba(0,0,0,.22);
}
.btn:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 18px rgba(0,0,0,.3); }
.btn-primary {
  background: linear-gradient(135deg, rgba(99,102,241,.94) 0%, rgba(6,182,212,.88) 100%);
  border-color: rgba(255,255,255,.26);
  backdrop-filter: blur(14px) saturate(190%) brightness(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(190%) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.46),
    inset 0 -1px 0 rgba(0,0,0,.16),
    0 10px 26px rgba(99,102,241,.4);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.52), inset 0 -1px 0 rgba(0,0,0,.16), 0 16px 38px rgba(99,102,241,.52); }
.icon-btn:hover, .chip, .segmented { backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); }
.chip.active, .segmented-item.active {
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 4px 12px rgba(0,0,0,.22);
}

/* Hero 与看板列头也纳入玻璃体系 */
.hero {
  background: linear-gradient(150deg, rgba(99,102,241,.20) 0%, rgba(6,182,212,.10) 55%, rgba(139,92,246,.14) 100%);
  backdrop-filter: blur(26px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(26px) saturate(180%) brightness(1.05);
  border-color: rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 20px 50px rgba(0,0,0,.34);
}
.kanban-col-head {
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border-color: rgba(255,255,255,.11);
}

/* ======================= 五、亮色主题 ================================== */
html[data-theme="light"] .glass-1,
html[data-theme="light"] .glass-2,
html[data-theme="light"] .glass-3,
html[data-theme="light"] .card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .task-card,
html[data-theme="light"] .log-card,
html[data-theme="light"] .table-wrap,
html[data-theme="light"] .editor,
html[data-theme="light"] .upload-zone,
html[data-theme="light"] .attach-item {
  border-color: rgba(255,255,255,.7);
  background: linear-gradient(180deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.66) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 12px 32px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.05);
}
html[data-theme="light"] .card--flat,
html[data-theme="light"] .log-card {
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.6));
}
html[data-theme="light"] .glass-1::before,
html[data-theme="light"] .glass-2::before,
html[data-theme="light"] .glass-3::before,
html[data-theme="light"] .card::before {
  background: linear-gradient(148deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.5) 14%, rgba(15,23,42,.05) 42%, rgba(255,255,255,.4) 76%, rgba(255,255,255,.9) 100%);
}
html[data-theme="light"] .sidebar { background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.58)); border-right-color: rgba(15,23,42,.07); box-shadow: inset -1px 0 0 rgba(255,255,255,.8), 18px 0 50px rgba(15,23,42,.08); }
html[data-theme="light"] .topbar { background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.6)); border-bottom-color: rgba(15,23,42,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 8px 26px rgba(15,23,42,.07); }
html[data-theme="light"] .input,
html[data-theme="light"] .textarea,
html[data-theme="light"] .select { background: rgba(255,255,255,.66); border-color: rgba(15,23,42,.1); }
html[data-theme="light"] .input:focus,
html[data-theme="light"] .textarea:focus,
html[data-theme="light"] .select:focus { background: rgba(255,255,255,.9); }
html[data-theme="light"] .modal,
html[data-theme="light"] .dropdown-menu,
html[data-theme="light"] .cmd,
html[data-theme="light"] .toast {
  background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.88) 100%);
  border-color: rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 #fff, 0 34px 80px rgba(15,23,42,.2), 0 4px 16px rgba(15,23,42,.08);
}
html[data-theme="light"] .btn { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.72)); border-color: rgba(15,23,42,.09); box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(15,23,42,.07); }
html[data-theme="light"] .hero { background: linear-gradient(150deg, rgba(99,102,241,.16), rgba(6,182,212,.10) 55%, rgba(139,92,246,.12)); border-color: rgba(255,255,255,.7); }

/* ======================= 六、无障碍与性能降级 ========================== */
/* 系统开启「降低透明度」时退回不透明材质（macOS / iOS 的可访问性设置） */
@media (prefers-reduced-transparency: reduce) {
  .orb { display: none; }
  .orb-sheen { display: none; }
  .glass-1, .glass-2, .glass-3, .card, .stat-card, .task-card, .log-card,
  .sidebar, .topbar, .modal, .dropdown-menu, .cmd, .toast, .btn, .input, .textarea, .select, .hero {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  html[data-theme="dark"] .card,
  html[data-theme="dark"] .glass-2 { background: #14171f; }
  html[data-theme="dark"] .sidebar { background: #0c0e15; }
  html[data-theme="dark"] .topbar { background: #0a0c12; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .orb-sheen { animation: none !important; opacity: var(--o, .5); }
}

/* 移动端：减少光斑层数与模糊半径，保证滚动流畅 */
@media (max-width: 780px) {
  .orb-4, .orb-6 { display: none; }
  .orb { animation-duration: 60s; }
  .orb-sheen { display: none; }
  .glass-1, .glass-2, .glass-3, .card, .stat-card, .task-card, .log-card,
  .sidebar, .topbar, .modal, .dropdown-menu, .cmd {
    backdrop-filter: blur(16px) saturate(160%) brightness(1.04) !important;
    -webkit-backdrop-filter: blur(16px) saturate(160%) brightness(1.04) !important;
  }
  .glass-3::before { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* 低端设备 / 省电模式：直接关闭背景动画 */
@media (prefers-reduced-motion: reduce) and (max-width: 780px) {
  #bg { display: none; }
}

/* v4 补遗：把 .card 的描边也升级为折射环，与 .glass-* 保持一致 */
.card::before {
  padding: 1.4px;
  background: linear-gradient(148deg,
      rgba(255,255,255,.72) 0%,
      rgba(255,255,255,.20) 11%,
      rgba(255,255,255,.04) 30%,
      rgba(255,255,255,.02) 52%,
      rgba(255,255,255,.06) 72%,
      rgba(255,255,255,.16) 88%,
      rgba(255,255,255,.52) 100%);
}
html[data-theme="light"] .card::before {
  background: linear-gradient(148deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.5) 14%, rgba(15,23,42,.05) 42%, rgba(255,255,255,.4) 76%, rgba(255,255,255,.9) 100%);
}

/* ======================= v4 修正 ======================================= */
/* 严重问题：.glass-1/2/3 里写了 position: relative，把侧栏的 position: fixed
   和顶栏的 position: sticky 覆盖成了 relative —— 侧栏于是变成 flex 项参与布局，
   再叠上 .main 的 margin-left，整块内容右移了一个侧栏宽度。
   玻璃类不该决定定位方式，交给各自的组件规则。 */
/* 玻璃类一律不声明 position —— 定位方式由组件自己决定：
     .sidebar 是 fixed、.topbar 是 sticky、.dropdown-menu 是 absolute、.card 是 relative。
     只有 .modal / .cmd 自身没有定位，需要为折射环建立上下文。 */
.modal, .cmd { position: relative; }

/* ---- 侧栏 / 顶栏：玻璃要有，但导航必须清晰可读 ---- */
/* 之前直接 blur + brightness 让背后靛蓝光斑整块透上来，侧栏变成一片亮蓝，
   文字对比度骤降。改为「深色玻璃」：保留模糊与取色，但压暗到可读区间。 */
.sidebar.glass-1 {
  background: linear-gradient(180deg, rgba(13,15,24,.70) 0%, rgba(9,11,18,.64) 100%);
  backdrop-filter: blur(34px) saturate(185%);
  -webkit-backdrop-filter: blur(34px) saturate(185%);
  border-right: 1px solid rgba(255,255,255,.085);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.05), 22px 0 60px rgba(0,0,0,.34);
}
.topbar.glass-1 {
  background: linear-gradient(180deg, rgba(13,15,24,.66) 0%, rgba(10,12,19,.72) 100%);
  backdrop-filter: blur(30px) saturate(185%);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  border-bottom: 1px solid rgba(255,255,255,.085);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 10px 32px rgba(0,0,0,.3);
}

/* 内容卡片同样收敛一点：背后光斑透太多会削弱文字对比度 */
.card, .stat-card, .task-card, .log-card, .table-wrap, .editor, .upload-zone, .attach-item {
  background: linear-gradient(180deg,
      rgba(20,23,34,.56) 0%,
      rgba(15,18,27,.50) 44%,
      rgba(12,14,22,.46) 100%);
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
}
.card--flat, .log-card {
  background: linear-gradient(180deg, rgba(18,21,31,.46), rgba(13,15,23,.40));
}
.card--flat:hover, .log-card:hover {
  background: linear-gradient(180deg, rgba(24,28,40,.56), rgba(17,20,29,.48));
}

/* 亮色主题：白玻璃压到可读区间 */
html[data-theme="light"] .sidebar.glass-1 { background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.7)); }
html[data-theme="light"] .topbar.glass-1 { background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.74)); }
html[data-theme="light"] .card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .task-card,
html[data-theme="light"] .log-card,
html[data-theme="light"] .table-wrap,
html[data-theme="light"] .editor,
html[data-theme="light"] .upload-zone,
html[data-theme="light"] .attach-item {
  background: linear-gradient(180deg, rgba(255,255,255,.80) 0%, rgba(255,255,255,.68) 100%);
}
html[data-theme="light"] .input,
html[data-theme="light"] .textarea,
html[data-theme="light"] .select { background: rgba(255,255,255,.72); }
html[data-theme="light"] .btn { background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.74)); }

/* ======================= v4 修正二：按钮语义色 ========================== */
/* v4 给 .btn 加的玻璃底（0,1,0）在文件里比 v2 的 .btn-soft/.btn-danger/.btn-ok
   更靠后，同权重下把它们的语义底色全部覆盖成了灰玻璃；
   亮色主题下 html[data-theme="light"] .btn（0,2,0）更是把 .btn-primary 也压成了白色。
   这里用 .btn.btn-xxx 提高权重逐一把语义色还原。 */

html[data-theme="dark"] .btn.btn-ghost {
  background: transparent; border-color: transparent;
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-theme="dark"] .btn.btn-soft {
  background: linear-gradient(180deg, rgba(99,102,241,.20), rgba(99,102,241,.13));
  border-color: rgba(99,102,241,.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
html[data-theme="dark"] .btn.btn-danger {
  background: linear-gradient(180deg, rgba(239,68,68,.20), rgba(239,68,68,.13));
  border-color: rgba(239,68,68,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
html[data-theme="dark"] .btn.btn-ok {
  background: linear-gradient(180deg, rgba(16,185,129,.20), rgba(16,185,129,.13));
  border-color: rgba(16,185,129,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

html[data-theme="light"] .btn.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  border-color: rgba(255,255,255,.5);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 22px rgba(99,102,241,.32);
}
html[data-theme="light"] .btn.btn-ghost {
  background: transparent; border-color: transparent; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-theme="light"] .btn.btn-soft {
  background: rgba(99,102,241,.10); border-color: rgba(99,102,241,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
html[data-theme="light"] .btn.btn-danger {
  background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
html[data-theme="light"] .btn.btn-ok {
  background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
