/* ============================================================
   绿盾植保 - 后台管理专用样式（深色霓虹科技风）
   背景 #030907 · 主色 #00ffaa · 辅色 #00c8ff
   ============================================================ */

/* ===== 全局重置与字体 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.admin-body {
  background-color: #030907;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  color: #e2f0e9;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 背景霓虹网格 */
body.admin-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 170, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

a { color: #00ffaa; }

/* ============================================================
   后台框架布局：左侧固定侧栏 + 右侧内容区
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ----- 侧栏 ----- */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 232px;
  background: rgba(5, 14, 11, 0.92);
  border-right: 1px solid rgba(0, 255, 170, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(0, 255, 170, 0.12);
}
.admin-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #00ffaa, #00c8ff);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 24px rgba(0, 255, 170, 0.45);
  flex-shrink: 0;
}
.admin-logo .logo-text {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f5fffa;
  white-space: nowrap;
}
.admin-logo .logo-text span {
  color: #00ffaa;
  text-shadow: 0 0 18px rgba(0, 255, 170, 0.6);
}

.admin-nav {
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 13px;
  color: #8fb3a8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.admin-nav a .icon {
  font-size: 1.1rem;
  filter: grayscale(0.3);
}
.admin-nav a:hover {
  color: #d7fff0;
  background: rgba(0, 255, 170, 0.06);
  border-color: rgba(0, 255, 170, 0.25);
  transform: translateX(3px);
}
.admin-nav a.active {
  color: #00ffaa;
  background: rgba(0, 255, 170, 0.1);
  border-color: rgba(0, 255, 170, 0.4);
  box-shadow:
    0 0 24px rgba(0, 255, 170, 0.12),
    inset 0 0 24px rgba(0, 255, 170, 0.05);
  text-shadow: 0 0 16px rgba(0, 255, 170, 0.5);
}
.admin-nav a.active .icon {
  filter: drop-shadow(0 0 10px rgba(0, 255, 170, 0.8));
}

.admin-sidebar-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(0, 255, 170, 0.1);
  font-size: 0.68rem;
  color: #5e7e72;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

/* ----- 主区域 ----- */
.admin-main {
  flex: 1;
  margin-left: 232px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 15px 28px;
  background: rgba(5, 14, 11, 0.85);
  border-bottom: 1px solid rgba(0, 255, 170, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10;
}
.admin-topbar .page-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #f5fffa;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-topbar .page-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #00ffaa, #00c8ff);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0, 255, 170, 0.6);
}
.admin-topbar .admin-user {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
}
.admin-topbar .admin-user .name {
  color: #00ffaa;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-shadow: 0 0 14px rgba(0, 255, 170, 0.4);
}
.admin-topbar .admin-user a.logout {
  color: #ff8f8f;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 90, 90, 0.35);
  padding: 7px 18px;
  border-radius: 50px;
  transition: all 0.3s;
  white-space: nowrap;
}
.admin-topbar .admin-user a.logout:hover {
  background: rgba(255, 90, 90, 0.12);
  border-color: rgba(255, 90, 90, 0.6);
  box-shadow: 0 0 20px rgba(255, 90, 90, 0.2);
  transform: translateY(-1px);
}

.admin-content {
  padding: 28px;
  position: relative;
  z-index: 1;
}

.admin-footer {
  margin-top: auto;
  padding: 18px 28px;
  border-top: 1px solid rgba(0, 255, 170, 0.1);
  color: #5e7e72;
  font-size: 0.76rem;
  letter-spacing: 1px;
  text-align: center;
}

/* ============================================================
   闪存提示条
   ============================================================ */
.admin-flash {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 255, 170, 0.08);
  border: 1px solid rgba(0, 255, 170, 0.4);
  color: #00ffaa;
  padding: 14px 22px;
  border-radius: 16px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  box-shadow: 0 0 40px -12px rgba(0, 255, 170, 0.3);
  text-shadow: 0 0 14px rgba(0, 255, 170, 0.35);
  backdrop-filter: blur(8px);
}

/* 内联提示（错误/信息） */
.admin-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  margin-bottom: 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid;
  letter-spacing: 0.4px;
}
.admin-alert-error {
  background: rgba(255, 90, 90, 0.08);
  border-color: rgba(255, 90, 90, 0.45);
  color: #ff8f8f;
  box-shadow: 0 0 40px -14px rgba(255, 90, 90, 0.3);
}
.admin-alert-info {
  background: rgba(0, 200, 255, 0.07);
  border-color: rgba(0, 200, 255, 0.4);
  color: #6fd8ff;
  box-shadow: 0 0 40px -14px rgba(0, 200, 255, 0.25);
}

/* ============================================================
   统计卡片
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(6, 16, 13, 0.75);
  border: 1px solid rgba(0, 255, 170, 0.14);
  border-radius: 22px;
  padding: 24px 26px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffaa, #00c8ff, transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 255, 170, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 0;
}
.stat-card:hover {
  border-color: rgba(0, 255, 170, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(0, 255, 170, 0.35);
}
.stat-card:hover::before,
.stat-card:hover::after {
  opacity: 1;
}
.stat-card .stat-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  background: rgba(0, 255, 170, 0.1);
  border: 1px solid rgba(0, 255, 170, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.1);
  transition: transform 0.35s;
}
.stat-card:hover .stat-icon {
  transform: scale(1.08);
  box-shadow: 0 0 32px rgba(0, 255, 170, 0.25);
}
.stat-card .stat-value {
  font-size: 1.9rem;
  font-weight: 900;
  color: #00ffaa;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(0, 255, 170, 0.35);
}
.stat-card .stat-label {
  font-size: 0.76rem;
  color: #7d9e92;
  letter-spacing: 1.6px;
  margin-top: 6px;
  font-weight: 600;
}

/* ============================================================
   卡片面板
   ============================================================ */
.admin-card {
  background: rgba(6, 16, 13, 0.75);
  border: 1px solid rgba(0, 255, 170, 0.14);
  border-radius: 24px;
  padding: 26px 28px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.admin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffaa, #00c8ff, transparent);
  opacity: 0.55;
  filter: blur(0.5px);
}
.admin-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #f5fffa;
  letter-spacing: 1.2px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  position: relative;
  flex-wrap: wrap;
}
.admin-card-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: linear-gradient(180deg, #00ffaa, #00c8ff);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0, 255, 170, 0.6);
}
.admin-card-title .title-count {
  font-size: 0.78rem;
  color: #7d9e92;
  font-weight: 600;
  letter-spacing: 0.6px;
}

/* ============================================================
   数据表格
   ============================================================ */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(0, 255, 170, 0.12);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 680px;
}
.admin-table.wide {
  min-width: 1100px;
}
.admin-table th {
  text-align: left;
  padding: 14px 16px;
  color: #7d9e92;
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 255, 170, 0.2);
  background: rgba(0, 255, 170, 0.04);
  white-space: nowrap;
  font-weight: 700;
}
.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(0, 255, 170, 0.08);
  color: #a2c2b6;
  vertical-align: middle;
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-table tbody tr {
  transition: background 0.25s;
}
.admin-table tbody tr:hover {
  background: rgba(0, 255, 170, 0.06);
  box-shadow: inset 3px 0 0 #00ffaa;
}
.admin-table .cell-title {
  color: #f5fffa;
  font-weight: 700;
}
.admin-table .cell-time {
  white-space: nowrap;
  color: #6e8f83;
  font-size: 0.8rem;
}
.admin-table .cell-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  white-space: nowrap;
}
.admin-table .empty-cell {
  text-align: center;
  padding: 48px 16px;
  color: #6e8f83;
  letter-spacing: 1px;
}

/* 缩略图 */
.admin-table .thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 170, 0.25);
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.admin-table .thumb-empty {
  width: 60px;
  height: 40px;
  border-radius: 8px;
  border: 1px dashed rgba(0, 255, 170, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(0, 255, 170, 0.04);
}

/* ============================================================
   状态徽章
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  white-space: nowrap;
  border: 1px solid;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.badge-ok {
  color: #00ffaa;
  border-color: rgba(0, 255, 170, 0.4);
  background: rgba(0, 255, 170, 0.08);
}
.badge-warn {
  color: #ffb454;
  border-color: rgba(255, 180, 84, 0.4);
  background: rgba(255, 180, 84, 0.08);
}
.badge-off {
  color: #7d9e92;
  border-color: rgba(125, 158, 146, 0.35);
  background: rgba(125, 158, 146, 0.08);
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #00ffaa, #00c8ff);
  color: #05100d;
  box-shadow: 0 4px 24px rgba(0, 255, 170, 0.3);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 255, 170, 0.45);
}
.btn-success {
  background: linear-gradient(135deg, #00ffaa, #00c8ff);
  color: #05100d;
  box-shadow: 0 4px 24px rgba(0, 255, 170, 0.3);
}
.btn-danger {
  background: rgba(255, 90, 90, 0.1);
  color: #ff8f8f;
  border: 1px solid rgba(255, 90, 90, 0.45);
  box-shadow: none;
}
.btn-danger:hover {
  background: rgba(255, 90, 90, 0.2);
  box-shadow: 0 0 24px rgba(255, 90, 90, 0.25);
}
.btn-outline {
  background: transparent;
  color: #8fb3a8;
  border: 1px solid rgba(0, 255, 170, 0.25);
  box-shadow: none;
}
.btn-outline:hover {
  color: #00ffaa;
  border-color: rgba(0, 255, 170, 0.6);
  background: rgba(0, 255, 170, 0.08);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.15);
}
.btn-sm {
  padding: 6px 13px;
  font-size: 0.78rem;
  border-radius: 9px;
}
.btn-block {
  width: 100%;
  padding: 13px 24px;
  font-size: 0.95rem;
  letter-spacing: 4px;
}

/* ============================================================
   表单（深色霓虹风格，同前台 .form-input）
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #a2c2b6;
  letter-spacing: 0.8px;
}
.form-label .req {
  color: #00ffaa;
  margin-left: 4px;
  text-shadow: 0 0 10px rgba(0, 255, 170, 0.7);
}
.form-input,
.form-select,
.form-textarea {
  background: rgba(3, 9, 7, 0.85);
  border: 1px solid rgba(0, 255, 170, 0.2);
  border-radius: 12px;
  color: #e2f0e9;
  padding: 11px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #4d6a5f;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(0, 255, 170, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.1), 0 0 30px -8px rgba(0, 255, 170, 0.35);
  background: rgba(5, 14, 11, 0.95);
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300ffaa' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  padding-right: 38px;
}
.form-select option {
  background: #06100d;
  color: #e2f0e9;
}
.form-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.7;
}
.form-textarea.tall {
  min-height: 170px;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a2c2b6;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.4px;
}
.form-check input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #00ffaa;
  cursor: pointer;
}
.form-actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.form-hint {
  font-size: 0.76rem;
  color: #6e8f83;
  letter-spacing: 0.4px;
}
.inline-form {
  display: inline;
}

/* ============================================================
   状态过滤条
   ============================================================ */
.admin-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.admin-filter .filter-label {
  font-size: 0.78rem;
  color: #7d9e92;
  letter-spacing: 1.4px;
  margin-right: 4px;
}
.filter-pill {
  background: rgba(6, 16, 13, 0.75);
  border: 1px solid rgba(0, 255, 170, 0.18);
  color: #8fb3a8;
  border-radius: 50px;
  padding: 8px 22px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter-pill:hover {
  color: #d7fff0;
  border-color: rgba(0, 255, 170, 0.5);
  background: rgba(0, 255, 170, 0.08);
  transform: translateY(-2px);
}
.filter-pill.active {
  color: #00ffaa;
  border-color: rgba(0, 255, 170, 0.6);
  background: rgba(0, 255, 170, 0.12);
  box-shadow: 0 0 24px rgba(0, 255, 170, 0.18), inset 0 0 20px rgba(0, 255, 170, 0.06);
  text-shadow: 0 0 16px rgba(0, 255, 170, 0.5);
}

/* ============================================================
   分页
   ============================================================ */
.admin-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.admin-pagination a,
.admin-pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 11px;
  background: rgba(6, 16, 13, 0.75);
  border: 1px solid rgba(0, 255, 170, 0.18);
  color: #8fb3a8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s;
}
.admin-pagination a:hover {
  color: #00ffaa;
  border-color: rgba(0, 255, 170, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(0, 255, 170, 0.4);
}
.admin-pagination .current {
  color: #00ffaa;
  border-color: rgba(0, 255, 170, 0.6);
  background: rgba(0, 255, 170, 0.1);
  box-shadow: 0 0 18px rgba(0, 255, 170, 0.15);
  text-shadow: 0 0 12px rgba(0, 255, 170, 0.5);
}

/* ============================================================
   登录页
   ============================================================ */
body.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 255, 170, 0.09), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 200, 255, 0.07), transparent 55%),
    #030907;
  background-attachment: fixed;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(6, 16, 13, 0.82);
  border: 1px solid rgba(0, 255, 170, 0.2);
  border-radius: 32px;
  padding: 48px 42px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.95),
    0 0 80px -30px rgba(0, 255, 170, 0.25);
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00ffaa, #00c8ff, transparent);
  filter: blur(1px);
}
.login-card .admin-flash,
.login-card .admin-alert {
  margin-bottom: 22px;
}
.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  text-align: center;
}
.login-logo .logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #00ffaa, #00c8ff);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 40px rgba(0, 255, 170, 0.5);
  animation: loginFloat 3s infinite alternate;
}
@keyframes loginFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}
.login-logo h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #f5fffa;
  letter-spacing: 3px;
}
.login-logo h1 span {
  color: #00ffaa;
  text-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
}
.login-logo p {
  font-size: 0.7rem;
  color: #6e8f83;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  font-weight: 600;
}
.login-card .form-group {
  margin-bottom: 18px;
}
.login-foot {
  margin-top: 26px;
  text-align: center;
  font-size: 0.72rem;
  color: #5e7e72;
  letter-spacing: 1.2px;
}

/* ============================================================
   响应式：小屏侧栏收起为顶部
   ============================================================ */
@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid rgba(0, 255, 170, 0.15);
  }
  .admin-logo {
    padding: 14px 18px;
    border-bottom: none;
    flex-shrink: 0;
  }
  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 10px 14px;
    flex: 1;
    gap: 8px;
  }
  .admin-nav a {
    padding: 9px 14px;
    font-size: 0.86rem;
  }
  .admin-nav a:hover {
    transform: none;
  }
  .admin-sidebar-foot {
    display: none;
  }
  .admin-main {
    margin-left: 0;
  }
  .admin-content {
    padding: 18px;
  }
  .admin-topbar {
    padding: 12px 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
  }
  .stat-card {
    padding: 18px;
    gap: 14px;
  }
  .stat-card .stat-value {
    font-size: 1.5rem;
  }
  .admin-card {
    padding: 20px 18px;
  }
}

/* ===== 本地图片上传控件 ===== */
.upload-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.upload-row .btn-up {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 6px 14px; border-radius: 8px; font-size: 13px;
  background: rgba(0, 255, 170, 0.12); border: 1px solid rgba(0, 255, 170, 0.45);
  color: #7dfcd4; transition: all .2s;
}
.upload-row .btn-up:hover { background: rgba(0, 255, 170, 0.22); }
.upload-row .btn-up input[type="file"] { display: none; }
.up-name { color: #8aa39a; font-size: 12px; word-break: break-all; }
.up-preview img {
  width: 56px; height: 40px; object-fit: cover; border-radius: 6px;
  border: 1px solid rgba(0, 255, 170, 0.3); background: #0a1512; display: block;
}
