/* ============ 投票端 ============ */
.voter-shell {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  box-shadow: 0 0 70px rgba(16, 52, 96, 0.1);
}
@media (min-width: 621px) {
  .voter-shell { min-height: 100vh; }
}

/* ---------------- 首页 ---------------- */
.home-hero {
  position: relative;
  isolation: isolate;
  padding: calc(16px + var(--safe-top)) 20px 92px;
  min-height: 320px;
  color: #fff;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  background:
    radial-gradient(120% 105% at 12% 38%, rgba(2, 16, 36, 0.6) 0%, rgba(2, 16, 36, 0.16) 62%, rgba(2, 16, 36, 0) 100%),
    linear-gradient(180deg, rgba(3, 18, 38, 0.88) 0%, rgba(4, 26, 52, 0.66) 38%, rgba(4, 26, 52, 0.48) 70%, rgba(3, 18, 38, 0.83) 100%),
    url("/assets/hero.jpg") center 37% / cover no-repeat;
}
.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  right: -130px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 183, 255, 0.34), rgba(96, 183, 255, 0) 68%);
}
.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -60px -120px auto;
  width: 300px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.025), 0 0 0 68px rgba(255, 255, 255, 0.02);
}

.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  width: 38px;
  height: 38px;
  padding: 3px;
  object-fit: contain;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  flex: none;
}
.brand-text { min-width: 0; }
.brand-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.brand-sub {
  margin-top: 1px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}
.hero-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 31px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11.5px;
  backdrop-filter: blur(6px);
  flex: none;
  transition: background 0.2s;
}
.hero-help:hover { background: rgba(255, 255, 255, 0.16); }
.hero-help .ico { width: 14px; height: 14px; }
@media (max-width: 380px) {
  .brand-left { gap: 8px; }
  .brand-name { font-size: 11px; }
  .hero-help { font-size: 10.5px; padding: 0 9px; gap: 4px; }
}

.hero-main { margin-top: 28px; padding-bottom: 26px; }
.hero-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: #a9d7ff;
  text-shadow: 0 1px 10px rgba(0, 15, 35, 0.45);
}
.hero-title {
  margin-top: 9px;
  font-size: 30px;
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-shadow: 0 2px 22px rgba(0, 15, 35, 0.55), 0 1px 3px rgba(0, 15, 35, 0.32);
}
.hero-sub {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
  max-width: 340px;
  text-shadow: 0 1px 10px rgba(0, 12, 30, 0.55);
}
.home-body {
  position: relative;
  z-index: 2;
  margin-top: -54px;
  padding: 0 16px calc(34px + var(--safe-bottom));
}

.progress-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 15px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 48, 92, 0.13);
  border: 1px solid rgba(228, 238, 249, 0.9);
  color: inherit;
}
.progress-ring {
  --p: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), #e8eff8 0);
  position: relative;
}
.progress-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}
.progress-ring span {
  position: relative;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}
.progress-ring span i { font-style: normal; font-weight: 500; color: var(--muted-2); }
.progress-text { flex: 1; min-width: 0; }
.progress-text h3 { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.progress-text h3 .chip { height: 19px; font-size: 10px; padding: 0 6px; }
.progress-text p { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.progress-dots { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.progress-dots i {
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background: #e6edf6;
  transition: background 0.25s;
}
.progress-dots i.on { background: var(--brand); }
.progress-dots i.half { background: #f0b45c; }
.progress-arrow { color: #b7c6d8; flex: none; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 23px 3px 12px;
}
.section-head h2 { font-size: 16px; font-weight: 700; letter-spacing: 0.01em; }
.section-head span { font-size: 11.5px; color: var(--muted-2); }

.ballot-list { display: flex; flex-direction: column; gap: 11px; }
.ballot-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  width: 100%;
  text-align: left;
  color: inherit;
  background: #fff;
  border: 1px solid #e7eef8;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(18, 55, 100, 0.045);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s;
  position: relative;
}
.ballot-card:hover {
  transform: translateY(-1px);
  border-color: #d4e4f5;
  box-shadow: 0 10px 24px rgba(18, 55, 100, 0.09);
}
.ballot-card.is-voted { background: linear-gradient(180deg, #fbfefc, #fff); }
.ballot-card.is-closed { opacity: 0.72; }
.ballot-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
}
.ballot-icon .ico { width: 24px; height: 24px; stroke-width: 1.7; }
.kind-medal { background: linear-gradient(145deg, #fff3e1, #ffe1b7); color: #b46a09; }
.kind-star { background: linear-gradient(145deg, #eaf3ff, #cfe4ff); color: #1a63b8; }
.kind-heart { background: linear-gradient(145deg, #fff0f2, #ffd8df); color: #c23c54; }
.kind-team { background: linear-gradient(145deg, #e9f8f3, #cdeee2); color: #12805e; }
.ballot-main { flex: 1; min-width: 0; }
.ballot-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ballot-name { font-size: 15.5px; font-weight: 700; letter-spacing: 0.01em; }
.ballot-desc {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ballot-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted-2);
}
.ballot-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #cfdae8; }
.ballot-meta .voted { color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.ballot-meta .voted .ico { width: 12px; height: 12px; stroke-width: 2.4; }
.ballot-arrow { color: #b9c8da; flex: none; }
.ballot-arrow .ico { width: 18px; height: 18px; }

.notice-card { margin-top: 20px; padding: 16px; }
.notice-head { display: flex; align-items: center; gap: 8px; }
.notice-head .ico { width: 17px; height: 17px; color: var(--brand); }
.notice-head h3 { font-size: 13.5px; font-weight: 700; }
.notice-list { margin-top: 11px; display: flex; flex-direction: column; gap: 9px; }
.notice-list li { display: flex; gap: 9px; font-size: 11.8px; line-height: 1.65; color: var(--muted); }
.notice-list li b { font-weight: 600; color: var(--ink-2); }
.notice-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef4fb;
  color: var(--brand-ink);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}
.home-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 10.5px;
  color: #9aa9bc;
  line-height: 1.8;
}
.home-foot a { color: #8fa3bc; border-bottom: 1px dashed #c8d6e6; }
.home-foot a:hover { color: var(--brand); }

/* ---------------- 投票页 ---------------- */
.vote-screen { padding-bottom: calc(96px + var(--safe-bottom)); }

.vote-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: calc(9px + var(--safe-top)) 12px 9px;
  background: rgba(246, 250, 254, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(224, 234, 245, 0.8);
}
.vote-head .back {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.7);
  flex: none;
}
.vote-head .back:hover { background: #fff; }
.vote-head .back .ico { width: 19px; height: 19px; }
.vote-title { flex: 1; min-width: 0; }
.vote-title h1 { font-size: 16px; font-weight: 700; letter-spacing: 0.01em; }
.vote-title p { margin-top: 1px; font-size: 10.5px; color: var(--muted); }
.rule-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.rule-btn .ico { width: 13px; height: 13px; }

.vote-body { padding: 13px 16px 10px; }

.select-summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px 19px;
  border-radius: 15px;
  background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 70%);
  border: 1px solid #dbe9f9;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}
.ss-count { display: flex; align-items: baseline; gap: 3px; flex: none; }
.ss-count b {
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s;
}
.ss-count span { font-size: 11.5px; color: var(--muted); }
.ss-text { flex: 1; min-width: 0; }
.ss-text b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ss-text span { display: block; margin-top: 1px; font-size: 10.5px; color: var(--muted); }
.ss-clear {
  flex: none;
  font-size: 11.5px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid #e2ebf6;
  background: rgba(255, 255, 255, 0.7);
}
.ss-clear:hover { color: var(--brand); border-color: #c9dff5; }
.ss-clear:disabled { opacity: 0.4; cursor: default; }
.ss-track {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 4px;
  border-radius: 999px;
  background: #dceaf9;
  overflow: hidden;
}
.ss-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f8fe0, #1667c9);
  transition: width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.select-summary.is-full {
  background: linear-gradient(135deg, #1667c9, #0e56ad);
  border-color: #1667c9;
}
.select-summary.is-full .ss-count b { color: #fff; }
.select-summary.is-full .ss-count span { color: rgba(255, 255, 255, 0.7); }
.select-summary.is-full .ss-text b { color: #fff; }
.select-summary.is-full .ss-text span { color: rgba(255, 255, 255, 0.72); }
.select-summary.is-full .ss-clear {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}
.select-summary.is-full .ss-track { background: rgba(255, 255, 255, 0.22); }
.select-summary.is-full .ss-track i { background: #fff; }

.search-box {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 43px;
  padding: 0 11px;
  background: #fff;
  border: 1px solid #e3ebf5;
  border-radius: 12px;
  color: var(--muted-2);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.search-box:focus-within { border-color: #a8c9ec; box-shadow: 0 0 0 3px rgba(35, 120, 210, 0.09); }
.search-box .ico { width: 17px; height: 17px; }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: var(--ink);
}
.search-box input::placeholder { color: #a3b1c4; }
.search-box input:focus { outline: none; }
.search-clear {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef3f9;
  color: var(--muted);
}
.search-clear .ico { width: 12px; height: 12px; }

.dept-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 11px 0 3px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dept-chips::-webkit-scrollbar { display: none; }
.dept-chip {
  flex: none;
  height: 29px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #e5edf7;
  background: #fff;
  color: var(--ink-2);
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s;
}
.dept-chip small { font-size: 10px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.dept-chip:hover { border-color: #c9dcf1; }
.dept-chip.is-static { cursor: default; background: #f8fbff; }
.dept-chip.is-static:hover { border-color: #e5edf7; }
.dept-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 5px 14px rgba(22, 103, 201, 0.24);
}
.dept-chip.is-active small { color: rgba(255, 255, 255, 0.72); }

.cand-list { display: flex; flex-direction: column; gap: 10px; margin-top: 9px; }
.cand-card {
  display: flex;
  gap: 12px;
  padding: 11px;
  background: #fff;
  border: 1.5px solid #e8eff8;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(18, 55, 100, 0.04);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.2s, transform 0.18s;
  position: relative;
}
.cand-card:hover { border-color: #d4e3f4; box-shadow: 0 7px 18px rgba(18, 55, 100, 0.08); }
.cand-card.is-selected {
  border-color: #2f7fdd;
  background: linear-gradient(180deg, #f7fbff 0%, #fff 90%);
  box-shadow: 0 8px 22px rgba(22, 103, 201, 0.13);
}
.cand-photo {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f7;
  flex: none;
  display: block;
}
.cand-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.cand-photo:hover img { transform: scale(1.035); }
.cand-photo .zoom {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: rgba(12, 32, 58, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}
.cand-photo .zoom .ico { width: 12px; height: 12px; }
.cand-photo.is-empty {
  display: grid;
  place-items: center;
  color: #a9b8cb;
  background: linear-gradient(145deg, #eff4fa, #e5edf6);
  font-size: 22px;
  font-weight: 700;
}
.cand-body { flex: 1; min-width: 0; padding: 1px 0 0; }
.cand-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.cand-name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.015em;
  word-break: break-word;
}
.post-tag {
  flex: none;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--brand-ink);
  background: #ebf3fe;
  border: 1px solid #dceafb;
  padding: 1px 5px;
  border-radius: 5px;
  white-space: nowrap;
}
.check {
  margin-left: auto;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  border: 1.8px solid #cbd8e7;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.check .ico {
  width: 15px;
  height: 15px;
  stroke-width: 2.8;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.16s, transform 0.2s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.check[aria-checked="true"] {
  background: linear-gradient(140deg, #2f8fe0, #1667c9);
  border-color: #1667c9;
  box-shadow: 0 3px 10px rgba(22, 103, 201, 0.3);
}
.check[aria-checked="true"] .ico { opacity: 1; transform: scale(1); }
.check:active { transform: scale(0.9); }

.cand-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.cand-dept {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
}
.cand-dept .ico { width: 12px; height: 12px; color: #a2b2c6; }
.cand-foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 8px 3px 9px;
  border-radius: 7px;
  background: #f2f7fe;
  color: var(--brand-ink);
  font-size: 10.5px;
  border: 1px solid #e6f0fc;
}
.detail-link:hover { background: #e8f2ff; }
.detail-link .ico { width: 12px; height: 12px; }
.picked-flag {
  display: none;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--ok);
  font-weight: 600;
}
.picked-flag .ico { width: 12px; height: 12px; stroke-width: 2.6; }
.cand-card.is-selected .picked-flag { display: inline-flex; }

.list-empty { padding: 40px 16px 30px; }
.list-count { margin: 13px 2px 0; font-size: 11px; color: var(--muted-2); text-align: center; }

/* 底部操作栏 */
.vote-bar {
  position: fixed;
  z-index: 40;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid #e6eef7;
  box-shadow: 0 -8px 28px rgba(18, 55, 100, 0.06);
}
.vb-info { flex: none; min-width: 96px; }
.vb-count { display: flex; align-items: baseline; gap: 2px; font-size: 11px; color: var(--muted); }
.vb-count b {
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  margin: 0 1px;
}
.vb-count span { font-size: 11px; color: var(--muted-2); }
.vb-hint { margin-top: 3px; font-size: 10px; color: var(--muted-2); }
.vb-hint.is-warn { color: var(--warn); }
.vb-submit { flex: 1; height: 46px; border-radius: 13px; font-size: 15px; }
.vb-submit .ico { width: 17px; height: 17px; }

/* ---------------- 详情抽屉 ---------------- */
.sheet-top { display: flex; gap: 15px; padding: 4px 0 0; }
.sheet-photo {
  width: 108px;
  height: 144px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef2f7;
  flex: none;
}
.sheet-photo.is-empty { display: grid; place-items: center; color: #a3b4c8; font-size: 26px; font-weight: 700; }
.sheet-info { flex: 1; min-width: 0; padding-top: 3px; }
.sheet-dept {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--brand-ink);
  background: #edf5fe;
  border: 1px solid #dcebfb;
  padding: 2px 7px;
  border-radius: 999px;
}
.sheet-info h2 {
  margin-top: 7px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.sheet-post { margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }
.sheet-id { margin-top: 9px; font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.02em; }
.sheet-close { position: absolute; top: 10px; right: 12px; z-index: 2; }
.sheet-intro { margin-top: 18px; }
.sheet-intro h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.sheet-intro h4::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2f8fe0, #1667c9);
}
.sheet-intro p {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.95;
  color: #40526a;
  text-align: justify;
  white-space: pre-wrap;
}
.sheet-note {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f5f9ff;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}
.sheet-note .ico { width: 13px; height: 13px; margin-top: 1px; flex: none; }
.sheet-foot {
  padding: 10px 20px calc(16px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), #fff 40%);
  border-top: 1px solid #f0f4fa;
}
.sheet-foot .btn { width: 100%; }
.sheet-foot .hint { margin-top: 7px; text-align: center; font-size: 10.5px; color: var(--warn); }

/* 规则弹层 */
.rule-list { display: flex; flex-direction: column; gap: 11px; }
.rule-list li { display: flex; gap: 10px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.rule-list li .notice-num { margin-top: 3px; background: #eaf3fe; color: var(--brand-ink); }

/* 身份登记 */
.identity-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.identity-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eaf4ff, #d7e9fd);
  color: var(--brand);
  flex: none;
}
.identity-head h3 { font-size: 15.5px; font-weight: 700; }
.identity-head p { margin-top: 2px; font-size: 11px; color: var(--muted); }
.identity-form { display: flex; flex-direction: column; gap: 12px; }
.identity-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted-2);
}
.identity-note .ico { width: 13px; height: 13px; flex: none; margin-top: 1px; }

/* ---------------- 成功页 ---------------- */
.status-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(52px + var(--safe-top)) 24px calc(36px + var(--safe-bottom));
  background:
    radial-gradient(420px 300px at 50% 2%, #dceeff 0%, rgba(220, 238, 255, 0) 70%),
    radial-gradient(300px 240px at 90% 30%, #e8f7f1 0%, rgba(232, 247, 241, 0) 60%),
    #f3f8fe;
  text-align: center;
}
.success-mark {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #34b57e, #0f8a58);
  box-shadow: 0 14px 34px rgba(15, 138, 88, 0.28);
  animation: mark-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.success-mark::before,
.success-mark::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(21, 154, 99, 0.22);
  animation: ring-pulse 2.4s ease-out infinite;
}
.success-mark::after { animation-delay: 0.6s; }
.success-mark .ico { width: 46px; height: 46px; stroke-width: 2.6; }
.closed-mark {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7e91a8;
  background: linear-gradient(150deg, #f2f6fb, #dfe8f3);
  border: 1px solid #e2eaf4;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.6), 0 12px 30px rgba(40, 70, 110, 0.08);
}
.closed-mark .ico { width: 36px; height: 36px; stroke-width: 1.9; }
@keyframes mark-pop { from { transform: scale(0.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ring-pulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  80%, 100% { transform: scale(1.35); opacity: 0; }
}
.status-screen h1 { margin-top: 28px; font-size: 23px; font-weight: 700; letter-spacing: 0.02em; }
.status-sub { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.status-card {
  width: 100%;
  max-width: 380px;
  margin-top: 26px;
  padding: 4px 18px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e7eef8;
  box-shadow: 0 8px 24px rgba(16, 52, 96, 0.06);
  text-align: left;
}
.status-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f4fa;
}
.status-card .row:last-child { border-bottom: 0; }
.status-card .row span { font-size: 12px; color: var(--muted); flex: none; }
.status-card .row b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-align: right; }
.status-note {
  width: 100%;
  max-width: 380px;
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eaf3fd;
  color: #55708f;
  font-size: 11px;
  line-height: 1.65;
  text-align: left;
}
.status-note .ico { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.status-actions { width: 100%; max-width: 360px; margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.status-actions .btn { width: 100%; }
.status-foot { margin-top: auto; padding-top: 30px; font-size: 10.5px; color: #9dadc2; }

/* ---------------- 我的投票 ---------------- */
.mine-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + var(--safe-top)) 14px 10px;
  background: rgba(246, 250, 254, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5eef8;
}
.mine-head h1 { font-size: 16.5px; font-weight: 700; }
.mine-head .back { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-2); }
.mine-body { padding: 16px 16px calc(30px + var(--safe-bottom)); }
.mine-id {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf4ff, #f7fbff);
  border: 1px solid #dbeafb;
  margin-bottom: 16px;
}
.mine-id .avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2f8fe0, #1667c9);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex: none;
}
.mine-id h3 { font-size: 13.5px; font-weight: 700; }
.mine-id p { margin-top: 1px; font-size: 11px; color: var(--muted); }
.mine-id .btn { margin-left: auto; }
.mine-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e7eef8;
  border-radius: 15px;
  margin-bottom: 10px;
}
.mine-card .ballot-icon { width: 40px; height: 40px; border-radius: 11px; }
.mine-card .ballot-icon .ico { width: 20px; height: 20px; }
.mine-card h3 { font-size: 14px; font-weight: 700; }
.mine-card p { margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.mine-card .chip { margin-left: auto; flex: none; }
.mine-card .go { margin-left: auto; flex: none; font-size: 11.5px; color: var(--brand); display: inline-flex; align-items: center; gap: 2px; }
.mine-card .go .ico { width: 13px; height: 13px; }

/* 已投票提示 */
.voted-banner {
  display: flex;
  gap: 12px;
  padding: 16px;
  margin-top: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f2fcf7, #fff);
  border: 1px solid #d5f0e3;
}
.voted-banner .vb-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.voted-banner .vb-ico .ico { width: 22px; height: 22px; stroke-width: 2.6; }
.voted-banner h3 { font-size: 14.5px; font-weight: 700; }
.voted-banner p { margin-top: 3px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* 加载页 */
.page-loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}
.page-loading .spinner { width: 26px; height: 26px; border-width: 3px; }

/* ---------------- v2 评分版新增 ---------------- */
.filter-label { margin: 12px 2px 3px; font-size: 10px; letter-spacing: 0.06em; color: var(--muted-2); }
.final-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #e7eef8;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.final-card.is-done { background: linear-gradient(180deg, #f4fcf8, #fff); border-color: #d6efe3; }
.final-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  background: #eaf3ff;
  color: var(--brand);
}
.final-card.is-done .final-icon { background: #e9f8f1; color: var(--ok); }
.final-icon .ico { width: 19px; height: 19px; }
.final-text { flex: 1; min-width: 0; }
.final-text h3 { font-size: 13px; font-weight: 700; }
.final-text p { margin-top: 2px; font-size: 10.5px; color: var(--muted); line-height: 1.55; }
.final-card .btn { flex: none; height: 32px; padding: 0 11px; font-size: 11.5px; }

.team-symbol {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(145deg, #e9f8f3, #cdeee2);
  color: #12805e;
}
.team-symbol .ico { width: 24px; height: 24px; }
.team-card { align-items: flex-start; }
.team-meta { margin-top: 6px; font-size: 11px; color: var(--muted); }
.team-branch { margin-top: 3px; font-size: 10.5px; color: var(--muted-2); }

.filter-label + .dept-chips { padding-top: 4px; }
.cand-photo.is-empty { cursor: default; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin-top: 14px;
  padding-top: 4px;
  border-top: 1px solid #f1f5fa;
}
.detail-row {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #f4f7fb;
  font-size: 11.5px;
  line-height: 1.55;
}
.detail-row span { flex: none; width: 72px; color: var(--muted); }
.detail-row b { color: var(--ink-2); font-weight: 600; word-break: break-all; }
@media (max-width: 420px) { .detail-grid { grid-template-columns: 1fr; } }

.check.is-disabled { cursor: default; opacity: 0.9; }

.signature-wrap {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.signature-canvas {
  display: block;
  width: 100%;
  height: 220px;
  touch-action: none;
  cursor: crosshair;
}
.signature-line { display: none; }
.signature-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px dashed #e5edf6;
  background: #f8fafd;
  font-size: 10px;
  color: var(--muted-2);
}
.final-signature {
  width: 100%;
  max-width: 380px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e7eef8;
}
.final-signature span { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 6px; }
.final-signature img { max-height: 105px; margin: 0 auto; object-fit: contain; }

@media (min-width: 760px) {
  .cand-list { gap: 12px; }
}
