/* ==========================================================================
   逸成东苑小区电力改造投票系统
   移动优先。投票人含较多老年居民，正文基准字号取 17px，
   可点击区域最小高度 48px，正文对比度全部高于 WCAG AA。
   ========================================================================== */

:root {
  --bg: #f1f5f9;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);

  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --brand-soft: #eff6ff;
  --brand-line: #bfdbfe;
}

[data-theme="west"] {
  --brand: #c2410c;
  --brand-dark: #7c2d12;
  --brand-soft: #fff7ed;
  --brand-line: #fed7aa;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 14px 48px; }

/* ------------------------------------------------------------------ 页头 */
.vote-header {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 26px 18px 30px;
  text-align: center;
}
.district-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .18);
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  padding: 3px 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.vote-header h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .5px;
}
.vote-header .subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  opacity: .9;
}

/* ------------------------------------------------------------------ 卡片 */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  margin-top: 14px;
}
.wrap > .card:first-child { margin-top: -14px; position: relative; z-index: 1; }

.intro .salutation { margin: 0 0 10px; font-weight: 600; font-size: 17px; }
.intro .intro-text { margin: 0; color: var(--ink-2); text-align: justify; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.section-title .num {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
}

/* ------------------------------------------------------------------ 表单 */
.field { margin-bottom: 24px; }
.field:last-child { margin-bottom: 0; }

.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--ink);
}
.req { color: var(--danger); font-weight: 700; }
.field-hint { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); }

.text-input, .text-area {
  width: 100%;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.text-input { min-height: 50px; }
.text-area { resize: vertical; line-height: 1.7; }

.text-input:focus, .text-area:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.text-input.invalid, .text-area.invalid {
  border-color: var(--danger);
  background: var(--danger-bg);
}
.text-input::placeholder, .text-area::placeholder { color: #94a3b8; }

/* --------------------------------------------------------------- 签名板 */
.sign-wrap { margin-top: 4px; }
.sign-pad-box {
  position: relative;
  border: 2px dashed var(--line-strong);
  border-radius: 12px;
  background: #fafafa;
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
.sign-pad-box.signed { border-style: solid; border-color: var(--brand); background: #fff; }
.sign-pad-box.invalid { border-color: var(--danger); background: var(--danger-bg); }

.sign-pad {
  display: block;
  width: 100%;
  height: 190px;
  /* 关键：手写时禁止页面跟随手指滚动 */
  touch-action: none;
  cursor: crosshair;
}
.sign-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #b0b8c4;
  font-size: 19px;
  letter-spacing: 2px;
  pointer-events: none;
}
.sign-pad-box.signed .sign-placeholder { display: none; }
.sign-baseline {
  position: absolute;
  left: 8%; right: 8%; bottom: 42px;
  border-bottom: 1px dashed #d9dfe7;
  pointer-events: none;
}

.sign-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.btn-mini {
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.btn-mini:active { background: #f1f5f9; }
.btn-mini:disabled { opacity: .45; cursor: default; }
.sign-status { margin-left: auto; font-size: 14px; color: var(--ink-3); }
.sign-status.ok { color: #15803d; font-weight: 600; }

/* --------------------------------------------------------------- 地址列表 */
.address-list { display: flex; flex-direction: column; gap: 10px; }
.address-row { display: flex; gap: 8px; align-items: stretch; }
.address-row .text-input { flex: 1; }
.address-remove {
  flex: none;
  width: 50px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.address-remove:active { background: #fee2e2; color: var(--danger); }

.btn-add {
  margin-top: 12px;
  width: 100%;
  min-height: 48px;
  border: 1.5px dashed var(--brand-line);
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn-add:active { background: var(--brand-line); }

/* --------------------------------------------------------------- 方案说明 */
.plan-text {
  margin: 0 0 16px;
  text-align: justify;
  color: var(--ink-2);
}

.facility-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.facility { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.facility-tag {
  flex: none;
  min-width: 38px;
  padding: 2px 8px;
  text-align: center;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}
.facility-desc { flex: 1; color: var(--ink); }
.facility-cap { flex: none; color: var(--brand-dark); font-weight: 600; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- 位置图 */
.map-figure { margin: 0 0 22px; }
.map-open {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}
.map-open img { display: block; width: 100%; height: auto; }
.map-zoom-hint {
  position: absolute;
  right: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.map-figure figcaption {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* --------------------------------------------------------------- 投票选项 */
.question-field { margin-top: 22px; }
.question {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 17px;
}
.options { display: flex; flex-direction: column; gap: 12px; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 15px;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-mark {
  flex: none;
  width: 24px; height: 24px;
  margin-top: 2px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.option-text { flex: 1; line-height: 1.65; }

/* 选中态由 JS 打 .checked，不用 :has()——老版微信 X5 内核不支持该伪类，
   一旦失效居民选完看不到任何反馈，会误以为没选上 */
.option.checked {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.option.checked .option-mark {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 5px var(--brand);
}
.option.focused { box-shadow: 0 0 0 3px var(--brand-soft); }
.options.invalid .option { border-color: var(--danger); }

/* --------------------------------------------------------------- 提交 */
.privacy-note {
  margin: 16px 2px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-3);
  text-align: justify;
}

.form-error {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--danger-bg);
  border: 1.5px solid #fecaca;
  border-left: 4px solid var(--danger);
  border-radius: 10px;
  color: var(--danger);
  font-weight: 600;
  font-size: 15.5px;
}

.btn-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 6px;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(29, 78, 216, .25);
}
[data-theme="west"] .btn-submit { box-shadow: 0 4px 14px rgba(194, 65, 12, .25); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: .6; cursor: default; transform: none; }
.submit-note { margin: 10px 0 0; text-align: center; font-size: 13.5px; color: var(--ink-3); }

/* --------------------------------------------------------------- 图纸查看器 */
.map-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0b1120;
  display: flex;
  flex-direction: column;
}
.map-viewer[hidden] { display: none; }

.map-viewer-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  background: #111c30;
  color: #fff;
  border-bottom: 1px solid #1e293b;
}
/* 返回按钮放左上角，符合手机上「后退」的位置习惯；红叉对老人不够直白 */
.mv-back {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 14px 0 10px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #1e293b;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.mv-back:active { background: #334155; }

.map-viewer-title {
  font-size: 15px; font-weight: 600; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 窄屏优先保证返回和缩放按钮点得到，标题可以不显示 */
@media (max-width: 400px) { .map-viewer-title { display: none; } }
.map-viewer-tools { display: flex; gap: 6px; }
.map-viewer-tools button {
  min-width: 44px; height: 40px;
  padding: 0 10px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #1e293b;
  color: #e2e8f0;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.map-viewer-tools button:active { background: #334155; }
.map-viewer-tools .mv-close { background: #b91c1c; border-color: #b91c1c; color: #fff; }

.map-viewer-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  touch-action: none;
  background: #fff;
}
.map-viewer-stage img {
  position: absolute;
  top: 0; left: 0;
  transform-origin: 0 0;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* 加载提示做成悬浮小条，不遮住图 —— 预览图已经能看，高清是锦上添花 */
.map-status {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  /* 只设了 left 的绝对定位元素，可用宽度只剩一半，文字会早早换行；
     用 max-content 先按内容撑开，再由 max-width 收住 */
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(17, 28, 48, 0.92);
  color: #e2e8f0;
  z-index: 2;
  font-size: 13.5px;
  line-height: 1.4;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.map-status[hidden] { display: none; }
.map-status.error { background: rgba(153, 27, 27, 0.95); color: #fff; }
.map-status button {
  flex: none;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.map-status button[hidden] { display: none; }

.map-viewer-foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #111c30;
}
/* 大屏手机单手够不到左上角，底部再放一个 */
.mv-back-bottom {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.mv-back-bottom:active { background: #1d4ed8; }

.map-viewer-hint {
  flex: 1;
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 13.5px;
  color: #94a3b8;
}

/* --------------------------------------------------------------- 成功页 */
.success-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}
.success-screen[hidden] { display: none; }
.success-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 40px 26px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.success-icon { color: #16a34a; margin-bottom: 12px; }
.success-box h2 { margin: 0 0 10px; font-size: 24px; }
.success-desc { margin: 0 0 22px; color: var(--ink-2); }
.success-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0 0 20px;
  padding: 16px;
  background: var(--bg);
  border-radius: 10px;
  text-align: left;
  font-size: 15px;
}
.success-meta dt { color: var(--ink-3); }
.success-meta dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.success-tip { margin: 0; font-size: 14px; color: var(--ink-3); }

/* --------------------------------------------------------------- 首页 */
.page-home { background: linear-gradient(170deg, #1e3a8a 0%, #0f172a 100%); min-height: 100vh; }
.home-wrap { max-width: 560px; margin: 0 auto; padding: 56px 20px 40px; color: #fff; }
.home-title { font-size: 24px; text-align: center; margin: 0 0 6px; line-height: 1.5; }
.home-sub { text-align: center; color: #cbd5e1; margin: 0 0 12px; font-size: 15px; }
.home-note {
  margin: 0 0 28px;
  padding: 12px 16px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  font-size: 14.5px;
  color: #fde68a;
  text-align: center;
}
.home-links { display: flex; flex-direction: column; gap: 16px; }
.home-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.home-link:active { transform: translateY(1px); }
.home-link-mark {
  flex: none;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.home-link[data-theme="east"] .home-link-mark { background: linear-gradient(160deg, #1d4ed8, #1e3a8a); }
.home-link[data-theme="west"] .home-link-mark { background: linear-gradient(160deg, #c2410c, #7c2d12); }
.home-link-body strong { display: block; font-size: 18px; margin-bottom: 3px; }
.home-link-body span { font-size: 14px; color: var(--ink-3); }
.home-admin { display: block; text-align: center; margin-top: 36px; color: #94a3b8; font-size: 14px; }

@media (min-width: 640px) {
  body { font-size: 17.5px; }
  .vote-header { padding: 40px 20px 44px; }
  .vote-header h1 { font-size: 26px; }
  .card { padding: 26px 28px; }
  .sign-pad { height: 220px; }
}

/* ==========================================================================
   一户一码：业主信息确认卡、二次确认弹窗、已投票页、无效码页
   ========================================================================== */

/* -------------------------------------------------------------- 信息确认卡 */
.owner-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  margin-top: -14px;
  position: relative;
  z-index: 1;
  border-top: 4px solid var(--brand);
}
.owner-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.owner-card-badge {
  flex: none;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 12px;
  border-radius: 6px;
}
.owner-card-label { font-size: 15px; color: var(--ink-2); font-weight: 600; }

.owner-info { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.owner-info > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.owner-info > div:last-child { border-bottom: none; padding-bottom: 0; }
.owner-info dt {
  flex: none;
  width: 72px;
  font-size: 15px;
  color: var(--ink-3);
}
.owner-info dd { margin: 0; flex: 1; }
.oi-name { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.oi-room { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand-dark); }
.oi-area { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

.owner-note {
  margin: 16px 0 0;
  padding: 10px 12px;
  background: #fffbeb;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #92400e;
}

/* -------------------------------------------------------------- 二次确认 */
.confirm-screen {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(15, 23, 42, .55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow-y: auto;
}
.confirm-screen[hidden] { display: none; }
.confirm-box {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 26px 20px calc(24px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 560px;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, .25);
  animation: confirm-up .22s ease-out;
}
@keyframes confirm-up { from { transform: translateY(28px); opacity: .6; } to { transform: none; opacity: 1; } }

.confirm-title { margin: 0 0 20px; font-size: 20px; text-align: center; }

.confirm-list { margin: 0 0 18px; display: flex; flex-direction: column; gap: 0; }
.confirm-list > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.confirm-list dt { flex: none; width: 76px; color: var(--ink-3); font-size: 14.5px; }
.confirm-list dd { margin: 0; flex: 1; font-weight: 600; font-size: 16px; }
#cf-room { font-variant-numeric: tabular-nums; color: var(--brand-dark); }

.cf-sign-row { align-items: center !important; }
.cf-sign-row dd { display: flex; }
#cf-sign {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 3px 8px;
}
.cf-choice-row dd { font-size: 15px; line-height: 1.6; font-weight: 600; }

.confirm-warn {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  color: var(--danger);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.confirm-actions { display: flex; gap: 12px; }
.confirm-actions button {
  flex: 1;
  min-height: 52px;
  border-radius: 12px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.btn-back { background: #f1f5f9; color: var(--ink-2); border: 1.5px solid var(--line-strong) !important; }
.btn-back:active { background: #e2e8f0; }
.btn-go { background: var(--brand); color: #fff; letter-spacing: 1px; }
.btn-go:active { transform: translateY(1px); }
.btn-go:disabled { opacity: .6; }

/* -------------------------------------------------------------- 已投票页 */
.voted-card { text-align: center; padding: 32px 20px 26px; }
.voted-icon { color: #16a34a; margin-bottom: 10px; }
.voted-title { margin: 0 0 6px; font-size: 23px; }
.voted-time { margin: 0 0 22px; color: var(--ink-3); font-size: 15px; font-variant-numeric: tabular-nums; }

.voted-info {
  text-align: left;
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.voted-info .oi-name { font-size: 20px; }
.voted-info .oi-room { font-size: 19px; }
.voted-info .oi-area { font-size: 16px; }

.voted-choice {
  text-align: left;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 2px solid;
}
.voted-choice.is-yes { background: #f0fdf4; border-color: #86efac; }
.voted-choice.is-no { background: #fef2f2; border-color: #fecaca; }
.voted-choice-label {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 6px;
  font-weight: 600;
}
.voted-choice-text { margin: 0; font-weight: 700; line-height: 1.65; }
.voted-choice.is-yes .voted-choice-text { color: #15803d; }
.voted-choice.is-no .voted-choice-text { color: var(--danger); }

.voted-suggestion {
  text-align: left;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 18px;
}
.voted-suggestion p { margin: 0; color: var(--ink-2); text-align: justify; line-height: 1.7; }

.voted-note {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-3);
}

/* -------------------------------------------------------------- 无效码页 */
.invalid-wrap { padding-top: 48px; }
.invalid-card { text-align: center; padding: 36px 22px 30px; }
.invalid-icon { color: #d97706; margin-bottom: 14px; }
.invalid-card h1 { margin: 0 0 14px; font-size: 23px; }
.invalid-desc { margin: 0 0 14px; color: var(--ink-2); }
.invalid-reasons {
  text-align: left;
  margin: 0 0 20px;
  padding: 16px 16px 16px 34px;
  background: var(--bg);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.9;
}
.invalid-contact {
  margin: 0;
  padding: 14px;
  background: var(--brand-soft);
  border-radius: 10px;
  color: var(--brand-dark);
  font-weight: 600;
}

@media (min-width: 640px) {
  .owner-card { padding: 26px 28px; }
  .oi-name { font-size: 27px; }
  .oi-room { font-size: 24px; }
  .confirm-screen { align-items: center; padding: 24px; }
  .confirm-box { border-radius: 18px; }
}
