/* ==========================================================================
   试驾管理系统 · 样式表
   移动端优先（Mobile First），>= 992px 时切换为桌面布局
   ========================================================================== */

:root {
  --bg:          #f2f5fa;
  --surface:     #ffffff;
  --surface-2:   #f8fafd;
  --ink:         #0f172a;
  --ink-2:       #55617a;
  --ink-3:       #8b95a8;
  --line:        #e5eaf3;
  --line-2:      #eef2f8;

  --brand:       #1b5cff;
  --brand-d:     #0f3fd6;
  --brand-soft:  #eaf0ff;
  --navy:        #0b1f3a;

  --ok:          #0f9d58;
  --ok-soft:     #e6f7ee;
  --warn:        #d98400;
  --warn-soft:   #fff5e3;
  --danger:      #dc2f26;
  --danger-soft: #fdeceb;

  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 6px 20px rgba(15, 23, 42, .06);
  --shadow-lg:   0 14px 40px rgba(15, 23, 42, .12);

  --sidebar-w:   236px;
  --topbar-h:    56px;
  --bottom-h:    62px;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em;
       background: var(--line-2); padding: 1px 5px; border-radius: 5px; color: var(--ink-2); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .94em; }
.muted { color: var(--ink-2); font-size: 13.5px; }
.hint { color: var(--ink-3); font-size: 12.5px; margin-top: 6px; }
.hint--center { text-align: center; margin-top: 14px; }
.req { color: var(--danger); font-style: normal; }
.txt-danger { color: var(--danger); }
.dot { margin: 0 6px; color: var(--ink-3); }

/* ==========================================================================
   通用组件
   ========================================================================== */

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card__head { margin-bottom: 14px; }
.card__head h2 { font-size: 16px; }
.card__head--row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card--danger { border-color: #f6d5d2; }
.sub-title { font-size: 14px; margin: 18px 0 10px; color: var(--ink-2); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform .12s ease, background-color .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(27, 92, 255, .24); }
.btn--primary:hover { background: var(--brand-d); }
.btn--ok { background: var(--ok); color: #fff; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn__spin { display: inline; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; gap: 0 14px; } }

input[type="text"], input[type="tel"], input[type="password"], input[type="date"],
input[type="search"], select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px; /* 16px 可避免 iOS Safari 聚焦时自动放大页面 */
  font-family: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
  appearance: none;
}
textarea { min-height: 76px; resize: vertical; line-height: 1.6; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%238b95a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 34px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 92, 255, .13);
}
input:disabled { background: var(--surface-2); color: var(--ink-3); }
input[type="date"] { min-height: 46px; }

.field__err { display: none; color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.field.has-error .upload { border-color: var(--danger); background: #fffafa; }
.field.has-error .field__err { display: block; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 62px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--brand);
  font-size: 13px; font-family: inherit; font-weight: 600;
  padding: 8px 10px; cursor: pointer;
}
.mini { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); flex: 1; }
.mini input { min-height: 42px; }

/* ---------- 上传区 ---------- */
.upload {
  display: block;
  position: relative;
  border: 1.5px dashed #c8d3e6;
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.upload:hover { border-color: var(--brand); background: var(--brand-soft); }
.upload input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.upload__idle { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-2); }
.upload__idle svg { color: var(--brand); }
.upload__idle strong { font-size: 15px; color: var(--ink); }
.upload__idle small { font-size: 12.5px; color: var(--ink-3); }
.upload--compact { padding: 14px; }
.upload__preview { display: flex; align-items: center; gap: 12px; text-align: left; }
.upload__preview img {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
}
.upload__preview .pv-info { min-width: 0; }
.upload__preview .pv-info strong { display: block; font-size: 13.5px; word-break: break-all; }
.upload__preview .pv-info small { color: var(--ink-3); font-size: 12px; }
.upload__preview .pv-replace { margin-left: auto; font-size: 13px; color: var(--brand); font-weight: 600; }
.pv-file {
  width: 64px; height: 64px; border-radius: 8px; background: var(--danger-soft);
  color: var(--danger); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}

/* ---------- 时段选择 chips ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: all .18s ease;
}
.chip input:checked + span {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand-d);
  box-shadow: 0 0 0 2px rgba(27, 92, 255, .12);
}
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.agree {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px;
  margin: 4px 0 16px; font-size: 13px; color: var(--ink-2); line-height: 1.75;
}
.agree__lead { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.agree input { width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.agree__link {
  font-weight: 700; cursor: pointer;
  border-bottom: 1px solid rgba(27, 92, 255, .38);
  padding-bottom: 1px;
}
.agree__link:hover { color: var(--brand-d); border-bottom-color: var(--brand-d); }
.agree__tail b { color: var(--ink); }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.is-pending  { background: var(--warn-soft);   color: #97590a; }
.is-approved { background: var(--ok-soft);     color: #0a6b3c; }
.is-rejected { background: var(--danger-soft); color: #9b1f18; }
.is-done     { background: var(--brand-soft);  color: var(--brand-d); }
.is-unknown  { background: var(--line-2);      color: var(--ink-2); }

.tag {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 6px;
  background: var(--line-2); color: var(--ink-2);
  font-size: 12px; font-weight: 600;
}
.tag--sm { padding: 1px 7px; font-size: 11.5px; }
.tag--danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- 提示条 ---------- */
.flash-stack { display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; margin-bottom: 10px;
  border: 1px solid transparent;
}
.flash--success { background: var(--ok-soft);     color: #0a6b3c;  border-color: #c4ecd7; }
.flash--error   { background: var(--danger-soft); color: #9b1f18;  border-color: #f8d3d0; }
.flash--warning { background: var(--warn-soft);   color: #97590a;  border-color: #f6e0b6; }
.flash--info    { background: var(--brand-soft);  color: var(--brand-d); border-color: #cddcff; }

.alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 14px; }
.alert--warn { background: var(--warn-soft); color: #8a4f08; border: 1px solid #f3ddb0; }

.empty { color: var(--ink-3); font-size: 14px; text-align: center; padding: 22px 0; }
.empty--warn { color: var(--warn); background: var(--warn-soft); border-radius: var(--radius-sm); }

/* ==========================================================================
   后台布局
   ========================================================================== */

.app { min-height: 100dvh; }

/* ---------- 侧边栏（移动端抽屉） ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--navy);
  color: #cfd9ea;
  display: flex; flex-direction: column;
  z-index: 60;
  transform: translateX(-100%);
  transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}
.sidebar.is-open { transform: translateX(0); }
.sidebar__brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand__mark {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(9, 18, 38, .28);
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__text strong { color: #fff; font-size: 15px; }
.brand__text small { color: #8fa3c2; font-size: 11.5px; }

.sidebar__nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.navlink {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: var(--radius-sm);
  color: #cfd9ea; font-size: 14.5px; font-weight: 600;
  transition: background-color .18s ease, color .18s ease;
}
.navlink:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.navlink.is-active { background: rgba(61, 123, 255, .22); color: #fff; }
.navlink.is-active svg { color: #7ea6ff; }
.navlink--danger { color: #ffb4ae; }
.sidebar__foot { padding: 14px 16px 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.userchip { display: flex; align-items: center; gap: 10px; }
.userchip__avatar {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.userchip__meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.userchip__meta strong { color: #fff; font-size: 13.5px; }
.userchip__meta small { color: #8fa3c2; font-size: 11.5px; }
.sidebar__pwd { display: inline-block; margin-top: 10px; font-size: 12.5px; color: #8fa3c2; }
.sidebar__pwd:hover { color: #fff; }

.scrim {
  position: fixed; inset: 0; background: rgba(8, 17, 32, .5);
  z-index: 55; backdrop-filter: blur(1px);
}

/* ---------- 主区域 ---------- */
.main { display: flex; flex-direction: column; min-height: 100dvh; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__title { flex: 1; font-size: 16.5px; text-align: center; }
.iconbtn {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-2); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }

.content {
  flex: 1;
  padding: 14px 12px calc(var(--bottom-h) + 22px + env(safe-area-inset-bottom));
  max-width: 1180px; width: 100%; margin: 0 auto;
}
.foot { display: none; }

/* ---------- 底部导航（移动端） ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--bottom-h); color: var(--ink-3);
  font-size: 11.5px; font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.bottomnav__item.is-active { color: var(--brand); }

/* ==========================================================================
   后台组件
   ========================================================================== */

/* ---------- KPI ---------- */
.kpi-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.kpi {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 14px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
}
.kpi__label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.kpi__value { font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.kpi__value small { font-size: 14px; font-weight: 700; margin-left: 1px; }
.kpi__foot { font-size: 12px; color: var(--ink-3); }
.kpi--warn .kpi__value { color: var(--warn); }
.kpi--ok   .kpi__value { color: var(--ok); }

.panel-grid { display: grid; grid-template-columns: 1fr; gap: 0; }

/* ---------- 柱状图 ---------- */
.chart {
  display: flex; align-items: stretch; gap: 6px;
  height: 176px; padding-top: 6px;
}
.chart__col {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.chart__num { font-size: 12px; font-weight: 700; color: var(--ink-2); flex: none; }
.chart__track {
  flex: 1; width: 100%; min-height: 0;
  display: flex; align-items: flex-end; justify-content: center;
}
.chart__bar {
  width: 100%; max-width: 34px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #4a86ff, #1b5cff);
  transition: height .5s cubic-bezier(.4, 0, .2, 1);
  min-height: 5px;
}
.chart__x { font-size: 11px; color: var(--ink-3); white-space: nowrap; flex: none; }

/* ---------- 排行榜 ---------- */
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.rank li { display: grid; grid-template-columns: 84px 1fr 34px; align-items: center; gap: 10px; }
.rank__name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank__track { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.rank__track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6fa0ff, #1b5cff); }
.rank__num { font-size: 13px; font-weight: 700; color: var(--ink-2); text-align: right; }
.slot-stats { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 简易列表 ---------- */
.list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 2px; border-bottom: 1px solid var(--line-2);
  color: inherit;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface-2); }
.row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row__title { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.row__sub { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__arrow { color: var(--ink-3); font-size: 20px; }

/* ---------- 选项卡 ---------- */
.tabs {
  display: flex; gap: 7px; overflow-x: auto;
  padding: 2px 0 12px; margin-bottom: 2px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.tab b { font-size: 12.5px; color: var(--ink-3); }
.tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab.is-active b { color: rgba(255, 255, 255, .85); }

/* ---------- 筛选 ---------- */
.filters { margin-bottom: 12px; }
.filters__row { display: flex; gap: 8px; }
.filters__row input[type="search"] { flex: 1; }
.filters__row .btn { flex: none; min-width: 66px; }
.filters__more { margin-top: 9px; }
.filters__more summary {
  cursor: pointer; font-size: 13px; color: var(--ink-2);
  padding: 5px 0; list-style: none;
}
.filters__more summary::-webkit-details-marker { display: none; }
.filters__more summary::before { content: "▸ "; color: var(--ink-3); }
.filters__more[open] summary::before { content: "▾ "; }
.filters__more .filters__row { margin-top: 8px; }

/* ---------- 批量操作条 ---------- */
.bulkbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.bulkbar__all { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.bulkbar__all input { width: 18px; height: 18px; accent-color: var(--brand); }
.bulkbar select {
  min-height: 38px; width: auto; flex: 1 1 120px;
  font-size: 14px; padding: 6px 30px 6px 10px; background-size: 16px;
}
.bulkbar__reason { flex: 2 1 160px; min-height: 38px; font-size: 14px; padding: 8px 11px; }

/* ---------- 申请行 ---------- */
.list--cards { gap: 9px; }
.arow {
  display: flex; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.arow__check {
  display: flex; align-items: center; padding: 0 11px;
  border-right: 1px solid var(--line-2); background: var(--surface-2);
}
.arow__check input { width: 19px; height: 19px; accent-color: var(--brand); }
.arow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 13px; color: inherit; }
.arow__top { display: flex; align-items: center; gap: 9px; }
.arow__name { font-size: 15.5px; font-weight: 700; }
.arow__meta { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; flex-wrap: wrap; }
.arow__meta--dim { font-size: 12.5px; color: var(--ink-3); }
.arow__go {
  display: flex; align-items: center; justify-content: center;
  width: 50px; flex: none; color: var(--ok);
  border-left: 1px solid var(--line-2);
}
.arow__go:hover { background: var(--ok-soft); }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.pager__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600;
}
.pager__btn.is-disabled { color: var(--ink-3); opacity: .55; }
.pager__info { font-size: 12.5px; color: var(--ink-3); text-align: center; flex: 1; }
.pager__info--solo { text-align: center; margin-top: 14px; }

/* ---------- 详情 ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.link--back { font-size: 14px; font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 0; }

.dl { margin: 0; display: flex; flex-direction: column; }
.dl > div {
  display: flex; gap: 12px; padding: 9px 0;
  border-bottom: 1px dashed var(--line-2);
}
.dl > div:last-child { border-bottom: 0; }
.dl dt { flex: none; width: 82px; color: var(--ink-3); font-size: 13px; }
.dl dd { margin: 0; flex: 1; font-size: 14px; word-break: break-word; }

.license { display: flex; flex-direction: column; gap: 9px; }
.license__thumb { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.license__thumb img { display: block; width: 100%; max-height: 260px; object-fit: contain; background: var(--surface-2); }
.license__doc {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); font-weight: 600; font-size: 14px;
}
.license__doc span {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff; border-radius: 6px;
  padding: 3px 8px; font-size: 12px; font-weight: 700;
}
.license__meta { font-size: 12.5px; color: var(--ink-3); word-break: break-all; }

.review-actions { display: flex; flex-direction: column; gap: 9px; }
.reject-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.reject-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.reject-form textarea { margin-bottom: 10px; }
.stack { display: flex; flex-direction: column; }

.sticky-actions {
  position: sticky; bottom: calc(var(--bottom-h) + 8px + env(safe-area-inset-bottom));
  padding-top: 4px;
}

/* ---------- 时间线 ---------- */
.timeline { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li { display: flex; flex-direction: column; padding-left: 12px; border-left: 2px solid var(--line); }
.timeline li.is-ok { border-left-color: var(--ok); }
.timeline li.is-fail { border-left-color: var(--danger); }
.timeline span { font-size: 13.5px; font-weight: 600; }
.timeline small { font-size: 12px; color: var(--ink-3); }

/* ==========================================================================
   登录页
   ========================================================================== */
.login-body {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 22px 16px;
  background:
    radial-gradient(1000px 460px at 12% -8%, #1e3f7a 0%, transparent 62%),
    radial-gradient(760px 420px at 96% 104%, #123a6b 0%, transparent 58%),
    linear-gradient(160deg, #081729 0%, #0e2440 55%, #0a1c33 100%);
}
.login-wrap { width: 100%; max-width: 400px; }
.login-card {
  background: var(--surface); border-radius: 20px;
  padding: 26px 22px 22px; box-shadow: var(--shadow-lg);
}
.login-card__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.login-card__brand strong { display: block; font-size: 17px; }
.login-card__brand small { color: var(--ink-3); font-size: 12.5px; }
.login-card__tip { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.login-foot { text-align: center; color: rgba(255, 255, 255, .5); font-size: 12.5px; margin-top: 18px; }

/* ==========================================================================
   前台（客户预约页）
   ========================================================================== */
.front-body { background: #eef2f8; }

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #081729 0%, #10294a 52%, #0b2137 100%);
  color: #fff;
  padding: 26px 0 30px;
  border-radius: 0 0 26px 26px;
}
.hero__glow {
  position: absolute; inset: -40% -20% auto auto; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(61, 123, 255, .55) 0%, transparent 68%);
  filter: blur(8px); pointer-events: none;
}
.hero__inner { position: relative; max-width: 620px; margin: 0 auto; padding: 0 14px; }
.hero__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.hero__brand .brand__text strong { color: #fff; font-size: 15.5px; }
.hero__brand .brand__text small { color: #8fa3c2; font-size: 12px; }
.hero__title { font-size: 27px; line-height: 1.28; letter-spacing: -.4px; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(92deg, #7ea6ff, #b9d0ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #9dbcff;
}
.hero__sub { margin-top: 12px; font-size: 14px; color: #b7c6dd; }
.hero__points { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hero__points li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #d3ddec; }
.hero__points span {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: rgba(126, 166, 255, .2); color: #a8c4ff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700;
}

.front-main {
  max-width: 620px; margin: 0 auto;
  padding: 16px 14px calc(34px + env(safe-area-inset-bottom));
}
.form-card { margin-top: -18px; padding: 20px 16px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.form-card .card__head h2 { font-size: 18px; }
.form-card .btn--primary { min-height: 50px; font-size: 16px; margin-top: 4px; }
.form-card textarea { min-height: 84px; }

.done-card { text-align: center; margin-top: -18px; padding: 30px 20px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.done-card__icon {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok);
  display: flex; align-items: center; justify-content: center;
}
.done-card h2 { font-size: 19px; }
.done-card__no { margin: 10px 0 12px; font-size: 15px; color: var(--ink-2); }
.done-card__no strong { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--brand-d); font-size: 16px; }
.done-card .btn { margin-top: 18px; }

.hotline {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--ink-2);
}
.hotline a { font-size: 17px; font-weight: 800; letter-spacing: .3px; }
.front-foot { text-align: center; color: var(--ink-3); font-size: 12.5px; margin-top: 22px; }

/* 返回顶部 / 小工具 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   桌面端适配（>= 992px）
   ========================================================================== */
@media (min-width: 992px) {
  .sidebar { transform: translateX(0); }
  .scrim { display: none !important; }
  #menuBtn { display: none; }
  .bottomnav { display: none; }

  .main { margin-left: var(--sidebar-w); min-height: 100dvh; }
  .topbar { padding: 0 26px; height: 62px; }
  .topbar__title { text-align: left; font-size: 18px; }
  .topbar > .iconbtn:last-child { display: none; }

  .content { padding: 22px 26px 40px; }
  .foot {
    display: block; padding: 0 26px 26px;
    color: var(--ink-3); font-size: 12.5px; text-align: center;
  }

  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .kpi__value { font-size: 30px; }
  .panel-grid { grid-template-columns: 1.35fr 1fr; gap: 14px; }
  .detail-grid { grid-template-columns: 1.05fr 1fr; gap: 14px; align-items: start; }
  .card { padding: 20px; }
  .card__head h2 { font-size: 17px; }
  .chart { height: 200px; }

  .bulkbar select { flex: 0 0 auto; }
  .bulkbar__reason { flex: 0 1 260px; }
  .sticky-actions { position: static; }
  .arow__go { width: 58px; }

  /* 前台在桌面端居中呈现手机宽度的卡片布局 */
  .hero { border-radius: 0 0 32px 32px; padding: 46px 0 52px; }
  .hero__inner { padding: 0 24px; }
  .hero__title { font-size: 34px; }
  .front-main { padding: 22px 24px 50px; }
}

@media (min-width: 1280px) {
  .content { padding: 26px 34px 46px; }
  .row { padding: 14px 4px; }
}

/* 打印：仅保留关键信息 */
@media print {
  .sidebar, .topbar, .bottomnav, .bulkbar, .filters, .pager, .sticky-actions, .scrim { display: none !important; }
  .main { margin-left: 0; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}

/* ==========================================================================
   多活动版新增样式
   ========================================================================== */

/* ---------- 前台首页：活动列表 ---------- */
.hero--compact { padding-bottom: 50px; }
.act-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 18px 2px 12px; }
.act-head h2 { font-size: 17px; }
.act-head .muted { font-size: 12.5px; }
.act-list { display: flex; flex-direction: column; gap: 12px; }

/* 竖向活动卡片：横版主题图完整展示在顶部，信息在下方 */
.act-card {
  display: block; color: inherit; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.act-card:active { transform: scale(.994); }
.act-card.is-inactive { opacity: .78; }

/* 封面：横版比例，完整呈现主题图 */
.act-card__cover {
  position: relative; display: block; aspect-ratio: 21 / 9;
  background: linear-gradient(150deg, #10294a, #1b4a8f);
}
.act-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.act-card__ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; font-weight: 800; letter-spacing: -1px;
  color: rgba(255, 255, 255, .88);
  background:
    radial-gradient(130% 92% at 82% 8%, rgba(93, 146, 255, .55), transparent 62%),
    linear-gradient(150deg, #16335c, #0e2440);
}
/* 状态徽标：叠在封面右上角 */
.act-card__state {
  position: absolute; top: 10px; right: 10px;
  box-shadow: 0 2px 10px rgba(9, 18, 38, .3);
}

.act-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 13px; }

.act-card__title {
  font-size: 16px; font-weight: 800; line-height: 1.42; letter-spacing: -.2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.act-card__sub {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* 时间 / 地点：每行一条，图标对齐，超长自动省略 */
.act-card__metas { display: flex; flex-direction: column; gap: 5px; }
.act-meta { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.act-meta svg { flex: none; width: 14px; height: 14px; color: var(--brand); }
.act-meta__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-meta--warn svg { color: var(--warn); }
.act-meta--warn .act-meta__t { color: var(--warn); font-weight: 600; }

.act-card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 3px; }
.act-card__quota { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.quota-bar { flex: 1; min-width: 30px; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.quota-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6fa0ff, #1b5cff); transition: width .4s ease; }
.quota-text { flex: none; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.quota-text b { color: var(--brand-d); font-weight: 800; }

.act-card__cta {
  flex: none; display: inline-flex; align-items: center; gap: 3px;
  padding: 6px 11px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-d);
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.act-card__cta svg { width: 13px; height: 13px; }
.act-card.is-inactive .act-card__cta { background: var(--surface-2); color: var(--ink-3); }

/* ---------- 前台报名页：顶部横幅（图片铺底 + 文字叠加） ---------- */
.apply-hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(150deg, #10294a, #0b2137);
  color: #fff;
}
.apply-hero__cover { position: absolute; inset: 0; z-index: 0; }
.apply-hero__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apply-hero__ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 92px; font-weight: 800; color: rgba(255, 255, 255, .1);
  background:
    radial-gradient(130% 90% at 80% 6%, rgba(93, 146, 255, .5), transparent 60%),
    linear-gradient(150deg, #16335c, #0b2137);
}
/* 自下而上的遮罩，保证文字在任意图片上都清晰可读 */
.apply-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(7, 15, 28, .1) 0%,
    rgba(7, 15, 28, .3) 40%,
    rgba(7, 15, 28, .8) 76%,
    rgba(7, 15, 28, .95) 100%);
}

.apply-hero__inner { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; padding: 0 14px; }

.apply-hero__back {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 7px 13px 7px 9px; border-radius: 999px;
  background: rgba(8, 17, 32, .45); color: #fff;
  font-size: 13.5px; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.apply-hero__state { position: absolute; top: 14px; right: 14px; z-index: 3; box-shadow: 0 4px 14px rgba(4, 10, 22, .32); }

.apply-hero__info { position: relative; padding: 146px 0 24px; }
.apply-hero__info h1 { font-size: 22px; line-height: 1.35; letter-spacing: -.3px; text-shadow: 0 2px 12px rgba(4, 10, 22, .38); }
.apply-hero__sub { margin-top: 8px; font-size: 13.5px; color: #c3d1e6; }

/* 时间 / 地点 / 名额：胶囊标签，自动换行 */
.apply-metas { list-style: none; margin: 15px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.apply-metas li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .15);
  font-size: 12.5px; color: #e8eefb;
}
.apply-metas svg { flex: none; color: #9dbcff; }

.act-intro p { font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.done-card__actions { display: flex; gap: 10px; margin-top: 18px; }
.done-card__actions .btn { flex: 1; }

/* ---------- 个人信息使用授权：独立页 + 弹窗 ---------- */
.agree-doc {
  font-size: 14px; color: var(--ink-2); line-height: 1.9;
  word-break: break-word; overflow-wrap: anywhere;
}

/* 独立页头部（浅色，与报名页深色 hero 区分） */
.doc-head {
  background: linear-gradient(160deg, #081729 0%, #10294a 100%);
  color: #fff;
  padding: 16px 0 18px;
  border-radius: 0 0 22px 22px;
}
.doc-head__inner { max-width: 620px; margin: 0 auto; padding: 0 14px; }
.doc-head__back {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #dbe5f5;
  font-size: 13px; font-weight: 600;
}
.doc-head__back:hover { background: rgba(255, 255, 255, .2); }
.doc-head h1 { margin-top: 12px; font-size: 20px; letter-spacing: -.3px; }

/* 弹窗：移动端底部抽屉，桌面端居中 */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal__scrim {
  position: absolute; inset: 0; background: rgba(8, 17, 32, .58);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: modalFade .18s ease;
}
.modal__box {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px; max-height: 88dvh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 44px rgba(15, 23, 42, .3);
  animation: modalUp .22s ease;
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 12px 12px 16px; border-bottom: 1px solid var(--line);
}
.modal__head h2 { font-size: 17px; }
.modal__close { width: 34px; height: 34px; }
.modal__body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px 16px 18px;
}
.modal__foot {
  display: flex; gap: 10px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.modal__foot .btn { flex: 1; }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalUp { from { opacity: .5; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* 上传区（动态字段版） */
.upload--field { padding: 18px 14px; }
.upload__existing { display: flex; align-items: center; gap: 12px; text-align: left; padding: 2px 0; }
.upload__existing .pv-thumb { width: 54px; height: 54px; border-radius: 8px; background: var(--brand-soft); flex: none; }
.upload__existing .pv-file { flex: none; }

/* ---------- 后台：活动管理 ---------- */
.page-head { align-items: flex-start; }
.page-head__title { font-size: 18px; }

.act-admin-list { display: flex; flex-direction: column; }
.act-admin { padding: 14px; }
.act-admin__head { display: flex; gap: 12px; }
.act-admin__cover {
  width: 92px; height: 62px; flex: none; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #12294a, #1b3f74);
  display: flex; align-items: center; justify-content: center;
}
.act-admin__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-admin__ph { color: rgba(255, 255, 255, .42); font-size: 24px; font-weight: 800; }
.act-admin__info { flex: 1; min-width: 0; }
.act-admin__title { font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.act-admin__sub { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.act-admin__meta { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.act-admin__stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.act-admin__ops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.act-admin__more { margin-top: 10px; border-top: 1px dashed var(--line-2); padding-top: 9px; }
.act-admin__more summary { cursor: pointer; font-size: 13px; color: var(--ink-2); font-weight: 600; list-style: none; }
.act-admin__more summary::-webkit-details-marker { display: none; }
.act-admin__more summary::before { content: "▸ "; color: var(--ink-3); }
.act-admin__more[open] summary::before { content: "▾ "; }
.act-admin__more-body { display: flex; flex-direction: column; gap: 10px; margin-top: 11px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form--danger { border-top: 1px dashed #f3d7d4; padding-top: 10px; }
.inline-form--danger input[type="text"] { flex: 1 1 170px; min-height: 38px; font-size: 14px; }

.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.steps li { line-height: 1.7; }

/* ---------- 后台：表单设计器 ---------- */
.designer { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 12px; }
.designer__list { display: flex; flex-direction: column; gap: 10px; }
.designer__foot { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.designer__foot select { flex: 1; min-height: 40px; font-size: 14px; }

.frow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; }
.frow--builtin { background: #f6f9ff; border-color: #d7e4ff; }
.frow__head { display: flex; align-items: center; gap: 9px; }
.frow__idx {
  width: 22px; height: 22px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; background: var(--line-2); color: var(--ink-3);
  font-size: 11.5px; font-weight: 700;
}
.frow__label { flex: 1; min-height: 40px; font-size: 15px; font-weight: 600; }
.frow__tag {
  flex: none; padding: 2px 8px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand-d);
  font-size: 11.5px; font-weight: 700;
}
.frow__del {
  width: 30px; height: 30px; flex: none;
  border: 0; border-radius: 8px; background: var(--danger-soft); color: var(--danger);
  font-size: 18px; line-height: 1; cursor: pointer; font-family: inherit;
}
.frow__del[disabled] { opacity: .3; cursor: not-allowed; }
.frow__grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 9px; }
.frow__grid .mini { flex: 1 1 150px; }
.frow__fixed { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.frow__ph, .frow__options { display: block; margin-top: 9px; font-size: 12.5px; color: var(--ink-3); }
.frow__ph input, .frow__options textarea { margin-top: 5px; font-size: 14px; min-height: 40px; }
.mini--check { flex: 0 0 auto !important; }
.mini--check input { width: 18px; height: 18px; accent-color: var(--brand); }
.mini--block { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 10px; }

/* ---------- 后台：封面与分享 ---------- */
.cover-box { margin-bottom: 12px; }
.cover-box__img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.cover-box__empty {
  padding: 34px 14px; text-align: center; color: var(--ink-3); font-size: 13.5px;
  background: var(--surface-2); border: 1.5px dashed #c8d3e6; border-radius: var(--radius);
}
.cover-box__remove { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 13px; color: var(--danger); }
.cover-box__remove input { width: 18px; height: 18px; accent-color: var(--danger); }

.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.copy-tip { margin-top: 8px; font-size: 12.5px; color: var(--ok); font-weight: 600; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.qr-panel { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.qr-box {
  width: 100%; max-width: 260px; aspect-ratio: 1; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.qr-box svg { display: block; width: 100%; height: 100%; }
.qr-placeholder { text-align: center; color: var(--ink-3); font-size: 13px; padding-top: 40%; }
.qr-side { width: 100%; }
.qr-side .btn { margin-top: 10px; }

.schema-preview { display: flex; flex-wrap: wrap; gap: 7px; }
.schema-preview .tag em { font-style: normal; color: var(--ink-3); font-weight: 500; margin-left: 5px; font-size: 11px; }
.scope-tip { font-size: 13px; color: var(--ink-2); margin: 0 0 12px; }
.act-ref { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.arow__meta--brief { font-size: 12.5px; color: var(--ink-2); }

/* ---------- 附件网格 ---------- */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.file-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.file-item__thumb { display: block; background: #fff; }
.file-item__thumb img { display: block; width: 100%; height: 118px; object-fit: contain; }
.file-item__doc { display: flex; align-items: center; gap: 8px; padding: 22px 12px; font-size: 13.5px; font-weight: 600; }
.file-item__doc span {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff; border-radius: 6px;
  padding: 3px 8px; font-size: 11.5px; font-weight: 700;
}
.file-item__meta { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.file-item__meta strong { font-size: 12.5px; }
.file-item__meta small { font-size: 11.5px; color: var(--ink-3); word-break: break-all; }

/* ---------- 桌面端补充 ---------- */
@media (min-width: 992px) {
  /* 活动卡片：桌面端封面稍扁，悬停微抬升 */
  .act-card { border-radius: 18px; }
  .act-card__cover { aspect-ratio: 23 / 9; }
  .act-card__body { padding: 14px 16px 15px; }
  .act-card__title { font-size: 17px; }
  .act-card:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(15, 23, 42, .16); border-color: #dbe4f5; }

  /* 报名页横幅：内容列与下方表单对齐 */
  .apply-hero__inner { padding: 0 24px; }
  .apply-hero__back { top: 18px; left: 24px; }
  .apply-hero__state { top: 18px; right: 24px; }
  .apply-hero__info { padding: 196px 0 30px; }
  .apply-hero__info h1 { font-size: 26px; }

  /* 授权弹窗：桌面端居中显示 */
  .modal { align-items: center; }
  .modal__box { border-radius: 18px; max-height: 78dvh; }
  .doc-head { border-radius: 0 0 26px 26px; padding: 22px 0 24px; }
  .doc-head h1 { font-size: 24px; }

  .qr-panel { flex-direction: row; align-items: flex-start; }
  .qr-box { flex: none; }
  .qr-side { flex: 1; }
  .act-admin__cover { width: 132px; height: 84px; }
  .act-admin__ops { margin-top: 0; }
}

