* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #eef1f6; color: #333; font-size: 15px; }
img { display: block; }
a { text-decoration: none; }

.wrap { max-width: 640px; margin: 0 auto; padding: 12px 12px 80px; }

/* 横幅 */
.banner img { width: 100%; border-radius: 12px; }

/* 卡片 */
.card { background: #fff; border-radius: 12px; margin-top: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(30, 80, 160, .06); }
.card-title { background: linear-gradient(135deg, #4b96f8, #2f7ff7); color: #fff; text-align: center; padding: 11px; font-size: 17px; font-weight: 600; }
.card-body { padding: 16px 14px; line-height: 1.9; font-size: 15px; word-break: break-word; min-height: 60px; }

/* 统计栏 */
.stats-card { margin-top: 12px; }
.stats-bar { display: flex; background: linear-gradient(135deg, #4b96f8, #2f7ff7); color: #fff; padding: 20px 0 16px; }
.stats-bar .col { flex: 1; text-align: center; position: relative; }
.stats-bar .col + .col::before { content: ''; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: rgba(255, 255, 255, .45); }
.stats-bar .n { font-size: 26px; font-weight: 700; }
.stats-bar .t { font-size: 14px; margin-top: 6px; }
.countdown { text-align: center; padding: 14px 10px; font-size: 15px; min-height: 48px; }
.countdown b { color: #e5352b; font-weight: 600; }

/* 搜索 */
.search { display: flex; background: #fff; border-radius: 10px; margin-top: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(30, 80, 160, .06); }
.search input { flex: 1; min-width: 0; border: 0; padding: 13px 14px; font-size: 14px; outline: none; }
.search button { border: 0; background: linear-gradient(135deg, #4b96f8, #2f7ff7); color: #fff; padding: 0 24px; font-size: 15px; cursor: pointer; }

/* 选手卡片 */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.pcard { background: linear-gradient(160deg, #4b96f8, #2f7ff7); border-radius: 14px; padding: 15px 14px; color: #fff; }
.pcard .name { font-size: 17px; font-weight: 700; word-break: break-all; }
.pcard .vt { margin: 8px 0 4px; font-size: 13px; opacity: .95; }
.pcard .btn { display: block; width: 100%; background: #fff; color: #2f7ff7; border: 0; border-radius: 9px; padding: 10px 0; font-size: 15px; font-weight: 600; text-align: center; margin-top: 9px; cursor: pointer; }
.pcard .btn:active { opacity: .85; }
.empty { text-align: center; color: #999; padding: 40px 0; }

/* 排行榜 */
.rank-list { padding: 6px 12px 12px; }
.rrow { display: flex; align-items: center; padding: 12px 2px; border-bottom: 1px solid #f0f2f6; }
.rrow:last-child { border-bottom: 0; }
.rno { width: 30px; height: 30px; border-radius: 50%; background: #eef1f6; color: #888; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.rno.top1 { background: #ffd700; color: #8a6400; }
.rno.top2 { background: #d9dee7; color: #5a6472; }
.rno.top3 { background: #f0b27a; color: #7c4a12; }
.rmain { flex: 1; min-width: 0; padding: 0 10px; }
.rname { font-size: 15px; font-weight: 600; }
.rnum { font-size: 12px; color: #999; font-weight: 400; margin-left: 4px; }
.rbar { height: 6px; background: #eef1f6; border-radius: 3px; margin-top: 7px; overflow: hidden; }
.rbar i { display: block; height: 100%; background: linear-gradient(90deg, #4b96f8, #2f7ff7); border-radius: 3px; min-width: 2px; }
.rright { text-align: center; flex: none; }
.rvotes { font-size: 13px; color: #2f7ff7; font-weight: 600; }
.rvote { margin-top: 5px; border: 0; background: linear-gradient(135deg, #4b96f8, #2f7ff7); color: #fff; border-radius: 20px; padding: 5px 16px; font-size: 13px; cursor: pointer; }

/* 选手详情 */
.player-card { padding: 24px 18px; text-align: center; }
.pc-avatar { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, #4b96f8, #2f7ff7); color: #fff; font-size: 34px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.pc-name { font-size: 21px; font-weight: 700; }
.pc-sub { color: #999; font-size: 13px; margin-top: 4px; }
.pc-stats { display: flex; margin: 18px 0; background: #f5f8fd; border-radius: 12px; padding: 14px 0; }
.pc-col { flex: 1; }
.pc-col + .pc-col { border-left: 1px solid #e4eaf3; }
.pc-n { font-size: 19px; font-weight: 700; color: #2f7ff7; }
.pc-t { font-size: 12px; color: #999; margin-top: 4px; }
.pc-intro { text-align: left; line-height: 1.9; color: #555; background: #fafbfd; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.bigvote { display: block; width: 100%; border: 0; background: linear-gradient(135deg, #4b96f8, #2f7ff7); color: #fff; border-radius: 12px; padding: 13px 0; font-size: 17px; font-weight: 600; cursor: pointer; }
.backlink { display: inline-block; margin-top: 16px; color: #2f7ff7; font-size: 14px; }

/* 奖品图 */
.prize-img { padding: 14px 14px 0; }
.prize-img img { width: 100%; border-radius: 10px; }

/* 底部导航 */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; display: flex; border-top: 1px solid #ececec; padding-bottom: env(safe-area-inset-bottom); z-index: 50; }
.tabbar a { flex: 1; text-align: center; padding: 7px 0 5px; color: #8a8f99; font-size: 12px; }
.tabbar a.on { color: #2f7ff7; }
.tabbar svg { width: 23px; height: 23px; display: block; margin: 0 auto 2px; fill: currentColor; }

/* 投票弹窗 */
.mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .5); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.vmodal { background: #fff; border-radius: 14px; padding: 22px; width: 100%; max-width: 320px; }
.vm-title { text-align: center; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.vmodal input { width: 100%; border: 1px solid #dfe3ea; border-radius: 8px; padding: 11px 12px; font-size: 15px; margin-bottom: 12px; outline: none; }
.vmodal input:focus { border-color: #2f7ff7; }
.vm-btns { display: flex; gap: 10px; margin-top: 4px; }
.vm-btns button { flex: 1; border: 0; border-radius: 8px; padding: 11px 0; font-size: 15px; cursor: pointer; }
.vm-cancel { background: #eef1f6; color: #666; }
.vm-ok { background: linear-gradient(135deg, #4b96f8, #2f7ff7); color: #fff; }
.vm-ok:disabled { opacity: .6; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 130px; transform: translateX(-50%) translateY(20px); background: rgba(0, 0, 0, .78); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 99; max-width: 82%; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
