/* 北京亦庄沉浸式反诈实训体验中心 - 公共样式（蓝色主题版） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #1f2937; background: #f0f4f8; }
a { color: #2563eb; text-decoration: none; }
.btn { display: inline-block; padding: 10px 18px; background: #2563eb; color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-size: 14px; }
.btn:hover { background: #1d4ed8; }
.btn-ghost { background: #fff; color: #2563eb; border: 1px solid #2563eb; }
.btn-ghost:hover { background: #eff6ff; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn:disabled { background: #cbd5e1; cursor: not-allowed; }
.container { max-width: 720px; margin: 0 auto; padding: 0 16px 90px; }
.card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(30, 64, 175, 0.06); }
.input { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; margin-bottom: 12px; }
.input:focus { outline: 0; border-color: #2563eb; }
.label { font-size: 13px; color: #4b5563; margin-bottom: 6px; display: block; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.badge-1 { background: #dbeafe; color: #1e40af; }
.badge-2 { background: #d1fae5; color: #065f46; }
.badge-3 { background: #fee2e2; color: #991b1b; }
.badge-4 { background: #e5e7eb; color: #374151; }
.muted { color: #6b7280; font-size: 12px; }
.toast { position: fixed; left: 50%; top: 30%; transform: translateX(-50%); background: rgba(0,0,0,0.78); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 9999; font-size: 14px; max-width: 80%; }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 9000; }
.modal { background: #fff; border-radius: 12px; padding: 20px; max-width: 90%; width: 420px; }
.topbar { display: none; }
/* Top bar - 蓝色科技风 */
.topbar {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(30, 58, 138, 0.25);
}
.topbar h1 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0.5px; }
.topbar a { color: #fff; }
.topbar .back { font-size: 18px; margin-right: 10px; cursor: pointer; }

.calendar .day {
  aspect-ratio: 1;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  padding: 4px 0;
}

.calendar .day.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.calendar .day.personal {
  background: #fff;
  border: 1.5px solid #2563eb;
  color: #2563eb;
}

.calendar .day.group {
  background: #eff6ff;
  color: #2563eb;
}

.calendar .day.saturday {
  color: #b45309;
}


/* Banner 轮播 - 蓝色渐变占位 */
.banner {
  width: 100%;
  /* height: 220px;   */
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  margin-bottom: 16px;
  box-shadow: 0 6px 24px rgba(30, 58, 138, 0.25);
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f0f4f8;
}

.banner-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
  pointer-events: none;
}
.banner .dots {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  text-align: center;
  z-index: 2;
}
.banner .dots span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  margin: 0 4px;
  transition: all 0.3s;
}
.banner .dots span.active {
  background: #fff;
  width: 18px;
  border-radius: 4px;
}

/* 网格入口 */
.entry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.entry {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.06);
  cursor: pointer;
  color: #1f2937;
  transition: transform 0.15s, box-shadow 0.15s;
}
.entry:active { transform: scale(0.98); box-shadow: 0 1px 4px rgba(30, 64, 175, 0.1); }
.entry .icon { font-size: 32px; margin-bottom: 8px; color: #2563eb; }
.entry .title { font-size: 14px; font-weight: 600; color: #1e3a8a; }
.entry .desc { font-size: 12px; color: #6b7280; margin-top: 4px; }

/* 日历 */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar .cal-head { text-align: center; font-size: 12px; color: #6b7280; padding: 8px 0; }
.calendar .day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; border-radius: 6px; cursor: pointer; }
.calendar .day.disabled { color: #cbd5e1; cursor: not-allowed; }
.calendar .day.active { background: #2563eb; color: #fff; }
.calendar .day.personal { background: #fff; border: 1.5px solid #2563eb; color: #2563eb; }
.calendar .day.group { background: #eff6ff; color: #2563eb; }
.calendar .day.saturday { color: #b45309; }

/* 场次卡片 */
.session-list { display: flex; flex-direction: column; gap: 8px; }
.session {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.15s;
}
.session:not(.full):hover { border-color: #2563eb; }
.session .meta { flex: 1; }
.session .name { font-size: 15px; font-weight: 600; color: #1e3a8a; }
.session .time { color: #6b7280; font-size: 13px; }
.session.full { opacity: 0.55; }

/* 订单列表 */
.order-item {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.06);
}
.order-item .top { display: flex; justify-content: space-between; align-items: center; }
.order-item .no { font-family: monospace; color: #6b7280; font-size: 12px; }
.order-item .body { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.order-item .date { font-size: 18px; font-weight: 600; color: #2563eb; }
.order-item .meta { font-size: 12px; color: #6b7280; }
.order-item .actions { margin-top: 10px; display: flex; gap: 8px; }

/* 底部 tab */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(30, 64, 175, 0.06);
  padding-bottom: env(safe-area-inset-bottom); 
}
.tabbar a { flex: 1; text-align: center; padding: 8px 0; color: #6b7280; font-size: 12px; }
.tabbar a.active { color: #2563eb; font-weight: 600; }
.tabbar a .icon { font-size: 22px; display: block; }

.spacer-bottom { height: 64px; }

/* 列表项 */
.list-item { background: #fff; padding: 14px; border-bottom: 1px solid #f3f4f6; cursor: pointer; }
.list-item:active { background: #f9fafb; }
.list-item .title { font-size: 15px; margin-bottom: 4px; color: #1e3a8a; }
.list-item .meta { font-size: 12px; color: #6b7280; }

/* 文章内容 */
.article-content { line-height: 1.8; color: #374151; white-space: pre-wrap; }

/* QR */
.qr-placeholder { width: 200px; height: 200px; border: 1px dashed #cbd5e1; margin: 16px auto; display: flex; align-items: center; justify-content: center; color: #6b7280; font-size: 12px; text-align: center; }
.qr-code-text { font-family: monospace; background: #f3f4f6; padding: 8px; border-radius: 4px; font-size: 12px; word-break: break-all; max-height: 100px; overflow: auto; }

/* 后台管理 - 保持深色主题不变 */
.admin-layout { display: flex; min-height: 100vh; }
.admin-side { width: 200px; background: #1f2937; color: #fff; padding: 16px 0; }
.admin-side .brand { padding: 0 16px 16px; font-size: 16px; font-weight: 600; border-bottom: 1px solid #374151; }
.admin-side a { display: block; padding: 10px 16px; color: #d1d5db; font-size: 14px; cursor: pointer; }
.admin-side a.active, .admin-side a:hover { background: #374151; color: #fff; }
.admin-main { flex: 1; padding: 20px; overflow: auto; }
.admin-card { background: #fff; padding: 16px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 12px; }
.admin-card h2 { margin-top: 0; font-size: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #f3f4f6; }
.admin-table th { background: #f9fafb; font-weight: 600; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card { background: #fff; padding: 16px; border-radius: 8px; text-align: center; }
.stat-card .num { font-size: 28px; font-weight: 600; color: #2563eb; }
.stat-card .lbl { color: #6b7280; font-size: 12px; margin-top: 4px; }
#noticeList > div:last-child {
  border-bottom: none !important;
}