/* 售后问题管理系统 - 深色科技风主题（霓虹增强版） */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #00d9ff;
  --primary-2: #7c6cff;
  --primary-glow: rgba(0, 217, 255, .45);
  --danger: #ff6b6b;
  --success: #00e5a0;
  --warning: #ffb84d;
  --bg: #070d1c;
  --bg-2: #0d1730;
  --card: rgba(11, 20, 40, .78);
  --card-border: rgba(0, 217, 255, .22);
  --border: rgba(148, 163, 184, .20);
  --text: #eaf2ff;
  --text-light: #8fa6c8;
  --radius: 10px;
  --glow: 0 0 18px rgba(0, 217, 255, .25);
}
body {
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(34, 211, 238, .10), transparent),
    radial-gradient(ellipse 40% 30% at 90% 110%, rgba(99, 102, 241, .12), transparent),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  min-height: 100vh;
  position: relative;
}

/* ---------- 科技感背景层：粒子星空 + 网格 + 移动光斑 + 光晕 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* 粒子星空点阵（多层平铺） */
    radial-gradient(circle 2px at 15% 25%, rgba(103, 232, 249, .75), transparent 60%),
    radial-gradient(circle 2px at 85% 15%, rgba(165, 180, 252, .65), transparent 60%),
    radial-gradient(circle 1.5px at 50% 60%, rgba(103, 232, 249, .55), transparent 60%),
    radial-gradient(circle 1.5px at 30% 80%, rgba(165, 180, 252, .5), transparent 60%),
    radial-gradient(circle 2px at 70% 45%, rgba(103, 232, 249, .6), transparent 60%),
    radial-gradient(circle 1.5px at 8% 55%, rgba(165, 180, 252, .5), transparent 60%),
    radial-gradient(circle 2px at 92% 70%, rgba(103, 232, 249, .5), transparent 60%),
    radial-gradient(circle 1.5px at 45% 12%, rgba(165, 180, 252, .6), transparent 60%),
    /* 细网格 */
    linear-gradient(rgba(56, 189, 248, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, .05) 1px, transparent 1px),
    /* 大网格 */
    linear-gradient(rgba(99, 102, 241, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, .04) 1px, transparent 1px),
    /* 光晕 */
    radial-gradient(ellipse 45% 35% at 15% 20%, rgba(34, 211, 238, .10), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 75%, rgba(99, 102, 241, .12), transparent 70%),
    radial-gradient(ellipse 30% 25% at 70% 15%, rgba(56, 189, 248, .07), transparent 70%);
  background-size:
    260px 260px, 320px 320px, 280px 280px, 360px 360px, 300px 300px,
    340px 340px, 380px 380px, 250px 250px,
    40px 40px, 40px 40px, 160px 160px, 160px 160px,
    100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  animation: gridBreath 9s ease-in-out infinite;
}
/* 漂浮光斑层 */
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle 160px at 20% 30%, rgba(34, 211, 238, .14), transparent 70%),
    radial-gradient(circle 200px at 80% 60%, rgba(99, 102, 241, .14), transparent 70%),
    radial-gradient(circle 120px at 60% 20%, rgba(56, 189, 248, .10), transparent 70%),
    radial-gradient(circle 140px at 35% 80%, rgba(129, 140, 248, .10), transparent 70%);
  animation: orbFloat 22s ease-in-out infinite alternate;
}
/* 全屏扫描光带 */
html::before {
  content: "";
  position: fixed;
  left: 0; right: 0;
  top: -160px;
  height: 160px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .05) 45%, rgba(103, 232, 249, .08) 50%, rgba(34, 211, 238, .05) 55%, transparent);
  animation: scanLine 10s linear infinite;
}
@keyframes scanLine {
  0% { top: -160px; }
  100% { top: 115vh; }
}
@keyframes gridBreath {
  0%, 100% { opacity: .8; }
  50% { opacity: 1; }
}
@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(2%, -3%, 0) scale(1.05); }
  66% { transform: translate3d(-3%, 2%, 0) scale(.97); }
  100% { transform: translate3d(1%, 3%, 0) scale(1.03); }
}

/* ---------- 顶部导航 ---------- */
.navbar {
  background: rgba(3, 7, 18, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(56, 189, 248, .18);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}
.navbar .brand {
  font-size: 17px;
  font-weight: 700;
  margin-right: 28px;
  white-space: nowrap;
  background: linear-gradient(90deg, #7dd3fc, #b3a7ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 217, 255, .4));
}
.navbar .brand span { background: linear-gradient(90deg, #00d9ff, #8f7bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 8px rgba(124, 108, 255, .5)); }
.navbar nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.navbar nav a {
  color: #94a3b8;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all .15s;
}
.navbar nav a:hover { color: #fff; background: rgba(56, 189, 248, .12); }
.navbar nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 153, 255, .4), rgba(124, 108, 255, .4));
  box-shadow: inset 0 0 0 1px rgba(0, 217, 255, .4), 0 0 16px rgba(0, 217, 255, .25);
}
.navbar .user-area { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.navbar .user-area .role-tag {
  font-size: 12px; padding: 2px 8px; border-radius: 999px;
  background: rgba(0, 217, 255, .16); color: #6ee7ff;
  border: 1px solid rgba(0, 217, 255, .4);
}
.navbar .user-area .username { color: #cbd5e1; }
.navbar .user-area a {
  color: #94a3b8; text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 13px;
}
.navbar .user-area a:hover { color: #fff; background: rgba(56, 189, 248, .12); }

/* ---------- 布局 ---------- */
.container { max-width: 1200px; margin: 24px auto; padding: 0 20px; }
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; color: #f1f5f9; text-shadow: 0 0 12px rgba(0, 217, 255, .35); }
.page-title .muted { text-shadow: none; }
.card {
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 14px rgba(0, 217, 255, .06);
  position: relative;
  overflow: hidden;
}
/* 卡片顶部科技高光线 */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, .6), transparent);
  pointer-events: none;
}
/* 卡片 hover 霓虹光效 */
.card:hover {
  border-color: rgba(0, 217, 255, .4);
  box-shadow: 0 8px 36px rgba(0, 0, 0, .4), 0 0 30px rgba(0, 217, 255, .14);
  transition: box-shadow .3s, border-color .3s;
}
.card h3 { font-size: 15px; margin-bottom: 14px; color: #e0f2fe; }

/* 深色滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, .28); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56, 189, 248, .45); }
::-webkit-scrollbar-track { background: rgba(2, 6, 23, .35); }
* { scrollbar-width: thin; scrollbar-color: rgba(56,189,248,.3) rgba(2,6,23,.35); }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item.full { grid-column: 1 / -1; }
.form-item label { font-weight: 600; font-size: 13px; color: #cbd5e1; }
.form-item label .req { color: var(--danger); margin-left: 2px; }
.form-item .hint { font-size: 12px; color: var(--text-light); }
input[type=text], input[type=password], input[type=datetime-local], input[type=date], input[type=number],
select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(2, 6, 23, .55);
  color: var(--text);
  outline: none;
  transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, .15), 0 0 14px rgba(0, 217, 255, .2);
}
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
input:disabled, select:disabled { background: rgba(15, 23, 42, .8); color: #475569; }
select option { background: #0f172a; color: #e2e8f0; }

/* 日期选择器：深色弹层 + 醒目的青色日历图标 */
input[type=date] { color-scheme: dark; }
input[type=date]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  width: 20px;
  height: 20px;
  opacity: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d9ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 0 4px rgba(0, 217, 255, .6));
}
input[type=date]::-webkit-calendar-picker-indicator:hover { transform: scale(1.15); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  background: rgba(30, 41, 59, .7);
  color: #cbd5e1;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.15); border-color: rgba(34, 211, 238, .4); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, #0099ff, #6c5cff);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 153, 255, .35), 0 0 10px rgba(0, 217, 255, .2);
}
.btn-primary:hover { filter: brightness(1.15); box-shadow: 0 4px 22px rgba(0, 153, 255, .5), 0 0 18px rgba(0, 217, 255, .3); }
.btn-danger { background: linear-gradient(135deg, #ff4d6a, #c9184a); color: #fff; border: none; box-shadow: 0 4px 14px rgba(255, 77, 106, .25); }
.btn-success { background: linear-gradient(135deg, #00c58a, #00a06e); color: #fff; border: none; box-shadow: 0 4px 14px rgba(0, 229, 160, .25); }
.btn-outline { background: transparent; border-color: rgba(0, 217, 255, .45); color: #5ee7ff; }
.btn-outline:hover { background: rgba(0, 217, 255, .1); box-shadow: 0 0 12px rgba(0, 217, 255, .2); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* 表格最小宽度：小屏下在容器内横向滚动，避免列挤压变形 */
table { min-width: 760px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th {
  background: rgba(30, 41, 59, .65);
  font-weight: 600;
  color: #7dd3fc;
  white-space: nowrap;
  font-size: 13px;
}
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(0, 217, 255, .07); }
tbody tr.clickable { cursor: pointer; }
.td-ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 徽章 ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-pending { background: rgba(255, 184, 77, .15); color: #ffd08a; border: 1px solid rgba(255, 184, 77, .4); box-shadow: 0 0 8px rgba(255, 184, 77, .15); }
.badge-processing { background: rgba(0, 217, 255, .14); color: #6ee7ff; border: 1px solid rgba(0, 217, 255, .4); box-shadow: 0 0 8px rgba(0, 217, 255, .15); }
.badge-resolved { background: rgba(0, 229, 160, .14); color: #6ef7c8; border: 1px solid rgba(0, 229, 160, .4); box-shadow: 0 0 8px rgba(0, 229, 160, .15); }
.badge-default { background: rgba(148, 163, 184, .15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, .35); }
.badge-admin { background: rgba(255, 77, 106, .14); color: #ffa3b5; border: 1px solid rgba(255, 77, 106, .4); box-shadow: 0 0 8px rgba(255, 77, 106, .15); }
.badge-user { background: rgba(124, 108, 255, .15); color: #b3a7ff; border: 1px solid rgba(124, 108, 255, .4); box-shadow: 0 0 8px rgba(124, 108, 255, .15); }
.badge-on { background: rgba(0, 229, 160, .14); color: #6ef7c8; border: 1px solid rgba(0, 229, 160, .4); box-shadow: 0 0 8px rgba(0, 229, 160, .15); }
.badge-off { background: rgba(255, 77, 106, .14); color: #ffa3b5; border: 1px solid rgba(255, 77, 106, .4); box-shadow: 0 0 8px rgba(255, 77, 106, .15); }

/* ---------- 搜索筛选栏 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-bar input, .filter-bar select { width: auto; min-width: 140px; }
.filter-bar input.keyword { flex: 1; min-width: 200px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pagination .page-info { color: var(--text-light); font-size: 13px; margin-right: auto; }
.pagination button {
  min-width: 32px; height: 32px; padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(15, 23, 42, .7);
  color: #cbd5e1;
  cursor: pointer; font-size: 13px;
  transition: all .12s;
}
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 12px rgba(0, 217, 255, .25); }
.pagination button.active { background: linear-gradient(135deg, #0099ff, #6c5cff); color: #fff; border-color: transparent; box-shadow: 0 0 14px rgba(0, 217, 255, .35); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 提示 ---------- */
#toast-box { position: fixed; top: 70px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 11px 18px; border-radius: 8px; color: #fff; font-size: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
  animation: slideIn .25s ease;
  max-width: 360px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.toast.success { background: linear-gradient(135deg, #059669, #047857); }
.toast.error { background: linear-gradient(135deg, #dc2626, #991b1b); }
.toast.info { background: linear-gradient(135deg, #0284c7, #4338ca); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 登录页 ---------- */
.login-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 50% 35% at 50% 0%, rgba(34, 211, 238, .16), transparent),
    radial-gradient(ellipse 35% 30% at 85% 100%, rgba(99, 102, 241, .18), transparent),
    linear-gradient(160deg, #050a18 0%, #0b1120 45%, #101a33 100%);
  position: relative;
  overflow: hidden;
}
.login-body::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, .06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
  animation: gridPulse 8s ease-in-out infinite;
}
.login-body::after {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background:
    radial-gradient(circle 220px at 25% 35%, rgba(34, 211, 238, .18), transparent 70%),
    radial-gradient(circle 260px at 75% 65%, rgba(99, 102, 241, .18), transparent 70%),
    radial-gradient(circle 150px at 65% 25%, rgba(56, 189, 248, .13), transparent 70%);
  animation: orbFloat 22s ease-in-out infinite alternate;
}
@keyframes gridPulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}
.login-card {
  width: 380px;
  background: rgba(13, 20, 38, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 14px;
  padding: 36px 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6), 0 0 40px rgba(34, 211, 238, .08);
  position: relative;
  z-index: 1;
  animation: cardPulse 4.5s ease-in-out infinite;
}
@keyframes cardPulse {
  0%, 100% { box-shadow: 0 24px 70px rgba(0, 0, 0, .6), 0 0 30px rgba(34, 211, 238, .10); }
  50% { box-shadow: 0 24px 70px rgba(0, 0, 0, .6), 0 0 60px rgba(34, 211, 238, .22), 0 0 100px rgba(99, 102, 241, .10); }
}
.login-card .logo {
  font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 6px;
  color: #f1f5f9;
}
.login-card .logo span {
  background: linear-gradient(90deg, #22d3ee, #818cf8);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.login-card .sub { text-align: center; color: var(--text-light); font-size: 13px; margin-bottom: 22px; }
.login-tabs {
  display: flex;
  background: rgba(2, 6, 23, .6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
  gap: 4px;
}
.login-tabs .tab {
  flex: 1;
  padding: 9px 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-light);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.login-tabs .tab:hover { color: var(--text); }
.login-tabs .tab.active {
  background: linear-gradient(135deg, #0099ff, #6c5cff);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 14px rgba(0, 217, 255, .4);
}

/* ---------- 详情弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(2, 6, 23, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  z-index: 1000; padding: 40px 16px; overflow-y: auto;
}
.modal {
  background: linear-gradient(180deg, rgba(17, 26, 48, .97), rgba(10, 16, 32, .98));
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 12px; width: 720px; max-width: 100%;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 0 30px rgba(34, 211, 238, .07);
  animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: rgba(13, 20, 38, .95);
  backdrop-filter: blur(8px);
  border-radius: 12px 12px 0 0; z-index: 2;
}
.modal-head h3 { font-size: 16px; color: #e0f2fe; }
.modal-head .close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-light); line-height: 1; }
.modal-head .close:hover { color: #fff; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 14px; }
.detail-item .k { font-size: 12px; color: var(--text-light); margin-bottom: 3px; }
.detail-item .v { font-size: 14px; word-break: break-word; line-height: 1.6; color: #dbeafe; }
.detail-item.full { grid-column: 1 / -1; }

/* ---------- 附件 ---------- */
.attach-list { display: flex; flex-direction: column; gap: 8px; }
.attach-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(2, 6, 23, .45);
}
.attach-item .name { flex: 1; word-break: break-all; }
.attach-item .size { color: var(--text-light); font-size: 12px; }
.attach-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.attach-preview img {
  width: 100%; height: 110px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border); cursor: zoom-in;
}
.upload-box {
  border: 2px dashed rgba(0, 217, 255, .45);
  border-radius: 10px; padding: 18px;
  text-align: center; color: var(--text-light); cursor: pointer; transition: all .15s;
  background: rgba(2, 6, 23, .35);
}
.upload-box:hover { border-color: var(--primary); color: var(--primary); background: rgba(0, 217, 255, .07); box-shadow: 0 0 16px rgba(0, 217, 255, .18); }
.file-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 217, 255, .12);
  color: #6ee7ff;
  border: 1px solid rgba(0, 217, 255, .4);
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
}
.file-chip button { background: none; border: none; color: #6ee7ff; cursor: pointer; font-size: 14px; line-height: 1; }

/* ---------- 仪表盘 ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sc, #22d3ee), transparent);
  opacity: .8;
}
.stat-card .num { font-size: 30px; font-weight: 800; margin: 6px 0 2px; }
.stat-card .label { color: var(--text-light); font-size: 13px; }
.stat-card.blue { --sc: #22d3ee; } .stat-card.blue .num { color: #67e8f9; }
.stat-card.amber { --sc: #fbbf24; } .stat-card.amber .num { color: #fcd34d; }
.stat-card.green { --sc: #34d399; } .stat-card.green .num { color: #6ee7b7; }
.stat-card.gray { --sc: #94a3b8; } .stat-card.gray .num { color: #cbd5e1; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- 响应式自适应 ---------- */
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .container { padding: 0 12px; }
  .page-title { font-size: 18px; }
  .stat-cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .modal-mask { padding: 20px 10px; }
  .modal { width: 100% !important; }
  .modal-body { padding: 14px; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 10px; height: 52px; }
  .navbar .brand { font-size: 15px; margin-right: 12px; }
  .navbar nav a { padding: 7px 10px; font-size: 13px; }
  .navbar .user-area .username { display: none; }
  .navbar .user-area .role-tag { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .attach-preview { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .filter-bar input, .filter-bar select { min-width: 120px; flex: 1; }
  .filter-bar input.keyword { min-width: 100%; }
  .btn { padding: 8px 14px; }
  .login-card { width: 92%; max-width: 380px; padding: 28px 22px; }
  .pagination { justify-content: center; }
  .pagination .page-info { margin-right: 0; width: 100%; text-align: center; }
  .share-body { padding: 12px; }
  .share-card { padding: 20px 16px !important; }
  .stat-card .num { font-size: 24px; }
}
@media (max-width: 480px) {
  body { font-size: 13px; }
  th, td { padding: 8px 10px; font-size: 13px; }
  .navbar nav { gap: 2px; }
  .navbar nav a { padding: 6px 8px; font-size: 12px; }
  .page-title { font-size: 16px; }
  .btn-sm { padding: 4px 8px; font-size: 12px; }
  .modal-head { padding: 12px 14px; }
  .modal-head h3 { font-size: 14px; }
  .upload-box { padding: 14px; }
  .filter-bar { gap: 8px; }
  .bar-row .bar-label { width: 70px; font-size: 12px; }
  .login-tabs .tab { font-size: 13px; }
}

.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bar-row .bar-label { width: 90px; font-size: 13px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar-track { flex: 1; height: 14px; background: rgba(2, 6, 23, .6); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.bar-row .bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #00d9ff, #7c6cff); box-shadow: 0 0 12px rgba(0, 217, 255, .45); }
.bar-row .bar-count { width: 60px; text-align: right; font-size: 13px; font-weight: 600; color: #a5f3fc; }

.empty { text-align: center; color: var(--text-light); padding: 40px 0; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.muted { color: var(--text-light); font-size: 12px; }
code { background: rgba(34, 211, 238, .1); color: #67e8f9; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
a { color: var(--primary); }
