/* HSC 活动登记系统 · 全局样式（银灰 / 天蓝 / 浅黄 主题） */
:root {
  --bg: #eef2f6;
  --bg-2: #e7edf3;
  --card: #ffffff;
  --ink: #1e2a35;
  --ink-2: #3b4a58;
  --muted: #77879a;
  --line: #dde5ee;
  --line-2: #eef2f7;

  /* 品牌：天蓝 */
  --brand: #2a7fc1;
  --brand-d: #1f679f;
  --brand-l: #e7f1fa;
  /* 点缀：浅黄 */
  --sun: #e9b93c;
  --sun-d: #c99a25;
  --sun-l: #fdf6e3;
  /* 状态色 */
  --danger: #d3564a;
  --danger-d: #b23f34;
  --danger-l: #fdeceb;
  --ok: #2f7d52;
  --ok-l: #e7f3ec;
  --warn: #b4762a;
  --warn-l: #fdf2e2;

  /* 兼容旧变量名（海报页等仍在用） */
  --red: var(--brand);
  --red-d: var(--brand-d);
  --red-l: var(--brand-l);
  --gold: var(--sun);
  --gold-l: var(--sun-l);

  --radius: 18px;
  --shadow: 0 10px 28px rgba(30, 42, 53, .07), 0 2px 6px rgba(30, 42, 53, .05);
  --shadow-lift: 0 16px 38px rgba(30, 42, 53, .12);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 重要：.btn / .btn-row 自带 display，会盖掉浏览器对 [hidden] 的默认隐藏 */
[hidden] { display: none !important; }

/* Vue 挂载前先藏住原始模板，避免 {{ }} 闪烁 */
[v-cloak] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  padding: 18px 16px 40px;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 620px at 10% -12%, rgba(42, 127, 193, .16), transparent 62%),
    radial-gradient(900px 520px at 94% -4%, rgba(233, 185, 60, .18), transparent 60%),
    radial-gradient(820px 540px at 50% 112%, rgba(42, 127, 193, .10), transparent 64%),
    linear-gradient(180deg, #f4f7fa 0%, #e9eff5 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.wrap { max-width: 520px; margin: 0 auto; }

body[data-page="admin"] .wrap { max-width: 1180px; }
body[data-page="confirm"] .wrap { max-width: 520px; }

/* ---------------- 头部 ---------------- */
.hero { padding: 10px 4px 16px; text-align: center; }

.brand {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand-d);
  font-weight: 750;
  padding: 4px 12px;
  border: 1px solid rgba(42, 127, 193, .28);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, rgba(231, 241, 250, .9));
  box-shadow: 0 2px 8px rgba(42, 127, 193, .10);
}

.hero h1 {
  margin: 12px 0 4px;
  font-size: 30px;
  letter-spacing: .06em;
  font-weight: 800;
  color: var(--ink);
}

.hero .sub { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------------- 卡片 ---------------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 20px;
  margin-bottom: 14px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

@media (hover: hover) {
  .card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: #d3dfeb; }
}

.card > h2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
}

.card h2 .accent { color: var(--ink); }

/* 规则 */
.rule ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.rule li { margin: 5px 0; }
.rule li b { color: var(--brand-d); font-weight: 750; }
.rule .tagline {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------------- 表单 ---------------- */
.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .04em;
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  font-size: 17px;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  font-family: inherit;
}

.field input:focus {
  background: #fff;
  border-color: rgba(42, 127, 193, .55);
  box-shadow: 0 0 0 3px rgba(42, 127, 193, .12);
}

.field input::placeholder { color: #a9b7c6; }

.hint { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------------- 按钮 ---------------- */
.btn {
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 17px;
  font-weight: 650;
  font-family: inherit;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform .16s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, background .2s, opacity .15s, border-color .2s;
}

.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  color: #fff;
  background-image: linear-gradient(180deg, #3f92d2, var(--brand-d));
  box-shadow: 0 10px 22px rgba(31, 103, 159, .26);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .42) 50%, transparent 66%);
  transform: translateX(-130%);
  pointer-events: none;
}

@media (hover: hover) {
  .btn:not(:disabled):hover { box-shadow: 0 14px 26px rgba(31, 103, 159, .30); }
  .btn-primary:not(:disabled):hover::after { animation: hscSheen .85s ease; }
}

.btn-lg { height: 58px; font-size: 19px; letter-spacing: .12em; }

.btn-ghost {
  color: var(--ink-2);
  background: #fff;
  border-color: var(--line);
}

.btn-danger { color: #fff; background-image: linear-gradient(180deg, #df7064, var(--danger-d)); box-shadow: 0 8px 18px rgba(178, 63, 52, .22); }

.btn-sm { width: auto; height: 36px; font-size: 13.5px; padding: 0 12px; border-radius: 10px; }
.btn-block { width: 100%; }

.btn-row { display: flex; gap: 10px; }
.btn-row .btn { width: 100%; }

/* ---------------- 已登记信息条 ---------------- */
.me-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.me-name { font-size: 20px; font-weight: 750; }
.me-phone { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.me-actions { margin-top: 10px; }

/* ---------------- 二维码 ---------------- */
.qr-card { text-align: center; }
.qr-card > h2 { text-align: center; }

.qr-box {
  width: 260px;
  max-width: 100%;
  margin: 4px auto 14px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(30, 42, 53, .08);
}

.qr-box svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.modal .qr-box { width: 78vw; max-width: 320px; }
#qrCard .qr-box { width: 304px; }
#qrCard .hint { text-align: center; line-height: 1.6; }

.qr-tip {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 650;
  color: var(--brand-d);
}

.qr-sub { margin: -8px 0 14px; font-size: 12.5px; color: var(--muted); }

/* ---------------- 完成态 ---------------- */
.done-card { text-align: center; background-image: linear-gradient(180deg, #fff, #f2f8fd); }
.done-mark {
  width: 56px; height: 56px; margin: 2px auto 10px;
  border-radius: 50%;
  background: var(--ok-l);
  color: var(--ok);
  font-size: 30px;
  line-height: 56px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(47, 125, 82, .16);
}
.done-mark.bad { background: var(--danger-l); color: var(--danger); box-shadow: 0 6px 16px rgba(211, 86, 74, .16); }
.done-card h2 { text-align: center; color: var(--ok); letter-spacing: .1em; }
.done-text { margin: 0; color: var(--ink-2); font-size: 15px; }

.draw-line {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--sun-l);
  border: 1px solid #f4e4bd;
  color: #8a6320;
  font-size: 14.5px;
  font-weight: 650;
}

.draw-line a { color: var(--brand-d); font-weight: 700; }
.draw-line .draw-go { display: block; margin: 6px 0 4px; font-size: 15px; }
/* 提示条要和上面那行分开，别叠在一起 */
.draw-line .tip-warn {
  display: block;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #9a7328;
}

/* ---------------- 大数字 ---------------- */
.big {
  text-align: center;
  padding: 6px 0 2px;
}
.big .num {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.big .num.zero { color: #b9c5d1; }
.big .unit { font-size: 15px; color: var(--muted); margin-left: 2px; }
.big .label { margin-top: 2px; font-size: 13.5px; color: var(--muted); }

/* ---------------- 列表 ---------------- */
.list { margin: 0; padding: 0; list-style: none; }
.list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.list li:last-child { border-bottom: 0; }
.list .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink);
}
.list .meta { color: var(--muted); font-size: 12.5px; }
.list .empty { color: var(--muted); justify-content: center; }

/* ---------------- 状态标记 ---------------- */
.chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}
.chip-none { background: #eef2f7; color: var(--muted); }
.chip-pending { background: var(--warn-l); color: var(--warn); }
.chip-done { background: var(--ok-l); color: var(--ok); }
.chip-fail { background: var(--danger-l); color: var(--danger); }
.chip-gold { background: var(--sun-l); color: #8a6320; }

/* ---------------- 底部链接 ---------------- */
.foot-link {
  display: block;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color .18s;
}
.foot-link:hover { color: var(--brand); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  top: 10px;
  transform: translate(-50%, -10px);
  max-width: 88vw;
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(30, 42, 53, .94);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 90;
  text-align: center;
  box-shadow: 0 12px 28px rgba(30, 42, 53, .24);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: rgba(178, 63, 52, .96); }

/* ---------------- 弹层 ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(30, 42, 53, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 80;
  backdrop-filter: blur(2px);
}
.modal-mask[hidden] { display: none; }
.modal {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 20px;
  padding: 24px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}
.modal h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: .06em; color: var(--muted); }
.modal .code-xl {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--brand);
  margin: 8px 0 4px;
  word-break: break-all;
}
.modal .modal-tip { color: var(--muted); font-size: 13px; margin: 6px 0 18px; }
.modal .detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.modal .detail-actions .btn { width: 100%; padding: 9px 10px; font-size: 13.5px; }
.modal .detail-del { width: 100%; margin-top: 8px; }
.modal .detail-note { text-align: left; color: var(--muted); font-size: 12.5px; line-height: 1.7; margin: 10px 0 0; }
/* 卡片表：桌面上姓名格里的手机号隐藏，单独的手机号列显示；手机上反过来 */
table.tbl-cards td.cell-name .cell-phone { display: none; }

/* ---------------- 管理后台 ---------------- */
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.admin-head .t { font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.admin-head .who { font-size: 13px; color: var(--muted); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.tab.active { background-image: linear-gradient(180deg, #3f92d2, var(--brand-d)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(31, 103, 159, .24); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) { .stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); } }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; color: var(--brand-d); }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }

.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
table.tbl th, table.tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.tbl th { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .04em; background: #f7fafd; position: sticky; top: 0; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr { transition: background .15s; }
table.tbl tbody tr:hover { background: #f2f8fd; cursor: pointer; }
table.tbl .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; }
table.tbl .num { font-variant-numeric: tabular-nums; }

.empty-tip { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; }

/* 登录页 */
.login-card { max-width: 380px; margin: 8vh auto 0; }
.login-card .hero { padding-bottom: 10px; }

.msg { margin: 10px 0 0; font-size: 13.5px; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }

/* 扫码确认页：当前工作人员条 */
.staff-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 12px; padding: 9px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.staff-bar b { color: var(--ink); font-weight: 700; }
.linklike {
  appearance: none; background: none; border: 0; padding: 2px 4px; cursor: pointer;
  color: var(--brand); font-size: 12.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.linklike:active { opacity: .6; }

/* 摊位二维码网格 */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 14px; }
.qr-tile {
  display: block; padding: 14px 12px 12px; text-align: center; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: transform .18s, box-shadow .2s;
}
.qr-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.qr-tile-box svg { width: 132px; height: 132px; display: block; margin: 0 auto 8px; }
.qr-tile-name { font-size: 15px; font-weight: 750; letter-spacing: .06em; }
.qr-tile-url { margin-top: 4px; font-size: 11px; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }

/* 兑奖二维码 / 核销 */
.modal .code-qr { width: 190px; margin: 10px auto 6px; }
.modal .code-qr:empty { display: none; }
.code-inline { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .1em; }
.scan-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.scan-input {
  flex: 1 1 150px; min-width: 120px; padding: 11px 13px; font-size: 15px;
  font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}

@media (max-width: 420px) {
  .hero h1 { font-size: 26px; }
  .big .num { font-size: 56px; }
  .card { padding: 16px 15px 18px; }
}

/* ---------------- 手机端后台（使用场景基本都是手机） ---------------- */
.danger-card { border-color: #f2cfcb; background: #fffafa; }
.danger-card h2 { color: var(--danger-d); }

@media (max-width: 760px) {
  body[data-page="admin"] .wrap { padding: 12px 10px 40px; max-width: 100%; }
  body[data-page="admin"] .card { padding: 14px 13px 16px; }

  .admin-head { flex-wrap: wrap; gap: 8px; align-items: center; }
  .admin-head .t { font-size: 17px; line-height: 1.3; }
  .admin-head .who { font-size: 12px; }
  .admin-head .btn-row { width: 100% !important; gap: 6px; }
  .admin-head .btn { flex: 1 1 auto; padding: 8px 10px; font-size: 13px; }

  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stats .stat { padding: 11px 12px; border-radius: 14px; }
  .stats .stat .k { font-size: 12px; }
  .stats .stat .v { font-size: 26px; }
  .stats .stat .v small { font-size: 11px; }

  .tabs {
    flex-wrap: nowrap; overflow-x: auto; gap: 6px;
    position: sticky; top: 0; z-index: 5;
    background: var(--bg); padding: 6px 0 8px; margin: 0 -10px 10px; padding-left: 10px; padding-right: 10px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 8px 11px; font-size: 13px; }

  .tbl-wrap { overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .tbl-cards thead { display: none; }
  .tbl-cards tbody, .tbl-cards tr, .tbl-cards td { display: block; }
  .tbl-cards tbody tr {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 11px 13px 9px; margin-bottom: 9px; box-shadow: var(--shadow);
  }
  .tbl-cards td {
    display: inline-flex; align-items: center; gap: 6px;
    border: 0; padding: 3px 0; margin-right: 12px; font-size: 14px;
  }
  .tbl-cards td[data-label]::before {
    content: attr(data-label); color: var(--muted); font-size: 12px; white-space: nowrap;
  }
  .tbl-cards td.cell-name {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    width: 100%; margin: 0 0 6px; padding-bottom: 7px; border-bottom: 1px solid var(--line-2);
  }
  .tbl-cards td.cell-name::before { content: none; }
  .tbl-cards td.cell-name b { font-size: 17px; }
  .tbl-cards td.cell-name .cell-phone { display: block; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
  .tbl-cards td.cell-phone-only { display: none; }
  .tbl-cards td[data-label="操作"], .tbl-cards td[data-label="状态"] { margin-right: 0; }
  .tbl-cards td .btn { padding: 7px 12px; font-size: 13px; }

  table.tbl { min-width: 0; width: 100%; }
  .tbl-cards td { max-width: 100%; flex-wrap: wrap; overflow-wrap: anywhere; }
  .scan-bar { gap: 8px; }
  .scan-bar .btn { flex: 1 1 46%; }
  .scan-input { flex: 1 1 100%; }
  .modal { width: calc(100% - 24px); padding: 18px 16px; }
  #panelAccounts .card, #panelSettings .card, #panelPosters .card { margin-top: 12px; }
  .qr-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* 后台顶部通用扫码卡 */
.scan-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 13px 10px; margin: 0 0 14px; box-shadow: var(--shadow);
}
.scan-card .scan-bar:last-of-type { margin-bottom: 0; }
.scan-card .hint { margin: 8px 0 0; }
.tip-warn { color: var(--warn); background: var(--warn-l); border: 1px solid #f0dcbe; border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.5; text-align: center; }

/* ================= 动效 ================= */
@keyframes hscFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes hscPop {
  0% { opacity: 0; transform: scale(.86); }
  60% { opacity: 1; transform: scale(1.015); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes hscSheen {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}
@keyframes hscRing {
  0% { box-shadow: 0 0 0 0 rgba(47, 125, 82, .34); }
  70% { box-shadow: 0 0 0 14px rgba(47, 125, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 125, 82, 0); }
}
@keyframes hscFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes hscSweep {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}
@keyframes hscFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 卡片依次淡入 */
.wrap > .card,
.wrap > .scan-card,
.wrap > .hero { animation: hscFadeUp .5s cubic-bezier(.2, .8, .2, 1) both; }
.wrap > :nth-child(1) { animation-delay: .02s; }
.wrap > :nth-child(2) { animation-delay: .07s; }
.wrap > :nth-child(3) { animation-delay: .12s; }
.wrap > :nth-child(4) { animation-delay: .17s; }
.wrap > :nth-child(5) { animation-delay: .22s; }
.wrap > :nth-child(6) { animation-delay: .27s; }
.wrap > :nth-child(n+7) { animation-delay: .30s; }

/* 品牌胶囊与标题 */
.brand { animation: hscPop .55s cubic-bezier(.2, .8, .2, 1) both; }
.hero .sub { animation: hscFade .8s ease both; }
.hero h1 {
  background-image: linear-gradient(96deg, var(--ink) 20%, var(--brand-d) 55%, #2f8fd0 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hscFadeUp .55s .05s cubic-bezier(.2, .8, .2, 1) both, hscSweep 6s 1.2s ease-in-out infinite alternate;
}

/* 二维码出现时轻轻放大 + 呼吸 */
.qr-box { animation: hscPop .45s cubic-bezier(.2, .8, .2, 1) both, hscFloat 4.5s 1s ease-in-out infinite; }

/* 完成徽章：弹入 + 绿色光圈脉冲 */
.done-mark { animation: hscPop .55s cubic-bezier(.2, .8, .2, 1) both, hscRing 2.6s .5s ease-out infinite; }
.done-mark.bad { animation: hscPop .55s cubic-bezier(.2, .8, .2, 1) both; }

/* 大数字 */
.big .num { animation: hscPop .5s cubic-bezier(.2, .8, .2, 1) both; }

/* 弹层 */
.modal-mask { animation: hscFade .18s ease both; }
.modal { animation: hscPop .26s cubic-bezier(.2, .8, .2, 1) both; }

/* 列表项轻微进入 */
.list li { animation: hscFadeUp .35s ease both; }
.list li:nth-child(2) { animation-delay: .04s; }
.list li:nth-child(3) { animation-delay: .08s; }
.list li:nth-child(4) { animation-delay: .12s; }
.list li:nth-child(n+5) { animation-delay: .16s; }

/* 表格行进入 */
table.tbl tbody tr { animation: hscFade .3s ease both; }

/* 统计卡 */
.stat { animation: hscFadeUp .45s cubic-bezier(.2, .8, .2, 1) both; }
.stat:nth-child(2) { animation-delay: .05s; }
.stat:nth-child(3) { animation-delay: .10s; }
.stat:nth-child(4) { animation-delay: .15s; }
.stat:nth-child(5) { animation-delay: .20s; }
.stat:nth-child(6) { animation-delay: .25s; }

/* 尊重「减少动态效果」的系统设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
