/* ============================================================
   框架布局 · 侧栏 / 顶栏 / 页面 / 弹层
   ============================================================ */
.app { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ---------------- 侧栏 ---------------- */
.rail {
  width: var(--rail-w); flex: none;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(200,241,105,.06), transparent 55%),
    linear-gradient(180deg, #0C1916 0%, #0A1412 100%);
  color: #E6EEE9;
  display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  border-right: 1px solid rgba(255,255,255,.05);
  transition: width .22s ease, transform .22s ease;
}
.rail::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 65%);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 22px 20px 18px; position: relative; }
.brand__mark {
  width: 39px; height: 39px; border-radius: 11px; flex: none;
  background: linear-gradient(145deg, #D3F77E, #A9DF48);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(200,241,105,.55);
}
.brand__mark svg { width: 23px; height: 23px; }
.brand__text { display: flex; flex-direction: column; overflow: hidden; white-space: nowrap; }
.brand__text strong { font-size: 16.5px; font-weight: 700; letter-spacing: .5px; color: #F2F7F3; }
.brand__text span { font-size: 9px; letter-spacing: 2.2px; color: #78948A; font-weight: 600; margin-top: 2px; }
.rail__badge {
  margin-left: auto; font-size: 9.5px; padding: 2px 6px; border-radius: 4px;
  background: rgba(200,241,105,.12); color: var(--lime); border: 1px solid rgba(200,241,105,.18);
  font-family: var(--mono); letter-spacing: .5px;
}

.nav { flex: 1; overflow-y: auto; padding: 4px 12px 18px; position: relative; scrollbar-width: thin; }
.nav::-webkit-scrollbar { width: 0; }
.nav__item {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 11px; margin-bottom: 2px;
  border-radius: 9px; color: #A9BBB4; font-size: 13.3px; font-weight: 500;
  position: relative; transition: all .16s ease; white-space: nowrap; overflow: hidden;
}
.nav__item .ico { color: #7C968D; transition: color .16s; }
.nav__item:hover { background: rgba(255,255,255,.045); color: #EAF2ED; }
.nav__item:hover .ico { color: #C8F169; }
.nav__item.is-active { background: rgba(200,241,105,.09); color: #F2F7F3; font-weight: 600; }
.nav__item.is-active .ico { color: var(--lime); }
.nav__item.is-active::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px;
  border-radius: 3px; background: var(--lime);
}
.nav__group { margin-top: 14px; }
.nav__label {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 11px 7px; font-size: 10.5px; letter-spacing: 1.2px;
  color: #5E7A70; font-weight: 600; text-transform: uppercase;
}
.nav__label b { font-family: var(--mono); font-weight: 600; color: #47625A; font-size: 9.5px; letter-spacing: .5px; }
.nav__label::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.055); }

.rail__foot { padding: 14px 16px 16px; border-top: 1px solid rgba(255,255,255,.06); position: relative; }
.rail-user { display: flex; align-items: center; gap: 10px; }
.rail-user__meta { overflow: hidden; white-space: nowrap; }
.rail-user__meta strong { display: block; font-size: 12.8px; color: #E9F1EC; font-weight: 600; }
.rail-user__meta span { font-size: 10.5px; color: #6F8A80; }
.rail-user .avatar { background: rgba(200,241,105,.16); color: var(--lime); border: 1px solid rgba(200,241,105,.22); }
.rail__ver { margin-top: 10px; font-size: 9.5px; color: #47625A; letter-spacing: 1px; font-family: var(--mono); display: flex; justify-content: space-between; }

/* 折叠态 */
body.rail-collapsed .rail { width: 74px; }
body.rail-collapsed .brand { padding: 22px 17px 18px; }
body.rail-collapsed .brand__text, body.rail-collapsed .nav__label b,
body.rail-collapsed .nav__label span, body.rail-collapsed .nav__item span,
body.rail-collapsed .rail-user__meta, body.rail-collapsed .rail__badge,
body.rail-collapsed .rail__ver, body.rail-collapsed .nav__label::after { display: none; }
body.rail-collapsed .nav__label { justify-content: center; padding: 6px 0 5px; font-size: 0; }
body.rail-collapsed .nav__label::before { content: "·"; font-size: 14px; color: #47625A; }
body.rail-collapsed .nav__item { justify-content: center; padding: 0; }
body.rail-collapsed .nav__item.is-active::before { left: -1px; }
body.rail-collapsed .rail-user { justify-content: center; }
body.rail-collapsed .shell { margin-left: 74px; }

/* ---------------- 主壳 ---------------- */
.shell { margin-left: var(--rail-w); flex: 1; min-width: 0; display: flex; flex-direction: column; transition: margin .22s ease; }
.topbar {
  height: var(--topbar-h); flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px;
  background: rgba(250,251,248,.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.8px; color: var(--muted); white-space: nowrap; }
.crumb i { font-style: normal; color: #C3CDC6; }
.crumb strong { color: var(--ink); font-weight: 600; }
.crumb__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(11,122,99,.10); }
.topbar__spacer { flex: 1; }

.gsearch {
  display: flex; align-items: center; gap: 8px;
  height: 36px; width: 250px; padding: 0 10px 0 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--muted-2); font-size: 12.5px;
  transition: all .18s; cursor: pointer;
}
.gsearch:hover { border-color: #C6D1C9; color: var(--ink-3); }
.gsearch kbd {
  margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--muted);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; background: #FAFBF8;
}
.topbar__divider { width: 1px; height: 24px; background: var(--line); }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: all .16s;
}
.user-chip:hover { background: #fff; border-color: var(--line); }
.user-chip .meta { line-height: 1.25; }
.user-chip .meta strong { display: block; font-size: 12.5px; font-weight: 600; }
.user-chip .meta span { font-size: 10.5px; color: var(--muted); }
.user-chip .ico { color: var(--muted); }
.notif-dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 2px solid #FAFBF8; }

.page-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--lime), var(--primary)); z-index: 999; opacity: 0; transition: width .35s ease, opacity .2s; }
.page-progress.is-loading { opacity: 1; width: 72%; }
.page-progress.is-done { width: 100%; opacity: 0; }

.main { padding: 26px 28px 10px; min-height: calc(100vh - var(--topbar-h) - 46px); outline: none; }
.main > .page { animation: rise .38s cubic-bezier(.22,.85,.3,1) both; }
.foot {
  padding: 16px 28px 22px; font-size: 11.5px; color: var(--muted-2);
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  border-top: 1px solid rgba(226,231,226,.7); margin-top: 18px;
}
.foot span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .5px; }

/* ---------------- 页头 ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; position: relative; }
.page-head__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.page-head__eyebrow b { font-family: var(--mono); color: var(--primary); font-weight: 700; letter-spacing: .5px; }
.page-head__eyebrow .sep { width: 20px; height: 1px; background: var(--line-strong); }
.page-head h1 { font-size: 25px; font-weight: 700; letter-spacing: -.6px; line-height: 1.25; display: flex; align-items: center; gap: 10px; }
.page-head h1 .h1-tag { font-size: 11px; font-weight: 600; letter-spacing: .5px; padding: 3px 8px; border-radius: 5px; background: var(--primary-soft); color: var(--primary); vertical-align: 4px; }
.page-head p { margin-top: 5px; font-size: 13px; color: var(--muted); max-width: 760px; }
.page-head__actions { display: flex; gap: 9px; align-items: center; padding-bottom: 3px; flex: none; }
.page-head__ghost {
  position: absolute; right: 0; top: -18px; font-size: 82px; font-weight: 800;
  letter-spacing: -6px; color: rgba(14,26,23,.035); font-family: var(--mono);
  pointer-events: none; user-select: none; line-height: 1;
}
.page-section { margin-top: 20px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-head h2 { font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.section-head .line { flex: 1; height: 1px; background: var(--line); }
.section-head .hint { font-size: 12px; color: var(--muted); }

/* ---------------- 数据条 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.stat-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.stat-grid--5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 18px 15px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-1); transition: transform .18s, box-shadow .18s;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(14,26,23,.05), 0 18px 40px -26px rgba(14,26,23,.3); }
.stat::after { content: ""; position: absolute; inset: 0 0 auto auto; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle, rgba(11,122,99,.06), transparent 70%); transform: translate(26px,-30px); }
.stat__top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.stat__icon { width: 30px; height: 30px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.stat__icon--amber { background: #FBF2E3; color: var(--amber); }
.stat__icon--red { background: #FBEDEC; color: var(--red); }
.stat__icon--blue { background: #EBF0FB; color: var(--blue); }
.stat__icon--violet { background: #F0ECFB; color: var(--violet); }
.stat__value { font-size: 30px; font-weight: 700; letter-spacing: -1.4px; margin: 9px 0 1px; line-height: 1.1; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 5px; }
.stat__value small { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.stat__foot { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 7px; }
.stat__delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 11.5px; }
.stat__delta--up { color: var(--primary); }
.stat__delta--down { color: var(--red); }
.stat__delta--flat { color: var(--muted); }
.stat__bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 4px; }
.stat__bars i { flex: 1; background: #E4EAE5; border-radius: 2px 2px 0 0; min-height: 3px; }
.stat__bars i.on { background: linear-gradient(180deg, #27A98E, #0B7A63); }

/* ---------------- 页签 ---------------- */
.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--line); align-items: center; }
.tabs__item {
  padding: 11px 14px; font-size: 13px; color: var(--muted); font-weight: 550;
  position: relative; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: color .16s; border: 0; background: none;
}
.tabs__item:hover { color: var(--ink); }
.tabs__item .count { font-size: 11px; background: #EFF2EF; color: var(--muted); padding: 1px 6px; border-radius: 10px; font-family: var(--mono); }
.tabs__item.is-active { color: var(--ink); font-weight: 650; }
.tabs__item.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px; }
.tabs__item.is-active .count { background: var(--primary-soft); color: var(--primary); }
.tabs--pill { border: 0; gap: 4px; background: #EDF0EC; padding: 3px; border-radius: 9px; display: inline-flex; }
.tabs--pill .tabs__item { padding: 6px 13px; border-radius: 7px; font-size: 12.5px; }
.tabs--pill .tabs__item.is-active { background: #fff; box-shadow: 0 1px 3px rgba(14,26,23,.1); }
.tabs--pill .tabs__item.is-active::after { display: none; }

/* ---------------- 筛选栏 ---------------- */
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #FCFDFB; border-radius: var(--radius) var(--radius) 0 0; }
.toolbar .input, .toolbar .select { height: 34px; font-size: 12.8px; }
.toolbar .select { width: auto; min-width: 120px; }
.toolbar__search { position: relative; width: 240px; }
.toolbar__search .ico { position: absolute; left: 11px; top: 9px; color: var(--muted-2); width: 16px; height: 16px; }
.toolbar__search .input { padding-left: 33px; }
.toolbar__spacer { flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: 7px; font-size: 12px; color: var(--ink-3); border: 1px solid var(--line); background: #fff;
  cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .ico { width: 14px; height: 14px; }

/* ---------------- 弹层 ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 260;
  background: rgba(7, 19, 15, .46);
  backdrop-filter: blur(5px) saturate(120%);
  display: flex; align-items: center; justify-content: center;
  padding: 28px; animation: fade .2s ease both;
}
.overlay.is-stacked { background: rgba(7, 19, 15, .30); }
.overlay.is-behind { filter: blur(1.5px); transform: scale(.985); pointer-events: none; }
.modal {
  width: 560px; max-width: 100%; max-height: 88vh;
  background: var(--surface); border-radius: 17px;
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(255,255,255,.4) inset;
  display: flex; flex-direction: column; overflow: hidden;
  animation: modalIn .28s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal--sm { width: 430px; }
.modal--lg { width: 760px; }
.modal--xl { width: 980px; }
.modal__head { padding: 19px 22px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; position: relative; }
.modal__head::before { content: ""; position: absolute; left: 0; top: 19px; bottom: 16px; width: 3px; background: var(--primary); border-radius: 0 3px 3px 0; }
.modal__head h3 { font-size: 16px; font-weight: 650; letter-spacing: -.2px; padding-left: 6px; }
.modal__head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; padding-left: 6px; }
.modal__close { margin-left: auto; width: 30px; height: 30px; border: 0; background: transparent; border-radius: 7px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.modal__close:hover { background: #F1F4F1; color: var(--ink); }
.modal__body { padding: 22px; overflow-y: auto; }
.modal__foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; background: #FCFDFB; }
.modal__foot .left { margin-right: auto; display: flex; align-items: center; gap: 8px; }

.drawer-overlay { position: fixed; inset: 0; z-index: 210; background: rgba(7,19,15,.4); backdrop-filter: blur(4px); animation: fade .2s both; display: flex; justify-content: flex-end; }
.drawer {
  width: 680px; max-width: 94vw; height: 100%; background: var(--surface);
  box-shadow: -30px 0 80px -30px rgba(6,17,14,.5);
  display: flex; flex-direction: column; animation: drawerIn .3s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes drawerIn { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer__head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; flex: none; }
.drawer__head h3 { font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.drawer__head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.drawer__body { overflow-y: auto; padding: 22px 24px 30px; flex: 1; }
.drawer__foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; gap: 9px; justify-content: flex-end; flex: none; background: #FCFDFB; }

.toast-root { position: fixed; top: 78px; right: 24px; z-index: 400; display: flex; flex-direction: column; gap: 9px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px; min-width: 260px; max-width: 380px;
  padding: 12px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 11px; box-shadow: var(--shadow-2);
  animation: toastIn .28s cubic-bezier(.2,.9,.3,1) both; font-size: 13px;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.toast.is-out { animation: toastOut .2s ease both; }
@keyframes toastOut { to { opacity: 0; transform: translateX(18px); } }
.toast__icon { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.toast--error .toast__icon { background: #FBEDEC; color: var(--red); }
.toast--warn .toast__icon { background: #FBF2E3; color: var(--amber); }
.toast__body { line-height: 1.5; }
.toast__body strong { display: block; font-size: 12.5px; font-weight: 600; }
.toast__body span { font-size: 12px; color: var(--muted); }

/* ---------------- 用户菜单 / 通知面板 ---------------- */
.popover {
  position: fixed; z-index: 150; background: #fff; border: 1px solid var(--line);
  border-radius: 13px; box-shadow: var(--shadow-2); overflow: hidden;
  animation: popIn .18s ease both;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.popover__head { padding: 13px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.popover__head h4 { font-size: 13px; font-weight: 650; }
.popover__head .badge { margin-left: auto; }
.popover__body { max-height: 380px; overflow-y: auto; }
.menu-item { display: flex; align-items: center; gap: 9px; padding: 9px 15px; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: background .15s; }
.menu-item:hover { background: #F7F9F6; }
.menu-item .ico { color: var(--muted); }
.menu-item--danger { color: #B03B3B; }
.menu-item--danger .ico { color: #B03B3B; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
.notif-item { padding: 12px 15px; border-bottom: 1px solid #F1F4F1; display: flex; gap: 10px; cursor: pointer; }
.notif-item:hover { background: #FAFBF8; }
.notif-item:last-child { border-bottom: 0; }
.notif-item__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-top: 7px; flex: none; }
.notif-item.is-read .notif-item__dot { background: #D5DDD8; }
.notif-item strong { font-size: 12.5px; font-weight: 600; display: block; }
.notif-item p { font-size: 11.8px; color: var(--muted); line-height: 1.55; margin-top: 2px; }
.notif-item time { font-size: 10.5px; color: var(--muted-2); margin-top: 4px; display: block; }

/* ---------------- 全局搜索 ---------------- */
.cmdk { position: fixed; inset: 0; z-index: 300; background: rgba(7,19,15,.35); backdrop-filter: blur(6px); display: flex; justify-content: center; padding-top: 12vh; animation: fade .18s both; }
.cmdk__panel { width: 620px; max-width: 92vw; background: #fff; border-radius: 16px; box-shadow: var(--shadow-3); overflow: hidden; animation: modalIn .24s both; align-self: flex-start; }
.cmdk__input { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmdk__input input { border: 0; outline: 0; flex: 1; font-size: 15px; background: transparent; }
.cmdk__input .ico { color: var(--muted); }
.cmdk__body { max-height: 52vh; overflow-y: auto; padding: 8px; }
.cmdk__label { font-size: 10.5px; letter-spacing: 1px; color: var(--muted-2); padding: 8px 10px 4px; font-weight: 600; }
.cmdk__item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; cursor: pointer; }
.cmdk__item:hover, .cmdk__item.is-active { background: #F5F8F4; }
.cmdk__item strong { font-size: 13px; font-weight: 600; display: block; }
.cmdk__item span { font-size: 11.5px; color: var(--muted); }
.cmdk__item .ico { color: var(--primary); }
.cmdk__item .code { margin-left: auto; }
.cmdk__empty { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------------- 登录 / 注册 ---------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 46%) 1fr; background: var(--canvas); position: relative; z-index: 1; }
.auth__visual { position: relative; background: linear-gradient(160deg, #0C1A16 0%, #0A1512 60%, #0E211B 100%); color: #EAF2ED; padding: 42px 46px; display: flex; flex-direction: column; overflow: hidden; }
.auth__visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(120% 90% at 30% 20%, #000, transparent 75%); }
.auth__visual::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(200,241,105,.12), transparent 65%); right: -170px; bottom: -160px; }
.auth__brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.auth__brand .brand__mark { width: 42px; height: 42px; }
.auth__brand strong { font-size: 16px; display: block; letter-spacing: .4px; }
.auth__brand span { font-size: 9px; letter-spacing: 2.4px; color: #7E9A8F; }
.auth__hero { margin-top: auto; margin-bottom: auto; position: relative; z-index: 2; padding: 50px 0; }
.auth__hero .kicker { font-size: 11px; letter-spacing: 2.6px; color: var(--lime); margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.auth__hero .kicker::before { content: ""; width: 26px; height: 1px; background: var(--lime); }
.auth__hero h2 { font-size: 38px; line-height: 1.28; font-weight: 700; letter-spacing: -1.2px; color: #F4F8F4; }
.auth__hero h2 em { font-style: normal; color: var(--lime); }
.auth__hero p { margin-top: 16px; font-size: 13.5px; color: #8FA79D; line-height: 1.85; max-width: 380px; }
.auth__flow { margin-top: 34px; height: 92px; position: relative; }
.auth__flow svg { width: 100%; height: 100%; overflow: visible; }
.auth__flow .node { fill: #0E211B; stroke: rgba(200,241,105,.55); stroke-width: 1.2; }
.auth__flow .node.on { fill: var(--lime); stroke: var(--lime); }
.auth__flow .dash { stroke-dasharray: 3 6; animation: dashmove 9s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -180; } }
.auth__flow text { font-size: 8px; fill: #7E9A8F; font-family: var(--mono); letter-spacing: .5px; }
.auth__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; z-index: 2; }
.auth__metric { border-top: 1px solid rgba(255,255,255,.1); padding-top: 13px; }
.auth__metric strong { font-size: 21px; font-weight: 700; letter-spacing: -.6px; display: block; font-variant-numeric: tabular-nums; }
.auth__metric span { font-size: 10.5px; color: #78948A; letter-spacing: .3px; }
.auth__foot { position: absolute; bottom: 26px; left: 46px; font-size: 10px; color: #526C62; letter-spacing: .6px; z-index: 2; }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; position: relative; }
.auth__panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 80% 10%, rgba(255,255,255,.9), transparent 60%); pointer-events: none; }
.auth-card { width: 400px; max-width: 100%; position: relative; z-index: 1; animation: rise .5s cubic-bezier(.22,.85,.3,1) both; }
.auth-card__head { margin-bottom: 26px; }
.auth-card__head .eyebrow { font-size: 10.5px; letter-spacing: 2px; color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.auth-card__head h1 { font-size: 27px; letter-spacing: -.8px; font-weight: 700; }
.auth-card__head p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-field { position: relative; }
.auth-field .ico { position: absolute; left: 13px; top: 12px; color: var(--muted-2); width: 17px; height: 17px; }
.auth-field .input { height: 44px; padding-left: 40px; background: #fff; }
.auth-field .toggle-pwd { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted-2); border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.auth-field .toggle-pwd:hover { background: #F3F6F3; color: var(--ink); }
.auth-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.auth-row a { color: var(--primary); font-weight: 550; }
.auth-submit { height: 45px; font-size: 14.5px; margin-top: 4px; }
.auth-card__foot { margin-top: 22px; text-align: center; font-size: 12.8px; color: var(--muted); }
.auth-card__foot a { color: var(--primary); font-weight: 600; }
.auth-legal { margin-top: 26px; font-size: 10.5px; color: var(--muted-2); text-align: center; line-height: 1.7; }
.auth-alert { display: none; padding: 10px 12px; border-radius: 8px; background: #FBEDEC; color: #A93636; font-size: 12.5px; border: 1px solid #F3D6D4; }
.auth-alert.is-show { display: block; animation: rise .25s both; }
.auth--register .auth-card { width: 460px; }
.auth--register .form-grid { gap: 13px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1280px) {
  .stat-grid--5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .gsearch { width: 190px; }
}
@media (max-width: 1100px) {
  .stat-grid, .stat-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .auth { grid-template-columns: 1fr; }
  .auth__visual { display: none; }
}
@media (max-width: 860px) {
  .rail { transform: translateX(-100%); width: 252px; }
  body.rail-open .rail { transform: none; box-shadow: 0 0 80px rgba(0,0,0,.4); }
  .shell, body.rail-collapsed .shell { margin-left: 0; }
  .main { padding: 20px 16px; }
  .topbar { padding: 0 14px; gap: 8px; }
  .gsearch { display: none; }
  .user-chip .meta { display: none; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head__ghost { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .modal--lg, .modal--xl { width: 100%; }
  .drawer { width: 100%; }
  .foot { flex-direction: column; align-items: flex-start; }
}
