/* ==========================================================
   智慧会议签到平台 · 移动端优先样式系统
   ========================================================== */
:root {
  /* 以下默认值仅作兜底；实际值由后台「外观与文案」生成后内联覆盖 */
  --brand: #8C1B24;
  --brand-dark: #570D13;
  --brand-light: #BE212D;
  --brand-rgb: 140,27,36;
  --brand-tint: #F4E8E9;
  --brand-tint2: #E8D1D3;
  --gold: #D8B36A;
  --gold-soft: #F0E2C6;
  --gold-rgb: 216,179,106;
  --gold-tip: #FBF7EE;
  --gold-ink: #6B4C13;
  --on-brand: #FFFFFF;
  --bg: #F2F3F5;
  --card: #FFFFFF;
  --text: #1F2329;
  --text-2: #5A6169;
  --text-3: #9AA2AC;
  --line: #EDEFF2;
  --green: #17B26A;
  --orange: #F79009;
  --red: #E5484D;
  --blue: #2563EB;
  --green-rgb: 23,178,106;
  --orange-rgb: 247,144,9;
  --red-rgb: 229,72,77;
  --blue-rgb: 37,99,235;
  --tile-1a: #8C1B24; --tile-1b: #BE212D;
  --tile-2a: #7B1A20; --tile-2b: #A82D36;
  --tile-3a: #5B1219; --tile-3b: #8E1F28;
  --tile-4a: #A9762A; --tile-4b: #D8B36A;
  --tile-5a: #6B7280; --tile-5b: #8C949F;
  --tile-6a: #6E1D26; --tile-6b: #9E3340;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 2px 10px rgba(20, 24, 32, .06);
  --shadow-up: 0 -2px 16px rgba(20, 24, 32, .08);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 58px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
input, textarea, select { outline: none; }
.hide { display: none !important; }

/* ---------------------------------------------------- 顶部导航 */
.navbar {
  position: sticky; top: 0; z-index: 60;
  height: 48px; display: flex; align-items: center; gap: 8px;
  padding: 0 10px; color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, var(--brand-light));
}
.navbar.solid { position: static; }
.navbar .nv-back, .navbar .nv-act {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 19px; color: var(--on-brand); flex: 0 0 auto;
}
.navbar .nv-back:active, .navbar .nv-act:active { background: rgba(255,255,255,.16); }
.navbar .nv-title { flex: 1; text-align: center; font-size: 16.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar .nv-ghost { width: 40px; flex: 0 0 auto; }

/* ---------------------------------------------------- 主视觉 Banner */
.hero { position: relative; overflow: hidden; color: var(--on-brand);
  background: linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 45%, var(--brand-light) 100%); }
.hero .hero-inner { padding: 22px 18px 40px; position: relative; z-index: 2; }
.hero .hero-org { font-size: 12px; letter-spacing: .5px; opacity: .92; display: flex;
  align-items: center; gap: 6px; margin-bottom: 14px; }
.hero .hero-org .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: 24px; line-height: 1.34; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(180deg, var(--gold-tip), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero .hero-sub { font-size: 17px; font-weight: 600; margin-top: 6px; color: var(--gold-soft); }
.hero .hero-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-size: 12.5px; color: rgba(255,255,255,.95); }
.hero .hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero .hero-deco { position: absolute; right: -30px; bottom: -30px; width: 190px; height: 190px;
  border-radius: 50%; background: radial-gradient(circle, var(--gold), transparent 70%); opacity: .30; }
.hero .hero-deco2 { position: absolute; left: -50px; top: -40px; width: 160px; height: 160px;
  border-radius: 50%; background: radial-gradient(circle, var(--on-brand), transparent 70%); opacity: .13; }
.hero .hero-sky { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62px;
  z-index: 1; pointer-events: none; }
.hero .hero-cover { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }

.hero-wrap { position: relative; }
.hero-wrap .cover { width: 100%; display: block; }

/* 倒计时 */
.countdown { display: flex; gap: 6px; margin-top: 16px; }
.countdown .cd { flex: 1; background: rgba(255,255,255,.14); border: 1px solid rgba(var(--gold-rgb),.42);
  border-radius: 10px; text-align: center; padding: 7px 0 6px; backdrop-filter: blur(4px); }
.countdown .cd b { display: block; font-size: 19px; font-weight: 700; color: var(--gold-soft); line-height: 1.15; }
.countdown .cd i { font-style: normal; font-size: 11px; opacity: .85; }

/* ---------------------------------------------------- 通用容器 */
.page { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px); min-height: 100vh; }
.page.notab { padding-bottom: calc(var(--safe-b) + 24px); }
.wrap { padding: 0 14px; }
.overlap { margin-top: -22px; position: relative; z-index: 3; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; }
.flex1 { flex: 1; min-width: 0; }
.tc { text-align: center; } .tr { text-align: right; }
.c2 { color: var(--text-2); } .c3 { color: var(--text-3); }
.fs12 { font-size: 12px; } .fs13 { font-size: 13px; } .fs14 { font-size: 14px; }
.fs17 { font-size: 17px; } .fs20 { font-size: 20px; }
.bold { font-weight: 600; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre { white-space: pre-wrap; word-break: break-word; }

/* ---------------------------------------------------- 卡片 */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 12px; }
.card.tight { padding: 12px 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-h h3 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-h h3::before { content: ""; width: 4px; height: 15px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--gold)); }
.card-h .more { font-size: 13px; color: var(--text-3);
  padding: 8px 4px; margin: -8px -4px; border-radius: 8px; }
.card-h .more:active { background: #F4F5F7; }

/* 统计 */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--card); border-radius: var(--radius); padding: 14px 12px; box-shadow: var(--shadow);
  position: relative; overflow: hidden; }
.stat .k { font-size: 12px; color: var(--text-3); }
.stat .v { font-size: 24px; font-weight: 700; line-height: 1.25; margin-top: 2px;
  font-variant-numeric: tabular-nums; }
.stat .u { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 2px; }
.stat::after { content: ""; position: absolute; right: -18px; top: -18px; width: 58px; height: 58px;
  border-radius: 50%; background: var(--brand); opacity: .06; }
.stat.brand .v { color: var(--brand); }
.stat.green .v { color: var(--green); }
.stat.orange .v { color: var(--orange); }
.stat.blue .v { color: var(--blue); }

/* ---------------------------------------------------- 功能入口 */
.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.entry { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 2px;
  border-radius: 12px; transition: .15s; }
.entry:active { background: #F6F7F9; }
.entry .ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 22px;
  background: linear-gradient(145deg, var(--brand-tint), var(--brand-tint2)); color: var(--brand); }
.entry.g2 .ic { background: linear-gradient(145deg, #FFF7E8, #FBEBCF); color: #A9762A; }
.entry.g3 .ic { background: linear-gradient(145deg, #EEF4FF, #DCE8FF); color: #2456D6; }
.entry.g4 .ic { background: linear-gradient(145deg, #EBFAF2, #D6F4E4); color: #159C5C; }
.entry span { font-size: 12.5px; color: var(--text); }

/* 快捷操作（横向） */
.quick { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2);
  padding: 8px; border-radius: 9px; background: #F7F8FA; min-height: 37px; }
.quick:active { background: #EFF1F4; }
.quick svg { flex: 0 0 auto; }

/* 大卡片入口（仿交大瀑布式） */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 104px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
  color: var(--on-brand); box-shadow: var(--shadow); transition: transform .15s; }
.tile:active { transform: scale(.975); }
.tile.tall { min-height: 150px; }
.tile h4 { font-size: 17px; font-weight: 600; letter-spacing: .5px; position: relative; z-index: 2; }
.tile p { font-size: 11.5px; opacity: .85; margin-top: 2px; position: relative; z-index: 2; }
.tile .tile-bg { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(140deg, var(--tile-1a), var(--tile-1b)); }
/* tN 类写在 .tile-bg 上（模板实际写法），同时兼容写在 .tile 上的旧写法 */
.tile.t2 .tile-bg, .tile-bg.t2 { background: linear-gradient(140deg, var(--tile-2a), var(--tile-2b)); }
.tile.t3 .tile-bg, .tile-bg.t3 { background: linear-gradient(140deg, var(--tile-3a), var(--tile-3b)); }
.tile.t4 .tile-bg, .tile-bg.t4 { background: linear-gradient(140deg, var(--tile-4a), var(--tile-4b)); }
.tile.t5 .tile-bg, .tile-bg.t5 { background: linear-gradient(140deg, var(--tile-5a), var(--tile-5b)); }
.tile.t6 .tile-bg, .tile-bg.t6 { background: linear-gradient(140deg, var(--tile-6a), var(--tile-6b)); }
/* 压暗左下角：第 4 格使用「辅色（金）」，亮金底上白字对比度不足，需加一层渐变蒙版 */
.tile .tile-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.34) 100%); }
.tile h4, .tile p { text-shadow: 0 1px 2px rgba(0,0,0,.30); }
.tile .tile-ico { position: absolute; right: 10px; top: 8px; font-size: 30px; opacity: .22; z-index: 2; }

/* ---------------------------------------------------- 列表 */
.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item:active { background: #FAFBFC; }
.list-item .li-ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 17px; background: var(--brand-tint); color: var(--brand); flex: 0 0 auto; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-main b { font-weight: 500; font-size: 15px; display: block; }
.list-item .li-main small { color: var(--text-3); font-size: 12.5px; }
.list-item .li-arrow { color: #C7CCD3; font-size: 15px; }

/* ---------------------------------------------------- 表单 */
.form-item { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex;
  align-items: center; gap: 10px; }
.form-item:last-child { border-bottom: 0; }
.form-item > label { width: 96px; flex: 0 0 auto; font-size: 14px; color: var(--text-2); }
.form-item > label .req { color: var(--red); margin-left: 2px; }
.form-item .fi-body { flex: 1; min-width: 0; }
.form-item input[type=text], .form-item input[type=tel], .form-item input[type=number],
.form-item input[type=password], .form-item input[type=date], .form-item input[type=datetime-local],
.form-item select, .form-item textarea {
  width: 100%; border: 0; background: transparent; font-size: 15px; color: var(--text);
  padding: 2px 0; text-align: right; }
.form-item select {
  appearance: none; -webkit-appearance: none; text-align-last: right;
  padding-right: 22px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C7CCD3' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; }
.form-item select option { text-align: left; }
.form-item textarea { text-align: left; resize: none; min-height: 74px; line-height: 1.6; }
.form-item input::placeholder, .form-item textarea::placeholder { color: #B9BFC7; }
.form-item .tipped { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.form-item.block { display: block; }
.form-item.block > label { display: block; width: auto; margin-bottom: 8px; font-size: 14px;
  color: var(--text-2); }
.form-item.block input, .form-item.block select, .form-item.block textarea { text-align: left; }

.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 7px; }
.field > label .req { color: var(--red); }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); background: #FAFBFC; border-radius: 10px;
  padding: 11px 12px; font-size: 15px; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); background: var(--card); }
.textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239AA2AC' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }

/* 单选 / 多选 */
.radio-row, .check-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #FAFBFC;
  transition: .15s; }
.radio-row.on, .check-row.on { border-color: var(--brand); background: var(--brand-tint); }
.radio-row .mark, .check-row .mark { width: 19px; height: 19px; border-radius: 50%;
  border: 1.5px solid #C7CCD3; flex: 0 0 auto; display: flex; align-items: center;
  justify-content: center; margin-top: 1px; position: relative; }
.check-row .mark { border-radius: 5px; }
.radio-row.on .mark, .check-row.on .mark { border-color: var(--brand); background: var(--brand); }
.radio-row.on .mark::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--on-brand); }
.check-row.on .mark::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--on-brand);
  border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.radio-row .txt, .check-row .txt { flex: 1; font-size: 14.5px; line-height: 1.5; }

/* 上传 */
.uploader { display: flex; gap: 10px; flex-wrap: wrap; }
.upload-box { width: 92px; height: 92px; border: 1px dashed #CBD1D8; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3); font-size: 11.5px; background: #FAFBFC; position: relative; overflow: hidden; }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; }
.upload-box img { width: 100%; height: 100%; object-fit: cover; }
.upload-box .plus { font-size: 22px; line-height: 1; color: #B9BFC7; }

/* ---------------------------------------------------- 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 20px; border-radius: 12px; font-size: 16px; font-weight: 500;
  transition: .15s; width: 100%; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: var(--on-brand);
  box-shadow: 0 6px 16px rgba(var(--brand-rgb), .22); }
.btn.primary:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(var(--brand-rgb),.2); }
.btn.gold { background: linear-gradient(135deg, var(--gold-ink), var(--gold)); color: var(--gold-ink); }
.btn.ghost { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.btn.soft { background: #F4F5F7; color: var(--text); }
.btn.danger { background: #FFF0F0; color: var(--red); }
.btn.disabled, .btn:disabled { background: #E9ECEF; color: #A9B0B8; box-shadow: none;
  pointer-events: none; }
.btn.sm { height: 34px; font-size: 13.5px; padding: 0 14px; border-radius: 9px; width: auto; }
.btn.xs { height: 28px; font-size: 12.5px; padding: 0 10px; border-radius: 8px; width: auto; }
.btn.blk { display: flex; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* 底部固定操作条 */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--card);
  padding: 10px 14px calc(10px + var(--safe-b)); box-shadow: var(--shadow-up);
  display: flex; align-items: center; gap: 12px; }
.action-bar.above { bottom: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: 10px;
  box-shadow: 0 -2px 12px rgba(20,24,32,.07); border-top: 1px solid var(--line); }
.action-bar .ab-info { flex: 1; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.action-bar .btn { width: auto; min-width: 132px; flex: 0 0 auto; }

/* ---------------------------------------------------- 底部 Tab */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b); background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--text-3); font-size: 10.5px; }
.tabbar a .ti { font-size: 20px; line-height: 1; }
.tabbar a.on { color: var(--brand); }
.tabbar a.on .ti { transform: translateY(-1px); }

/* ---------------------------------------------------- 标签 / 徽标 */
.tag { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; background: #F4F5F7; color: var(--text-2); }
.tag.brand { background: var(--brand-tint); color: var(--brand); }
.tag.green { background: #E7F7EF; color: #128A52; }
.tag.orange { background: #FEF3E2; color: #B76E00; }
.tag.blue { background: #EAF1FE; color: #2456D6; }
.tag.gold { background: #FBF3E2; color: #A9762A; }
.tag.red { background: #FFECEC; color: #D33; }
.tag.lg { height: 25px; padding: 0 10px; font-size: 12.5px; }

/* ---------------------------------------------------- 空状态 / 加载 */
.empty { text-align: center; padding: 46px 20px; color: var(--text-3); }
.empty .ei { font-size: 46px; opacity: .5; margin-bottom: 10px; }
.empty p { font-size: 13.5px; }

.toast { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.94);
  background: rgba(24,28,36,.9); color: #fff; padding: 12px 20px; border-radius: 12px;
  font-size: 14.5px; max-width: 78vw; text-align: center; z-index: 9999; opacity: 0;
  transition: .2s; pointer-events: none; line-height: 1.5; }
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.loading { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------- 弹层 */
/* 注意：隐藏态必须同时禁用 pointer-events，否则一个 opacity:0 的遮罩会吃掉整页点击 */
.mask { position: fixed; inset: 0; background: rgba(12,16,22,.5); z-index: 200; opacity: 0;
  visibility: hidden; pointer-events: none;
  transition: opacity .22s, visibility .22s; }
.mask.show { opacity: 1; visibility: visible; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 210; background: var(--card);
  border-radius: 20px 20px 0 0; max-height: 92vh; display: flex; flex-direction: column;
  visibility: hidden; pointer-events: none;
  transform: translateY(102%); transition: transform .26s cubic-bezier(.22,.7,.3,1), visibility .26s; }
.sheet.show { transform: translateY(0); visibility: visible; pointer-events: auto; }
.sheet-h { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.sheet-h h3 { font-size: 17px; font-weight: 600; }
.sheet-h .x { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 19px; }
.sheet-b { padding: 4px 18px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-f { padding: 12px 18px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); }

.dialog { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.92);
  width: 84vw; max-width: 360px; background: var(--card); border-radius: 16px; z-index: 220; opacity: 0;
  visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s; overflow: hidden; }
.dialog.show { opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%,-50%) scale(1); }
.dialog .d-b { padding: 26px 22px 18px; text-align: center; }
.dialog .d-b .d-ic { font-size: 44px; margin-bottom: 10px; }
.dialog .d-b h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.dialog .d-b p { font-size: 14px; color: var(--text-2); line-height: 1.65; }
.dialog .d-f { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.dialog .d-f button { height: 50px; font-size: 16px; color: var(--brand); font-weight: 500; }
.dialog .d-f button + button { border-left: 1px solid var(--line); }
.dialog .d-f button.only { grid-column: span 2; }

/* ---------------------------------------------------- 电子参会证 */
.ticket-card { border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(var(--brand-rgb),.18);
  background: var(--card); }
.ticket-top { padding: 20px 20px 46px; color: var(--on-brand); position: relative;
  background: linear-gradient(150deg, var(--brand-dark), var(--brand) 55%, var(--brand-light)); }
.ticket-top h2 { font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.ticket-top .tt-title { font-size: 19px; font-weight: 700; margin-top: 6px; color: var(--gold-soft);
  line-height: 1.35; }
.ticket-top .tt-meta { font-size: 12px; opacity: .92; margin-top: 8px; }
.ticket-body { margin-top: -34px; padding: 0 20px 20px; position: relative; z-index: 2; }
.ticket-inner { background: var(--card); border-radius: 14px; box-shadow: 0 4px 16px rgba(20,24,32,.10);
  padding: 16px; }
.ticket-name { font-size: 22px; font-weight: 700; }
.ticket-sub { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.ticket-qr { display: flex; justify-content: center; padding: 14px 0 6px; }
.ticket-qr img { width: 168px; height: 168px; border-radius: 8px; }
.ticket-code { text-align: center; font-size: 13px; color: var(--text-2); }
.ticket-code b { font-family: ui-monospace, Menlo, monospace; letter-spacing: 2px; color: var(--text); }
.perf { border-top: 1px dashed #E3E6EA; margin: 14px 0 0; position: relative; }
.perf::before, .perf::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--bg); }
.perf::before { left: -26px; } .perf::after { right: -26px; }

/* ---------------------------------------------------- 日程时间轴 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--gold)); opacity: .35; }
.tl-item { position: relative; padding: 0 0 16px; }
.tl-item::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--card); border: 2px solid var(--brand); }
.tl-time { font-size: 12.5px; color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-topic { font-size: 14.5px; font-weight: 500; margin: 3px 0 4px; line-height: 1.5; }
.tl-speaker { font-size: 12.5px; color: var(--text-2); }
.tl-speaker b { color: var(--text); font-weight: 500; }

/* ---------------------------------------------------- 表格（后台） */
.tbl-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.tbl th { background: #FAFBFC; color: var(--text-2); font-weight: 600; text-align: left;
  padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
table.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: #FAFBFC; }
table.tbl .mono { font-family: ui-monospace, Menlo, monospace; }

/* 后台外壳 */
.admin-body { background: #F4F6F8; }
.abar { background: linear-gradient(135deg, #14181F, #232A34); color: #fff; height: 54px;
  display: flex; align-items: center; padding: 0 16px; gap: 14px; position: sticky; top: 0; z-index: 90; }
.abar .brand { font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.abar .brand i { font-style: normal; width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), var(--gold)); display: flex; align-items: center;
  justify-content: center; font-size: 14px; }
.abar nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.abar nav a { padding: 7px 13px; border-radius: 8px; font-size: 13.5px; color: rgba(255,255,255,.72);
  white-space: nowrap; }
.abar nav a.on { background: rgba(255,255,255,.13); color: #fff; }
.abar .who { font-size: 13px; color: rgba(255,255,255,.7); }
.acontent { padding: 16px; }
.ahead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
  flex-wrap: wrap; gap: 10px; }
.ahead h2 { font-size: 19px; font-weight: 600; }
.ahead .sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px;
  margin-bottom: 14px; }
.panel > h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 12px; display: flex;
  align-items: center; gap: 8px; }
.panel > h3::before { content: ""; width: 3px; height: 14px; background: var(--brand);
  border-radius: 2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } }

/* 柱状图 */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 8px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; gap: 4px; height: 100%; }
.bars .bar i { display: block; width: 100%; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand)); min-height: 3px;
  transition: height .5s; }
.bars .bar span { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.bars .bar em { font-style: normal; font-size: 10.5px; color: var(--text-2); }

.progress { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--brand), var(--gold)); transition: width .6s; }

.marquee { height: 30px; overflow: hidden; position: relative; }
.marquee ul { animation: roll 12s linear infinite; }
.marquee li { height: 30px; line-height: 30px; font-size: 13px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.marquee li b { color: var(--brand); font-weight: 500; }
@keyframes roll { 0%,18% { transform: translateY(0); } 25%,43% { transform: translateY(-30px); }
  50%,68% { transform: translateY(-60px); } 75%,93% { transform: translateY(-90px); }
  100% { transform: translateY(-120px); } }

/* 签到结果动画 */
.checkin-hero { text-align: center; padding: 26px 0 8px; }
.checkin-hero .ring { width: 108px; height: 108px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 48px;
  background: linear-gradient(145deg, #E7F7EF, #CCF0DE); color: var(--green); }
.checkin-hero.ok .ring { animation: pop .45s cubic-bezier(.2,1.4,.5,1); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.scan-box { position: relative; border-radius: 14px; overflow: hidden; background: #000;
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 18%; border: 2px solid rgba(var(--gold-rgb),.9);
  border-radius: 14px; box-shadow: 0 0 0 2000px rgba(0,0,0,.34); }
.scan-line { position: absolute; left: 20%; right: 20%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: scanmove 2.1s ease-in-out infinite; }
@keyframes scanmove { 0%,100% { top: 22%; } 50% { top: 76%; } }

/* ===================== 多会议：会议中心 / 会议管理 ===================== */

/* 后台顶栏的「当前管理会议」切换 */
.abar .mt-switch { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; }
.abar .mt-switch b { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 20px;
  background: rgba(var(--gold-rgb), .22); color: var(--gold); white-space: nowrap; }
.abar .mt-switch select { max-width: 190px; font-size: 12.5px; padding: 4px 6px; border-radius: 7px;
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.abar .mt-switch select option { color: #1F2329; background: #fff; }

/* 状态标签 */
.pill { display: inline-block; font-size: 11.5px; line-height: 1.7; padding: 1px 9px; border-radius: 20px;
  background: var(--line); color: var(--text-2); white-space: nowrap; }
.pill.green { background: rgba(var(--green-rgb), .12); color: var(--green); }
.pill.blue { background: rgba(var(--blue-rgb), .12); color: var(--blue); }
.pill.orange { background: rgba(var(--orange-rgb), .14); color: var(--orange); }
.pill.brand { background: rgba(var(--brand-rgb), .1); color: var(--brand); }
.pill.plain { background: transparent; border: 1px solid var(--line); color: var(--text-3); }

/* 会议中心（前台「我的项目」） */
.mt-list { display: flex; flex-direction: column; gap: 12px; }
.mt-sec { font-size: 14px; font-weight: 600; color: var(--text-2); margin: 16px 2px 8px;
  display: flex; align-items: center; gap: 8px; }
.mt-sec:first-child { margin-top: 0; }
.mt-sec em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--text-3); }
.mt-card { display: block; background: var(--card); border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow); position: relative; overflow: hidden; }
.mt-card.is-current { box-shadow: 0 0 0 1.5px rgba(var(--brand-rgb), .45), var(--shadow); }
.mt-card .mt-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.mt-card .mt-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
  color: var(--text-3); }
.mt-card .mt-kind i { font-style: normal; width: 19px; height: 19px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: var(--on-brand); }
.mt-card .mt-top .pill { margin-left: auto; }
.mt-card h3 { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.mt-card .mt-meta { font-size: 13px; color: var(--text-2); margin-top: 7px; line-height: 1.7; }
.mt-card .mt-meta b { font-weight: 600; color: var(--text); }
.mt-card .mt-stats { display: flex; gap: 18px; margin-top: 9px; font-size: 12px; color: var(--text-3); }
.mt-card .mt-stats b { color: var(--brand); font-size: 14px; font-weight: 600; }
.mt-card .mt-acts { display: flex; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.mt-card .mt-acts .btn { width: auto; padding: 8px 15px; font-size: 13.5px; }
.mt-card .mt-acts .btn.primary { background: var(--brand); color: var(--on-brand); }
.mt-card .mt-cover { position: absolute; right: -16px; top: -16px; width: 88px; height: 88px;
  border-radius: 50%; opacity: .07; background: var(--brand); }
.mt-mine { margin-top: 9px; font-size: 12.5px; padding: 7px 10px; border-radius: 9px;
  background: rgba(var(--brand-rgb), .06); color: var(--text-2); }
.mt-mine b { color: var(--brand); }

/* 结束时提示条 */
.ended-bar { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 11px;
  background: rgba(var(--orange-rgb), .1); color: var(--orange); font-size: 13.5px; margin-bottom: 12px; }
.ended-bar i { font-style: normal; font-size: 16px; }
/* 首页的已结束提示条不要落进 hero 的上提重叠区：
   该条为半透明底色，叠在 hero 装饰纹样上会让文字发花、像被裁掉 */
.wrap.overlap > .ended-bar:first-child { margin-top: 22px; }

/* 会议管理（后台） */
.mt-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line);
  flex-wrap: wrap; }
.mt-row:last-child { border-bottom: 0; }
.mt-row .mt-rmain { flex: 1; min-width: 240px; }
.mt-row .mt-rmain h4 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.mt-row .mt-rsub { font-size: 12.5px; color: var(--text-3); margin-top: 4px; line-height: 1.7; }
.mt-row .mt-racts { display: flex; gap: 7px; flex-wrap: wrap; }
.mt-row .mt-racts .btn { padding: 6px 12px; font-size: 12.5px; }

/* 打印 */
@media print {
  .tabbar, .action-bar, .navbar, .abar, .no-print { display: none !important; }
  body { background: #fff; }
}
