/* 明菲饰品 · 后台外壳样式 v1（依赖 base.css） */
body.admin-body { background: var(--bg); }
.admin { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex: none; background: linear-gradient(180deg, #241e18 0%, #1a1511 100%);
  color: #cfc6b8; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, .05);
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sidebar .brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-2), #a87b42); color: #241e18; font-weight: 800; font-size: 15px; letter-spacing: -.5px;
  box-shadow: 0 4px 14px -4px rgba(217, 184, 122, .5);
}
.sidebar .brand b { display: block; color: #f4ede1; font-size: 15px; letter-spacing: .5px; font-family: var(--font-serif); }
.sidebar .brand small { display: block; color: #8a8072; font-size: 10.5px; letter-spacing: 1.2px; margin-top: 1px; }
.sidebar .nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.sidebar .nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); background-clip: content-box; }
.nav-group { font-size: 10.5px; letter-spacing: 1.4px; color: #6f665a; padding: 14px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 9px; color: #b9b0a2; font-size: 13.5px; margin-bottom: 2px; transition: all .16s; position: relative; text-decoration: none; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #f0e9dd; text-decoration: none; }
.nav-item.active { background: linear-gradient(90deg, rgba(184, 137, 74, .26), rgba(184, 137, 74, .06)); color: #f6ecda; font-weight: 500; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--gold-2); }
.nav-ico { width: 18px; text-align: center; font-size: 13px; opacity: .85; }
.sidebar-foot { padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 11px; color: #6f665a; letter-spacing: .5px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 24px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
}
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumb b { color: var(--ink); font-weight: 600; font-size: 14px; }
.crumb i { font-style: normal; color: #cfc6b8; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.search-mini { display: flex; align-items: center; gap: 6px; }
.search-mini .input { width: 208px; height: 32px; font-size: 12.5px; background: var(--surface); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 5px; border-radius: 999px; cursor: pointer; position: relative; transition: background .16s; user-select: none; }
.user-chip:hover { background: var(--bg-2); }
.user-chip .uc-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-chip .uc-meta b { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.user-chip .uc-meta small { font-size: 10.5px; color: var(--muted); }
.uc-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60; }
.user-chip.open .uc-menu { display: block; animation: modalIn .18s var(--ease); }
.uc-item { display: block; width: 100%; text-align: left; padding: 8px 11px; border: none; background: none; border-radius: 7px; font-size: 13px; color: var(--ink-2); }
.uc-item:hover { background: var(--gold-soft); color: var(--gold); }
.content { flex: 1; padding: 22px 24px 40px; }
.page-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-hd h1 { font-size: 22px; font-family: var(--font-serif); letter-spacing: .5px; }
.page-hd .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.page-hd .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { height: 34px; width: auto; min-width: 132px; font-size: 12.5px; }
.toolbar .grow { flex: 1; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { height: 28px; padding: 0 12px; border: none; background: transparent; border-radius: 7px; font-size: 12.5px; color: var(--ink-3); }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 500; }
.stat-strip { display: flex; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-strip > div { flex: 1; padding: 14px 18px; border-right: 1px solid var(--line-2); }
.stat-strip > div:last-child { border-right: none; }
.stat-strip .lbl { font-size: 11.5px; color: var(--muted); }
.stat-strip .val { font-size: 20px; font-weight: 650; margin-top: 3px; font-variant-numeric: tabular-nums; }

/* ---- login ---- */
.login-page { min-height: 100vh; display: flex; background: radial-gradient(1200px 600px at 15% 10%, #2a231c 0%, #17120e 60%, #100c09 100%); position: relative; overflow: hidden; }
.login-page::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; right: -180px; top: -220px; background: radial-gradient(circle, rgba(217, 184, 122, .16), transparent 65%); }
.login-page::after { content: ""; position: absolute; left: -140px; bottom: -260px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(184, 137, 74, .12), transparent 66%); }
.login-wrap { display: flex; width: 100%; max-width: 1120px; margin: auto; padding: 40px 28px; gap: 64px; align-items: center; position: relative; z-index: 2; }
.login-hero { flex: 1; color: #e8dfd0; }
.login-hero .lh-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.login-hero .lh-brand .brand-mark { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--gold-2), #a87b42); color: #241e18; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; }
.login-hero h1 { font-family: var(--font-serif); font-size: 40px; letter-spacing: 4px; color: #f6efe3; line-height: 1.3; }
.login-hero .lh-sub { color: #a5988a; font-size: 14px; margin-top: 14px; letter-spacing: 1px; }
.login-hero .lh-feats { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.login-hero .lh-feat { display: flex; align-items: center; gap: 12px; color: #b8ab99; font-size: 13.5px; }
.login-hero .lh-feat i { width: 26px; height: 26px; border-radius: 8px; background: rgba(217, 184, 122, .14); color: var(--gold-2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-style: normal; flex: none; }
.login-card { width: 388px; flex: none; background: rgba(255, 255, 255, .985); border-radius: 22px; padding: 34px 32px 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.login-card h2 { font-size: 20px; font-family: var(--font-serif); letter-spacing: 1px; }
.login-card .lc-sub { color: var(--muted); font-size: 12.5px; margin: 6px 0 24px; }
.login-card .field { margin-bottom: 14px; }
.login-card .input { height: 42px; border-radius: 11px; }
.login-card .btn-primary { height: 44px; border-radius: 11px; font-size: 14px; letter-spacing: 2px; }
.login-hint { margin-top: 16px; font-size: 11.5px; color: var(--muted); background: var(--gold-soft); border: 1px dashed var(--gold-3); border-radius: 10px; padding: 9px 12px; line-height: 1.7; }
.login-foot { text-align: center; font-size: 11px; color: #b3a999; margin-top: 22px; }
.login-err { display: none; margin-bottom: 12px; background: var(--danger-bg); color: var(--danger); border-radius: 9px; padding: 8px 12px; font-size: 12.5px; }
.login-err.show { display: block; }

@media (max-width: 1080px) {
  .login-wrap { gap: 32px; }
  .login-hero h1 { font-size: 30px; }
}
@media (max-width: 900px) {
  .sidebar { width: 66px; }
  .sidebar .brand > div, .nav-item > span:not(.nav-ico), .nav-group, .sidebar-foot { display: none; }
  .sidebar .brand { justify-content: center; padding: 18px 0; }
  .nav-item { justify-content: center; padding: 0; }
  .login-hero { display: none; }
  .login-card { width: 100%; max-width: 388px; margin: auto; }
  .search-mini { display: none; }
}
