:root {
  --primary: #4f7fe1;
  --primary-dark: #3a63b8;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2533;
  --muted: #8a93a6;
  --radius: 14px;
  --maxw: 480px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }

/* 全站统一的背景画面层：跟随内容容器宽度，全屏无缝、零留白 */
#home-bg {
  position: fixed; top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(100vw, var(--maxw));
  height: 100vh;
  background: var(--bg) center / cover no-repeat;
  z-index: -1; pointer-events: none;
}
a { color: var(--primary); text-decoration: none; }

/* 顶部栏 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 2px 10px rgba(31,37,51,.12);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 50px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.lang-switch {
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.12);
  color: #fff; font-weight: 600; font-size: 13px;
  padding: 5px 14px; border-radius: 999px; cursor: pointer;
  transition: background .15s;
}
.lang-switch:active { background: rgba(255,255,255,.28); }

/* 内容容器 */
.app { max-width: var(--maxw); margin: 0 auto; padding: 0 0 24px; min-height: 70vh; }
.loading { text-align: center; color: var(--muted); padding: 60px 0; }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 38px 22px 30px; text-align: center;
}
/* 自定义背景图：取消暗化遮罩，hero 透明，纯白标题文字直接叠在背景图上 */
.hero.has-bg { background: transparent; }
.hero h1 { margin: 0 0 6px; font-size: 25px; font-weight: 800; letter-spacing: 1px;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.45); white-space: pre-line; line-height: 1.25; }
.hero .meta { display: inline-flex; flex-direction: column; gap: 4px; font-size: 13px;
  padding: 12px 20px; border-radius: 12px; text-align: center;
  background: #0a4fe6; color: #fff; text-shadow: none; }
.hero .meta b { font-weight: 700; white-space: pre-line; }
.hero .meta span { white-space: pre-line; }

/* 首页倒计时 */
.countdown {
  margin: 16px 16px 0;
  padding: 18px 14px 16px;
  background: var(--cd-bg, rgba(255,255,255,.72));
  border-radius: 16px;
  text-align: center;
  color: var(--cd-color, #0a4fe6);
  box-shadow: 0 4px 16px rgba(10,79,230,.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.countdown__label { font-size: 15px; font-weight: 600; letter-spacing: 1px; margin-bottom: 10px; opacity: .92; }
.countdown__digits {
  display: inline-flex; align-items: baseline; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
}
/* 每个「数字 + 单位」绑定为一组，整组不换行（避免窄屏数字与单位分离掉行） */
.cd-item { display: inline-flex; align-items: baseline; white-space: nowrap; }
.countdown__num {
  display: inline-block;
  min-width: clamp(40px, 12vw, 52px); padding: 4px 6px;
  background: rgba(255,255,255,.55);
  border-radius: 10px;
  font-size: clamp(26px, 8.5vw, 38px); font-weight: 800; line-height: 1;
  color: var(--cd-color, #0a4fe6);
  text-shadow: 0 2px 8px rgba(10,79,230,.10);
}
.countdown__digits i {
  font-style: normal;
  font-size: clamp(12px, 3.6vw, 14px); font-weight: 600;
  color: var(--cd-unit, #4a6fd1);
  margin-left: 2px;
}
.countdown__expired {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  max-width: 100%; padding: 8px 22px; background: rgba(255,255,255,.55); border-radius: 10px;
  font-size: 22px; font-weight: 700; letter-spacing: 2px;
  line-height: 1.32; text-align: center; overflow-wrap: break-word;
}
/* 倒计时结束后：中文大字 + 英文小字，两种语言同时展示 */
.cd-status-cn { display: block; }
.cd-status-en { display: block; font-size: 13px; font-weight: 600; letter-spacing: .4px; opacity: .72; line-height: 1.4; }
.countdown__digits--status { display: flex; justify-content: center; }

/* 功能宫格（错落布局：基于 6 列网格，每模块按 homeLayout 占不同列宽，形成 4 排大小不一） */
.grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 12px; padding: 16px 16px 8px;
}
.cell {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--card); border-radius: var(--radius);
  padding: 15px 16px; min-height: 98px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(31,37,51,.07);
  transition: transform .14s ease, box-shadow .14s ease;
  text-align: left;
}
.cell:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,37,51,.14); }
.cell:active { transform: translateY(0) scale(.99); box-shadow: 0 2px 8px rgba(31,37,51,.1); }
/* 模块名称：左上角，跟随语言只显示中文或英文，加粗放大 */
.cell-title { display: flex; flex-direction: column; gap: 4px; }
.cell .t-name { font-size: var(--title-size, 16px); font-weight: 800; line-height: 1.25; letter-spacing: .3px; }
/* 图标：右下角 */
.cell .icon {
  align-self: flex-end; margin-top: auto;
  width: var(--icon-size, 40px); height: var(--icon-size, 40px); object-fit: contain; border-radius: 10px;
}

/* 中卡（占 3 列）：名称与图标略大 */
.cell--mid .icon { width: calc(var(--icon-size, 40px) * 1.15); height: calc(var(--icon-size, 40px) * 1.15); }

/* 大横卡（占满整行）：横向布局，标题在左、图标在右，更大气醒目 */
.cell--wide {
  flex-direction: row; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px 22px; min-height: 86px; text-align: left;
}
.cell--wide .icon { align-self: center; margin-top: 0; width: calc(var(--icon-size, 40px) * 1.45); height: calc(var(--icon-size, 40px) * 1.45); flex: none; }

/* 详情页 */
.detail { padding: 18px 16px 110px; --detail-pad: 18px; }
/* 富文本页顶部间距与二级页统一，由 .detail 的 padding-top 控制（原先用 h2 min-height 占位，现统一收小，避免 hero 与标题间过大空白） */
/* 参会嘉宾/报名参会/座位排位等二级页：顶部间距统一由 --detail-pad 控制（与富文本页一致，改一处即可全局调整） */
.detail--spaced { padding-top: var(--detail-pad); }
/* 标题跟随全局标题色 pageTitleColor，与富文本页统一 */
.detail--spaced h2 { color: var(--page-title-color, #1f2533); }
.detail--page h2 { color: var(--page-title-color, #1f2533); }
.detail--page .rich-content { color: var(--page-text-color, #1f2533); }

/* ---- 大会议程：横向日期选项卡 + 每日照片卡片 ---- */
.ag-tabs, .st-tabs {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 2px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.ag-tabs::-webkit-scrollbar, .st-tabs::-webkit-scrollbar { display: none; }
.ag-tab, .st-tab {
  flex: 0 0 auto; min-width: 78px; text-align: center; cursor: pointer;
  background: rgba(255, 255, 255, .92); border-radius: 14px;
  padding: 12px 16px 9px; box-shadow: 0 4px 14px rgba(31, 37, 51, .08);
  border: 1px solid transparent; border-bottom: 3px solid transparent;
  transition: border-color .15s, box-shadow .15s;
}
.ag-tab .ag-d, .st-tab .st-d { font-size: 20px; font-weight: 800; color: #6b7385; line-height: 1.2; }
.ag-tab .ag-w, .st-tab .st-w { font-size: 12px; color: #97a0b2; margin-top: 3px; }
.ag-tab.active, .st-tab.active {
  background: #fff; border-bottom-color: var(--primary, #4f7fe1);
  box-shadow: 0 6px 18px rgba(79, 127, 225, .18);
}
.ag-tab.active .ag-d, .st-tab.active .st-d { color: var(--primary, #4f7fe1); }
.ag-tab.active .ag-w, .st-tab.active .st-w { color: var(--primary, #4f7fe1); opacity: .75; }
/* 座位排位：选项卡下方的会议标题卡 */
.st-title {
  margin: 14px 0 16px; text-align: center; font-size: 16px; font-weight: 800;
  line-height: 1.5; color: #1f2533;
  background: rgba(255, 255, 255, .94); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(31, 37, 51, .08);
}
.ag-body { margin-top: 16px; }
.ag-card {
  background: var(--card, #fff); border-radius: 16px; padding: 10px;
  margin-bottom: 14px; box-shadow: 0 6px 22px rgba(31, 37, 51, .09);
}
.ag-card img { width: 100%; display: block; border-radius: 10px; }
.ag-card figcaption { font-size: 13px; color: #5b6474; padding: 9px 4px 3px; line-height: 1.6; }
.ag-empty {
  background: rgba(255, 255, 255, .92); border-radius: 14px;
  padding: 26px 16px; text-align: center; color: #8a93a6; font-size: 14px;
}
/* 报名参会二级页：iframe 占满视口，仅顶部留标题、底部留返回按钮空间 */
.detail--iframe { padding: 14px 0 96px; }
.detail--iframe h2 { font-size: 19px; margin: 4px 16px 12px; padding: 0; color: var(--page-title-color, #1f2533); }
.iframe-wrap { margin: 0 12px; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.page-iframe { display: block; width: 1px; min-width: 100%; height: calc(100vh - 200px); border: 0; }

.signup-cats { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.signup-cat { display: flex; align-items: center; justify-content: space-between; background: var(--card, #fff); border: 1px solid rgba(79,127,225,.25); border-left: 4px solid var(--primary, #4f7fe1); border-radius: 10px; padding: 16px; cursor: pointer; box-shadow: 0 4px 12px rgba(31,37,51,.06); }
.signup-cat:active { transform: scale(.99); }
.signup-cat__name { font-size: 15px; font-weight: 600; color: var(--text, #1f2533); }
.signup-form { margin-top: 12px; background: var(--card, #fff); border: 1px solid rgba(79,127,225,.2); border-radius: 14px; padding: 18px 16px; box-shadow: 0 6px 18px rgba(31,37,51,.08); }
.signup-form .field { margin-bottom: 16px; }
.signup-form label { display: block; font-size: 14px; font-weight: 600; color: var(--text, #1f2533); margin-bottom: 6px; }
.signup-form .req { color: #e03131; font-weight: 700; margin-right: 2px; }
.signup-frame { margin-top: 14px; background: var(--card, #fff); border: 1px solid rgba(79,127,225,.2); border-radius: 14px; padding: 28px 18px; box-shadow: 0 6px 18px rgba(31,37,51,.08); text-align: center; }
.signup-frame .seat-result { margin-bottom: 18px; }
.agree-link { color: var(--primary, #4f7fe1); text-decoration: underline; cursor: pointer; }
.f-input { width: 100%; padding: 10px 12px; border: 1px solid #d8dee8; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.f-opts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 4px; }
.opt { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text, #1f2533); }
.f-file { display: block; margin-top: 4px; }
.field-hint { font-size: 12px; color: #f08200; margin: 6px 0 0; line-height: 1.5; }
.photo-preview { margin-top: 8px; }
.photo-preview img { max-width: 120px; max-height: 160px; border: 1px solid #eee; border-radius: 6px; }
.form-msg { font-size: 13px; min-height: 18px; margin: 4px 0 10px; color: #2b8a3e; }
.form-msg.fail { color: #e03131; }
.btn-block { display: block; width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--primary, #4f7fe1); background: var(--primary, #4f7fe1); color: #fff; font-size: 15px; cursor: pointer; }
.btn-block:active { opacity: .9; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; width: 100%; max-width: 460px; max-height: 82vh; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #eef0f4; font-size: 16px; font-weight: 700; color: #1f2533; }
.modal-close { border: 0; background: transparent; font-size: 22px; line-height: 1; color: #888; cursor: pointer; padding: 0 4px; }
.modal-close:active { color: #333; }
.modal-body { padding: 16px 18px 22px; overflow-y: auto; color: #2b3340; font-size: 14px; line-height: 1.7; }
.modal-body p { margin: 0 0 12px; }
.modal-body p:last-child { margin-bottom: 0; }
.btn-primary { background: var(--primary, #4f7fe1); color: #fff; border: 0; padding: 11px 22px; border-radius: 8px; font-size: 15px; cursor: pointer; }
/* 二级页面悬浮「返回首页」按钮：固定在视口底部居中，点击回首页（复刻原 H5 峰会介绍页） */
.back-home-fab {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border: none; border-radius: 999px;
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: .5px;
  box-shadow: 0 8px 22px rgba(31,37,51,.32);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.back-home-fab svg { width: 19px; height: 19px; display: block; }
.back-home-fab:active { transform: translateX(-50%) scale(.96); opacity: .92; }
.detail h2 { font-size: 19px; margin: 4px 0 14px; }
.rich-content { background: var(--card); border-radius: var(--radius); padding: 8px; overflow: hidden; }
.rich-content img { width: 100%; height: auto; border-radius: 8px; margin: 0 auto; }

/* 嘉宾 */
.guest-group { margin-top: 18px; }
.guest-group h3 { font-size: 15px; color: var(--primary); margin: 0 0 12px; border-left: 4px solid var(--primary); padding-left: 10px; }
.guest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.speaker { background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(31,37,51,.06); }
.speaker img { width: 100%; }

/* 参会嘉宾：二级页模块列表 */
.guest-modules { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.guest-module {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border-radius: 14px; padding: 16px 44px 16px 18px;
  box-shadow: 0 4px 14px rgba(31,37,51,.07); cursor: pointer;
  border-left: 4px solid var(--primary);
  transition: transform .14s ease, box-shadow .14s ease;
}
.guest-module:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,37,51,.14); }
.guest-module:active { transform: translateY(0) scale(.99); }
.guest-module__name { font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--text); }
.guest-module__arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 26px; line-height: 1; color: var(--primary); }
.back-link {
  display: inline-block; margin-bottom: 6px; font-size: 14px; font-weight: 600;
  color: var(--primary); text-decoration: none;
}
.back-link:active { opacity: .7; }

/* 照片直播 */
.photo-card { background: var(--card); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: 0 4px 14px rgba(31,37,51,.06); }
.photo-card img { width: 100%; border-radius: 10px; margin-bottom: 14px; }
.btn {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 11px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; border: none; cursor: pointer;
}
.btn:active { background: var(--primary-dark); }

/* 座位查询 */
.seat-box { background: var(--card); border-radius: var(--radius); padding: 20px 16px; box-shadow: 0 4px 14px rgba(31,37,51,.06); }
.seat-box p.tip { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.seat-input {
  width: 100%; padding: 12px 14px; font-size: 15px; border: 1px solid #d8deea;
  border-radius: 10px; outline: none; margin-bottom: 12px;
}
.seat-input:focus { border-color: var(--primary); }
.seat-result { margin-top: 14px; padding: 14px; border-radius: 10px; background: #eef4ff; font-size: 14px; }
.seat-result.fail { background: #fff3f3; color: #c0392b; }
.seat-result b { color: var(--primary-dark); }

/* 页脚 */
.footer {
  width: fit-content; max-width: calc(var(--maxw) - 28px);
  margin: 0 auto 22px; padding: 9px 16px;
  text-align: center; font-size: 12px; line-height: 1.5;
  color: var(--footer-color, #0051ff);
  background: var(--footer-box, #f2f5fb);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(31,37,51,.22);
}

/* ========== 座位排位：分区座位表 + 查询 + 高亮弹跳 + 马赛克 + 缩放/拖拽 ========== */
.seat-search { display: flex; gap: 10px; margin-bottom: 14px; }
.seat-search .seat-input { flex: 1; margin-bottom: 0; }
.seat-search .btn { padding: 11px 18px; border-radius: 10px; white-space: nowrap; }

.seat-info {
  background: var(--card); border-radius: var(--radius); padding: 16px 18px;
  margin-bottom: 14px; box-shadow: 0 4px 14px rgba(31,37,51,.08);
  text-align: center;
}
.seat-info--fail { background: #fff3f3; color: #c0392b; }
.seat-info--hint { background: #eef4ff; color: #4f7fe1; }
.seat-info-name { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.seat-info-meta { font-size: 13px; color: var(--muted); }

/* 重名多结果：网格固定 2 列 —— 2 人左右一排，3~4 人上下两排，5~6 人三排，以此类推 */
.seat-info--multi { text-align: left; }
.seat-info-tip { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 12px; }
.seat-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.seat-info-card {
  position: relative; background: #fff; border: 2px solid #ff4d4f; border-radius: 10px;
  padding: 12px 10px; text-align: center; box-shadow: 0 3px 10px rgba(255, 77, 79, .12);
}
.seat-info-badge {
  position: absolute; top: -9px; left: -9px; width: 22px; height: 22px; border-radius: 50%;
  background: #ff4d4f; color: #fff; font-size: 12px; font-weight: 800; line-height: 22px;
  text-align: center; box-shadow: 0 2px 6px rgba(255, 77, 79, .35);
}
.seat-info-card-name {
  font-size: 17px; font-weight: 800; color: var(--primary); margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.seat-info-card-meta { font-size: 12px; color: var(--muted); line-height: 1.5; word-break: break-all; }

.seat-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding: 0 2px;
}
.seat-hint {
  font-size: 12px; color: #4f7fe1;
  display: inline-block;
  background: rgba(255,255,255,.94);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(79,127,225,.45);
  box-shadow: 0 2px 6px rgba(31,37,51,.10);
}
.seat-zoom {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border-radius: 999px; padding: 4px; box-shadow: 0 2px 8px rgba(31,37,51,.1);
}
.seat-zoom button {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
}
.seat-zoom button:active { background: var(--primary-dark); }
.seat-zoom span { min-width: 44px; text-align: center; font-size: 13px; font-weight: 700; color: var(--text); }

/* 后台座位编排画布 */
.seat-canvas {
  position: relative;
  min-height: 680px;
  background:
    radial-gradient(circle, rgba(31,37,51,.12) 1px, transparent 1px) 0 0 / 20px 20px,
    rgba(245,247,250,.85);
  border: 1px dashed rgba(31,37,51,.15);
  border-radius: 12px;
  overflow: hidden;
}
.seat-edit-block {
  position: absolute;
  min-width: 260px;
  background: rgba(255,255,255,.96);
  border: 2px solid var(--area-color, #4f7fe1);
  border-radius: 12px;
  padding: 0 10px 10px;
  box-shadow: 0 6px 20px rgba(31,37,51,.14);
  z-index: 1;
}
.seat-edit-block.dragging {
  opacity: .92;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(31,37,51,.22);
  cursor: grabbing;
}
.seat-edit-block-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 2px 6px;
  cursor: grab;
}
.seat-edit-block-head b {
  font-size: 13px; color: var(--area-color, #4f7fe1);
  user-select: none;
}
.seat-edit-block-ops { display: flex; gap: 6px; }
.seat-edit-block-actions {
  display: flex; gap: 6px; margin-bottom: 8px;
}
.seat-edit-block-actions .btn { padding: 4px 10px; font-size: 11px; }
.seat-edit-block-props {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(31,37,51,.08);
}
.seat-edit-block-props .row { margin-bottom: 8px; }
.seat-edit-block-props .row:last-child { margin-bottom: 0; }

/* 舞台：固定可视区，内部内容可缩放/拖拽 */
.seat-stage {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.35); border-radius: var(--radius);
  min-height: 240px; max-height: 58vh; cursor: grab; touch-action: none;
}
.seat-stage:active { cursor: grabbing; }
.seat-content {
  position: absolute; top: 0; left: 0;
  transform-origin: 0 0; transition: transform .1s ease-out;
}

/* 每个区域独立卡片 */
.seat-area {
  position: absolute;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(31,37,51,.08); border-radius: 12px;
  padding: 12px 14px 14px;
  box-shadow: 0 4px 14px rgba(31,37,51,.08);
}
.seat-area-title {
  font-size: 15px; font-weight: 800; color: var(--area-color, var(--primary));
  text-align: center; margin-bottom: 10px;
}
.seat-area-table { display: inline-block; }
.seat-row { display: flex; align-items: stretch; gap: 4px; margin-bottom: 4px; }
.seat-row.seat-head { margin-bottom: 6px; }
.seat-corner { width: 34px; flex: none; }
.seat-row-label, .seat-col-label {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted); font-weight: 600;
  flex: none;
}
.seat-row-label { width: 34px; }
.seat-col-label { width: 42px; }
.seat-cell {
  width: 42px; height: 42px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 6px; background: rgba(255,255,255,.7);
  border: 1px solid rgba(31,37,51,.08);
  font-size: 10px; line-height: 1.1; text-align: center; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.seat-cell b { font-weight: 700; font-size: 11px; display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.seat-cell small { font-size: 9px; color: var(--muted); display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.seat-cell.empty { background: rgba(255,255,255,.25); border-style: dashed; }
.seat-cell.empty i { width: 6px; height: 6px; border-radius: 50%; background: rgba(31,37,51,.12); }

/* 区域着色 */
.seat-area .seat-cell { background: color-mix(in srgb, var(--area-color) 16%, #fff); border-color: color-mix(in srgb, var(--area-color) 28%, transparent); }
.seat-area .seat-cell.empty { background: color-mix(in srgb, var(--area-color) 8%, rgba(255,255,255,.35)); }

/* 命中高亮：持续弹跳脉冲 */
.seat-cell.hit {
  background: color-mix(in srgb, #ff4d4f 24%, #fff) !important;
  border-color: #ff4d4f !important; color: #8b0012 !important;
  box-shadow: 0 0 0 3px rgba(255,77,79,.35);
  animation: seatBounce 1.0s ease-in-out infinite;
  z-index: 2;
}
.seat-cell.hit b { color: #c0392b; }
.seat-cell.hit small { color: #d15a5a; }
@keyframes seatBounce {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 3px rgba(255,77,79,.35); }
  50% { transform: translateY(-6px) scale(1.15); box-shadow: 0 0 0 8px rgba(255,77,79,.18); }
}

/* 非命中座位马赛克：模糊 + 斜纹遮罩 */
.seat-cell.mask {
  filter: blur(2.5px) grayscale(.6);
  opacity: .55;
  position: relative;
}
.seat-cell.mask::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 3px, rgba(255,255,255,.55) 3px, rgba(255,255,255,.55) 6px
  );
  border-radius: 6px; pointer-events: none;
}

/* ============================================================
   签到管理 Check-in
   二维码页 / 登记表页 / 感谢画面
   ============================================================ */
.checkin { padding-bottom: 40px; }
.checkin h2 { text-align: center; margin-bottom: 10px; }
.checkin-desc { text-align: center; color: var(--muted, #6b7280); font-size: 14px; line-height: 1.7; margin: 0 auto 22px; max-width: 20em; }

/* 签到页：日期卡与下方会议标题卡拉开间距 */
.checkin .st-tabs { margin-bottom: 18px; }

/* 页面顶部文案块：标题 + 说明装进白底卡片，收住视觉重心 */
.ck-head {
  background: #fff; border-radius: 20px; padding: 22px 20px;
  box-shadow: 0 10px 34px rgba(31, 37, 51, .12);
  max-width: 320px; margin: 0 auto 18px;
}
.ck-head h2 { margin-bottom: 10px; color: #1f2533; } /* 全站 h2 用白色页标题变量，进白卡必须压回深色 */
.ck-head .checkin-desc { margin-bottom: 0; }

/* 二维码卡片：现场大屏展示用，白底高对比 */
.checkin-card {
  background: #fff; border-radius: 20px; padding: 26px 22px 18px;
  box-shadow: 0 10px 34px rgba(31, 37, 51, .12); margin: 0 auto 22px; max-width: 320px;
}
.checkin-qr { display: flex; align-items: center; justify-content: center; min-height: 216px; }
/* 只锁尺寸、不干预 display：qrcodejs 视环境会自行隐藏 canvas 改用 img（或反之），
   若这里写死 display:block 会与它的内联 style 打架，导致二维码不可见 */
.checkin-qr canvas, .checkin-qr img { width: 216px !important; height: 216px !important; }
.checkin-qr-tip { text-align: center; font-size: 13px; color: #6b7280; margin-top: 14px; letter-spacing: .02em; }
.checkin-fallback { word-break: break-all; font-size: 13px; color: var(--primary); }

/* 无法扫码时的直接入口 */
.checkin-direct { display: block; margin: 0 auto; padding: 12px 30px; }

/* 登记表：手机上要单手能填，输入框给足高度 */
.ck-field { margin-bottom: 16px; }
/* 字段名直接落在渐变背景上，用白色 + 轻微投影保证可读 */
.ck-field label {
  display: block; font-size: 13px; color: #fff; margin-bottom: 7px; font-weight: 600;
  text-shadow: 0 1px 3px rgba(15, 30, 70, .45);
}
.ck-field input {
  width: 100%; box-sizing: border-box; font-size: 16px; padding: 14px 16px;
  border: 1.5px solid #dfe4ec; border-radius: 12px; background: #fff; color: #1f2533;
  -webkit-appearance: none; appearance: none;
}
.ck-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 127, 225, .14); }
.ck-field input::placeholder { color: #b6bcc9; }
.ck-err {
  background: #fef2f2; color: #b91c1c; font-size: 13px; padding: 10px 14px;
  border-radius: 10px; margin-bottom: 14px; line-height: 1.5;
}
/* 禁止类提示（重复签到 / 未开放）：整块红色警示，左侧禁止图标（红圈斜杠 SVG） */
.ck-err--block {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff1f2; border: 1px solid #fecdd3;
  color: #b91c1c; font-size: 14px; font-weight: 600;
  padding: 13px 14px; border-radius: 12px; margin-bottom: 14px; line-height: 1.6;
}
.ck-err--block .ck-err-ic {
  flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; display: block;
}
.ck-err--block i {
  display: block; margin-top: 4px; font-style: normal;
  font-size: 12px; font-weight: 500; color: #dc2626; opacity: .92;
}
.ck-submit { display: block; width: 100%; padding: 15px 0; font-size: 16px; margin-top: 4px; }
.ck-submit:disabled { opacity: .62; cursor: default; }

/* 感谢画面 */
/* 感谢画面：白色背景框收住「签到成功」整块内容（与 ck-head / checkin-card 同风格） */
.ck-thanks {
  text-align: center; padding: 30px 22px 26px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 10px 34px rgba(31, 37, 51, .12);
  max-width: 320px; margin: 0 auto;
}
.ck-thanks-icon { width: 82px; height: 82px; margin: 0 auto 18px; color: #16a34a; }
.ck-thanks-icon svg { width: 82px; height: 82px; display: block; }
.ck-thanks-icon circle { opacity: 0; animation: ckRing .45s cubic-bezier(.2, .8, .3, 1) forwards; }
.ck-thanks-icon path {
  stroke-dasharray: 46; stroke-dashoffset: 46;
  animation: ckTick .38s cubic-bezier(.2, .8, .3, 1) .3s forwards;
}
@keyframes ckRing { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }
@keyframes ckTick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ck-thanks-icon circle, .ck-thanks-icon path { animation-duration: .01s; }
}
.ck-thanks-title { font-size: 21px; font-weight: 800; color: #15803d; margin-bottom: 8px; }
.ck-thanks-sub { font-size: 14px; color: #6b7280; margin-bottom: 20px; line-height: 1.6; }
/* 白框内的信息卡改浅灰底，避免白上叠白没有层次 */
.ck-thanks-card {
  background: #f6f8fc; border-radius: 12px; padding: 4px 16px; margin-bottom: 22px;
}
.ck-thanks-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; font-size: 14px; border-bottom: 1px solid #f0f2f6;
}
.ck-thanks-row:last-child { border-bottom: none; }
.ck-thanks-row span { color: #8b93a3; }
.ck-thanks-row b { color: #1f2533; font-weight: 700; }

/* ---- 签到时间窗：提示条 + 未开放占位页 ---- */
.ck-banner {
  display: flex; flex-direction: column; gap: 3px; align-items: center;
  margin: 0 auto 16px; max-width: 320px; padding: 10px 14px;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px;
  color: #9a3412; font-size: 13px; text-align: center; line-height: 1.5;
}
.ck-banner.is-after { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }
.ck-banner b { font-size: 14px; font-weight: 700; }
.ck-banner span { opacity: .85; font-size: 12px; }

/* 未开放/已结束占位页：白色背景框收住内容，
   否则深色标题/时间直接压在渐变背景上，视觉散且可读性差 */
.ck-closed {
  text-align: center; padding: 30px 22px 26px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 10px 34px rgba(31, 37, 51, .12);
  max-width: 320px; margin: 0 auto;
}
.ck-closed .btn { width: 100%; }
.ck-closed-icon { width: 72px; height: 72px; margin: 0 auto 16px; color: #b45309; }
.ck-closed-icon svg { width: 72px; height: 72px; display: block; }
.ck-closed-title { font-size: 19px; font-weight: 800; color: #1f2533; margin-bottom: 8px; }
.ck-closed-sub { font-size: 14px; color: #6b7280; margin-bottom: 24px; line-height: 1.6; }
