/* ==========================================================================
   赛事报名小程序 · 浏览器演示页
   视觉尽量贴近微信小程序原生组件（导航栏 / 卡片 / tabBar / toast）
   ========================================================================== */

:root {
  --brand: #c8102e;
  --brand-dark: #a00d25;
  --brand-light: #fdeaed;
  --gold: #d4af37;
  --gold-light: #fff6dc;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --line: #ececf0;
  --bg: #f5f6f8;
  --white: #fff;
  --ok: #1f9e7a;
  --warn: #e8892b;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  background: #14161c;
  color: var(--ink);
}

/* ---------------------------------------------------------------- 外层布局 */
.stage {
  display: flex;
  height: 100vh;
  align-items: stretch;
  gap: 0;
}

.side {
  flex: 1;
  min-width: 0;
  padding: 40px 44px;
  color: #e8e9ee;
  overflow-y: auto;
  background: linear-gradient(160deg, #1b1e26 0%, #14161c 60%);
}

.side h1 {
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}
.side h1 .accent { color: #ff5a72; }

.side .sub { color: #9aa0ae; font-size: 13px; margin: 0 0 26px; line-height: 1.7; }

.side h2 {
  font-size: 13px;
  color: #6f7686;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 30px 0 12px;
  font-weight: 600;
}

.mod-list { display: flex; flex-direction: column; gap: 10px; }

.mod {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.mod .idx {
  width: 22px; height: 22px; flex: none;
  border-radius: 6px;
  background: #ff5a72;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.mod .txt b { display: block; font-size: 14px; color: #fff; margin-bottom: 3px; font-weight: 600; }
.mod .txt span { font-size: 12px; color: #98a0b0; line-height: 1.6; }

.hint-box {
  margin-top: 26px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 178, 60, 0.08);
  border: 1px solid rgba(255, 178, 60, 0.22);
  font-size: 12px;
  color: #d9b98a;
  line-height: 1.75;
}
.hint-box b { color: #ffc65c; }

.api-box {
  margin-top: 14px;
  font-size: 11px;
  color: #6f7686;
  font-family: 'SF Mono', Consolas, Menlo, monospace;
  line-height: 1.9;
  word-break: break-all;
}
.api-box code { color: #7fd3a8; }

/* ---------------------------------------------------------------- 手机壳 */
.phone-wrap {
  flex: none;
  width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #22252f 0%, #171920 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  overflow-y: auto;
}

.phone {
  width: 390px;
  height: 844px;
  background: #000;
  border-radius: 46px;
  padding: 11px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.09) inset;
  position: relative;
  flex: none;
}

.screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 150px; height: 26px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 60;
}

/* 状态栏 */
.statusbar {
  height: 44px;
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 26px 5px;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  background: var(--white);
  position: relative;
  z-index: 50;
}
.statusbar .right { display: flex; gap: 5px; align-items: center; }
.statusbar .bat {
  width: 22px; height: 11px; border: 1px solid #1a1a1a; border-radius: 3px;
  position: relative; padding: 1px;
}
.statusbar .bat::after { content: ''; position: absolute; right: -3px; top: 3px; width: 2px; height: 5px; background: #1a1a1a; border-radius: 0 1px 1px 0; }
.statusbar .bat i { display: block; height: 100%; width: 78%; background: #1a1a1a; border-radius: 1px; }

/* 导航栏 */
.navbar {
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}
.navbar.dark { background: linear-gradient(135deg, #c8102e, #e0344f); border-bottom: none; }
.navbar.dark .title, .navbar.dark .back { color: #fff; }
.navbar .title { font-size: 16px; font-weight: 600; text-align: center; flex: 1; }
.navbar .back {
  position: absolute; left: 8px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #1a1a1a; cursor: pointer;
}
.navbar .home-dot {
  position: absolute; left: 8px;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 6px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 12px; color: #1a1a1a;
}

/* 页面容器 */
.pages { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.pages::-webkit-scrollbar { width: 0; }

.page { display: none; min-height: 100%; padding-bottom: 12px; }
.page.active { display: block; animation: fadeIn 0.22s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* tabBar */
.tabbar {
  flex: none;
  height: 56px;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 40;
}
.tabbar .tab {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: var(--ink-3);
  cursor: pointer;
  position: relative;
}
.tabbar .tab.on { color: var(--brand); }
.tabbar .tab .ico { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.tabbar .tab .ico svg { width: 22px; height: 22px; }
.tabbar .tab.on .ico { transform: translateY(-1px); }
.tabbar .tab .badge {
  position: absolute; top: 4px; left: 56%;
  min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--brand); color: #fff;
  border-radius: 8px; font-size: 10px; line-height: 15px; text-align: center;
}

/* ---------------------------------------------------------------- 通用组件 */
.card {
  background: #fff;
  border-radius: var(--radius);
  margin: 10px 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; border: 1px solid var(--line); }

.sec-title {
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.sec-title::before {
  content: ''; width: 3px; height: 14px;
  background: var(--brand); border-radius: 2px;
}
.sec-title .more { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 400; }

.btn {
  display: block; width: 100%;
  height: 44px; line-height: 44px;
  background: var(--brand); color: #fff;
  border: none; border-radius: 22px;
  font-size: 15px; font-weight: 600;
  text-align: center; cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.btn:active { opacity: .85; transform: scale(.99); }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.gray { background: #f0f1f3; color: var(--ink-3); }
.btn.sm { height: 34px; line-height: 34px; font-size: 13px; border-radius: 17px; }
.btn[disabled] { background: #d8dade; color: #fff; cursor: not-allowed; }

.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  background: var(--brand-light);
  color: var(--brand);
}
.tag.gold { background: var(--gold-light); color: #a8801a; }
.tag.gray { background: #f0f1f3; color: var(--ink-3); }
.tag.green { background: #e6f7f1; color: var(--ok); }

.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.muted { color: var(--ink-3); font-size: 12px; }

/* 表单 */
.field {
  display: flex; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.field:last-child { border-bottom: none; }
.field .lb { width: 74px; flex: none; color: var(--ink-2); }
.field input, .field .val {
  flex: 1; border: none; outline: none;
  font-size: 14px; background: transparent; color: var(--ink);
  min-width: 0; width: 100%;
}
.field input::placeholder { color: #c2c4c9; }
.field.err { background: #fff8f8; }
.field.err input { color: var(--brand); }

/* Toast / Loading */
.mask {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none; align-items: center; justify-content: center;
  z-index: 200;
}
.mask.show { display: flex; }
.toast {
  position: absolute; left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8); color: #fff;
  padding: 12px 18px; border-radius: 8px;
  font-size: 13px; z-index: 300;
  display: none; max-width: 240px; text-align: center; line-height: 1.5;
}
.toast.show { display: block; animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; } }

/* ---------------------------------------------------------------- 首页 */
/* KV 主视觉：通栏（不左右留白），图铺满后压一层由下往上的暗色蒙版，
   保证文案在浅色主视觉上也读得清。没配图时走红金渐变兜底。 */
.hero {
  position: relative;
  aspect-ratio: 750 / 420;
  overflow: hidden;
  background: linear-gradient(160deg, #6d0716 0%, #c8102e 58%, #f0a03c 100%);
}
.hero-bg { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.38) 46%, rgba(0,0,0,.72) 100%);
}
.hero-body { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; }
.hero-slogan {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 12px;
  font-size: 11px;
  letter-spacing: 1px;
}
.hero-title {
  margin-top: 7px;
  font-size: 22px; font-weight: 800; line-height: 1.22; letter-spacing: 1px;
  text-shadow: 0 1px 6px rgba(0,0,0,.38);
}
.hero-meta { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 11px; opacity: .92; }
.hero-deadline { padding: 1px 7px; border-radius: 10px; background: rgba(255,255,255,.18); }

.banner { position: relative; margin: 10px 12px 0; }
.swiper {
  position: relative;
  /* 与轮播设计稿同比例（702×320）：换图不必再改高度，手机壳宽度变了也自动跟随 */
  aspect-ratio: 702 / 320;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
  background: #ececf0;
}
.swiper .slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .4s;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff; text-align: center;
}
.swiper .slide.on { opacity: 1; }
.swiper .slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.swiper .slide h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.swiper .slide p { margin: 0; font-size: 13px; opacity: .92; letter-spacing: 1px; }
/* 右下角页码胶囊（替代原来的圆点，浅色图上也能看清） */
.banner-idx {
  position: absolute; right: 8px; bottom: 8px; z-index: 6;
  padding: 2px 9px; border-radius: 12px;
  background: rgba(0,0,0,.42); color: #fff;
  font-size: 11px; line-height: 17px;
}

/* 项目报名入口：封面图 + 项目名 + 报名通道 */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 12px 0; }
.proj { cursor: pointer; transition: transform .12s; }
.proj:active { transform: scale(.97); }
.proj .cov { display: block; width: 100%; height: 113px; object-fit: cover; border-radius: 8px; background: #ececf0; }
.proj .name { margin-top: 9px; text-align: center; font-size: 14px; color: #2b2b2b; letter-spacing: .5px; }
.proj .cta { margin-top: 4px; text-align: center; font-size: 13px; color: var(--brand); letter-spacing: .5px; }

/* 赛事详情长图：三片首尾相接，display:block 去掉 img 的行内基线间隙 */
.detail-img { display: block; width: 100%; }

/* 时间表 */
.timeline { position: relative; padding-left: 4px; }
.timeline .item {
  position: relative;
  padding: 0 0 16px 22px;
  border-left: 2px solid var(--line);
}
.timeline .item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline .item::before {
  content: ''; position: absolute; left: -6px; top: 3px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand);
}
.timeline .item.done::before { background: var(--brand); }
.timeline .st { font-size: 14px; font-weight: 600; }
.timeline .tm { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.timeline .rm { font-size: 11px; color: var(--warn); margin-top: 2px; }

/* 奖金表 */
.prize-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.prize-table th, .prize-table td {
  border: 1px solid var(--line);
  padding: 8px 4px; text-align: center;
}
.prize-table thead th { background: #fafafb; font-weight: 600; }
.prize-table tbody th { background: #fafafb; font-weight: 600; width: 62px; }
.prize-table .amt { color: var(--brand); font-weight: 600; }

/* ---------------------------------------------------------------- 报名 */
.group-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 16px;
  background: #f2f3f5; font-size: 13px; color: var(--ink-2);
  cursor: pointer; border: 1px solid transparent;
}
.chip.on { background: var(--brand-light); color: var(--brand); border-color: var(--brand); font-weight: 600; }

.member-card {
  background: #fafbfc; border-radius: 10px;
  padding: 4px 12px; margin-bottom: 10px;
  border: 1px solid var(--line);
}
.member-card .hd {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; padding: 8px 0;
}
.member-card .hd .del { color: var(--ink-3); font-size: 12px; font-weight: 400; cursor: pointer; }
.member-card .hd .del:hover { color: var(--brand); }

.add-btn {
  border: 1px dashed #c9ccd2; border-radius: 10px;
  height: 42px; display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 13px; cursor: pointer; background: #fcfcfd;
}

.notice {
  background: #fffdf5; border: 1px solid #f2e3b8;
  border-radius: 8px; padding: 10px 12px;
  font-size: 12px; color: #8a6d3b; line-height: 1.7;
  max-height: 190px; overflow-y: auto;
}
.notice ol { margin: 0; padding-left: 16px; }
.notice li { margin-bottom: 5px; }

.agree { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); margin: 12px 0; }
.agree input { accent-color: var(--brand); }

/* ---------------------------------------------------------------- 投票 */
.filter-bar {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 0 12px 10px;
}
.filter-bar::-webkit-scrollbar { height: 0; }
.filter-bar .f {
  flex: none; padding: 5px 12px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2); cursor: pointer;
}
.filter-bar .f.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.vote-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.vote-item:last-child { border-bottom: none; }
.rank-no {
  width: 26px; flex: none; text-align: center;
  font-size: 15px; font-weight: 700; color: var(--ink-3);
  font-style: italic;
}
.rank-no.top { color: var(--gold); }
.avatar {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 600;
}
.vote-item .info { flex: 1; min-width: 0; }
.vote-item .nm { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.vote-item .sl {
  font-size: 11px; color: var(--ink-3); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bar-wrap { margin-top: 6px; height: 4px; background: #f0f1f3; border-radius: 2px; overflow: hidden; }
.bar-wrap i { display: block; height: 100%; border-radius: 2px; transition: width .5s ease; }
.vote-item .cnt { font-size: 12px; color: var(--brand); font-weight: 600; margin-top: 4px; }
.vote-btn {
  flex: none; padding: 6px 14px; border-radius: 15px;
  background: var(--brand); color: #fff; font-size: 12px;
  border: none; cursor: pointer; font-weight: 600;
}
.vote-btn[disabled] { background: #ececf0; color: #b0b2b8; }

.vote-quota {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; margin: 10px 12px 0;
  background: linear-gradient(135deg, #fff1f3, #fff8e8);
  border-radius: 10px; font-size: 12px;
}
.vote-quota .n { color: var(--brand); font-weight: 700; font-size: 16px; }

/* ---------------------------------------------------------------- 抽奖 */
.wheel-page {
  background: linear-gradient(180deg, #b00d26 0%, #8a0a1e 100%);
  min-height: 100%;
  padding: 16px 12px 24px;
  text-align: center;
}
.wheel-head { color: #ffe9c9; }
.wheel-head .t { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.wheel-head .s { font-size: 12px; opacity: .85; margin-top: 5px; }

.wheel-box {
  position: relative;
  width: 300px; height: 300px;
  margin: 18px auto 0;
}
.wheel-box canvas { width: 300px; height: 300px; display: block; }
.wheel-box .outer {
  position: absolute; inset: -10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f7d68a, #d4af37 45%, #a8801a 75%, #f7d68a);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.wheel-box .bulbs { position: absolute; inset: -10px; pointer-events: none; }
.wheel-box .bulbs i {
  position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: #fffbe6;
  box-shadow: 0 0 6px #ffe89a;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.wheel-box .canvas-holder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.wheel-box .pointer {
  position: absolute; left: 50%; top: 2px;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 20px solid #ffdf6b;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.3));
  z-index: 5;
}
.wheel-box .go {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%;
  background: linear-gradient(160deg, #fff6dc, #e8b93a);
  border: 4px solid #fff;
  color: #8a0a1e; font-size: 17px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3);
  letter-spacing: 1px; z-index: 6;
}
.wheel-box .go:active { transform: translate(-50%, -50%) scale(.94); }
.wheel-box .go.spinning { background: linear-gradient(160deg, #eee, #ccc); color: #888; }

.chance-line { color: #ffe9c9; font-size: 13px; margin-top: 16px; }
.chance-line b { color: #ffdf6b; font-size: 17px; }

.prize-strip {
  margin: 14px 0 0;
  background: rgba(0,0,0,.22);
  border-radius: 10px; padding: 10px;
  height: 40px; overflow: hidden; position: relative;
}
.prize-strip .line {
  font-size: 12px; color: #ffe9c9; line-height: 20px;
  display: flex; justify-content: space-between;
}

/* 中奖弹窗 */
.prize-modal {
  position: absolute; inset: 0; z-index: 250;
  background: rgba(0,0,0,.6);
  display: none; align-items: center; justify-content: center;
}
.prize-modal.show { display: flex; animation: fadeIn .2s; }
.prize-modal .box {
  width: 268px; background: #fff; border-radius: 16px;
  padding: 26px 20px 20px; text-align: center;
  animation: zoomIn .3s cubic-bezier(.2,1.4,.4,1);
}
@keyframes zoomIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.prize-modal .icon { font-size: 44px; line-height: 1; }
.prize-modal .tt { font-size: 17px; font-weight: 700; margin: 12px 0 6px; }
.prize-modal .nm { font-size: 15px; color: var(--brand); font-weight: 600; }
.prize-modal .tip { font-size: 11px; color: var(--ink-3); margin-top: 12px; line-height: 1.6; }
.prize-modal .acts { display: flex; gap: 10px; margin-top: 16px; }
.prize-modal .acts button { flex: 1; }

/* ---------------------------------------------------------------- 我的 */
.mine-head {
  background: linear-gradient(135deg, #c8102e, #e0344f);
  padding: 22px 16px 30px;
  color: #fff;
}
.mine-head .u { display: flex; align-items: center; gap: 12px; }
.mine-head .av {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600;
  border: 2px solid rgba(255,255,255,.45);
}
.mine-head .u { cursor: pointer; }
.mine-head .nm { font-size: 17px; font-weight: 600; }
.mine-head .medit { font-size: 11px; font-weight: 400; opacity: .85; margin-left: 4px; }
.mine-head .id { font-size: 11px; opacity: .8; margin-top: 3px; font-family: monospace; }

/* ---------------------------------------------------------------- 头像 */
.av-lg {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
}
.av-xl {
  width: 88px; height: 88px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 40px; color: #fff;
  border: 3px solid rgba(255,255,255,.5);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.av-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.av-cell {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
  border: 3px solid transparent;
}
.av-cell.on { border-color: var(--brand); transform: scale(1.08); }

/* ---------------------------------------------------------------- 个人资料 */
.prof-head {
  background: linear-gradient(135deg, #c8102e, #e0344f);
  padding: 24px 16px 26px; color: #fff; text-align: center;
}

/* ---------------------------------------------------------------- 电竞宝贝评选 */
.vote-quota .btn.signin { height: 30px; line-height: 30px; font-size: 11px; border-radius: 15px; }
.vote-quota .btn.signin.done { background: #ececf0; color: var(--ink-3); border-color: #ececf0; }

.baby-cta {
  display: flex; align-items: center;
  margin: 10px 12px 0; padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #c8102e, #e0344f);
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(200, 16, 46, .22);
}
.baby-cta .t { font-size: 15px; font-weight: 600; }
.baby-cta .s { font-size: 11px; opacity: .85; margin-top: 4px; }
.baby-cta .ar { margin-left: auto; font-size: 22px; opacity: .8; }

.baby-item {
  display: flex; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.baby-item:last-child { border-bottom: none; }
.baby-cover {
  position: relative; width: 100px; height: 130px; flex: none;
  border-radius: 10px; overflow: hidden; background: #f0f1f3; cursor: pointer;
}
.baby-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.baby-cover .ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 30px; font-weight: 600;
}
.baby-cover .rk {
  position: absolute; left: 0; top: 0;
  padding: 2px 7px; font-size: 10px; font-style: italic; font-weight: 700;
  color: #fff; background: rgba(0,0,0,.45);
  border-bottom-right-radius: 8px;
}
.baby-cover .rk.top { background: rgba(212,175,55,.92); }
.baby-cover .vd {
  position: absolute; right: 4px; bottom: 4px;
  padding: 2px 6px; font-size: 9px; color: #fff;
  background: rgba(0,0,0,.5); border-radius: 10px;
}
.baby-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.baby-hd { display: flex; align-items: center; gap: 8px; }
.baby-hd .av {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
}
.baby-hd .nm { font-size: 15px; font-weight: 600; }
.baby-info .sl {
  font-size: 11px; color: var(--ink-3); margin-top: 6px; line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.baby-ft { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.baby-ft .cnt { font-size: 13px; font-weight: 700; color: var(--brand); }
.baby-ft .vote-btn { margin-left: auto; }

/* ---------------------------------------------------------------- 参选表单 */
.baby-state {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 10px 12px 0; padding: 11px 14px;
  background: #fff; border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}
.up-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.up-cell {
  position: relative; width: 74px; height: 74px;
  border-radius: 8px; overflow: hidden; background: #f0f1f3;
}
.up-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-cell .del {
  position: absolute; top: 0; right: 0;
  width: 18px; height: 18px; line-height: 17px; text-align: center;
  font-size: 13px; color: #fff; background: rgba(0,0,0,.45);
  border-bottom-left-radius: 8px; cursor: pointer;
}
.up-cell .cover-tip {
  position: absolute; left: 0; bottom: 0;
  padding: 1px 5px; font-size: 9px; color: #fff; background: rgba(200,16,46,.9);
  border-top-right-radius: 6px;
}
.up-cell.add {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px dashed #c8cad0; background: #fafbfc; cursor: pointer;
}
.up-cell.add .plus { font-size: 22px; color: #c8cad0; line-height: 1; }
.up-cell.add .tx { font-size: 9px; color: var(--ink-3); margin-top: 3px; }

.up-video {
  height: 100px; border: 1px dashed #c8cad0; border-radius: 10px;
  background: #fafbfc; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.up-video .plus { font-size: 24px; color: #c8cad0; line-height: 1; }
.up-video .tx { font-size: 11px; color: var(--ink-3); margin-top: 4px; }

/* ---------------------------------------------------------------- 选手详情 */
.baby-banner { position: relative; width: 100%; height: 300px; background: #000; }
.baby-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.baby-banner .dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
}
.baby-banner .dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer;
}
.baby-banner .dots i.on { background: var(--brand); width: 14px; border-radius: 3px; }

.baby-slogan {
  margin-top: 12px; padding: 10px 12px;
  background: var(--brand-light); border-radius: 8px;
  font-size: 13px; color: #a00d25; line-height: 1.7;
}
.wall { display: flex; flex-wrap: wrap; gap: 6px; }
.wall img { width: 74px; height: 74px; border-radius: 6px; object-fit: cover; }

.warn-tx { color: var(--warn) !important; }


.stat-row {
  display: flex; background: #fff; border-radius: var(--radius);
  margin: -18px 12px 0; padding: 14px 0;
  box-shadow: var(--shadow); position: relative;
}
.stat-row .s { flex: 1; text-align: center; cursor: pointer; }
.stat-row .s .n { font-size: 19px; font-weight: 700; color: var(--brand); }
.stat-row .s .l { font-size: 11px; color: var(--ink-3); margin-top: 3px; }

.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-item .ico { width: 30px; text-align: center; font-size: 17px; }
.list-item .tx { flex: 1; font-size: 14px; }
.list-item .ar { color: #c8cad0; font-size: 15px; }

.empty { text-align: center; padding: 44px 0; color: var(--ink-3); }
.empty .em { font-size: 40px; opacity: .35; }
.empty .tx { font-size: 13px; margin-top: 10px; }

.signup-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.signup-item:last-child { border-bottom: none; }
.signup-item .hd { display: flex; align-items: center; justify-content: space-between; }
.signup-item .nm { font-size: 14px; font-weight: 600; }
.signup-item .no { font-size: 11px; color: var(--ink-3); font-family: monospace; margin-top: 3px; }
.signup-item .mem { font-size: 11px; color: var(--ink-3); margin-top: 5px; line-height: 1.6; }

.prize-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.prize-item:last-child { border-bottom: none; }
.prize-item .ic { font-size: 26px; width: 34px; text-align: center; }
.prize-item .nm { font-size: 14px; font-weight: 600; }
.prize-item .cd { font-size: 11px; color: var(--ink-3); font-family: monospace; margin-top: 3px; }

.code-box {
  font-family: monospace; font-size: 15px; letter-spacing: 2px;
  background: #f7f8fa; padding: 10px; border-radius: 8px;
  text-align: center; margin: 14px 0;
}

/* 响应式：窄屏只留手机 */
@media (max-width: 1080px) {
  .side { display: none; }
  .phone-wrap { width: 100%; border-left: none; }
}
