body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 50% -100px, rgba(22, 119, 255, 0.14), transparent 58%),
    linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  min-height: 100vh;
}
#base {
  position: relative;
  min-height: 100vh;
  padding: 28px 20px 100px;
  box-sizing: border-box;
}
.page-shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 8px 0 4px;
}
.back-link {
  display: inline-block;
  font-size: 13px;
  color: #1677ff;
  text-decoration: none;
  margin-bottom: 10px;
}
.back-link:hover { text-decoration: underline; }
.page-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
  color: #0f172a;
}
.page-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.page-block {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 24px 28px 28px;
  margin-bottom: 16px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.045);
}
.page-block.done-block {
  position: relative;
}
.page-block.focus-block {
  border-color: rgba(22, 119, 255, 0.22);
  box-shadow: 0 12px 36px rgba(22, 119, 255, 0.08);
}
.block-head {
  font-size: 16px;
  font-weight: 650;
  color: #0f172a;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.block-head .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1677ff, #3b82f6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(22, 119, 255, 0.28);
}
.tag-done {
  margin-left: auto;
  font-size: 12px;
  font-weight: 650;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 2px 10px;
}
.tag-new {
  margin-left: auto;
  font-size: 12px;
  font-weight: 650;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 2px 10px;
}
.block-desc {
  font-size: 13px;
  color: #64748b;
  margin: -6px 0 16px;
  line-height: 1.6;
}
.block-desc.tight { margin-top: 0; margin-bottom: 14px; }
.inline-txt {
  line-height: 36px;
  font-size: 14px;
  color: #334155;
}

.section-title {
  font-size: 14px;
  font-weight: 650;
  color: #0f172a;
  margin: 22px 0 10px;
  padding-left: 10px;
  border-left: 3px solid #1677ff;
}

.form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  min-height: 36px;
}
.form-label {
  width: 128px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 16px;
  font-size: 14px;
  line-height: 36px;
  color: #334155;
}
.form-label.top { line-height: 1.45; padding-top: 10px; }
.form-label .req { color: #ef4444; }
.form-body { flex: 1; min-width: 0; }

.input-text {
  width: 100%;
  max-width: 420px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  box-sizing: border-box;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input-text:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}
.input-text.short { max-width: 120px; }
.upload-hint { font-size: 12px; color: #94a3b8; margin-top: 6px; line-height: 1.6; }

/* —— 竞猜模板风格上传区 —— */
.am-upload {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  width: 100%;
  max-width: 680px;
  box-sizing: border-box;
}
.am-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) {
  .am-pair { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .form-label { width: auto; text-align: left; padding-right: 0; margin-bottom: 8px; }
}
.slot-label { margin-bottom: 8px; }
.slot-label .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.slot-label .tag.h5 {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.slot-label .tag.pc {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.ph {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(22,119,255,.06), rgba(15,23,42,.04)),
    #e8eef5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.ph:hover {
  border-color: #1677ff;
  color: #1677ff;
  background:
    linear-gradient(135deg, rgba(22,119,255,.1), rgba(59,130,246,.06)),
    #eef4ff;
  transform: translateY(-1px);
}
.ph.tall { height: 128px; }
.ph.tall.hero { height: 148px; }
.ph.mid { height: 96px; }
.ph.btn-ph { height: 96px; border-radius: 10px; max-width: none; }
.ph input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph.btn-ph img { object-fit: contain; background: #fff; padding: 8px; box-sizing: border-box; }
.ph.has-img .ph-txt { display: none; }
.ph .ph-txt {
  position: relative;
  z-index: 1;
  pointer-events: none;
  text-align: center;
  padding: 0 12px;
  line-height: 1.4;
}

.tip {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.tip-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #b45309;
  margin-top: 10px;
  max-width: 680px;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
  border-radius: 8px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}
.data-table th,
.data-table td {
  border: 1px solid #eef2f7;
  padding: 12px;
  text-align: left;
}
.data-table th {
  background: #f8fafc;
  font-weight: 650;
  color: #64748b;
}
.data-table td.ops { white-space: nowrap; }
.link-btn {
  color: #1677ff;
  cursor: pointer;
  margin-right: 12px;
  background: none;
  border: none;
  font-size: 13px;
  padding: 0;
}
.link-btn.danger { color: #ef4444; }
.btn-add-row {
  padding: 7px 16px;
  font-size: 13px;
  border: 1px dashed #93c5fd;
  color: #1677ff;
  background: #eff6ff;
  border-radius: 8px;
  cursor: pointer;
}
.btn-add-row:hover { background: #dbeafe; }

.footer-btns {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 14px 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.04);
}
.btn {
  min-width: 96px;
  padding: 9px 24px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: #1677ff; color: #1677ff; }
.btn-primary {
  background: linear-gradient(135deg, #1677ff, #3b82f6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.28);
}
.btn-primary:hover {
  color: #fff;
  filter: brightness(1.05);
}
.btn-preview {
  background: #fff;
  color: #1677ff;
  border-color: #93c5fd;
}
.btn-preview:hover {
  background: #eff6ff;
  border-color: #1677ff;
  color: #1677ff;
}

.toast {
  position: fixed;
  left: 50%;
  top: 72px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 2000;
  max-width: min(90vw, 420px);
  text-align: center;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}
.toast.show { opacity: 1; }

/* —— 活动内容 / 活动规则 —— */
.block-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.btn-insert {
  background: linear-gradient(135deg, #1677ff, #3b82f6) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.25);
}
.btn-insert:hover { filter: brightness(1.05); color: #fff !important; }
.block-note {
  font-size: 12px;
  color: #ef4444;
  font-weight: 650;
}
.empty-row td {
  text-align: center;
  color: #94a3b8;
  padding: 28px 10px !important;
}
.thumb {
  width: 56px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #f3f4f6;
  display: block;
}
.thumb-ph {
  width: 56px;
  height: 40px;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 11px;
}
.type-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  margin-right: 4px;
}
.type-pill.img { background: #ecfdf5; color: #047857; }

.admin-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-modal-mask.show { display: flex; }
.admin-modal {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}
.admin-modal .am-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 700;
  font-size: 15px;
}
.admin-modal .am-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.admin-modal .am-bd { padding: 18px 22px 8px; }
.admin-modal .am-ft {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 18px 16px;
  border-top: 1px solid #f1f5f9;
}
.am-row { margin-bottom: 14px; }
.am-row > .am-label { font-weight: 700; margin-bottom: 8px; color: #374151; font-size: 13px; }
.am-row .req { color: #ef4444; }
.am-radios { display: flex; gap: 20px; align-items: center; }
.am-radios label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.am-field input[type="text"] {
  width: 100%;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  box-sizing: border-box;
}
.am-field input[type="text"]:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}
.am-select {
  width: 100%;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  background: #fff;
  box-sizing: border-box;
}
.am-select:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}
.btn-insert.disabled,
.btn-insert:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.thumb-ph.theme-deposit { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #fff; font-weight: 700; }
.thumb-ph.theme-vip { background: linear-gradient(135deg, #fef3c7, #d4a017); color: #7c2d12; font-weight: 700; }
.thumb-ph.theme-match { background: linear-gradient(135deg, #86efac, #16a34a); color: #fff; font-weight: 700; }
.thumb-ph.theme-rebate { background: linear-gradient(135deg, #a5b4fc, #6366f1); color: #fff; font-weight: 700; }
.thumb-ph.theme-wc { background: linear-gradient(135deg, #74c0ff, #1d4ed8); color: #fff; font-weight: 700; }

/* 场馆三级级联 */
.venue-cascade { display: flex; flex-direction: column; gap: 12px; }
.cascade-step {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 10px 12px;
}
.cascade-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}
.cascade-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.cascade-radios label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  padding: 4px 2px;
}
.cascade-radios label:hover { color: #1677ff; }
.cascade-path {
  font-size: 12px;
  color: #1677ff;
  font-weight: 650;
  margin-top: 2px;
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .2s;
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
  transition: transform .2s;
}
.switch.on {
  background: linear-gradient(135deg, #1677ff, #3b82f6);
}
.switch.on::after {
  transform: translateX(20px);
}
.switch-txt {
  font-size: 13px;
  color: #334155;
  font-weight: 650;
}
.am-err { color: #ef4444; font-size: 12px; margin-top: 6px; display: none; }
.am-err.show { display: block; }
.am-hint { font-size: 12px; color: #64748b; margin-top: 4px; line-height: 1.6; }
.am-upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.am-upload-slot .slot-label { font-weight: 700; margin-bottom: 8px; font-size: 13px; }
.am-plus {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 28px;
  cursor: pointer;
  overflow: hidden;
}
.am-plus:hover { border-color: #1677ff; color: #1677ff; }
.am-plus input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.am-plus img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.am-plus.has-img .plus-ico { display: none; }

.page-block a { color: #1677ff; }
