

:root {
  
  --primary: #ff6a00;
  --primary-dark: #e85d00;
  --primary-deep: #d95300;
  --primary-light: #fff3e6;
  --primary-grad: linear-gradient(135deg, #ff6a00 0%, #ff9500 100%);
  --accent: #ff4000;
  --accent-light: #fff0e6;

  
  --success: #12b76a;
  --warning: #f79009;
  --danger: #f04438;
  --info: #06aed4;

  
  --bg: #f3f5f9;
  --bg-deep: #eef1f6;
  --card: #ffffff;
  --border: #e6eaf1;
  --border-strong: #d7dce6;
  --text: #1c2430;
  --text-2: #4b5565;
  --text-3: #8a94a6;
  --text-4: #c2c9d4;

  
  --side-1: #0c1b36;
  --side-2: #123055;
  --side-text: #c3cfdf;
  --side-text-dim: #64748f;

  
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .05);
  --shadow: 0 2px 10px rgba(16, 24, 40, .07);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
  --sidebar-w: 228px;
  --header-h: 62px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
::selection { background: rgba(255, 106, 0, .18); }


::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfd6e2; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b3bccb; }
::-webkit-scrollbar-track { background: transparent; }


.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: #fff; color: var(--text); font-size: 14px; line-height: 1.4;
  transition: all .2s; white-space: nowrap; user-select: none;
}
.btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 2px 6px rgba(255, 106, 0, .12); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--primary-grad); border-color: transparent; color: #fff;
  box-shadow: 0 4px 14px rgba(255, 106, 0, .28);
}
.btn-primary:hover { background: linear-gradient(135deg, #f05f00, #ff8a1f); color: #fff; box-shadow: 0 6px 18px rgba(255, 106, 0, .36); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #ff6a00); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(255, 64, 0, .25); }
.btn-accent:hover { background: linear-gradient(135deg, #e64500, #f25a00); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); box-shadow: none; }
.btn-ghost:hover { color: var(--primary); background: var(--primary-light); }
.btn-danger { background: linear-gradient(135deg, #f04438, #e6352b); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(240, 68, 56, .22); }
.btn-danger:hover { background: linear-gradient(135deg, #dd3a2f, #d92d20); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.btn-lg { padding: 12px 30px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }


.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px;
  transition: box-shadow .25s, border-color .25s;
}
.card-hover { transition: all .25s; cursor: pointer; }
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #ffd9b0; }
.card-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}


.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; line-height: 20px; font-weight: 600; letter-spacing: .2px;
  white-space: nowrap; text-align: center; min-width: 48px;
}
.badge-blue   { background: #fdf1e5; color: var(--primary); }
.badge-green  { background: #e7f8f0; color: var(--success); }
.badge-orange { background: #fff1e8; color: var(--accent); }
.badge-red    { background: #fdeceb; color: var(--danger); }
.badge-gray   { background: #f1f3f7; color: var(--text-3); }
.badge-danger { background: #fdeceb; color: var(--danger); }


.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; }
.table th {
  background: #f7f9fc; color: var(--text-2); font-weight: 600; text-align: left;
  padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
  font-size: 12.5px; letter-spacing: .3px;
}
.table th:first-child { border-top-left-radius: var(--radius-lg); }
.table th:last-child { border-top-right-radius: var(--radius-lg); }
.table td { padding: 14px 16px; border-bottom: 1px solid #f0f2f7; vertical-align: middle; font-size: 13.5px; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #f8f9fc; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover td { background: #fafbfe; }
.table tbody tr:last-child td { border-bottom: none; }
.thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #f6f8fb; border: 1px solid #eef0f4; flex: 0 0 auto; }
.table .thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #f2f4f8; border: 1px solid #eef0f4; }


.form-item { margin-bottom: 18px; }
.form-item label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 600; }
.form-item .required::before { content: '*'; color: var(--danger); margin-right: 4px; }
.input, .select, .textarea {
  width: 100%; padding: 9px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  outline: none; background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:hover, .select:hover, .textarea:hover { border-color: #b9c1cf; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 106, 0, .13); background: #fff; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }


.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination .btn { min-width: 34px; padding: 6px 10px; border-radius: 8px; }
.pagination .btn.active { background: var(--primary-grad); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(255, 106, 0, .28); }
.pager { text-align: center; color: var(--text-3); font-size: 13px; padding: 16px 0; }


.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(2px);
}
.modal {
  background: #fff; border-radius: var(--radius-xl); width: 100%; max-width: 540px;
  box-shadow: 0 24px 64px rgba(8, 18, 40, .28); animation: modal-in .22s ease; overflow: hidden;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 700; background: linear-gradient(180deg, #fdfbf9, #fff);
}
.modal-head::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--primary-grad); }
.modal-head .close { cursor: pointer; color: var(--text-3); font-size: 20px; line-height: 1; transition: color .2s, transform .2s; }
.modal-head .close:hover { color: var(--danger); transform: rotate(90deg); }
.modal-body { padding: 22px; max-height: 65vh; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: #fafbfd; }


#toast-box { position: fixed; top: 26px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  padding: 10px 22px; border-radius: 10px; background: #1f2733; color: #fff;
  font-size: 14px; box-shadow: 0 8px 24px rgba(16, 24, 40, .24); animation: toast-in .25s ease; max-width: 80vw;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warn { background: var(--warning); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }


.empty { text-align: center; padding: 52px 16px; color: var(--text-3); font-size: 14px; }
.empty .icon { font-size: 52px; margin-bottom: 12px; opacity: .65; }
.loading { text-align: center; padding: 44px; color: var(--text-3); }
.loading::before {
  content: ''; display: inline-block; width: 24px; height: 24px; margin-right: 10px;
  border: 2.5px solid #e3e7ef; border-top-color: var(--primary); border-radius: 50%;
  vertical-align: -5px; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1200px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s; position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; right: -24px; top: -24px; width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, .06), transparent 65%); pointer-events: none;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #ffdcc0; }
.stat-card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; flex-shrink: 0; position: relative; overflow: hidden;
  box-shadow: 0 6px 14px rgba(16, 24, 40, .16);
}
.stat-card .icon::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, 0) 52%);
  pointer-events: none;
}
.stat-card .value { font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: -.3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-card .label { font-size: 13px; color: var(--text-3); margin-top: 2px; }


.site-top, .site-header, .site-nav, .site-footer { display: none !important; }

.hero { margin-top: 4px; border-radius: var(--radius-xl); overflow: hidden; position: relative; height: 340px; box-shadow: 0 10px 30px rgba(12, 27, 54, .18); }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; display: flex; align-items: center; padding: 0 64px; }
.hero .slide.active { opacity: 1; }
.hero .slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .slide .mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 24, 64, .78) 0%, rgba(8, 24, 64, .38) 55%, rgba(8, 24, 64, 0) 100%); }
.hero .slide .text { position: relative; z-index: 1; color: #fff; max-width: 540px; }
.hero .slide .t1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; line-height: 1.3; letter-spacing: .5px; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.hero .slide .t2 { font-size: 16px; opacity: .92; margin-bottom: 26px; }
.hero .dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero .dots i { width: 28px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .38); cursor: pointer; transition: background .2s, width .2s; }
.hero .dots i.active { background: #fff; width: 36px; }


.cat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 16px; }
.cat-strip .item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 8px; text-align: center; cursor: pointer; transition: all .22s; }
.cat-strip .item:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cat-strip .icon { font-size: 28px; margin-bottom: 6px; }
.cat-strip .name { font-size: 14px; color: var(--text); font-weight: 600; }
.cat-strip .count { font-size: 12px; color: var(--text-3); }


.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 16px; }
.sec-head .title { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; letter-spacing: .3px; }
.sec-head .title::before { content: ''; width: 5px; height: 22px; background: var(--primary-grad); border-radius: 3px; }
.sec-head .more { color: var(--text-3); font-size: 13px; }
.sec-head .more:hover { color: var(--primary); }


.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
.prod-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; transition: all .25s; position: relative;
}
.prod-card:hover { box-shadow: 0 14px 34px rgba(16, 24, 40, .13); transform: translateY(-4px); border-color: #ffd5ad; }
.prod-card .thumb { width: 100%; height: auto; object-fit: contain; display: block; }
.prod-card .body { padding: 12px 14px 14px; }
.prod-card .name { font-size: 14px; color: var(--text); height: 42px; line-height: 21px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prod-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.prod-card .price { color: var(--accent); font-size: 20px; font-weight: 800; }
.prod-card .price small { font-size: 12px; font-weight: 400; }
.prod-card .market { color: var(--text-4); font-size: 12px; text-decoration: line-through; }
.prod-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; color: var(--text-3); font-size: 12px; }
.prod-card .tag { position: absolute; top: 10px; left: 10px; z-index: 2; }
.prod-card .sales-tag { position: absolute; top: 10px; right: 10px; z-index: 2; box-shadow: 0 3px 8px rgba(255, 106, 0, .25); }


.detail-layout { display: grid; grid-template-columns: 480px 1fr; gap: 28px; margin-top: 16px; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.gallery { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 14px; box-shadow: var(--shadow-sm); }
.gallery .main { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); background: #f7f9fc; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery .thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: border-color .2s; }
.gallery .thumbs img.active { border-color: var(--primary); }
.detail-info .title { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.detail-info .sub { color: var(--text-3); font-size: 13px; margin-bottom: 16px; }
.price-box { background: linear-gradient(135deg, #fff5ec, #fffdf9); border: 1px solid #ffdfc0; border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 18px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.price-box .now { color: var(--accent); font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.price-box .market { color: var(--text-3); text-decoration: line-through; font-size: 14px; }
.price-box .sales { color: var(--text-3); font-size: 13px; }
.info-list { border-top: 1px dashed var(--border); padding-top: 14px; }
.info-list .row { display: flex; gap: 10px; padding: 7px 0; color: var(--text-2); font-size: 14px; }
.info-list .row b { color: var(--text); font-weight: 600; width: 72px; flex-shrink: 0; }
.buy-bar { display: flex; gap: 12px; margin-top: 20px; }
.qty-box { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: #fff; }
.qty-box button { width: 36px; height: 42px; border: none; background: #f6f8fb; font-size: 18px; color: var(--text-2); transition: background .2s, color .2s; }
.qty-box button:hover { background: var(--primary-light); color: var(--primary); }
.qty-box input { width: 48px; height: 42px; border: none; text-align: center; outline: none; }


.news-list .item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.news-list .item:last-child { border-bottom: none; }
.news-list .cover { width: 160px; height: 100px; object-fit: cover; border-radius: var(--radius); background: #f2f4f8; flex-shrink: 0; }
.news-list .title { font-size: 16px; font-weight: 600; color: var(--text); }
.news-list .summary { color: var(--text-3); font-size: 13px; margin: 6px 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-list .meta { color: var(--text-4); font-size: 12px; }


#app { width: 100%; max-width: 100%; padding: 0; }
.admin-wrap { display: flex; min-height: 100vh; width: 100%; background: var(--bg); }


.admin-side {
  width: var(--sidebar-w); background: linear-gradient(180deg, var(--side-1) 0%, var(--side-2) 100%);
  color: var(--side-text); flex-shrink: 0;
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
  box-shadow: 4px 0 20px rgba(8, 18, 40, .12);
}
.admin-side .brand {
  display: flex; align-items: center; gap: 11px; padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 16px; font-weight: 800; color: #fff; letter-spacing: .4px; white-space: nowrap;
}
.admin-side .brand .mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--primary-grad);
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff;
  box-shadow: 0 4px 12px rgba(255, 106, 0, .4); flex-shrink: 0;
}
.admin-side .menu { flex: 1; overflow-y: auto; padding: 14px 0 20px; }
.admin-side .menu::-webkit-scrollbar { width: 5px; }
.admin-side .menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); }
.admin-side .menu .group { padding: 14px 22px 6px; font-size: 11px; color: var(--side-text-dim); letter-spacing: 1.2px; font-weight: 600; }
.admin-side .menu a {
  display: flex; align-items: center; gap: 11px; padding: 11.5px 22px; color: var(--side-text);
  font-size: 14px; border-left: 3px solid transparent; transition: all .18s; position: relative;
}
.admin-side .menu a .ico { width: 20px; text-align: center; font-size: 15px; flex-shrink: 0; }
.admin-side .menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; padding-left: 26px; }
.admin-side .menu a.active {
  background: linear-gradient(90deg, rgba(255, 106, 0, .22), rgba(255, 106, 0, .06));
  color: #fff; border-left-color: var(--primary); font-weight: 600;
}
.admin-side .menu a.active::after {
  content: ''; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px rgba(255, 106, 0, .8);
}
.admin-side .menu a .menu-badge { margin-left: auto; }
.admin-side .foot {
  padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px; color: var(--side-text-dim); display: flex; align-items: center; gap: 8px;
}
.admin-side .foot::before {
  content: ''; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #ff6a00, #ff9d4d); box-shadow: 0 2px 8px rgba(255, 106, 0, .35);
}
.admin-side .foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.admin-side .side-group {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11.5px 22px; color: var(--side-text); font-size: 14px; cursor: pointer; border-left: 3px solid transparent;
  transition: all .18s; gap: 8px;
}
.admin-side .side-group:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-side .side-group .arrow { transition: transform .2s; color: var(--side-text-dim); font-size: 13px; }
.admin-side .side-group.open .arrow { transform: rotate(90deg); }
.admin-side .side-group.open { color: #fff; }
.admin-side .side-sub { display: none; padding: 2px 0 8px; }
.admin-side .side-group.open + .side-sub { display: block; }
.admin-side .side-sub a { padding-left: 46px; font-size: 13px; }


.admin-main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.admin-header {
  height: var(--header-h); background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 4px rgba(16, 24, 40, .05);
}
.admin-header .title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; letter-spacing: .3px; }
.admin-header .title::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--primary-grad); }
.admin-header .right { display: flex; align-items: center; gap: 16px; }
.admin-header .user { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); }
.admin-header .uname { font-size: 14px; font-weight: 600; color: var(--text); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-header .lang-sel { width: auto; min-width: 118px; height: 32px; padding: 4px 8px; font-size: 13px; border-radius: 8px; }
.admin-header .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  box-shadow: 0 3px 8px rgba(255, 106, 0, .3); flex-shrink: 0;
}
.admin-content { padding: 26px 28px; flex: 1; }
.admin-body { padding: 24px 28px; }
@media (min-width: 1600px) { .admin-content, .admin-body { padding: 30px 36px; } }


.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.page-head h2 { font-size: 20px; font-weight: 800; letter-spacing: .3px; }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar .input, .filter-bar .select { width: auto; min-width: 160px; }


.label { font-size: 13px; color: var(--text-3); font-weight: 500; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 10px 16px; }
.kv .k { color: var(--text-3); font-size: 13px; }
.kv > div:nth-child(even) { font-size: 14px; color: var(--text); }


.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0c1b36 0%, #123055 50%, #1a3f6e 100%); padding: 20px; position: relative; overflow: hidden;
}
.login-page::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 0, .22), transparent 62%); top: -200px; right: -160px; }
.login-page::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(64, 158, 255, .2), transparent 62%); bottom: -180px; left: -140px; }
.login-card { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; box-shadow: 0 28px 80px rgba(6, 16, 50, .45); padding: 46px 40px 38px; position: relative; z-index: 2; }
.login-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 20px 20px 0 0; background: var(--primary-grad); }
.login-card .logo { justify-content: center; margin-bottom: 10px; color: #0c1b36; }
.login-card .logo .mark { width: 46px; height: 46px; border-radius: 13px; font-size: 23px; box-shadow: 0 8px 20px rgba(255, 106, 0, .35); }
.login-card .slogan { text-align: center; color: #7a8499; font-size: 13px; margin-bottom: 30px; }
.login-card .form-item { margin-bottom: 18px; }
.login-card .form-item label { display: block; font-size: 13px; color: #4b5568; margin-bottom: 7px; font-weight: 600; }
.login-card .input { height: 46px; border-radius: 10px; border: 1px solid #e5e8ef; padding: 0 14px; font-size: 14px; width: 100%; box-sizing: border-box; transition: border-color .2s, box-shadow .2s, background .2s; background: #fafbfd; color: #1f2937; }
.login-card .input:focus { outline: none; border-color: #ff9500; box-shadow: 0 0 0 3px rgba(255, 149, 0, .15); background: #fff; }
.login-card .btn-primary { height: 48px; border-radius: 10px; font-size: 16px; font-weight: 700; }


.chat-wrap { display: flex; gap: 16px; height: calc(100vh - 150px); min-height: 440px; }
.chat-list {
  width: 300px; flex-shrink: 0; background: #fff; border: 1px solid #eef0f4; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 6px 24px rgba(20, 40, 80, .06);
}
.chat-list .cl-foot { padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); text-align: center; }
.chat-list .cl-head {
  padding: 13px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #101c33, #1d3357); color: #fff;
}
.chat-list .cl-head span:last-child { background: rgba(255, 255, 255, .18); border-radius: 12px; padding: 0 8px; font-size: 12px; color: #fff; }
.chat-list .cl-body { flex: 1; overflow-y: auto; }
.chat-list .cl-unread { background: var(--danger, #f5222d); color: #fff; border-radius: 10px; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 6px; font-weight: 600; }
.c-list-body { flex: 1; overflow-y: auto; }
.chat-list .c-item {
  display: flex; gap: 10px; padding: 12px 12px; border-bottom: 1px solid #f2f3f5; cursor: pointer;
  border-radius: 10px; margin: 4px 8px; border: 1px solid transparent; transition: all .18s;
}
.chat-list .c-item:hover { background: #f2f6ff; border-color: #e4ecff; transform: translateX(2px); }
.chat-list .c-item.active { background: linear-gradient(90deg, #fff0e5, #fff7f0); border-color: #ffd9b0; box-shadow: inset 3px 0 0 #ff5b00; }
.chat-list .c-item .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #ff6a00, #ff9d4d); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; box-shadow: 0 2px 8px rgba(255, 106, 0, .25); }
.chat-list .c-item .nm { font-size: 14px; font-weight: 600; }
.chat-list .c-item .lm { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.chat-list .c-item .ct { font-size: 11px; color: var(--text-3); }
.chat-list .c-item .unread { background: var(--danger); color: #fff; border-radius: 10px; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 5px; font-weight: 600; box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(245, 34, 45, .35); }


.chat-box { display: grid; grid-template-columns: 300px 1fr; gap: 16px; height: calc(100vh - var(--header-h) - 96px); min-height: 480px; }
.chat-item { display: flex; gap: 10px; padding: 12px 14px; cursor: pointer; border-bottom: 1px solid #f2f3f5; align-items: center; transition: background .15s; }
.chat-item:hover { background: #fafbfd; }
.chat-item.active { background: linear-gradient(90deg, #fff0e5, #fff7f0); }
.chat-av { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; box-shadow: 0 2px 6px rgba(255, 106, 0, .25); }
.chat-name { font-size: 14px; font-weight: 600; }
.chat-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-left: 4px; box-shadow: 0 0 0 3px #fff; }
.chat-main { background: #fff; border: 1px solid #eef0f4; border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 6px 24px rgba(20, 40, 80, .06); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; background: linear-gradient(180deg, #f7f9fc, #f2f5fa); }
.msg-row { display: flex; margin-bottom: 12px; }
.msg-row.mine { justify-content: flex-end; }
.msg-row .bubble { max-width: 68%; padding: 9px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--border); font-size: 14px; box-shadow: 0 1px 3px rgba(16, 42, 104, .05); }
.msg-row.mine .bubble { background: var(--primary-grad); color: #fff; border-color: transparent; }
.chat-input { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.chat-input .input { flex: 1; }
@media (max-width: 900px) { .chat-box { grid-template-columns: 1fr; height: auto; } }

.chat-panel { flex: 1; background: #fff; border: 1px solid #eef0f4; border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; min-width: 0; box-shadow: 0 6px 24px rgba(20, 40, 80, .06); }
.chat-panel .cp-head { padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600; display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #fff, #fafbfe); font-size: 15px; }
.chat-panel .cp-head .online-dot { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; display: inline-block; box-shadow: 0 0 0 3px rgba(18, 183, 106, .15); }
.chat-panel .cp-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #f7f9fc, #f2f5fa); min-height: 320px; max-height: calc(100vh - 280px); }
.chat-panel .cp-input { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); background: #fff; }
.chat-panel .cp-input input { flex: 1; border-radius: 8px; padding: 10px 14px; border: 1px solid #e5e9f0; background: #f7f9fc; transition: all .2s; }
.chat-panel .cp-input input:focus { border-color: #ff5b00; box-shadow: 0 0 0 3px rgba(255, 91, 0, .12); background: #fff; outline: none; }
.chat-panel .cp-input .btn { border-radius: 8px; padding: 10px 22px; font-weight: 700; }
.chat-bubble { display: flex; margin-bottom: 14px; gap: 8px; align-items: flex-start; }
.chat-bubble.mine { flex-direction: row-reverse; }
.chat-bubble .cb-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #dfe6f2, #cdd8ea); color: #4e5969; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; font-weight: 700; box-shadow: 0 2px 6px rgba(20, 40, 80, .12); }
.chat-bubble.mine .cb-av { background: linear-gradient(135deg, #ff6a00, #ff9d4d); color: #fff; }
.chat-bubble .cb-msg { max-width: 68%; padding: 11px 15px; border-radius: 4px 14px 14px 14px; background: #fff; border: 1px solid #e8ebf0; font-size: 13.5px; line-height: 1.55; box-shadow: 0 2px 10px rgba(20, 40, 80, .08); }
.chat-bubble.mine .cb-msg { background: linear-gradient(135deg, #ff5b00, #ff7a2f); color: #fff; border-color: transparent; border-radius: 14px 4px 14px 14px; box-shadow: 0 3px 12px rgba(255, 91, 0, .28); }
.chat-bubble .cb-time { font-size: 11px; color: #9aa7bd; margin-top: 4px; padding: 0 4px; }
.chat-bubble.mine .cb-time { text-align: right; }
.chat-list .cl-body::-webkit-scrollbar, .chat-panel .cp-body::-webkit-scrollbar, .chat-log::-webkit-scrollbar { width: 6px; }
.chat-list .cl-body::-webkit-scrollbar-thumb, .chat-panel .cp-body::-webkit-scrollbar-thumb, .chat-log::-webkit-scrollbar-thumb { background: #d4d9e4; border-radius: 3px; }


.menu-badge { margin-left: auto; background: linear-gradient(135deg, #ff4d4f, #f5222d); color: #fff; border-radius: 999px; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 5px; font-weight: 700; box-shadow: 0 0 0 3px rgba(245, 34, 45, .18); }


.cd { font-weight: 700; font-variant-numeric: tabular-nums; }


.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.text-danger { color: var(--danger); } .text-success { color: var(--success); } .text-warn { color: var(--warning); }
.text-accent { color: var(--accent); } .text-primary { color: var(--primary); }
.text-3 { color: var(--text-3); } .text-2 { color: var(--text-2); }
.fw-6 { font-weight: 600; } .fw-7 { font-weight: 700; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-3); }


.main-wrap { position: relative; }
.main-wrap .main { width: 100%; border-radius: var(--radius-lg); display: block; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; border: none; background: rgba(232, 93, 0, .82); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); transition: all .2s; backdrop-filter: blur(2px); }
.video-play:hover { background: rgba(255, 106, 0, .94); transform: translate(-50%, -50%) scale(1.08); }
.video-play svg { margin-left: 4px; }
.video-box { width: 100%; border-radius: var(--radius-lg); background: #000; }


body.is-admin { background: var(--bg); }
body.is-admin .site-top, body.is-admin .site-header, body.is-admin .site-nav, body.is-admin .site-footer { display: none !important; }
body.is-admin #app { padding: 0 !important; min-height: 100vh !important; max-width: none !important; }
body.is-admin .container { max-width: none !important; padding: 0 !important; }


.admin-wrap { min-height: 100vh; }
.admin-body { min-height: calc(100vh - 62px); }


.admin-header .lang-box { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.admin-header .lang-box .select { border-color: var(--border); }


.pickck, .selOne, input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }


@media (max-width: 1100px) {
  :root { --sidebar-w: 208px; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  :root { --sidebar-w: 190px; }
  .admin-side .menu a { padding: 11px 16px; font-size: 13px; }
  .admin-side .menu a .ico { width: 18px; }
  .admin-side .brand { padding: 18px 16px; font-size: 14px; }
  .admin-content, .admin-body { padding: 18px 16px; }
  .admin-header { padding: 0 16px; }
  .hero { height: 240px; }
  .hero .slide .t1 { font-size: 26px; }
}
