/* 閾佺墰绾虹粐 路 浠撳偍璐﹀姟涓€浣?*/
:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #eef0f3;
  --brand: #0f766e;
  --brand-2: #115e59;
  --brand-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --blue: #1d4ed8;
  --blue-soft: #eff6ff;
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font-family: inherit; }
::selection { background: #99f6e4; }

/* ---------------- 甯冨眬 ---------------- */
.app { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: #0b1513;
  display: flex; flex-direction: column;
  padding: 18px 14px 14px;
  overflow: hidden;
}
.sidebar::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, rgba(45, 212, 191, .18), transparent 40%);
}

.brand { display: flex; gap: 11px; align-items: center; padding: 4px 8px 22px; }
.brand__logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #2dd4bf, #0f766e);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 4px 10px rgba(15, 118, 110, .35);
}
.brand__name { color: #f0fdfa; font-size: 15px; font-weight: 600; letter-spacing: .4px; }
.brand__sub { color: #5c7772; font-size: 10.5px; letter-spacing: .12em; margin-top: 1px; }

.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.nav__label {
  font-size: 10.5px; color: #4d6560; padding: 12px 10px 6px;
  letter-spacing: .14em; text-transform: uppercase;
}
.nav__item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  color: #9fb3ae; text-decoration: none; font-size: 13.5px;
  transition: background .14s, color .14s;
}
.nav__item:hover { background: #12201d; color: #d7e5e1; }
.nav__item.active {
  background: #16302b; color: #eafff9;
  box-shadow: inset 2px 0 0 #2dd4bf;
}
.nav__item svg { width: 17px; height: 17px; flex: none; opacity: .9; }

.sidebar__foot { margin-top: auto; padding: 14px 8px 2px; border-top: 1px solid #172622; }
.sidebar__asof { color: #5c7772; font-size: 11px; letter-spacing: .02em; }
.sidebar__asof b { color: #9fb3ae; font-weight: 500; }
.sidebar__links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; }
.sidebar__links button {
  border: 0; background: transparent; color: #5c7772; font-size: 11.5px;
  padding: 0; cursor: pointer;
}
.sidebar__links button:hover { color: #99f6e4; }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 22px 32px 14px;
  background: linear-gradient(180deg, rgba(244, 245, 247, .97), rgba(244, 245, 247, .84));
  backdrop-filter: blur(8px);
}
.topbar__title { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.015em; }
.topbar__sub { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.topbar__actions { display: flex; gap: 8px; align-items: center; }
.topbar__left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.menu-btn {
  display: none; width: 36px; height: 36px; flex: none;
  border: 1px solid var(--line); background: #fff; border-radius: 9px;
  font-size: 17px; color: var(--ink-2); cursor: pointer;
}
.nav-mask { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, .42); z-index: 45; }

.content { padding: 4px 32px 48px; width: 100%; max-width: 1480px; }

/* ---------------- KPI ---------------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 14px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi__label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.kpi__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.kpi--blue .kpi__dot { background: #3b82f6; }
.kpi--amber .kpi__dot { background: #d97706; }
.kpi--slate .kpi__dot { background: #64748b; }
.kpi__value { font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi__sub { font-size: 12px; color: var(--muted); margin-top: 5px; }
.kpi__sub b { color: var(--ink-2); font-weight: 550; }

/* ---------------- 鍗＄墖 / 缃戞牸 ---------------- */
.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.grid--2e { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mb14 { margin-bottom: 14px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line-2); gap: 12px; }
.card__title { font-size: 13.5px; font-weight: 600; letter-spacing: .01em; }
.card__hint { font-size: 11.5px; color: var(--muted); }
.card__body { padding: 14px 18px; }
.card__body--flush { padding: 0; }

/* ---------------- 琛ㄦ牸 ---------------- */
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  font-weight: 500; color: var(--muted); font-size: 12px; text-align: left;
  padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfbfc;
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfc; }
.table tr.is-click { cursor: pointer; }
.table th.num, .table td.num, .lines th.num { text-align: right; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }

/* ---------------- 鏍囩 ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 8px; border-radius: 999px; font-size: 11.5px; line-height: 20px;
  white-space: nowrap; background: #f3f4f6; color: #4b5563;
}
.tag--in { background: var(--brand-soft); color: #047857; }
.tag--out { background: var(--blue-soft); color: var(--blue); }
.tag--adj { background: var(--amber-soft); color: var(--amber); }
.tag--warn { background: var(--red-soft); color: var(--red); }
.tag--muted { background: #f3f4f6; color: #6b7280; }
.tag--ghost { background: #fff; border: 1px solid var(--line); color: var(--muted); }

/* ---------------- 鎸夐挳 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background .14s, border-color .14s, box-shadow .14s;
}
.btn:hover { border-color: #cfd6dd; background: #fafafa; }
.btn:active { transform: translateY(.5px); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn--sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn--ghost:hover { background: #f3f4f6; color: var(--ink); }
.btn--danger { color: var(--red); border-color: #fecaca; background: #fff; }
.btn--danger:hover { background: #fef2f2; }
.btn-row { display: flex; gap: 8px; align-items: center; }

/* ---------------- 琛ㄥ崟 ---------------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar__spacer { flex: 1; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label { font-size: 12px; color: var(--muted); }
.input, .select {
  height: 36px; border: 1px solid var(--line); border-radius: 9px;
  padding: 0 11px; font-size: 13px; background: #fff; color: var(--ink);
  outline: none; width: 100%; min-width: 0;
  transition: border-color .14s, box-shadow .14s;
}
.input::placeholder { color: #9ca3af; }
.input:focus, .select:focus { border-color: #5eead4; box-shadow: 0 0 0 3px rgba(20, 184, 166, .12); }
.input--search { padding-left: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center; }
.input--plain { border-color: transparent; background: #f8fafc; }
.input--plain:focus { background: #fff; border-color: #99f6e4; }
.w160 { width: 160px; } .w200 { width: 200px; } .w240 { width: 240px; } .w120 { width: 120px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .span2 { grid-column: span 2; }
.form-section { margin: 22px 0 10px; font-size: 12px; color: var(--muted); letter-spacing: .06em; display: flex; align-items: center; justify-content: space-between; }
.form-section:first-child { margin-top: 0; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.hint--warn { color: var(--amber); }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--brand); width: 15px; height: 15px; }

/* ---------------- 鏄庣粏琛岀紪杈?---------------- */
.lines { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.lines th { font-size: 11.5px; color: var(--muted); font-weight: 500; text-align: left; padding: 0 4px 7px; white-space: nowrap; }
.lines td { padding: 4px 3px; border-bottom: 1px solid var(--line-2); }
.lines .input, .lines .select { height: 32px; font-size: 12.5px; border-radius: 7px; padding: 0 8px; }
.lines .num { text-align: right; }
.lines__amount { font-variant-numeric: tabular-nums; text-align: right; padding-right: 8px; color: var(--ink-2); white-space: nowrap; }
.lines__del {
  width: 26px; height: 26px; border: 0; background: transparent; color: #9ca3af;
  border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1;
}
.lines__del:hover { background: #fef2f2; color: var(--red); }
.line-total {
  display: flex; align-items: center; justify-content: flex-end; gap: 18px;
  padding: 14px 4px 0; font-size: 13px; color: var(--muted);
}
.line-total b { color: var(--ink); font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------------- 鍥捐〃 ---------------- */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 156px; padding: 4px 2px 0; }
.chart__group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart__bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 116px; width: 100%; }
.bar { width: 7px; border-radius: 3px 3px 1px 1px; min-height: 2px; transition: height .3s; }
.bar--in { background: #14b8a6; }
.bar--out { background: #94a3b8; }
.chart__x { font-size: 10px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* ---------------- 缁熻鏉?---------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.stat__k { font-size: 11.5px; color: var(--muted); }
.stat__v { font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 2px; letter-spacing: -.01em; }
.stat__v small { font-size: 12px; font-weight: 400; color: var(--muted); }

/* ---------------- 浠婃棩鏉?---------------- */
.today { display: flex; flex-direction: column; gap: 0; }
.today__row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.today__row:last-child { border-bottom: 0; }
.today__k { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.today__v { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.today__v small { font-weight: 400; color: var(--muted); font-size: 11.5px; }

/* ---------------- 绌虹姸鎬?/ 鍒嗛〉 ---------------- */
.empty { padding: 42px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; font-weight: 600; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line-2); }
.pager__btns { display: flex; gap: 6px; align-items: center; }

/* ---------------- Tabs ---------------- */
.tabs { display: inline-flex; gap: 3px; background: #eef0f3; padding: 3px; border-radius: 10px; }
.tab { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); font-weight: 500; }

/* ---------------- 鎶藉眽 ---------------- */
#drawerRoot { position: relative; z-index: 60; }
.drawer { position: fixed; inset: 0; pointer-events: none; }
.drawer__mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .38); opacity: 0; transition: opacity .2s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 800px; max-width: 96vw;
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(28px); opacity: 0; transition: transform .22s ease, opacity .18s ease;
  box-shadow: -24px 0 70px rgba(15, 23, 42, .22);
}
.drawer--sm .drawer__panel { width: 500px; }
.drawer--lg .drawer__panel { width: 880px; }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer__mask { opacity: 1; }
.drawer.open .drawer__panel { transform: none; opacity: 1; }
.drawer__head { padding: 18px 24px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.drawer__title { font-size: 17px; font-weight: 650; margin: 0; letter-spacing: -.01em; }
.drawer__sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.drawer__close { border: 0; background: #f3f4f6; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 16px; }
.drawer__close:hover { background: #e5e7eb; color: var(--ink); }
.drawer__body { padding: 20px 24px; overflow: auto; flex: 1; }
.drawer__foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; }
.drawer__foot-right { display: flex; gap: 8px; }

.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; margin-bottom: 20px; }
.kv__k { font-size: 11.5px; color: var(--muted); }
.kv__v { font-size: 13.5px; font-weight: 500; margin-top: 2px; }

/* ---------------- 鎻愮ず ---------------- */
#toastRoot { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
  background: #0f172a; color: #f8fafc; padding: 10px 15px; border-radius: 10px;
  font-size: 13px; box-shadow: 0 12px 34px rgba(15, 23, 42, .3);
  animation: toastIn .16s ease; max-width: 420px;
}
.toast--err { background: #7f1d1d; }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- 鍝嶅簲寮?---------------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2, .grid--2e, .grid--3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    display: flex; position: fixed; top: 0; left: 0;
    width: 228px; height: 100vh; z-index: 50;
    transform: translateX(-102%); transition: transform .22s ease;
    padding: 16px 12px 12px;
  }
  .sidebar.open { transform: none; }
  .nav-mask.show { display: block; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .topbar { padding: 14px 16px 12px; align-items: flex-start; }
  .content { padding: 0 16px 32px; }
  .kpis { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
}

.login__tip a { color: var(--brand); text-decoration: none; }
.login__tip a:hover { text-decoration: underline; }

/* ---------------- 鑺卞瀷鎼滅储涓嬫媺 ---------------- */
.combo-pop {
  position: fixed; z-index: 300; display: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .16);
  padding: 5px; max-height: 326px; overflow: auto;
}
.combo-pop__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 7px; cursor: pointer;
}
.combo-pop__item:hover, .combo-pop__item.active { background: #f0fdfa; }
.combo-pop__code { font-weight: 600; min-width: 86px; font-variant-numeric: tabular-nums; }
.combo-pop__meta { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-pop__empty { padding: 14px; text-align: center; color: var(--muted); font-size: 12px; }

/* ---------------- 鐧诲綍 ---------------- */
#loginRoot {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: #070d0b; overflow: auto;
}
.login {
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --gold: #c8a96a;
  --ivory: #f3efe7;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(430px, .75fr);
  background: #070d0b;
}

/* 宸︿晶锛氱粐绾逛笌鍝佺墝 */
.login__visual {
  position: relative; overflow: hidden;
  padding: 44px 56px 30px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #eef3ef;
  background:
    radial-gradient(1100px 620px at 18% -8%, rgba(200, 169, 106, .16), transparent 62%),
    radial-gradient(900px 520px at 105% 108%, rgba(30, 92, 79, .30), transparent 62%),
    linear-gradient(148deg, #0a1411 0%, #081310 52%, #050b09 100%);
}
.login__visual::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 7px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), transparent 88%);
}
.login__visual::after {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  right: -230px; top: -190px; pointer-events: none;
  border: 1px solid rgba(200, 169, 106, .16);
  box-shadow: 0 0 0 70px rgba(200, 169, 106, .035), 0 0 0 150px rgba(200, 169, 106, .018);
}

.login__brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.login__mark {
  width: 46px; height: 46px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 24px; color: #f6e9cc;
  background: linear-gradient(145deg, rgba(200, 169, 106, .30), rgba(200, 169, 106, .05));
  border: 1px solid rgba(200, 169, 106, .48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 24px rgba(0, 0, 0, .28);
}
.login__name { display: block; font-family: var(--serif); font-size: 19px; letter-spacing: .16em; color: #f6f1e5; }
.login__en { display: block; margin-top: 4px; font-size: 9px; letter-spacing: .36em; color: rgba(200, 169, 106, .78); }

.login__hero { position: relative; z-index: 1; margin: 0; padding: 40px 0; max-width: 560px; }
.login__eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .30em; color: rgba(200, 169, 106, .86); }
.login__eyebrow span { width: 28px; height: 1px; background: rgba(200, 169, 106, .72); }
.login__hero h1 {
  margin: 20px 0 18px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 3.9vw, 56px); line-height: 1.24; letter-spacing: .01em;
  color: #f7f3e9;
}
.login__hero h1 em { font-style: normal; color: var(--gold); }
.login__hero p { margin: 0; font-size: 14px; line-height: 1.9; letter-spacing: .035em; color: rgba(233, 241, 236, .60); }
.login__footline { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .18em; color: rgba(238, 243, 239, .30); }
.login__footline span { width: 36px; height: 1px; background: rgba(200, 169, 106, .40); }

/* 鍙充晶锛氱櫥褰曞崱 */
.login__main {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 44px 48px; background: var(--ivory);
}
.login__main::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(200, 169, 106, 0) 78%);
}
.login__card {
  width: 100%; max-width: 392px;
  animation: loginCardIn .68s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes loginCardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.login__topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.login__status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .08em; color: #5d6b63; }
.login__status i { width: 6px; height: 6px; border-radius: 50%; background: #2f7d5f; box-shadow: 0 0 0 4px rgba(47, 125, 95, .12); }
.login__time { font-size: 10.5px; letter-spacing: .12em; color: #8d968e; font-variant-numeric: tabular-nums; }

.login__head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: .05em; color: #12211b; }
.login__head p { margin: 10px 0 30px; font-size: 12.5px; letter-spacing: .02em; color: #7a857e; }

.login__form { display: flex; flex-direction: column; gap: 18px; }
.login__field > span { display: block; margin-bottom: 8px; font-size: 11.5px; letter-spacing: .12em; color: #6c776f; }
.login__control {
  position: relative; display: flex; align-items: center; height: 50px;
  background: #fbf9f5; border: 1px solid #ddd6c8; border-radius: 6px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.login__control:focus-within { border-color: #b08d57; background: #fff; box-shadow: 0 0 0 3px rgba(176, 141, 87, .13); }
.login__control svg { width: 17px; height: 17px; margin-left: 15px; flex: none; color: #9a9487; }
.login__control input {
  flex: 1; min-width: 0; height: 100%; padding: 0 14px;
  border: 0; outline: none; background: transparent;
  font-size: 13.5px; color: #17251f; letter-spacing: .02em;
}
.login__control input::placeholder { color: #b3ada1; }
.login__eye { padding: 0 14px; border: 0; background: transparent; color: #98917f; font-size: 11px; letter-spacing: .08em; cursor: pointer; }
.login__eye:hover { color: #8a6b3d; }

.login__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -2px; }
.login__secure { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: #8b948c; }
.login__secure svg { width: 12px; height: 12px; }
.login__forgot { font-size: 10.5px; color: #a29b8e; }
.login__err { min-height: 18px; font-size: 12px; color: #a33b2c; letter-spacing: .01em; }

.login__submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; border: 0; border-radius: 6px; cursor: pointer;
  background: #11241d; color: #f6f1e6;
  font-size: 13.5px; letter-spacing: .26em;
  transition: background .2s, box-shadow .2s, transform .15s;
}
.login__submit svg { width: 16px; height: 16px; transition: transform .2s; }
.login__submit:hover { background: #1b382d; box-shadow: 0 12px 26px rgba(17, 36, 29, .18); }
.login__submit:hover svg { transform: translateX(3px); }
.login__submit:active { transform: translateY(1px); }
.login__submit:disabled { opacity: .68; cursor: default; }

.login__sep { display: flex; align-items: center; gap: 12px; margin: 30px 0 18px; font-size: 9.5px; letter-spacing: .22em; color: #a7a093; }
.login__sep::before, .login__sep::after { content: ""; flex: 1; height: 1px; background: #e0d9cc; }

.login__download {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border: 1px solid #ddd6c8; border-radius: 6px; text-decoration: none;
  transition: border-color .18s, background .18s;
}
.login__download:hover { border-color: #b08d57; background: #fbf8f2; }
.login__download-icon {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: 6px; background: #11241d; color: #e9dcc0;
}
.login__download-icon svg { width: 15px; height: 15px; }
.login__download-text { flex: 1; min-width: 0; }
.login__download-text b { display: block; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: #26332c; }
.login__download-text small { display: block; margin-top: 3px; font-size: 10.5px; color: #8c938b; }
.login__download-size { flex: none; padding: 2px 6px; border: 1px solid #ddd6c8; border-radius: 3px; font-size: 9px; letter-spacing: .14em; color: #a79f90; }

.login__foot { margin-top: 34px; text-align: center; font-size: 10px; letter-spacing: .06em; color: #a8a196; }

@media (max-width: 980px) {
  .login { display: block; background: #070d0b; }
  .login__visual { display: flex; min-height: 0; padding: 26px 24px 34px; }
  .login__hero, .login__footline { display: none; }
  .login__visual::after { width: 360px; height: 360px; right: -170px; top: -150px; }
  .login__main { display: block; padding: 0 16px 36px; background: transparent; }
  .login__main::before { display: none; }
  .login__card {
    max-width: 440px; margin: 10px auto 0; padding: 26px 22px 24px;
    background: var(--ivory); border-radius: 16px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .38);
  }
  .login__topline { margin-bottom: 26px; }
  .login__head h2 { font-size: 27px; }
  .login__head p { margin-bottom: 24px; }
  .login__foot { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .login__card { animation: none; }
  .login__control, .login__submit, .login__submit svg { transition: none; }
}

/* ---------------- 渚ц竟鏍忕敤鎴?---------------- */
.sidebar__user { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.sidebar__avatar {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: #16302b; color: #5eead4;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.sidebar__userinfo { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sidebar__userinfo b {
  color: #d7e5e1; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar__userinfo small { color: #5c7772; font-size: 10.5px; }

/* ---------------- 鎵撳嵃 ---------------- */
@media print {
  .sidebar, .topbar, .toolbar, .drawer__foot, .pager { display: none !important; }
  .app { grid-template-columns: 1fr; }
  .content { padding: 0; }
  .card { box-shadow: none; }
}


