@charset "utf-8";
/* 管理后台主样式：布局、侧栏、列表、表单、弹窗、工作台 */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: #333; background: #f6f8fa;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }
:root { --side-w: 110px; --sub-w: 190px; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ================= 登录 ================= */
.login-view { position: fixed; inset: 0; display: flex; background: #fff; overflow: hidden; }
.login-brand {
  position: relative; width: 55%; min-width: 620px; overflow: hidden;
  background: linear-gradient(135deg, #0c5bd8 0%, #1e9fff 55%, #53c5ff 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.login-brand::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.login-brand-inner { position: relative; z-index: 2; padding: 0 8%; max-width: 720px; }
.login-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 46px; }
.logo-mark {
  width: 58px; height: 58px; border-radius: 16px; background: #fff; color: #1e7cf0;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 30px; letter-spacing: -1px;
  box-shadow: 0 10px 25px rgba(0, 50, 130, .25);
}
.logo-mark sup { font-size: 10px; transform: translateY(-8px); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 28px; letter-spacing: 2px; }
.logo-text span { font-size: 10px; letter-spacing: 3px; opacity: .72; margin-top: 7px; }
.login-brand h1 { font-size: 40px; line-height: 1.35; margin: 0 0 16px; font-weight: 600; letter-spacing: 1px; }
.login-brand p { font-size: 16px; opacity: .85; margin: 0 0 44px; letter-spacing: 1px; }
.login-points { display: flex; gap: 54px; }
.login-points div { display: flex; flex-direction: column; }
.login-points b { font-size: 30px; font-weight: 600; }
.login-points span { font-size: 13px; opacity: .75; margin-top: 4px; }
.login-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.orb1 { width: 420px; height: 420px; right: -160px; bottom: -160px; }
.orb2 { width: 240px; height: 240px; right: 130px; top: -90px; background: rgba(255,255,255,.08); }
.login-panel { flex: 1; display: flex; align-items: center; justify-content: center; background: #fff; }
.login-card { width: 400px; max-width: 84%; }
.login-title h2 { font-size: 30px; margin: 0 0 8px; color: #1a1a1a; font-weight: 600; }
.login-title p { margin: 0 0 38px; color: #999; font-size: 14px; }
.form-line { margin-bottom: 22px; }
.form-line label { display: block; color: #666; margin-bottom: 9px; font-size: 14px; }
.form-line input {
  width: 100%; height: 48px; border: 1px solid #e3e8ef; border-radius: 10px; padding: 0 15px;
  font-size: 15px; background: #f9fbfd; transition: all .2s; outline: none;
}
.form-line input:focus { border-color: #1e9fff; background: #fff; box-shadow: 0 0 0 3px rgba(30,159,255,.1); }
.login-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 26px; font-size: 13px; color: #999; }
.remember { display: flex; align-items: center; gap: 7px; cursor: pointer; color: #666; }
.remember input { accent-color: #1e9fff; }
.login-btn {
  width: 100%; height: 48px; border: none; border-radius: 10px; color: #fff; font-size: 16px; letter-spacing: 6px;
  background: linear-gradient(90deg, #1677ff, #1e9fff); cursor: pointer; transition: all .2s;
  box-shadow: 0 8px 20px rgba(30,159,255,.28);
}
.login-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }
.login-error { color: #f5576c; font-size: 13px; margin-top: 14px; min-height: 18px; }
.login-footer { margin-top: 54px; text-align: center; color: #b7bec9; font-size: 12px; }

/* ================= 框架 ================= */
.app-view { min-height: 100vh; }
.kz-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 110px; background: #fff; z-index: 100;
  box-shadow: 1px 0 6px rgba(0,0,0,.04); display: flex; flex-direction: column;
}
.kz-logo {
  height: 50px; display: flex; align-items: center; justify-content: center; gap: 5px;
  border-bottom: 1px solid #f4f6f9; flex-shrink: 0;
}
.kz-logo-mark { color: #1677ff; font-size: 20px; font-weight: 800; }
.kz-logo-mark sup { font-size: 8px; }
.kz-logo-text { font-size: 13px; font-weight: 600; color: #1677ff; letter-spacing: .5px; }
.kz-nav { padding: 8px 0 30px; overflow-y: auto; flex: 1; }
.kz-nav::-webkit-scrollbar { width: 0; }
.nav-item {
  height: 54px; display: flex; align-items: center; gap: 8px; padding: 0 16px; color: #333;
  cursor: pointer; position: relative; transition: all .15s; font-size: 14px; white-space: nowrap;
}
.nav-item:hover, .nav-item.active { color: #1677ff; background: #f0f7ff; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: #1677ff; }
.nav-item i { font-size: 17px; width: 20px; text-align: center; }

.menu-panel {
  position: fixed; left: var(--side-w); top: 49px; bottom: 0; width: var(--sub-w); background: #fff; z-index: 60;
  border-right: 1px solid #eef1f5; padding: 0 0 30px; overflow-y: auto;
}
.menu-panel::-webkit-scrollbar { width: 4px; }
.menu-panel::-webkit-scrollbar-thumb { background: #e3e8ef; border-radius: 4px; }
.menu-panel-head { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 20px; background: #fff; border-bottom: 1px solid #eef1f5; font-size: 14px; font-weight: 600; color: #23262e; }
.menu-panel-close { width: 28px; height: 28px; border: none; border-radius: 4px; background: transparent; color: #7c8696; font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.menu-panel-close:hover { background: #eaf3ff; color: #1677ff; }
.menu-group { padding: 6px 0; }
.menu-group h4 { margin: 0; padding: 8px 20px 4px; font-size: 12px; color: #a0a8b5; font-weight: 500; letter-spacing: .5px; }
.menu-group a { display: block; padding: 9px 18px 9px 22px; color: #4a5160; font-size: 13.5px; border-left: 2px solid transparent; }
.menu-group a:hover { color: #1677ff; background: #f5faff; }
.menu-group a.active { color: #1677ff; background: #eef7ff; border-left-color: #1677ff; font-weight: 500; }
body.menu-open .kz-header { left: calc(var(--side-w) + var(--sub-w)); }
body.menu-open .kz-tabs { left: calc(var(--side-w) + var(--sub-w)); }
body.menu-open .kz-content { margin-left: calc(var(--side-w) + var(--sub-w)); }

.kz-header {
  position: fixed; left: var(--side-w); right: 0; top: 0; height: 49px; background: #fff; z-index: 50;
  border-bottom: 1px solid #f0f2f5; display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
  transition: left .18s ease;
}
.kz-header-left { display: flex; align-items: center; gap: 12px; color: #666; font-size: 13px; }
.header-sep { width: 1px; height: 16px; background: #e8ecf2; }
.icon-btn {
  border: none; background: transparent; width: 32px; height: 32px; border-radius: 6px; cursor: pointer;
  color: #5b6472; position: relative; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: #f2f6fb; color: #1677ff; }
.icon-btn i { font-size: 17px; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: #ff4d4f; }
.kz-header-right { display: flex; align-items: center; gap: 4px; }
.admin-menu { position: relative; margin-left: 8px; }
.admin-btn { border: none; background: transparent; display: flex; align-items: center; gap: 8px; cursor: pointer; color: #333; font-size: 13px; padding: 5px 6px; border-radius: 6px; }
.admin-btn:hover { background: #f6f9fd; }
.admin-avatar { width: 26px; height: 26px; border-radius: 50%; background: #1677ff; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.admin-dropdown { position: absolute; right: 0; top: 42px; width: 150px; background: #fff; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.12); padding: 6px; z-index: 200; }
.admin-dropdown a { display: block; padding: 9px 12px; border-radius: 5px; color: #4a5160; font-size: 13px; }
.admin-dropdown a:hover { background: #f3f8ff; color: #1677ff; }

.kz-tabs {
  position: fixed; left: var(--side-w); right: 0; top: 49px; height: 40px; background: #fff; z-index: 40;
  border-bottom: 1px solid #eef1f5; display: flex; align-items: center; justify-content: space-between;
  transition: left .18s ease;
}
.kz-tabs-list {
  flex: 1; min-width: 0; height: 40px; display: flex; align-items: center;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.kz-tabs-list::-webkit-scrollbar { height: 0; }
.kz-tab {
  height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 12px;
  margin-left: 0; font-size: 13px; color: #5b6472; background: #fff;
  border-top: 2px solid transparent; border-right: 1px solid #f2f4f7;
  cursor: pointer; flex: 0 0 auto; white-space: nowrap; transition: background .15s, color .15s;
}
.kz-tab:first-child { margin-left: 10px; }
.kz-tab:hover { color: #1677ff; background: #f8fbff; }
.kz-tab.active { color: #1677ff; background: #f2f8ff; border-top-color: #1677ff; }
.kz-tab i { font-size: 13px; }
.kz-tab .tab-close { color: #a8b3c2; margin-left: 4px; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.kz-tab .tab-close:hover { color: #fff; background: #ff4d4f; }
.kz-tabs-right { padding-right: 14px; display: flex; flex-shrink: 0; }
.kz-tabs-right .icon-btn { width: 26px; height: 26px; }

.kz-content { margin-left: var(--side-w); padding: 104px 18px 30px 18px; min-height: 100vh; background: #f7f9fc; transition: margin-left .18s ease; }

/* ================= 通用页面 ================= */
.page { max-width: 1600px; margin: 0 auto; }
.tip-card {
  background: #fff; border: 1px dashed #dce3ec; border-radius: 4px; padding: 12px 18px; margin-bottom: 14px; color: #8a94a3; font-size: 12.5px;
}
.tip-card summary { cursor: pointer; color: #5b6472; font-size: 13px; margin-bottom: 6px; }
.tip-card p { margin: 4px 0; }
.card { background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(20,40,80,.04); margin-bottom: 14px; }
.card-pad { padding: 16px 18px; }
.card-title { font-size: 16px; font-weight: 600; color: #23262e; display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.card-title small { font-size: 12px; font-weight: 400; color: #9aa4b2; }

.search-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 16px 18px; background: #fff; border-radius: 4px; margin-bottom: 14px; }
.search-item { display: flex; align-items: center; gap: 8px; }
.search-item label { color: #5b6472; font-size: 13px; white-space: nowrap; }
.search-item input, .search-item select { height: 34px; border: 1px solid #dfe5ee; border-radius: 4px; padding: 0 10px; font-size: 13px; outline: none; background: #fff; min-width: 150px; }
.search-item input:focus, .search-item select:focus { border-color: #1677ff; }
.search-btns { display: flex; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 34px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 3px; background: #1677ff; color: #fff; font-size: 13px;
  cursor: pointer; white-space: nowrap; transition: .15s;
}
.btn:hover { background: #0f6ae0; }
.btn.primary { background: #1677ff; }
.btn.ghost { background: #fff; color: #4a5160; border-color: #dfe5ee; }
.btn.ghost:hover { color: #1677ff; border-color: #b7d7ff; background: #f8fbff; }
.btn.danger { background: #ff4d4f; }
.btn.danger:hover { background: #e63c3e; }
.btn.sm { height: 27px; padding: 0 10px; font-size: 12px; border-radius: 2px; }
.btn.green { background: #21b573; }
.btn.orange { background: #fa8c16; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.tabs { display: flex; align-items: center; gap: 4px; background: #fff; border-bottom: 1px solid #eef1f5; padding: 0 8px; border-radius: 4px 4px 0 0; overflow-x: auto; }
.tabs button { border: none; background: transparent; height: 46px; padding: 0 16px; font-size: 13.5px; color: #5b6472; cursor: pointer; position: relative; white-space: nowrap; }
.tabs button.active { color: #1677ff; font-weight: 500; }
.tabs button.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: #1677ff; border-radius: 2px; }
.tabs button .tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 9px; background: #f0f3f8; color: #7c8696; font-size: 11px; font-weight: 400; line-height: 1; vertical-align: 1px; }
.tabs button.active .tab-count { background: #e8f2ff; color: #1677ff; }

.table-wrap { background: #fff; border-radius: 0 0 4px 4px; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.kz-table { width: 100%; border-collapse: collapse; font-size: 13px; color: #4a5160; }
table.kz-table th { background: #f8fafc; color: #6b7686; font-weight: 500; text-align: left; padding: 12px 14px; border-bottom: 1px solid #eef1f5; white-space: nowrap; }
table.kz-table td { padding: 12px 14px; border-bottom: 1px solid #f3f5f8; vertical-align: middle; }
table.kz-table tbody tr:hover { background: #f9fbff; }
table.kz-table .cell-img { width: 42px; height: 42px; border-radius: 4px; object-fit: cover; background: #f2f4f7; }
table.kz-table .goods-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
table.kz-table .goods-cell .name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; max-width: 330px; }
table.kz-table .muted { color: #9aa4b2; font-size: 12px; }
table.kz-table .strong { color: #23262e; font-weight: 500; }
table.kz-table .money { color: #f5576c; font-weight: 500; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.empty { padding: 60px 20px; text-align: center; color: #9aa4b2; font-size: 13px; }
.empty i { display: block; font-size: 34px; color: #d6dde8; margin-bottom: 10px; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px 18px; color: #7c8696; font-size: 13px; }
.pagination .pages { display: flex; gap: 4px; }
.pagination button { min-width: 30px; height: 30px; border: 1px solid #e3e8ef; background: #fff; border-radius: 3px; color: #5b6472; cursor: pointer; }
.pagination button.active { background: #1677ff; border-color: #1677ff; color: #fff; }
.pagination button:disabled { color: #c8d0db; cursor: not-allowed; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; line-height: 18px; background: #f2f4f7; color: #6b7686; }
.badge.blue { background: #eaf3ff; color: #1677ff; }
.badge.green { background: #e8f8f1; color: #16a36a; }
.badge.orange { background: #fff4e6; color: #d97706; }
.badge.red { background: #ffecec; color: #e63c3e; }
.badge.gray { background: #f2f4f7; color: #8a94a3; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.form-grid .full { grid-column: 1 / -1; }
.f-item { margin-bottom: 18px; }
.f-item > label { display: block; margin-bottom: 7px; color: #5b6472; font-size: 13px; }
.f-item > label em { color: #ff4d4f; font-style: normal; margin-right: 3px; }
.f-item input[type=text], .f-item input[type=password], .f-item input[type=number], .f-item select, .f-item textarea {
  width: 100%; border: 1px solid #dfe5ee; border-radius: 4px; padding: 0 11px; height: 36px; font-size: 13px; outline: none; color: #333; background: #fff;
}
.f-item textarea { height: 96px; padding: 9px 11px; resize: vertical; }
.f-item input:focus, .f-item select:focus, .f-item textarea:focus { border-color: #1677ff; box-shadow: 0 0 0 2px rgba(22,119,255,.08); }
.f-item .hint { color: #9aa4b2; font-size: 12px; margin-top: 5px; }
.f-item.radio-row { display: flex; align-items: flex-start; gap: 16px; }
.radio-row { display: flex; align-items: center; gap: 28px; margin-top: 6px; }
.f-item.radio-row .radio-label { width: 100px; flex-shrink: 0; margin: 0; padding-top: 2px; color: #5b6472; font-size: 13px; }
.f-item.radio-row .radio-label em { color: #ff4d4f; font-style: normal; margin-right: 3px; }
.radio-control { flex: 1; min-width: 0; }
.audit-id-photos { display: flex; gap: 18px; margin-top: 16px; }
.audit-id-photos > div { flex: 1; min-width: 0; }
.audit-id-photos b { display: block; margin-bottom: 6px; font-size: 13px; color: #4a5160; }
.audit-id-photos img { width: 100%; height: 120px; object-fit: contain; border: 1px solid #e7ecf3; border-radius: 4px; background: #f7f9fc; }
.radio-group { display: flex; align-items: center; gap: 34px; min-height: 22px; }
.radio-item { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #333; }
.radio-item input[type=radio] { width: 17px; height: 17px; margin: 0; accent-color: #1677ff; cursor: pointer; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { display: none; }
.switch span { position: absolute; inset: 0; background: #d7dee8; border-radius: 20px; cursor: pointer; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: #1677ff; }
.switch input:checked + span::after { transform: translateX(18px); }
.img-field { display: flex; align-items: flex-start; gap: 12px; }
.img-field .preview { width: 76px; height: 76px; border: 1px dashed #dfe5ee; border-radius: 6px; object-fit: cover; background: #f8fafc; }
.img-field .upload-btns { display: flex; flex-direction: column; gap: 7px; }
.img-field input[type=text] { flex: 1; }
.rich-editor { width: 100%; min-height: 220px; border: 1px solid #dfe5ee; border-radius: 4px; padding: 12px; font-size: 13px; line-height: 1.7; outline: none; background: #fff; }
.rich-editor:focus { border-color: #1677ff; }

/* ================= 工作台 ================= */
.welcome-card { background: linear-gradient(105deg, #1e6bff 0%, #3d9bff 60%, #62c1ff 100%); color: #fff; border-radius: 6px; padding: 26px 30px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; overflow: hidden; position: relative; }
.welcome-card::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.08); right: -80px; top: -120px; }
.welcome-card h2 { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
.welcome-card p { margin: 0; opacity: .82; font-size: 13px; }
.welcome-card .welcome-actions { display: flex; gap: 10px; position: relative; z-index: 2; }
.welcome-card .btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4); }
.welcome-card .btn:hover { background: rgba(255,255,255,.25); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.metric-card { background: #fff; border-radius: 5px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(20,40,80,.04); position: relative; }
.metric-card .label { display: flex; justify-content: space-between; color: #6b7686; font-size: 13px; }
.metric-card .label .today { color: #1677ff; background: #eef6ff; border-radius: 20px; padding: 1px 9px; font-size: 12px; }
.metric-card .value { font-size: 30px; font-weight: 600; color: #23262e; margin: 14px 0 12px; letter-spacing: -.5px; }
.metric-card .sub { display: flex; justify-content: space-between; color: #9aa4b2; font-size: 12px; border-top: 1px solid #f3f5f8; padding-top: 10px; }
.metric-card .sub b { color: #4a5160; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; }
.grid-2.equal { grid-template-columns: 1fr 1fr; }
.chart-card { background: #fff; border-radius: 5px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(20,40,80,.04); }
.chart-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; }
.chart-card h3 span { color: #9aa4b2; font-size: 12px; font-weight: 400; }
.chart-canvas { width: 100%; height: 280px; display: block; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f7fa; }
.rank-list li:last-child { border-bottom: none; }
.rank-list .no { width: 20px; height: 20px; border-radius: 50%; background: #f2f4f7; color: #8a94a3; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.rank-list li:nth-child(1) .no { background: #fff1e8; color: #f56c2d; }
.rank-list li:nth-child(2) .no { background: #fff7e6; color: #d48806; }
.rank-list li:nth-child(3) .no { background: #eef6ff; color: #1677ff; }
.rank-list .name { flex: 1; color: #4a5160; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list .num { color: #f5576c; font-size: 13px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-item { border: 1px solid #eef2f7; border-radius: 5px; padding: 14px 10px; text-align: center; color: #5b6472; font-size: 13px; cursor: pointer; transition: .15s; }
.quick-item:hover { border-color: #b7d7ff; color: #1677ff; background: #f8fbff; }
.quick-item i { display: block; font-size: 22px; margin-bottom: 7px; color: #1677ff; }

/* ================= 财务 / 分销 ================= */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stat-box { background: #fff; border-radius: 5px; padding: 18px 20px; }
.stat-box .k { color: #7c8696; font-size: 13px; }
.stat-box .v { font-size: 26px; font-weight: 600; color: #23262e; margin-top: 8px; }
.stat-box .v small { font-size: 13px; color: #9aa4b2; font-weight: 400; }
.auth-tree { max-height: 560px; overflow: auto; padding: 6px 4px; }
.auth-tree .group { border-bottom: 1px dashed #eef1f5; padding: 12px 0; }
.auth-tree .group h4 { margin: 0 0 8px; font-size: 13px; color: #333; }
.auth-tree label { display: inline-flex; align-items: center; gap: 5px; margin: 0 18px 8px 0; font-size: 12.5px; color: #5b6472; }
.auth-tree input { accent-color: #1677ff; }

/* ================= 弹层调整 ================= */
.layui-layer { border-radius: 6px; overflow: hidden; }
.layui-layer-title { background: #fff !important; border-bottom: 1px solid #eef1f5 !important; font-weight: 600 !important; color: #23262e !important; }
.layui-layer-btn .layui-layer-btn0 { background: #1677ff !important; border-color: #1677ff !important; }
.layui-layer-content { color: #333; }
.modal-body { padding: 20px 24px 4px; max-height: 68vh; overflow-y: auto; }
.modal-footer { padding: 12px 24px 18px; text-align: right; }
.modal-footer .btn + .btn { margin-left: 8px; }
.detail-block { padding: 4px 0; }
.detail-block h4 { margin: 18px 0 10px; font-size: 14px; color: #23262e; }
.detail-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; font-size: 13px; color: #5b6472; }
.detail-rows div { display: flex; gap: 8px; }
.detail-rows b { color: #8a94a3; font-weight: 400; min-width: 72px; }
.detail-items { border: 1px solid #eef1f5; border-radius: 5px; }
.detail-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #f3f5f8; }
.detail-item:last-child { border-bottom: none; }
.detail-item img { width: 46px; height: 46px; border-radius: 4px; object-fit: cover; }
.detail-item .info { flex: 1; }
.detail-item .info b { display: block; font-weight: 500; font-size: 13px; }
.detail-item .info span { color: #9aa4b2; font-size: 12px; }
.log-timeline { list-style: none; padding: 0; margin: 0; }
.log-timeline li { padding: 8px 0 8px 18px; border-left: 2px solid #e8eef7; position: relative; color: #5b6472; font-size: 12.5px; }
.log-timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1677ff; position: absolute; left: -5px; top: 13px; }
.log-timeline li span { color: #9aa4b2; margin-left: 8px; }

.loading-mask { position: fixed; inset: 0; background: rgba(255,255,255,.72); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #7c8696; font-size: 13px; }
.spinner { width: 32px; height: 32px; border: 3px solid #e8f0fb; border-top-color: #1677ff; border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= 商品编辑弹窗 ================= */
.layui-layer.goods-layer { border-radius: 6px; overflow: hidden; }
.layui-layer.goods-layer .layui-layer-title { height: 42px; line-height: 42px; background: #f5f6f8 !important; border-bottom: 1px solid #e8ecf2 !important; color: #23262e !important; font-weight: 600 !important; padding-left: 20px; }
.layui-layer.goods-layer .layui-layer-content { padding: 0 !important; }
.goods-editor { display: flex; flex-direction: column; height: calc(88vh - 42px); background: #fff; }
.goods-editor-tabs { display: flex; align-items: center; gap: 2px; background: #f5f6f8; border-bottom: 1px solid #e8ecf2; padding: 0 18px; flex-shrink: 0; }
.goods-editor-tab { border: none; background: transparent; height: 44px; padding: 0 17px; color: #5b6472; font-size: 13.5px; cursor: pointer; border-top: 2px solid transparent; }
.goods-editor-tab:hover { color: #1677ff; }
.goods-editor-tab.active { color: #1677ff; background: #fff; border-top-color: #1677ff; font-weight: 500; }
.goods-editor-body { flex: 1; overflow-y: auto; padding: 20px 24px 10px; }
.goods-pane { display: none; }
.goods-pane.active { display: block; }
.gf-row { display: flex; align-items: flex-start; margin-bottom: 16px; }
.gf-row > label { width: 112px; flex-shrink: 0; padding-top: 9px; color: #5b6472; font-size: 13px; }
.gf-row > label em { color: #ff4d4f; font-style: normal; margin-right: 3px; }
.gf-control { flex: 1; min-width: 0; }
.gf-control input[type=text], .gf-control input[type=number], .gf-control select, .gf-control textarea { width: 100%; border: 1px solid #dfe5ee; border-radius: 4px; padding: 0 11px; height: 36px; font-size: 13px; outline: none; color: #333; background: #fff; }
.gf-control textarea { height: auto; min-height: 92px; padding: 9px 11px; line-height: 1.6; resize: vertical; }
.gf-control select:disabled { background: #f7f9fc; color: #b7c0cd; }
.gf-control .hint { color: #9aa4b2; font-size: 11px; margin-top: 6px; line-height: 1.5; }
.gf-control .switch { margin-top: 7px; }
.check-row { display: flex; flex-wrap: wrap; gap: 22px; padding-top: 8px; }
.check-item { display: inline-flex; align-items: center; gap: 6px; color: #4a5160; font-size: 13px; }
.goods-static { display: inline-block; height: 36px; line-height: 36px; font-size: 14px; font-weight: 600; color: #23262e; }
.goods-tip { background: #f7f9fc; border: 1px solid #eef2f7; border-radius: 4px; padding: 10px 12px; color: #7c8696; font-size: 12px; line-height: 1.7; margin-bottom: 14px; }
.cate-cascade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.goods-img-upload { display: flex; align-items: flex-start; gap: 14px; }
.goods-img-upload img { width: 100px; height: 100px; border: 1px dashed #dfe5ee; border-radius: 5px; object-fit: contain; background: #f7f9fc; }
.goods-img-upload .btn { margin-bottom: 5px; }
.goods-video-box { margin-bottom: 8px; }
.goods-video-box video { width: 220px; max-height: 130px; border-radius: 4px; background: #000; display: block; margin-bottom: 6px; }
.video-empty { width: 220px; height: 110px; border: 1px dashed #dfe5ee; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #b7c0cd; font-size: 12px; background: #fafbfd; margin-bottom: 6px; }
.carousel-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.carousel-item { position: relative; width: 96px; height: 96px; border: 1px solid #eef2f7; border-radius: 4px; overflow: visible; background: #f7f9fc; }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.car-del { position: absolute; right: -7px; top: -7px; width: 18px; height: 18px; border: none; border-radius: 50%; background: #ff4d4f; color: #fff; font-size: 12px; line-height: 18px; cursor: pointer; padding: 0; }
.car-move { position: absolute; left: 0; right: 0; bottom: -9px; display: flex; justify-content: center; gap: 4px; }
.car-move button { width: 22px; height: 18px; border: 1px solid #dfe5ee; background: #fff; border-radius: 3px; color: #7c8696; line-height: 16px; cursor: pointer; padding: 0; }
.carousel-add { width: 96px; height: 96px; border: 1px dashed #cfd8e5; border-radius: 4px; background: #fafbfd; color: #9aa4b2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; font-size: 20px; }
.carousel-add span { font-size: 11px; }
.carousel-add:hover { border-color: #1677ff; color: #1677ff; }
.goods-rich { width: 100%; min-height: 380px; border: 1px solid #dfe5ee; border-radius: 4px; padding: 12px; font-size: 13px; line-height: 1.8; outline: none; resize: vertical; }
.goods-editor-foot { flex-shrink: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid #eef1f5; background: #fff; }
#skuTable input { width: 100%; height: 32px; border: 1px solid #dfe5ee; border-radius: 3px; padding: 0 8px; }
#skuTable td { padding: 8px 10px; }
.spec-mode-row { display: flex; align-items: center; gap: 26px; margin-bottom: 14px; }
.spec-mode-row > label:first-child { width: 112px; color: #5b6472; font-size: 13px; }
.spec-mode-row .radio-item { font-size: 13px; }
.spec-table { min-width: 900px; table-layout: fixed; }
.spec-table th, .spec-table td { padding: 8px 7px; }
.spec-table th em { color: #ff4d4f; font-style: normal; margin-right: 2px; }
.sku-img-cell { position: relative; width: 48px; height: 48px; border: 1px dashed #dfe5ee; border-radius: 4px; background: #fafbfd; display: flex; align-items: center; justify-content: center; }
.sku-img-cell .sku-img-preview { width: 46px; height: 46px; object-fit: cover; border-radius: 3px; }
.sku-img-btn { position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; border: 1px solid #cfd8e5; border-radius: 50%; background: #fff; color: #7c8696; font-size: 13px; line-height: 15px; padding: 0; cursor: pointer; }
.sku-img-btn:hover { border-color: #1677ff; color: #1677ff; }
@media (max-width: 1100px) {
  .metric-grid, .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2.equal { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
}
