/* ========== 通用 ========== */
* { box-sizing: border-box; }
html, body {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

/* ========== 前台门禁 login 页 ========== */
.page-front.front-gate {
  margin: 0;
  min-height: 100vh;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  position: relative;
}
.fg-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(99,102,241,.35), transparent 60%),
    radial-gradient(900px 500px at 85% 90%, rgba(236,72,153,.28), transparent 60%),
    radial-gradient(800px 500px at 50% 50%, rgba(59,130,246,.18), transparent 70%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  z-index: 0;
}
.fg-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
}
.fg-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 40px 32px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  text-align: center;
  color: #fff;
}
.fg-logo {
  width: 70px; height: 70px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(168, 85, 247, .4);
}
.fg-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.fg-sub {
  margin: 0 0 26px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
}
.fg-input {
  position: relative;
  margin-bottom: 14px;
}
.fg-input input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  outline: none;
  transition: border-color .2s, background .2s;
}
.fg-input input::placeholder {
  color: rgba(255,255,255,.4);
}
.fg-input input:focus {
  border-color: #a855f7;
  background: rgba(255,255,255,.14);
}
.fg-btn {
  width: 100%;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 4px;
  border: none;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(168, 85, 247, .4);
  transition: transform .1s, box-shadow .2s;
}
.fg-btn:hover {
  box-shadow: 0 12px 28px rgba(168, 85, 247, .55);
}
.fg-btn:active {
  transform: translateY(1px);
}
.fg-err {
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, .15);
  border: 1px solid rgba(239, 68, 68, .4);
  border-radius: 10px;
  color: #fecaca;
  font-size: 13px;
}
.fg-tip {
  margin: 22px 0 0;
  color: rgba(255,255,255,.4);
  font-size: 12px;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f3f4f7;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  transition: background .15s, transform .05s, box-shadow .15s;
}
button:hover { background: #1d4ed8; }
button:active { transform: translateY(1px); }
button:disabled { background: #9ca3af; cursor: not-allowed; }
input, select, textarea {
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
label { display: block; margin-bottom: 10px; font-size: 13px; color: #374151; }
label input, label select { margin-top: 4px; }
.err  { color: #dc2626; }
.ok   { color: #16a34a; }
.warn { color: #d97706; }
.tip  { font-size: 12px; color: #6b7280; }
code  { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; }

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  padding: 10px 18px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.btn-primary:hover { background: linear-gradient(135deg, #4f46e5, #7c3aed); }

/* ========== 登录/初始化 ========== */
.page-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.auth-bg {
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, #a78bfa 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, #60a5fa 0%, transparent 50%),
    linear-gradient(135deg, #0f172a, #1e293b);
  z-index: -1;
  filter: saturate(.9);
}
.page-auth .card {
  background: #fff;
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.card-glass {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
}
.auth-logo {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 32px;
  line-height: 60px;
  box-shadow: 0 6px 20px rgba(99,102,241,.4);
}
.page-auth h1 { margin: 0 0 6px; font-size: 22px; color: #111827; }
.auth-sub { margin: 0 0 20px; color: #6b7280; font-size: 13px; }
.page-auth label { text-align: left; }
.page-auth button { width: 100%; margin-top: 8px; }

/* ========== 后台顶栏 ========== */
.page-admin { background: #f3f4f7; }
.admin-header {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.ah-left { display: flex; align-items: center; gap: 12px; }
.ah-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(99,102,241,.4);
}
.admin-header h1 { margin: 0; font-size: 17px; font-weight: 600; }
.ah-right { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.ah-user { color: #cbd5e1; }
.ah-link {
  color: #93c5fd;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .15s;
}
.ah-link:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.ah-logout { color: #fca5a5; }

.admin-main { padding: 24px; max-width: 1280px; margin: 0 auto; }

/* ========== 统计卡片 ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.04);
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.sc-num {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sc-label { color: #6b7280; font-size: 12px; margin-top: 4px; }

/* ========== 面板 ========== */
.panel {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.04);
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f2f5;
}
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 600; color: #111827; }
.panel-sub { font-size: 12px; color: #6b7280; }

/* ========== 上传表单 ========== */
.upload-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.form-field { margin: 0; }
.fl-label { display: block; font-size: 13px; color: #374151; margin-bottom: 6px; }

.file-drop {
  position: relative;
  display: block;
  margin: 0;
  border: 2px dashed #c7d2fe;
  border-radius: 12px;
  background: linear-gradient(180deg, #f5f7ff, #fafbff);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.file-drop:hover { border-color: #6366f1; background: #eef2ff; }
.file-drop.dragover {
  border-color: #6366f1;
  background: #eef2ff;
  transform: scale(1.01);
  box-shadow: 0 4px 20px rgba(99,102,241,.2);
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.fd-icon {
  width: 52px; height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  line-height: 52px;
  box-shadow: 0 4px 14px rgba(99,102,241,.3);
}
.fd-title { font-size: 15px; color: #1f2937; font-weight: 500; }
.fd-sub { font-size: 12px; color: #6b7280; margin-top: 6px; }
.fd-picked { font-size: 12px; color: #6366f1; margin-top: 8px; min-height: 18px; }

.btn-upload { align-self: flex-start; }

/* 上传队列 */
.upload-queue {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafbfc;
}
.upload-queue:empty { display: none; }
.q-row {
  display: grid;
  grid-template-columns: 1fr 140px 110px;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #eef0f3;
  font-size: 12.5px;
}
.q-row:last-child { border-bottom: none; }
.q-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #374151;
}
.q-bar { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.q-bar-in { height: 100%; width: 0; background: linear-gradient(90deg, #6366f1, #8b5cf6); transition: width .2s; }
.q-status { color: #6b7280; text-align: right; }
.q-row[data-status="done"]  .q-bar-in { background: #16a34a; }
.q-row[data-status="error"] .q-bar-in { background: #dc2626; width: 100% !important; }
.q-row[data-status="done"]  .q-status { color: #16a34a; font-weight: 500; }
.q-row[data-status="error"] .q-status { color: #dc2626; font-weight: 500; }

/* ========== 表格 ========== */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.tbl th, .tbl td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
  border-bottom: 1px solid #f1f2f5;
}
.tbl th {
  background: #fafbfc;
  color: #6b7280;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr:hover { background: #fafbff; }
.tbl .thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.tbl .thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
  font-size: 18px;
  text-decoration: none;
}
.tbl .thumb-video:hover { text-decoration: none; }
.tbl .cell-title {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2937;
  font-weight: 500;
}
.tbl .cell-time { color: #9ca3af; font-size: 12px; white-space: nowrap; }
.tbl .cell-count { font-variant-numeric: tabular-nums; color: #4b5563; }
.tbl .empty { text-align: center; color: #6b7280; padding: 40px; }

.type-image, .type-video {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
}
.type-image { background: #ecfdf5; color: #047857; }
.type-video { background: #eff6ff; color: #1d4ed8; }

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 500;
}
.tag.red { background: #fee2e2; color: #b91c1c; }

.state {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}
.state-ok   { background: #dcfce7; color: #166534; }
.state-lock { background: #fef3c7; color: #92400e; }
.state-used { background: #f3f4f6; color: #6b7280; }

.ops { white-space: nowrap; }
.ops button {
  padding: 5px 10px;
  font-size: 12px;
  margin-right: 4px;
  border-radius: 6px;
}
.btn-del    { background: #ef4444; }
.btn-del:hover   { background: #dc2626; }
.btn-unlock { background: #64748b; }
.btn-unlock:hover{ background: #475569; }

/* ========== 前台 ========== */
.front-header {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  padding: 20px;
  text-align: center;
}
.front-header h1 { margin: 0 0 10px; font-size: 22px; }
.tabs { display: inline-flex; gap: 6px; }
.tabs .tab {
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.12);
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 13px;
}
.tabs .tab.active { background: #fff; color: #2563eb; }
.tabs .tab:hover { text-decoration: none; }

.filter-bar {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}
.date-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  padding: 4px 10px 4px 12px;
  border-radius: 18px;
  color: #fff;
  font-size: 13px;
  margin: 0;
}
.date-filter span { color: rgba(255,255,255,.85); }
.date-filter select {
  width: auto;
  background: #fff;
  color: #111827;
  border: none;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12.5px;
  cursor: pointer;
}
.date-filter select:focus { box-shadow: 0 0 0 2px rgba(255,255,255,.4); }

.card-item .info-sub {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #9ca3af;
  margin-top: -2px;
}
.card-item .date { font-variant-numeric: tabular-nums; }

/* 顶部提示条 */
.grid-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}
.tip-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 4px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 50%, #fee2e2 100%);
  border: 1px solid #fde68a;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(251, 191, 36, .15);
  position: relative;
  overflow: hidden;
}
.tip-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #f59e0b, #ef4444);
}
.tip-banner .tip-ico {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(249, 115, 22, .4);
}
.tip-banner .tip-text {
  flex: 1;
  line-height: 1.55;
  min-width: 0;
}
.tip-banner .tip-text strong {
  display: block;
  color: #b45309;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: .5px;
}
.tip-banner .tip-text span {
  color: #78350f;
  font-size: 14px;
}
.tip-banner .tip-text b {
  color: #dc2626;
  padding: 1px 8px;
  background: #fff;
  border-radius: 6px;
  font-weight: 600;
  margin: 0 2px;
  box-shadow: 0 1px 3px rgba(220, 38, 38, .2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  padding: 16px 0;
  max-width: none;
  margin: 0;
}
.loading, .empty-front {
  grid-column: 1 / -1;
  text-align: center;
  color: #6b7280;
  padding: 60px 0;
}
.card-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  transition: transform .2s;
}
.card-item:hover { transform: translateY(-2px); }
.card-item .preview {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-item .preview img,
.card-item .preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-item .meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.card-item .title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-item .info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}
.card-item .btn { width: 100%; }
.card-item .btn.once { background: #dc2626; }
.card-item .btn.once:hover { background: #b91c1c; }
.card-item.mine { outline: 2px solid #16a34a; }
.card-item.mine .btn.once { background: #16a34a; }
.card-item.mine .btn.once:hover { background: #15803d; }

.front-footer {
  text-align: center;
  padding: 20px;
  color: #6b7280;
  font-size: 12px;
}

/* ========== 图片灯箱 ========== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 20px;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.lightbox .lb-close {
  position: absolute;
  top: 14px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 22px; line-height: 36px; text-align: center;
  cursor: pointer;
}
.card-item .preview img { cursor: zoom-in; }

/* 微信/QQ 适配 */
.wx-tip-bar {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  color: #92400e;
  border-bottom: 1px solid #fcd34d;
  font-size: 13px;
}
.wx-tip-inner {
  max-width: 900px; margin: 0 auto; padding: 10px 14px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
}
.wx-tip-inner strong { color: #78350f; }
.wx-tip-inner span { flex: 1; min-width: 200px; }
.wx-tip-inner b { color: #b45309; }
.wx-tip-close {
  background: #92400e; color: #fff !important;
  padding: 4px 10px; border-radius: 12px; font-size: 12px;
  text-decoration: none !important;
}
.wx-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9999; padding: 20px; color: #fff; cursor: pointer;
}
.wx-arrow {
  position: absolute; top: 8px; right: 14px;
  font-size: 64px; line-height: 1; color: #fcd34d;
  animation: wx-bounce 1s ease-in-out infinite;
}
@keyframes wx-bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
.wx-guide {
  margin-top: 100px; text-align: center;
  font-size: 16px; line-height: 2.2;
}
.wx-guide b { color: #fcd34d; }
.wx-guide-close {
  display: inline-block;
  margin-top: 20px; padding: 8px 22px;
  background: #fff; color: #111827 !important;
  border-radius: 22px; font-size: 14px;
  text-decoration: none !important;
}
.lb-tip {
  position: absolute; bottom: 20px; left: 0; right: 0;
  text-align: center; color: #fff; font-size: 14px;
  background: rgba(0,0,0,.5);
  padding: 8px 16px;
}

/* 保存到相册预览层 */
.album-save {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 10000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 16px;
  cursor: pointer;
}
.album-save img,
.album-save video {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: #000;
  border-radius: 6px;
  box-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.album-save .as-tip {
  margin-top: 18px;
  color: #fcd34d;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  background: rgba(0,0,0,.55);
  padding: 10px 18px;
  border-radius: 22px;
  max-width: 90%;
  line-height: 1.6;
}
.album-save .as-alt {
  display: inline-block;
  margin-top: 10px;
  color: #93c5fd !important;
  font-size: 13px;
  text-decoration: underline;
}
.album-save .as-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: 24px;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(99,102,241,.5);
}
.album-save .as-tip b {
  color: #fff;
  background: rgba(255,255,255,.15);
  padding: 1px 6px;
  border-radius: 4px;
}
.album-save .as-close {
  position: absolute;
  top: 14px; right: 18px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 24px; line-height: 38px; text-align: center;
  cursor: pointer;
}

/* ========== 移动端 H5 ========== */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .card-item .title { font-size: 13px; }
  .admin-header { padding: 12px 14px; }
  .admin-header h1 { font-size: 15px; }
  .admin-main { padding: 12px; }
  .panel { padding: 16px; border-radius: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sc-num { font-size: 22px; }
  .file-drop { padding: 22px 14px; }
  .fd-title { font-size: 14px; }
  .ah-right { gap: 8px; font-size: 12px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}
