/* ============================================================
 *  2026 年度优秀教师评选  H5
 *  设计基调：墨蓝 + 暖金 + 纸感米白，克制、庄重、有温度
 * ============================================================ */

:root {
  --navy-900: #14293F;
  --navy-800: #1B3A5C;
  --navy-700: #24476B;
  --navy-600: #2F5B85;
  --navy-50: #EDF2F7;

  --gold-600: #A97A2A;
  --gold-500: #C8963E;
  --gold-300: #E8C27A;
  --gold-100: #FBF3E2;

  --ink: #1A2530;
  --ink-2: #5E6A76;
  --ink-3: #9AA4AE;

  --line: #EAE4D9;
  --bg: #F8F6F1;
  --card: #fff;

  --radius-l: 20px;
  --radius-m: 14px;
  --radius-s: 10px;

  --shadow-1: 0 2px 10px rgba(24, 40, 58, .05);
  --shadow-2: 0 10px 30px rgba(24, 40, 58, .10);
  --shadow-gold: 0 8px 22px rgba(169, 122, 42, .26);

  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 58px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #EEEBE4;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}
body { overflow-x: hidden; }

button { font-family: inherit; border: 0; background: none; cursor: pointer; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font-family: inherit; font-size: 14px; }

#app {
  position: relative;
  width: 100%; max-width: 480px;
  margin: 0 auto; min-height: 100vh;
  background: var(--bg);
  box-shadow: 0 0 60px rgba(30, 42, 56, .10);
  overflow-x: hidden;
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
}
#app.no-tabbar { padding-bottom: 0; }
.view { min-height: 100vh; }

/* ============================================================
 *  首页头部
 * ============================================================ */
.home-head {
  position: relative;
  padding: 20px 18px 62px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(232, 194, 122, .28), rgba(232, 194, 122, 0) 55%),
    linear-gradient(165deg, #24476B 0%, #1B3A5C 45%, #14293F 100%);
}
.home-head::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 78%);
  pointer-events: none;
}
.home-head::after {
  content: "";
  position: absolute; right: -60px; top: -70px;
  width: 210px; height: 210px; border-radius: 50%;
  border: 1px solid rgba(232, 194, 122, .22);
  box-shadow: 0 0 0 30px rgba(232, 194, 122, .05), 0 0 0 62px rgba(232, 194, 122, .035);
  pointer-events: none;
}

.head-top {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; letter-spacing: .04em;
  color: rgba(255, 255, 255, .78);
}
.brand i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 0 3px rgba(232, 194, 122, .2);
}
.head-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 10.5px;
  color: #FFE9C0;
  background: rgba(232, 194, 122, .12);
  border: 1px solid rgba(232, 194, 122, .26);
}
.head-badge .pulse {
  width: 5px; height: 5px; border-radius: 50%; background: #7CE0B0;
  animation: pulse 1.7s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .3; transform: scale(.6); }
}

.head-eyebrow {
  position: relative; z-index: 1;
  margin-top: 22px;
  font-size: 10px; letter-spacing: .26em;
  color: rgba(232, 194, 122, .85);
  font-weight: 600;
}
.head-title {
  position: relative; z-index: 1;
  margin: 8px 0 0;
  font-size: 26px; line-height: 1.35; font-weight: 800;
  letter-spacing: .01em;
}
.head-title em {
  font-style: normal;
  background: linear-gradient(100deg, #FFEFD2 5%, #E8C27A 45%, #C8963E 75%, #FFEFD2 98%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.head-sub {
  position: relative; z-index: 1;
  margin-top: 9px;
  font-size: 12.5px; line-height: 1.7;
  color: rgba(255, 255, 255, .70);
}
.head-meta {
  position: relative; z-index: 1;
  margin-top: 15px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: rgba(255, 255, 255, .82);
}
.head-meta span {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 7px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .10);
}
.head-meta b { color: var(--gold-300); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============================================================
 *  活动简介卡
 * ============================================================ */
.intro-card {
  position: relative; z-index: 2;
  margin: -46px 14px 0;
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  padding: 16px 16px 6px;
}
.intro-card .quote {
  font-size: 13px; line-height: 1.85; color: var(--ink);
  font-weight: 600;
}
.intro-card .desc {
  margin-top: 8px;
  font-size: 12px; line-height: 1.85; color: var(--ink-2);
}
.intro-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 14px; padding: 13px 0 12px;
  border-top: 1px solid var(--line);
}
.intro-stats div { text-align: center; position: relative; }
.intro-stats div + div::before {
  content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: var(--line);
}
.intro-stats b {
  display: block;
  font-size: 18px; font-weight: 800; color: var(--navy-800);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.intro-stats span { font-size: 10.5px; color: var(--ink-3); }

/* ============================================================
 *  区块标题
 * ============================================================ */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin: 24px 18px 12px;
}
.section-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800; letter-spacing: .01em;
}
.section-title::before {
  content: ""; width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-500), var(--navy-700));
}
.section-title small {
  font-size: 10px; font-weight: 600; letter-spacing: .12em;
  color: var(--ink-3); text-transform: uppercase;
}
.section-more {
  font-size: 12px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 2px;
}
.section-more svg { width: 12px; height: 12px; }

/* ============================================================
 *  教师卡片（左右双列）
 * ============================================================ */
.tgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  padding: 0 14px;
}

/* 组别筛选 */
.group-bar {
  display: flex; gap: 7px;
  overflow-x: auto; scrollbar-width: none;
  padding: 0 14px 12px;
  -webkit-overflow-scrolling: touch;
}
.group-bar::-webkit-scrollbar { display: none; }
.gchip {
  flex: none;
  height: 30px; padding: 0 13px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid #E7E2D6;
  transition: all .15s;
}
.gchip.on {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(27, 58, 92, .22);
}
.gchip:active { transform: scale(.96); }

.tcard-work {
  margin-top: 3px;
  font-size: 10.5px; line-height: 1.45; color: var(--ink-3);
  min-height: 30px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.tcard {
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .16s, box-shadow .16s;
  position: relative;
}
.tcard:active { transform: scale(.985); box-shadow: 0 4px 16px rgba(24, 40, 58, .10); }

/* 封面：最美教师海报 */
.cover {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(155deg, var(--c1, #4E7EA8), var(--c2, #1E3F5C));
}
.cover::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 84% 0%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 58%),
    radial-gradient(70% 60% at 0% 100%, rgba(0, 0, 0, .24), rgba(0, 0, 0, 0) 62%);
}
.cover-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* 海报内框 */
.p-frame {
  position: absolute; inset: 7px;
  border: 1px solid rgba(232, 194, 122, .30);
  border-radius: 2px;
  pointer-events: none;
}
.p-year {
  position: absolute; left: 14px; top: 12px;
  font-size: 8.5px; font-weight: 600; letter-spacing: .2em;
  color: rgba(255, 255, 255, .52);
}
.p-no {
  position: absolute; right: 14px; top: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: #E8C27A;
  font-variant-numeric: tabular-nums;
}
.p-no::before {
  content: "No.";
  font-size: 7.5px; opacity: .7; margin-right: 1px;
}
.p-title {
  position: absolute; right: 15px; top: 33px;
  writing-mode: vertical-rl;
  font-size: 19px; font-weight: 800;
  letter-spacing: .24em; line-height: 1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .22);
}
.p-subject {
  position: absolute; left: 13px; bottom: 13px;
  font-size: 9px; font-weight: 700;
  color: #4A3308;
  background: linear-gradient(135deg, #FFE7BC, #E8C27A);
  padding: 2px 7px; border-radius: 3px;
  letter-spacing: .06em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.p-seal {
  position: absolute; left: 13px; top: 34px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  font-size: 8px; font-weight: 800; letter-spacing: 0;
  color: rgba(232, 194, 122, .9);
  border: 1px solid rgba(232, 194, 122, .45);
  border-radius: 2px;
  line-height: 1;
}

.tcard-body { padding: 10px 11px 11px; }
.tcard-name {
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; gap: 5px;
}
.tcard-name .years {
  font-size: 9.5px; font-weight: 600; color: var(--gold-600);
  background: var(--gold-100);
  border: 1px solid #F0E0BE;
  padding: 1px 4px; border-radius: 4px;
}
.tcard-school {
  margin-top: 3px;
  font-size: 10.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tcard-foot {
  margin-top: 9px;
  display: flex; align-items: center; justify-content: space-between;
}
.tcard-votes {
  font-size: 15px; font-weight: 800; color: var(--navy-800);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tcard-votes small { font-size: 9.5px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.tcard-btn {
  height: 26px; padding: 0 11px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
  box-shadow: 0 3px 9px rgba(27, 58, 92, .22);
}
.tcard-btn:active { transform: scale(.95); }

/* ============================================================
 *  排行榜：领奖台
 * ============================================================ */
.podium {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 8px; margin: 6px 12px 0;
}
.podium-item { flex: 1; text-align: center; position: relative; }

.podium-cover {
  position: relative;
  width: 100%; aspect-ratio: 1; max-width: 92px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(150deg, var(--c1, #4E7EA8), var(--c2, #1E3F5C));
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(24, 40, 58, .14);
  display: grid; place-items: center;
}
.podium-cover .p-initial {
  font-size: 28px; font-weight: 800;
  color: #fff;
  letter-spacing: 0;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .24);
}
.podium-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.podium-item.p1 .podium-cover {
  max-width: 104px;
  border-color: #F3DFB6;
  box-shadow: 0 0 0 4px rgba(232, 194, 122, .30), 0 10px 24px rgba(24, 40, 58, .16);
}
.podium-item.p2 .podium-cover { box-shadow: 0 0 0 3px rgba(190, 202, 212, .55), 0 6px 16px rgba(24, 40, 58, .12); }
.podium-item.p3 .podium-cover { box-shadow: 0 0 0 3px rgba(216, 182, 150, .5), 0 6px 16px rgba(24, 40, 58, .12); }

.crown {
  position: absolute; top: -17px; left: 50%; z-index: 3;
  transform: translateX(-50%);
  font-size: 17px;
  filter: drop-shadow(0 3px 6px rgba(169, 122, 42, .4));
  animation: float 2.8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

.podium-rank {
  position: absolute; bottom: -2px; right: -2px; z-index: 3;
  min-width: 22px; height: 22px; padding: 0 4px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff;
  border: 2px solid #fff;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
}
.podium-item.p2 .podium-rank { background: linear-gradient(135deg, #B9C6D2, #7F93A3); }
.podium-item.p3 .podium-rank { background: linear-gradient(135deg, #DCB48E, #AE7B4C); }

.podium-name {
  margin-top: 12px;
  font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.podium-org {
  margin-top: 2px; font-size: 10px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.podium-votes {
  margin-top: 5px;
  font-size: 13px; font-weight: 800; color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}
.podium-votes span { font-size: 9.5px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.podium-btn {
  margin-top: 7px;
  height: 26px; padding: 0 13px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  color: #4A3308;
  background: linear-gradient(135deg, #FFE7BC, #E8C27A);
  box-shadow: 0 3px 9px rgba(169, 122, 42, .22);
}
.podium-item.p1 { transform: translateY(-12px); }

/* ============================================================
 *  排行榜：列表
 * ============================================================ */
.list { padding: 0 14px; display: flex; flex-direction: column; gap: 8px; }

.row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  transition: transform .16s;
}
.row:active { transform: scale(.99); }

.row-rank {
  width: 20px; flex: none; text-align: center;
  font-size: 13px; font-weight: 800; font-style: italic;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.row-rank.top { color: var(--gold-600); }

.row-thumb {
  position: relative;
  width: 46px; height: 46px; flex: none;
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(150deg, var(--c1, #4E7EA8), var(--c2, #1E3F5C));
  display: grid; place-items: center;
}
.row-thumb .r-initial {
  font-size: 19px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .22);
}
.row-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.row-main { flex: 1; min-width: 0; }
.row-name {
  display: flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 700;
}
.row-subject {
  font-size: 9.5px; font-weight: 600; color: var(--navy-700);
  background: var(--navy-50);
  border: 1px solid #DCE6EF;
  padding: 1px 5px; border-radius: 4px;
  flex: none;
}
.row-badge {
  font-size: 9.5px; font-weight: 600; color: var(--gold-600);
  background: var(--gold-100);
  border: 1px solid #F0E0BE;
  padding: 1px 5px; border-radius: 4px;
  flex: none;
}
.row-org {
  margin-top: 3px;
  font-size: 10.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.row-right { flex: none; display: flex; align-items: center; gap: 10px; }
.row-votes {
  font-size: 14.5px; font-weight: 800; color: var(--navy-800);
  font-variant-numeric: tabular-nums;
  line-height: 1.1; text-align: right;
}
.row-votes small { display: block; font-size: 9.5px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.row-btn {
  height: 28px; padding: 0 12px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
  box-shadow: 0 3px 9px rgba(27, 58, 92, .20);
  flex: none;
}
.row-btn:active { transform: scale(.95); }

.delta {
  display: inline-flex; align-items: center;
  font-size: 9.5px; font-weight: 700;
  padding: 1px 4px; border-radius: 4px;
}
.delta.up { color: #B4483E; background: #FBECEA; }
.delta.down { color: #1F8A5B; background: #E9F7F0; }
.delta.flat { color: var(--ink-3); background: #F3F1EC; }

/* ============================================================
 *  教师详情
 * ============================================================ */
.detail-cover {
  position: relative;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  background: linear-gradient(150deg, var(--c1, #4E7EA8), var(--c2, #1E3F5C));
}
.detail-cover::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(100% 70% at 76% 0%, rgba(255, 255, 255, .30), rgba(255, 255, 255, 0) 60%);
}
.detail-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 24, 36, .36) 0%, rgba(12, 24, 36, .06) 34%, rgba(12, 24, 36, .78) 100%);
}
/* 详情页大封面：同款海报放大 */
.detail-cover .p-frame { inset: 13px; border-color: rgba(232, 194, 122, .24); z-index: 3; }
.detail-cover .p-year { left: 24px; top: 56px; font-size: 9.5px; z-index: 3; }
.detail-cover .p-no { right: 24px; top: 56px; font-size: 12px; z-index: 3; }
.detail-cover .p-seal { left: 24px; top: 82px; width: 26px; height: 26px; font-size: 9.5px; z-index: 3; }
.detail-cover .p-title {
  right: 24px; top: 84px; z-index: 3;
  font-size: 30px; letter-spacing: .26em;
  opacity: .95;
}

.navbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
}
.nav-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(20, 30, 40, .32);
  border: 1px solid rgba(255, 255, 255, .20);
  backdrop-filter: blur(8px);
  color: #fff;
}
.nav-btn:active { transform: scale(.94); }

.detail-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 0 20px 34px;
  color: #fff;
}
.detail-no {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600;
  color: var(--gold-300);
  background: rgba(232, 194, 122, .14);
  border: 1px solid rgba(232, 194, 122, .34);
  backdrop-filter: blur(6px);
}
.detail-name {
  margin: 9px 0 0;
  font-size: 27px; font-weight: 800; letter-spacing: .02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .24);
}
.detail-org { margin-top: 5px; font-size: 12px; color: rgba(255, 255, 255, .84); }
.detail-slogan {
  margin: 11px 0 0;
  font-size: 12.5px; line-height: 1.7;
  color: rgba(255, 255, 255, .90);
  border-left: 2px solid rgba(232, 194, 122, .6);
  padding-left: 9px;
}

/* 票数卡 */
.vote-card {
  position: relative; z-index: 3;
  margin: -12px 14px 0;
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  padding: 15px 16px 13px;
}
.vote-num {
  text-align: center;
  font-size: 38px; font-weight: 900; line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--navy-800);
}
.vote-unit { text-align: center; margin-top: 6px; font-size: 10px; color: var(--ink-3); letter-spacing: .18em; }
.vote-split {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 13px; padding-top: 11px;
  border-top: 1px dashed var(--line);
}
.vote-split div { text-align: center; }
.vote-split b { display: block; font-size: 15.5px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.vote-split span { font-size: 10px; color: var(--ink-3); }

/* 差距条 */
.gap-box { margin: 14px 16px 0; }
.gap-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--ink-2); margin-bottom: 7px;
}
.gap-head b { color: var(--navy-800); font-variant-numeric: tabular-nums; }
.gap-bar { height: 7px; border-radius: 999px; background: #EFEAE0; overflow: hidden; }
.gap-fill {
  height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500) 55%, var(--navy-700));
  transition: width .9s cubic-bezier(.2, .9, .2, 1);
}

/* 免费票卡 */
.free-card {
  margin: 14px 14px 0;
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, #FBF5E8, #F7EEDC);
  border: 1px solid #EFE1C4;
}
.free-icon {
  width: 36px; height: 36px; flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 17px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(169, 122, 42, .14);
}
.free-main { flex: 1; min-width: 0; }
.free-title { font-size: 13px; font-weight: 700; color: #6B4A12; }
.free-desc { margin-top: 2px; font-size: 10.5px; color: #9C7A3F; }
.free-btn {
  height: 29px; padding: 0 13px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
  box-shadow: 0 3px 9px rgba(27, 58, 92, .2);
  flex: none;
}
.free-btn[disabled] { background: #E4E0D8; color: #9C958A; box-shadow: none; }

/* 档位快选 */
.tier-scroll {
  display: flex; gap: 9px; overflow-x: auto;
  padding: 12px 14px 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tier-scroll::-webkit-scrollbar { display: none; }
.tier-mini {
  flex: none; width: 98px;
  padding: 11px 8px;
  border-radius: 13px;
  background: #fff;
  border: 1.5px solid var(--line);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-1);
}
.tier-mini:active { transform: scale(.97); }
.tier-mini .tv { font-size: 18px; font-weight: 800; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.tier-mini .tv small { font-size: 9.5px; font-weight: 600; margin-left: 1px; }
.tier-mini .tp { margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.tier-mini .tag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 700; color: #4A3308;
  background: linear-gradient(135deg, #FFE7BC, #E8C27A);
  padding: 2px 7px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(169, 122, 42, .22);
}

/* 教师自述 */
.self-intro {
  position: relative;
  margin: 0 14px;
  padding: 20px 18px 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
}
.self-intro::before {
  content: "";
  position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-300), rgba(232, 194, 122, .15));
}
.si-quote {
  position: absolute; left: 9px; top: 2px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 48px; line-height: 1;
  color: var(--gold-300);
  opacity: .55;
  pointer-events: none;
  user-select: none;
}
.si-p {
  margin: 0;
  font-size: 13.5px;
  line-height: 2.05;
  color: var(--ink-2);
  text-align: justify;
  letter-spacing: .012em;
}
.si-p + .si-p { margin-top: 8px; }
.si-p:first-of-type { text-indent: 0; }
.si-sign {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 7px;
  margin-top: 14px;
}
.si-line {
  width: 20px; height: 1px;
  background: var(--gold-300);
}
.si-name {
  font-size: 12px; font-weight: 700;
  color: var(--gold-600);
  letter-spacing: .06em;
}
.si-org {
  font-size: 10.5px;
  color: var(--ink-3);
  max-width: 58%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 小程序支付引导（live 模式） */
.mpq-wrap {
  margin: 16px 18px 0;
  padding: 16px 14px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}
.mpq-box {
  position: relative;
  width: 176px; height: 176px;
  margin: 0 auto;
  border-radius: 10px;
  background: #F4F2EC;
  overflow: hidden;
}
.mpq-ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 10px; line-height: 1.7;
  color: var(--ink-3);
  text-align: center;
}
.mpq-img {
  position: relative; z-index: 2;
  width: 176px; height: 176px;
  border-radius: 10px;
  background: #F4F2EC;
  object-fit: contain;
  -webkit-touch-callout: default;
}
.mpq-amount {
  margin-top: 10px;
  font-size: 22px; font-weight: 800;
  color: var(--gold-600);
  font-variant-numeric: tabular-nums;
}
.mpq-hint {
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
.mpq-steps {
  margin: 14px 22px 0;
  padding: 0;
  list-style: none;
  counter-reset: mpq;
}
.mpq-steps li {
  counter-increment: mpq;
  position: relative;
  padding-left: 26px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-2);
}
.mpq-steps li::before {
  content: counter(mpq);
  position: absolute; left: 0; top: 3px;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
  color: #fff;
  background: var(--navy-800);
}
.mpq-steps b { color: var(--ink); font-weight: 700; }
.mpq-note {
  margin: 10px 22px 6px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--ink-3);
  text-align: center;
}

/* 底部操作栏 */
.actionbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 480px;
  padding: 9px 14px calc(9px + var(--safe-b));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex; gap: 9px; z-index: 50;
}
/* 首页快捷按钮（二级页面通用） */
.btn-home {
  flex: none; width: 52px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  color: var(--navy-800);
  background: #fff;
  border: 1px solid var(--line);
}
.btn-home svg { width: 19px; height: 19px; stroke-width: 1.9; }
.btn-home:active { transform: scale(.96); background: var(--navy-50); }

.btn-ghost {
  flex: none; width: 76px; height: 46px;
  border-radius: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: 10.5px; font-weight: 600;
  color: var(--navy-800);
  background: var(--navy-50);
  border: 1px solid #DCE6EF;
}
.btn-ghost svg { width: 16px; height: 16px; }
.btn-ghost:active { transform: scale(.97); }

.btn-primary {
  flex: none; width: 168px; max-width: 52%; height: 46px;
  margin-left: auto;
  border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14.5px; font-weight: 800; letter-spacing: .02em;
  color: #4A3308;
  background: linear-gradient(135deg, #FFE7BC 0%, #E8C27A 48%, #C8963E 100%);
  box-shadow: var(--shadow-gold);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  animation: shine 3.6s infinite;
}
@keyframes shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.btn-primary:active { transform: scale(.985); }

/* ============================================================
 *  Tabbar
 * ============================================================ */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 480px;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex; z-index: 60;
}
.tabbar[hidden] { display: none; }
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; font-weight: 600;
  color: var(--ink-3);
  padding-top: 4px;
  position: relative;
}
.tab svg { width: 21px; height: 21px; stroke-width: 1.7; }
.tab.on { color: var(--navy-800); }
.tab.on svg { stroke-width: 2.1; }
.tab.on::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2.5px; border-radius: 0 0 3px 3px;
  background: var(--gold-500);
}

/* ============================================================
 *  活动详情页
 * ============================================================ */
.act-head {
  padding: 22px 18px 18px;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(232, 194, 122, .26), rgba(232, 194, 122, 0) 58%),
    linear-gradient(165deg, #24476B, #14293F);
  color: #fff;
}
.act-head .eyebrow { font-size: 9.5px; letter-spacing: .24em; color: rgba(232, 194, 122, .85); font-weight: 600; }
.act-head h1 { margin: 8px 0 0; font-size: 21px; font-weight: 800; line-height: 1.4; }
.act-head .meta {
  margin-top: 10px; font-size: 11.5px; color: rgba(255, 255, 255, .70);
  line-height: 1.9;
}
.act-head .meta b { color: rgba(255, 255, 255, .92); font-weight: 600; }

.panel {
  margin: 12px 14px 0;
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  padding: 16px 16px 14px;
}
.panel-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 800;
  margin-bottom: 10px;
}
.panel-title::before {
  content: ""; width: 3px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-500), var(--navy-700));
}
.panel p { margin: 0 0 9px; font-size: 12.5px; line-height: 1.92; color: var(--ink-2); }
.panel p:last-child { margin-bottom: 0; }

.hl-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-top: 12px;
}
.hl-item {
  background: var(--navy-50);
  border-radius: 11px;
  padding: 11px 8px;
  text-align: center;
}
.hl-item b { display: block; font-size: 17px; font-weight: 800; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.hl-item span { font-size: 10px; color: var(--ink-3); }

.prize-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.prize-item {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 10px 12px;
  background: #FCFAF5;
  border: 1px solid #F0E9DA;
  border-radius: 11px;
}
.prize-item .medal { font-size: 15px; line-height: 1.4; }
.prize-item b { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.prize-item span { font-size: 11px; color: var(--ink-3); }

/* 流程时间线 */
.timeline { position: relative; padding-left: 20px; margin-top: 4px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1.5px; background: linear-gradient(180deg, var(--gold-300), var(--line));
}
.tl-item { position: relative; padding: 0 0 15px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -19px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
}
.tl-item.on::before { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(200, 150, 62, .16); }
.tl-item.done::before { background: var(--navy-700); border-color: var(--navy-700); }
.tl-t { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.tl-t .now {
  font-size: 9px; font-weight: 700; color: #fff;
  background: var(--gold-500);
  padding: 1px 5px; border-radius: 4px;
}
.tl-d { margin-top: 2px; font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* 规则 */
.rule-item {
  display: flex; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #F4F0E7;
}
.rule-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.rule-item i {
  flex: none;
  width: 17px; height: 17px; margin-top: 1px;
  border-radius: 5px;
  display: grid; place-items: center;
  font-size: 9.5px; font-style: normal; font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
}
.rule-item .rc { flex: 1; }
.rule-item .rh { font-size: 12.5px; font-weight: 700; margin-bottom: 3px; }
.rule-item .rp { font-size: 11.5px; line-height: 1.8; color: var(--ink-2); }

/* 报名 CTA 区 */
.join-card {
  margin: 14px 14px 0;
  padding: 20px 18px;
  border-radius: var(--radius-l);
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(232, 194, 122, .34), rgba(232, 194, 122, 0) 60%),
    linear-gradient(150deg, #24476B, #16293F);
  color: #fff;
  text-align: center;
}
.join-card h3 { margin: 0; font-size: 17px; font-weight: 800; }
.join-card p { margin: 7px 0 14px; font-size: 11.5px; color: rgba(255, 255, 255, .74); line-height: 1.7; }
.join-btn {
  width: 100%; height: 44px;
  border-radius: 12px;
  font-size: 14px; font-weight: 800; color: #4A3308;
  background: linear-gradient(135deg, #FFE7BC, #E8C27A 48%, #C8963E);
  box-shadow: 0 8px 20px rgba(169, 122, 42, .28);
}
.join-btn:active { transform: scale(.985); }

/* 表单 */
.form { padding: 4px 18px 0; }
.field { margin-top: 12px; }
.field label {
  display: block;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 6px;
}
.field label em { font-style: normal; color: #C0483C; margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #FCFAF6;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
  transition: .16s;
  -webkit-appearance: none;
}
.field textarea { min-height: 76px; resize: none; line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 150, 62, .12);
}
.field input.err, .field textarea.err { border-color: #D9614F; background: #FEF7F5; }

.subj-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.subj-chip {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  color: var(--ink-2);
  background: #F7F4ED;
  border: 1px solid var(--line);
}
.subj-chip.on {
  color: #4A3308;
  background: linear-gradient(135deg, #FFE7BC, #E8C27A);
  border-color: #E4C489;
}

.form-tip {
  margin: 12px 18px 0;
  font-size: 10.5px; color: var(--ink-3); line-height: 1.7;
  text-align: center;
}

/* ============================================================
 *  弹层
 * ============================================================ */
.mask {
  position: fixed; inset: 0;
  background: rgba(18, 28, 40, .46);
  backdrop-filter: blur(2px);
  z-index: 100;
  opacity: 0; transition: opacity .24s;
}
.mask.show { opacity: 1; }

.sheet {
  position: fixed; left: 50%; bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%; max-width: 480px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  z-index: 101;
  padding: 8px 0 calc(16px + var(--safe-b));
  transition: transform .32s cubic-bezier(.22, .9, .24, 1);
  max-height: 90vh; overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet.show { transform: translate(-50%, 0); }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: #E7E2D8; margin: 6px auto 4px; }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 4px;
}
.sheet-title { font-size: 15.5px; font-weight: 800; }
.sheet-close {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: #F4F1EA; color: var(--ink-3); font-size: 14px;
}
.sheet-sub { padding: 0 18px; font-size: 11.5px; color: var(--ink-3); line-height: 1.65; }

.tier-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; padding: 14px 18px 4px;
}
.tier-card {
  position: relative;
  padding: 15px 10px 12px;
  border-radius: 14px;
  background: #FCFAF6;
  border: 1.5px solid var(--line);
  text-align: center;
  transition: .18s;
}
.tier-card .t-votes {
  font-size: 23px; font-weight: 900; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.tier-card .t-votes small { font-size: 10.5px; font-weight: 600; color: var(--ink-2); margin-left: 2px; }
.tier-card .t-price { margin-top: 6px; font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.tier-card .t-tag {
  position: absolute; top: -9px; right: 8px;
  font-size: 9px; font-weight: 700; color: #4A3308;
  padding: 2px 7px; border-radius: 999px;
  background: linear-gradient(135deg, #FFE7BC, #E8C27A);
  box-shadow: 0 3px 8px rgba(169, 122, 42, .2);
}
.tier-card.on {
  border-color: var(--gold-500);
  background: linear-gradient(180deg, #FFFAF0, #FFFDF8);
  box-shadow: 0 6px 18px rgba(169, 122, 42, .16);
  transform: translateY(-1px);
}
.tier-card.on .t-votes { color: var(--navy-800); }
.tier-card.on::after {
  content: "";
  position: absolute; right: -1px; bottom: -1px;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, transparent 50%, var(--gold-500) 50%);
  border-radius: 0 0 12px 0;
}

.sheet-note {
  margin: 12px 18px 0;
  font-size: 10.5px; color: var(--ink-3); line-height: 1.7;
  background: #FAF7F1; border-radius: 9px; padding: 9px 11px;
}
.sheet-note a { color: var(--navy-700); font-weight: 600; }

.sheet-pay {
  margin: 14px 18px 0;
  height: 47px; width: calc(100% - 36px);
  border-radius: 13px;
  font-size: 15px; font-weight: 800; color: #4A3308;
  background: linear-gradient(135deg, #FFE7BC, #E8C27A 48%, #C8963E);
  box-shadow: var(--shadow-gold);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.sheet-pay:active { transform: scale(.985); }
.sheet-pay[disabled] { opacity: .45; box-shadow: none; }
.sheet-pay.outline {
  background: none; color: var(--ink-2);
  border: 1px solid var(--line); box-shadow: none; font-weight: 600; font-size: 13px;
}

/* 分享 */
.share-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 18px 16px 6px;
}
.share-item { text-align: center; }
.share-ico {
  width: 50px; height: 50px; margin: 0 auto 7px;
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 21px;
  background: #F8F5EE;
  border: 1px solid #EFE9DD;
}
.share-item span { font-size: 10.5px; color: var(--ink-2); }
.share-item:active .share-ico { transform: scale(.94); }

.wx-tip {
  margin: 8px 16px 0;
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px;
  border-radius: 11px;
  background: linear-gradient(135deg, #EEF6F1, #F6FBF8);
  border: 1px solid #D5EADD;
  font-size: 11.5px; color: #23693F; line-height: 1.65;
}
.wx-tip .arr { font-size: 17px; animation: wiggle 1.5s infinite; }
@keyframes wiggle {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(3px, -4px) rotate(8deg); }
}

/* ============================================================
 *  收银台
 * ============================================================ */
.pay-page { background: #F5F5F5; min-height: 100vh; }
.pay-nav {
  height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-bottom: 1px solid #EBEBEB;
  position: relative;
}
.pay-nav .back { position: absolute; left: 8px; top: 8px; width: 32px; height: 32px; display: grid; place-items: center; color: #333; }
.pay-nav .pay-home {
  position: absolute; right: 10px; top: 10px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: #576B95;
}
.pay-nav .pay-home svg { width: 18px; height: 18px; stroke-width: 1.9; }
.pay-nav .pay-home:active { opacity: .6; }
.pay-nav h1 { font-size: 16px; font-weight: 600; margin: 0; color: #191919; }
.pay-merchant { background: #fff; padding: 25px 20px 21px; text-align: center; }
.pay-merchant .m-name { font-size: 13.5px; color: #7F7F7F; }
.pay-amount {
  margin-top: 10px;
  font-size: 37px; font-weight: 600; color: #191919;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  display: flex; align-items: flex-start; justify-content: center; gap: 2px;
}
.pay-amount .cur { font-size: 21px; margin-top: 7px; }
.pay-rows { margin-top: 10px; background: #fff; }
.pay-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; font-size: 14px;
  border-bottom: 1px solid #F2F2F2;
}
.pay-row:last-child { border-bottom: 0; }
.pay-row .k { color: #7F7F7F; }
.pay-row .v {
  color: #191919; display: inline-flex; align-items: center; gap: 9px;
  max-width: 64%; text-align: right; justify-content: flex-end;
}
.wxpay-logo { width: 23px; height: 23px; border-radius: 6px; background: #07C160; display: grid; place-items: center; flex: none; }
.wxpay-logo svg { width: 14px; height: 14px; fill: #fff; }
.pay-foot {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 480px;
  padding: 12px 16px calc(16px + var(--safe-b));
  background: #fff; border-top: 1px solid #EDEDED;
}
.pay-btn {
  width: 100%; height: 47px; border-radius: 8px;
  background: #07C160; color: #fff;
  font-size: 15.5px; font-weight: 600;
  display: grid; place-items: center;
}
.pay-btn:active { background: #06AD56; }
.pay-tip { margin-top: 10px; text-align: center; font-size: 10px; color: #A6A6A6; line-height: 1.6; }
.demo-badge {
  position: fixed; top: 8px; right: 50px; z-index: 200;
  font-size: 9.5px; font-weight: 700; color: #8A6A2A;
  background: #FBF1DD; border: 1px solid #EDDCB6;
  padding: 3px 8px; border-radius: 999px;
}

/* ============================================================
 *  支付结果
 * ============================================================ */
.result-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(16, 26, 36, .5);
  display: grid; place-items: center;
  opacity: 0; transition: opacity .26s;
  padding: 24px;
}
.result-mask.show { opacity: 1; }
.result-card {
  width: 100%; max-width: 300px;
  background: #fff; border-radius: 20px;
  padding: 25px 21px 18px; text-align: center;
  transform: scale(.9); opacity: 0;
  transition: .32s cubic-bezier(.2, .9, .25, 1.1);
}
.result-mask.show .result-card { transform: scale(1); opacity: 1; }
.result-check {
  width: 58px; height: 58px; margin: 0 auto;
  border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #E8C27A, #C8963E);
  box-shadow: 0 8px 22px rgba(169, 122, 42, .28);
  font-size: 28px; color: #fff;
}
.result-title { margin-top: 13px; font-size: 17.5px; font-weight: 800; }
.result-votes { margin-top: 7px; font-size: 12.5px; color: var(--ink-2); }
.result-votes b { color: var(--navy-800); font-size: 19px; font-variant-numeric: tabular-nums; margin: 0 2px; }
.result-btn {
  margin-top: 17px; width: 100%; height: 43px;
  border-radius: 12px;
  font-size: 14px; font-weight: 800; color: #4A3308;
  background: linear-gradient(135deg, #FFE7BC, #E8C27A 48%, #C8963E);
}
.result-btn.plain {
  margin-top: 8px; background: none; color: var(--ink-3);
  font-weight: 600; font-size: 12px; height: 32px;
}

/* ============================================================
 *  我的 / 空态 / Toast
 * ============================================================ */
.empty {
  padding: 44px 20px; text-align: center;
  color: var(--ink-3); font-size: 12px; line-height: 1.9;
}
.empty .ico { font-size: 32px; opacity: .5; margin-bottom: 10px; }

.mine-stats {
  margin: 12px 14px 0;
  background: #fff; border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 15px 4px;
}
.mine-stats div { text-align: center; }
.mine-stats b { display: block; font-size: 17.5px; font-weight: 800; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.mine-stats span { font-size: 10px; color: var(--ink-3); }

.toast {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.94);
  max-width: 74vw;
  padding: 11px 17px;
  border-radius: 11px;
  background: rgba(20, 30, 42, .88);
  color: #fff; font-size: 12.5px; line-height: 1.55; text-align: center;
  z-index: 400; opacity: 0; pointer-events: none;
  transition: .22s; backdrop-filter: blur(6px);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 动效 */
.fade-up { animation: fadeUp .42s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fly-vote {
  position: fixed; z-index: 500;
  font-size: 15px; font-weight: 800;
  color: var(--gold-600);
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(255, 255, 255, .8);
  animation: flyUp 1s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes flyUp {
  0% { opacity: 0; transform: translateY(0) scale(.7); }
  25% { opacity: 1; transform: translateY(-14px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-58px) scale(1); }
}

.confetti {
  position: fixed; width: 6px; height: 10px;
  z-index: 500; pointer-events: none; border-radius: 1px;
  animation: fall 1.5s ease-in forwards;
}
@keyframes fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), 78vh) rotate(540deg); }
}

.spinner {
  width: 17px; height: 17px;
  border: 2px solid rgba(74, 51, 8, .25);
  border-top-color: #4A3308;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
