/* ========== 幽灵之门 — 天枢城登录页同款皮肤 ========== */
/* 配色基因：深黑 #050708 + 青绿主调 + 暗红点缀 */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050708;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  color: #e6efed;
  overflow-x: hidden;
  padding: 24px 0;
}

/* 星点 + 弥散光背景 */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(0,220,200,0.55), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, rgba(220,240,235,0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 65% 22%, rgba(0,205,180,0.6), transparent 60%),
    radial-gradient(1px 1px at 82% 58%, rgba(240,200,200,0.32), transparent 60%),
    radial-gradient(1px 1px at 50% 90%, rgba(220,240,235,0.3), transparent 60%),
    radial-gradient(1.2px 1.2px at 38% 38%, rgba(0,200,180,0.42), transparent 60%),
    radial-gradient(1px 1px at 92% 88%, rgba(240,200,200,0.35), transparent 60%),
    radial-gradient(1.4px 1.4px at 15% 55%, rgba(180,230,220,0.5), transparent 60%),
    radial-gradient(1px 1px at 72% 80%, rgba(255,220,220,0.32), transparent 60%),
    radial-gradient(ellipse 70% 50% at 30% 15%, rgba(0,180,160,0.10), transparent 70%),
    radial-gradient(ellipse 65% 50% at 85% 92%, rgba(180,40,55,0.09), transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(10,30,32,0.6), transparent 80%);
  filter: blur(0.2px);
  animation: twinkle 8s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes twinkle { from { opacity: 0.85; } to { opacity: 1; } }

/* 卡片 */
.card {
  position: relative;
  z-index: 2;
  width: min(420px, calc(100% - 32px));
  padding: 38px 30px 26px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(14,24,26,0.78), rgba(8,12,14,0.85));
  border: 1px solid rgba(220,80,90,0.32);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 0 28px rgba(180,40,55,0.12),
    0 0 40px rgba(0,180,160,0.06);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  text-align: center;
  animation: card-in 0.5s ease;
}
.card.wide { width: min(720px, calc(100% - 32px)); text-align: left; }
@keyframes card-in { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.logo { display: flex; justify-content: center; margin-bottom: 18px; }
.logo img {
  width: 108px; height: 108px; object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(0,205,180,0.42)) drop-shadow(0 0 18px rgba(200,50,60,0.28));
}

.title {
  font-size: 24px; font-weight: 300; letter-spacing: 10px; padding-left: 10px;
  color: #e8f5f2; text-shadow: 0 0 28px rgba(0,210,185,0.32);
  font-family: 'Helvetica Neue', 'Avenir Next', -apple-system, sans-serif;
}
.divider {
  width: 32px; height: 1.5px; margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, rgba(220,80,90,0.85), transparent);
  box-shadow: 0 0 8px rgba(220,80,90,0.5);
}
.subtitle {
  margin-top: 10px; font-size: 11px; letter-spacing: 3px;
  color: rgba(180,220,215,0.55); text-transform: uppercase;
}
.hint { margin-top: 14px; font-size: 12px; line-height: 1.7; color: rgba(180,210,205,0.65); }

/* 表单 */
.field { margin-top: 16px; text-align: left; }
.field label { display: block; font-size: 12px; letter-spacing: 1px; color: rgba(180,220,215,0.7); margin-bottom: 6px; }
.input {
  width: 100%; padding: 11px 14px; font-size: 14px;
  color: #e6efed; background: rgba(6,12,13,0.65);
  border: 1px solid rgba(0,190,170,0.22); border-radius: 12px;
  outline: none; transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.input:focus { border-color: rgba(0,210,185,0.55); box-shadow: 0 0 0 3px rgba(0,190,170,0.10); }
.input::placeholder { color: rgba(150,180,175,0.4); }
textarea.input { resize: vertical; min-height: 64px; }

.btn {
  display: inline-block; width: 100%; margin-top: 18px; padding: 12px 0;
  font-size: 14px; letter-spacing: 4px; text-indent: 4px; text-align: center;
  color: #06110f; font-weight: 600; cursor: pointer;
  background: linear-gradient(135deg, rgba(0,205,180,0.9), rgba(0,170,150,0.85));
  border: none; border-radius: 12px;
  box-shadow: 0 0 22px rgba(0,200,175,0.25);
  transition: transform .12s, box-shadow .2s, opacity .2s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.danger {
  color: #f5e6e6;
  background: linear-gradient(135deg, rgba(190,50,60,0.9), rgba(150,35,45,0.9));
  box-shadow: 0 0 22px rgba(190,50,60,0.25);
}
.btn.ghost {
  color: rgba(200,230,225,0.8);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,190,170,0.25);
  box-shadow: none;
}

.msg { margin-top: 14px; font-size: 13px; min-height: 18px; }
.msg.err { color: #ff9a9a; }
.msg.ok  { color: #7fe8d0; }

/* 图片上传块 */
.uploader { margin-top: 16px; text-align: left; }
.upload-box {
  margin-top: 8px; border: 1.5px dashed rgba(0,190,170,0.3); border-radius: 14px;
  padding: 18px 14px; text-align: center; cursor: pointer; position: relative;
  transition: border-color .2s, background .2s; overflow: hidden;
  background: rgba(6,12,13,0.4);
}
.upload-box:hover { border-color: rgba(0,210,185,0.55); background: rgba(0,190,170,0.05); }
.upload-box .up-req { font-size: 12px; color: rgba(255,205,205,0.75); line-height: 1.6; }
.upload-box .up-tip { font-size: 11px; color: rgba(160,190,185,0.55); margin-top: 6px; }
.upload-box img { max-width: 100%; max-height: 220px; border-radius: 8px; display: block; margin: 0 auto; }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box .up-size { font-size: 11px; color: rgba(127,232,208,0.8); margin-top: 6px; }

/* 状态徽章 */
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; letter-spacing: 2px;
}
.badge.pending  { background: rgba(200,180,80,0.12); color: #e8d98a; border: 1px solid rgba(200,180,80,0.3); }
.badge.approved { background: rgba(0,200,175,0.12); color: #7fe8d0; border: 1px solid rgba(0,200,175,0.35); }
.badge.rejected { background: rgba(200,60,70,0.12); color: #ff9a9a; border: 1px solid rgba(200,60,70,0.35); }

/* 结果面板 */
.result { margin-top: 18px; text-align: left; }
.result-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 14px; margin-top: 10px; border-radius: 12px;
  background: rgba(6,12,13,0.6); border: 1px solid rgba(0,190,170,0.15);
}
.result-row .k { font-size: 12px; color: rgba(180,220,215,0.6); flex-shrink: 0; }
.result-row .v { font-size: 14px; color: #e8f5f2; word-break: break-all; text-align: right; }
.copy-btn {
  flex-shrink: 0; padding: 4px 10px; font-size: 11px; border-radius: 8px; cursor: pointer;
  color: #7fe8d0; background: rgba(0,190,170,0.1); border: 1px solid rgba(0,190,170,0.3);
  font-family: inherit;
}

.link-row { margin-top: 18px; font-size: 12px; color: rgba(160,190,185,0.55); }
.link-row a { color: rgba(0,210,185,0.75); text-decoration: none; }
.link-row a:hover { text-decoration: underline; }

/* ===== 管理页 ===== */
.admin-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
  border-bottom: 1px solid rgba(0,190,170,0.15); padding-bottom: 12px;
}
.admin-head .who { font-size: 13px; color: rgba(180,220,215,0.7); }
.admin-head button {
  padding: 5px 12px; font-size: 12px; border-radius: 8px; cursor: pointer;
  color: rgba(200,230,225,0.8); background: rgba(255,255,255,0.04);
  border: 1px solid rgba(220,80,90,0.3); font-family: inherit;
}
.counts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.counts .cnt { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.04); color: rgba(190,220,215,0.75); }

.ticket-list { max-height: 52vh; overflow-y: auto; }
.ticket-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; margin-top: 8px; border-radius: 12px; cursor: pointer;
  background: rgba(6,12,13,0.6); border: 1px solid rgba(0,190,170,0.12);
  transition: border-color .15s;
}
.ticket-item:hover { border-color: rgba(0,210,185,0.4); }
.ticket-item .tq { font-size: 13px; color: #e6efed; }
.ticket-item .tm { font-size: 11px; color: rgba(160,190,185,0.5); margin-top: 2px; }
.ticket-item .badge { font-size: 11px; padding: 2px 9px; }

/* 审核详情面板 */
.detail-imgs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.detail-imgs figure { flex: 1 1 260px; min-width: 240px; text-align: center; }
.detail-imgs figcaption { font-size: 11px; color: rgba(180,220,215,0.6); margin-top: 6px; line-height: 1.5; }
.detail-imgs img {
  max-width: 100%; max-height: 46vh; border-radius: 10px; cursor: zoom-in;
  border: 1px solid rgba(0,190,170,0.2);
}
.detail-actions { display: flex; gap: 10px; margin-top: 16px; }
.detail-actions .btn { margin-top: 0; }

/* 图片放大灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; background: rgba(0,0,0,0.88); cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 96vw; max-height: 96vh; border-radius: 8px; }

@media (max-width: 480px) {
  .card { padding: 28px 18px 20px; }
  .title { font-size: 20px; letter-spacing: 7px; padding-left: 7px; }
  .detail-imgs figure { flex: 1 1 100%; }
}