/* ============================================================
   活动「线上开讲 · 线下碰面」· 样式表（events.css）
   只服务 events_index / events_detail / events_ticket 与
   admin_events / admin_events_form / admin_events_checkin /
   admin_events_signups；不动 style.css 与 admin.css。
   全站无阴影：层次一律 1px 细边线 + 半透明底。
   类名统一 event- 前缀，且一律挂在 .thm-events 之下，避免污染其它模块。
   形态两色：线上=青、线下=琥珀；满员=红。
   ============================================================ */

.thm-events {
  --ev-online: #0e9488;
  --ev-online-soft: rgba(14, 148, 136, .12);
  --ev-offline: #d97706;
  --ev-offline-soft: rgba(217, 119, 6, .12);
  --ev-over: #e5484d;
  --ev-over-soft: rgba(229, 72, 77, .1);
}

/* ============================================================
   一、形态徽标（线上 / 线下 / 满员）
   ============================================================ */
.thm-events .event-mode {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 12px;
  line-height: 1.7;
  font-weight: 600;
  letter-spacing: .4px;
  white-space: nowrap;
}
.thm-events .event-mode-online { color: var(--ev-online); background: var(--ev-online-soft); border-color: rgba(14, 148, 136, .3); }
.thm-events .event-mode-offline { color: var(--ev-offline); background: var(--ev-offline-soft); border-color: rgba(217, 119, 6, .32); }
.thm-events .event-mode-full { color: var(--ev-over); background: var(--ev-over-soft); border-color: rgba(229, 72, 77, .3); }

/* ============================================================
   二、页头 hero：一张钉在墙上的日程板 —— 底部时间刻度尺、
      右上撕页日历、右下格点纸与几枚图钉
   ============================================================ */
.thm-events .event-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
  min-height: 200px;
  box-sizing: border-box;
  padding: 22px 30px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(960px 400px at 88% -16%, rgba(217, 119, 6, .16), transparent 58%),
    radial-gradient(840px 380px at 2% 120%, rgba(14, 148, 136, .14), transparent 56%),
    linear-gradient(158deg, #f3fbfa 0%, #eef4ff 52%, #fff7ec 100%);
}
.thm-events .event-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
/* 场景：右侧线上信号塔（青）+ 三圈信号波、再往右是线下场馆天际线（墨），
   同立在底部一条时间轴之上；左下留白给文案，避免与标题/胶囊互相压叠 */
.thm-events .event-scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 150px;
}
.thm-events .event-signal path {
  fill: none;
  stroke: rgba(14, 148, 136, .4);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.thm-events .event-tower path { fill: rgba(13, 110, 102, .4); }
.thm-events .event-city path { fill: rgba(28, 37, 54, .12); }
.thm-events .event-rail { fill: none; stroke: rgba(14, 148, 136, .28); stroke-width: 1.5; }
.thm-events .event-rail-pin circle { fill: var(--ev-online); animation: eventPin 2.8s ease-in-out infinite; }
.thm-events .event-rail-pin circle:nth-child(2) { fill: var(--ev-offline); animation-delay: .6s; }
.thm-events .event-rail-pin circle:nth-child(3) { animation-delay: 1.2s; }
/* 时间刻度尺：贴着底部的一条时间轴，长短刻度向左渐隐 */
.thm-events .event-ruler {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  border-top: 1px solid var(--hairline);
  background-image:
    repeating-linear-gradient(90deg, var(--brand-line) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, var(--hairline) 0 1px, transparent 1px 14px);
  background-size: auto 15px, auto 8px;
  background-position: left bottom, left bottom;
  background-repeat: repeat-x, repeat-x;
  -webkit-mask-image: linear-gradient(90deg, #000 0 62%, transparent);
  mask-image: linear-gradient(90deg, #000 0 62%, transparent);
}
/* 右下角的凭证提示：一枚线上色胶囊，像钉在时间轴末端的便签 */
.thm-events .event-note {
  position: absolute;
  right: 24px;
  bottom: 36px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid rgba(14, 148, 136, .28);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--ev-online);
  animation: eventPin 3.2s ease-in-out infinite;
}
@keyframes eventPin {
  0%, 100% { opacity: .28; }
  50% { opacity: .68; }
}
@media (prefers-reduced-motion: reduce) {
  .thm-events .event-rail-pin circle,
  .thm-events .event-note { animation: none; opacity: .6; }
}

/* 撕页日历：右上角一叠日历页，页眉一条色带 */
.thm-events .event-cal {
  position: absolute;
  top: 18px;
  right: 22px;
  display: flex;
  flex-direction: column;
  width: 62px;
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .74);
  text-align: center;
  pointer-events: none;
}
.thm-events .event-cal-top {
  padding: 3px 0;
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
}
.thm-events .event-cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  font-size: 21px;
  color: var(--brand-strong);
}

.thm-events .event-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid rgba(14, 148, 136, .28);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(6px);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--ev-online);
}
/* 抬头标签：一枚小色块 + 一行小字 + 一道渐隐细线，取代千篇一律的胶囊 */
.thm-events .event-hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--muted);
}
.thm-events .event-hero-label span {
  padding: 2px 8px 2px 9px;
  border-radius: 4px;
  background: var(--ev-online);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
}
.thm-events .event-hero-label::after {
  content: "";
  flex: 0 0 72px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-line), transparent);
}
.thm-events .event-hero-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: .5px;
  color: var(--ink);
}
/* 报名流程：四步一条流水线，用虚线分段，把「怎么参加」讲清楚 */
.thm-events .event-hero-flow {
  display: flex;
  flex-wrap: wrap;
  max-width: 672px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed rgba(14, 148, 136, .3);
  border-bottom: 1px dashed rgba(14, 148, 136, .3);
}
.thm-events .event-hero-flow li {
  flex: 1 1 148px;
  padding: 9px 16px 9px 0;
}
.thm-events .event-hero-flow li + li {
  padding-left: 16px;
  border-left: 1px dashed rgba(14, 148, 136, .22);
}
.thm-events .event-hero-flow i {
  display: block;
  font-family: var(--mono);
  font-size: 15px;
  font-style: normal;
  line-height: 1;
  color: rgba(14, 148, 136, .45);
}
.thm-events .event-hero-flow b {
  display: block;
  margin: 4px 0 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.thm-events .event-hero-flow em {
  display: block;
  font-size: 11px;
  font-style: normal;
  line-height: 1.55;
  color: var(--muted);
}
/* 形态统计：不再是一排胶囊，而是带色点的图例行 */
.thm-events .event-hero-feet {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
}
.thm-events .ev-leg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-soft);
}
.thm-events .ev-leg i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.thm-events .ev-leg b {
  font-family: var(--mono);
  font-size: 14px;
}
.thm-events .ev-leg-online { color: var(--ev-online); }
.thm-events .ev-leg-offline { color: var(--ev-offline); }
.thm-events .ev-leg-all { color: var(--ink-soft); }
/* hero 文案一律浮在底衬场景之上 */
.thm-events .event-hero-label,
.thm-events .event-hero-title,
.thm-events .event-hero-flow,
.thm-events .event-hero-feet { position: relative; z-index: 1; }

/* ============================================================
   三、形态筛选：一排方点日程片（全部 / 线上 / 线下）
   ============================================================ */
.thm-events .event-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 18px 0;
}
.thm-events .event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.thm-events .event-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .72);
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
  transition: border-color .18s, color .18s, background .18s;
}
.thm-events .event-tab em {
  font-style: normal;
  font-size: 11.5px;
  padding: 0 6px;
  border-radius: 3px;
  background: rgba(47, 111, 237, .08);
  color: var(--muted);
}
.thm-events .event-tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand-line);
  transition: background .18s;
}
.thm-events .event-tab:hover { border-color: var(--brand-line); color: var(--brand-strong); }
.thm-events .event-tab.on {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.thm-events .event-tab.on em { background: rgba(255, 255, 255, .22); color: #fff; }
.thm-events .event-tab.on .event-tab-dot { background: #fff; }
.thm-events .event-filter-hint { font-size: 12.5px; color: var(--muted); }

/* ============================================================
   四、日程时间轴：一根竖轨串起每一场，右侧贴一张活动图
   ============================================================ */
.thm-events .event-timeline {
  position: relative;
  padding-left: 30px;
}
/* 竖轨：一条渐隐的时间线 */
.thm-events .event-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--brand-line);
}
.thm-events .event-timeline > .mod-empty { padding-left: 2px; }
.thm-events .event-stop {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding-bottom: 16px;
}
.thm-events .event-stop:last-child { padding-bottom: 0; }
/* 轨道节点：一颗卡在时间轴上的圆点，线下为琥珀色 */
.thm-events .event-node {
  position: absolute;
  left: -26px;
  top: 15px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: #fff;
}
.thm-events .event-stop[data-mode="offline"] .event-node { border-color: var(--ev-offline); }

/* 日程卡：贴着轨道的一张卡片 */
.thm-events .event-slip {
  flex: 1;
  min-width: 0;
  padding: 15px 17px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .62);
  transition: transform .18s, border-color .18s;
}
.thm-events .event-slip:hover { transform: translateX(2px); border-color: var(--brand-line); }
.thm-events .event-slip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 9px;
}
.thm-events .event-when {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .3px;
  color: var(--brand-strong);
}
.thm-events .event-title {
  margin: 0 0 7px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}
.thm-events .event-title a { color: inherit; }
.thm-events .event-title a:hover { color: var(--brand-strong); }
.thm-events .event-summary {
  margin: 0 0 11px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.thm-events .event-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding-top: 11px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--muted);
}
.thm-events .event-foot .event-place { display: inline-flex; align-items: center; gap: 4px; }
.thm-events .event-foot .event-count { color: var(--brand-strong); }
.thm-events .event-more { margin-left: auto; color: var(--brand-strong); font-weight: 600; }
.thm-events .event-more:hover { text-decoration: underline; }

/* 右侧活动图：一张贴片，随卡片等高，窄屏让位 */
.thm-events .event-thumb {
  flex: none;
  width: 148px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--bg-soft), rgba(233, 241, 254, .5));
}
.thm-events .event-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thm-events .event-thumb-char {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 44px;
  font-weight: 700;
  color: var(--brand);
  opacity: .3;
  user-select: none;
}

/* ============================================================
   五、详情页：正文在上，信息与报名在左
   ============================================================ */
.thm-events .event-article {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .62);
}
.thm-events .event-article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.thm-events .event-badge {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .7);
  font-size: 11.5px;
  color: var(--muted);
}
.thm-events .event-article-title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 29px;
  line-height: 1.4;
  letter-spacing: .5px;
  color: var(--ink);
}
.thm-events .event-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.thm-events .event-article-summary {
  margin: 0;
  padding-left: 13px;
  border-left: 2px solid var(--brand-line);
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.thm-events .event-article-cover {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.thm-events .event-article-cover img { display: block; width: 100%; max-height: 440px; object-fit: cover; }

/* 信息清单：左栏一组「键 — 值」 */
.thm-events .event-facts {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .55);
}
.thm-events .event-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.thm-events .event-fact:last-child { border-bottom: 0; }
.thm-events .event-fact-k { flex: none; color: var(--muted); white-space: nowrap; }
.thm-events .event-fact-v { text-align: right; color: var(--ink); word-break: break-word; }

/* 报名表单 */
.thm-events .event-signup { margin-top: 16px; }
.thm-events .event-signup-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink);
}
.thm-events .event-signup-row { margin-bottom: 11px; }
.thm-events .event-signup-row label {
  display: block;
  margin-bottom: 5px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.thm-events .event-field {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
}
.thm-events .event-field:focus {
  outline: none;
  border-color: var(--brand-line);
  background: #fff;
}
.thm-events textarea.event-field { min-height: 76px; resize: vertical; }
.thm-events .event-signup-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
/* 按钮占满整行，报名动作更明确 */
.thm-events .event-signup .btn { width: 100%; }

/* 提示条：与全站 alert 呼应，但收在 events 语义里 */
.thm-events .event-note {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--brand-line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  font-size: 13px;
  line-height: 1.8;
  color: var(--brand-strong);
}
.thm-events .event-note-warn {
  border-color: rgba(229, 72, 77, .3);
  border-left-color: var(--ev-over);
  background: var(--ev-over-soft);
  color: var(--ev-over);
}

/* ============================================================
   六、报名凭证（票根）：主体 + 虚线撕口 + 二维码存根
   ============================================================ */
.thm-events .event-ticket {
  display: grid;
  grid-template-columns: 1fr 296px;
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .66);
}
.thm-events .event-ticket-main { padding: 26px 28px; }
.thm-events .event-ticket-title {
  margin: 10px 0 12px;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: .5px;
  color: var(--ink);
}
.thm-events .event-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.thm-events .event-ticket-code {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px dashed var(--brand-line);
  border-radius: var(--r-md);
  background: var(--brand-soft);
  text-align: center;
}
.thm-events .event-code {
  font-family: var(--mono);
  font-size: 28px;
  letter-spacing: 5px;
  color: var(--brand-strong);
}
.thm-events .event-ticket-hint {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.thm-events .event-ticket-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
  border-left: 1px dashed var(--brand-line);
  background: rgba(233, 241, 254, .45);
}
.thm-events .event-ticket-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 240px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
.thm-events .event-ticket-qr img { display: block; width: 100%; height: 100%; }
.thm-events .event-ticket-qr .event-ticket-qr-ph { font-size: 12.5px; color: var(--muted); }
.thm-events .event-ticket-perf {
  width: 100%;
  border-top: 1px dashed var(--brand-line);
}
.thm-events .event-ticket-fig {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 4px;
  color: var(--brand-strong);
}

/* ============================================================
   七、后台核验页：扫码通道 + 手工通道 + 结果回执
   ============================================================ */
.thm-events .event-checkin {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.thm-events .event-scan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .6);
}
.thm-events .event-scan-video {
  width: 100%;
  max-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #0f172a;
  object-fit: cover;
}
.thm-events .event-scan-hint {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}
.thm-events .event-scan-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }

/* 手工输入通道：一张表单卡 */
.thm-events .event-manual {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .6);
}
.thm-events .event-manual-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink);
}
.thm-events .event-manual-row { margin-bottom: 11px; }
.thm-events .event-manual-row label {
  display: block;
  margin-bottom: 5px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
/* 报名码输入：等宽大写，便于核对 */
.thm-events .event-code-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.thm-events .event-code-input:focus { outline: none; border-color: var(--brand-line); background: #fff; }

/* 结果回执：成功 / 重复 / 未命中，三态一眼可辨 */
.thm-events .event-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .72);
}
.thm-events .event-result-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
}
.thm-events .event-result-sub { font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.thm-events .event-result-ok { border-left-color: var(--ok); background: rgba(22, 163, 74, .08); }
.thm-events .event-result-ok .event-result-head { color: var(--ok); }
.thm-events .event-result-dup { border-left-color: var(--warn); background: rgba(217, 119, 6, .09); }
.thm-events .event-result-dup .event-result-head { color: var(--warn); }
.thm-events .event-result-miss { border-left-color: var(--ev-over); background: var(--ev-over-soft); }
.thm-events .event-result-miss .event-result-head { color: var(--ev-over); }

/* 核验页顶部：线下活动与口令一览 */
.thm-events .event-tokens { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.thm-events .event-token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .7);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.thm-events .event-token b { font-family: var(--mono); letter-spacing: 2px; color: var(--brand-strong); }

/* ============================================================
   八、后台表单：形态选择器
   ============================================================ */
.thm-events .event-kinds { display: flex; flex-wrap: wrap; gap: 9px; }
.thm-events .event-kind-pick { position: relative; display: inline-flex; cursor: pointer; }
.thm-events .event-kind-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.thm-events .event-kind-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .72);
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
  transition: background .18s, border-color .18s, color .18s;
}
.thm-events .event-kind-pick:hover .event-kind-text { border-color: var(--brand-line); color: var(--brand-strong); }
.thm-events .event-kind-pick input:checked + .event-kind-text {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.thm-events .event-kind-pick input:focus-visible + .event-kind-text { outline: 2px solid var(--brand-line); outline-offset: 2px; }

/* 表单两列：宽屏并排，窄屏自动落成单列 */
.thm-events .event-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 16px;
}

/* ============================================================
   九、页尾 Pro 入口（前台页面共用）
   ============================================================ */
.thm-events .event-pro { margin-top: 26px; text-align: center; }
.thm-events .event-pro a {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .62);
  color: var(--brand-strong);
  font-size: 13.5px;
  transition: background .18s, border-color .18s, color .18s;
}
.thm-events .event-pro a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============================================================
   十、窄屏收束：票根上下叠、核验单列、hero 让位
   ============================================================ */
@media (max-width: 860px) {
  .thm-events .event-ticket { grid-template-columns: 1fr; }
  .thm-events .event-ticket-stub {
    border-left: 0;
    border-top: 1px dashed var(--brand-line);
  }
  .thm-events .event-checkin { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .thm-events .event-hero { min-height: 0; padding: 20px 18px 20px; }
  .thm-events .event-hero-title { font-size: 25px; }
  .thm-events .event-cal { display: none; }
  .thm-events .event-scene { height: 108px; }
  .thm-events .event-note { right: 16px; bottom: 26px; font-size: 10.5px; }
  .thm-events .event-thumb {
    display: block;
    width: 66px;
    align-self: flex-start;
    aspect-ratio: 1 / 1;
  }
  .thm-events .event-thumb-char { font-size: 26px; }
  .thm-events .event-timeline { padding-left: 24px; }
  .thm-events .event-timeline::before { left: 7px; }
  .thm-events .event-node { left: -22px; top: 14px; }
  .thm-events .event-ticket-main { padding: 20px 16px; }
  .thm-events .event-ticket-qr { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .thm-events .event-code { font-size: 23px; letter-spacing: 3px; }
}
