/* ============================================================
   掼蛋赛事平台 —— 全局设计系统
   主色 #1677FF · 背景 #F6F7F9 · 白卡片 · 移动端优先
   ============================================================ */

:root {
  --primary: #1677FF;
  --primary-deep: #0E5FD8;
  --primary-weak: #E8F1FF;
  --primary-weak2: #F3F8FF;
  --gold: #E7BE63;
  --gold-deep: #C9A24B;
  --gold-weak: #FBF4E2;
  --silver: #AEB9C8;
  --bronze: #C98F5F;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --text-1: #1B1F27;
  --text-2: #505868;
  --text-3: #9AA2AF;
  --line: #EEF1F4;
  --line-2: #E4E8ED;
  --green: #1FAE6B;
  --green-weak: #E7F7EF;
  --orange: #F0913D;
  --orange-weak: #FFF3E3;
  --red: #F0524D;
  --red-weak: #FEEDEC;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --shadow: 0 2px 12px rgba(23, 45, 89, 0.06);
  --shadow-lg: 0 8px 28px rgba(23, 45, 89, 0.14);
  --nav-h: 62px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #E9ECF1;
  color: var(--text-1);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 桌面端：居中手机画布 */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 40px rgba(30, 48, 90, 0.12);
}
@media (min-width: 520px) {
  .app { border-left: 1px solid #DFE4EA; border-right: 1px solid #DFE4EA; }
}

button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; color: var(--text-1); border: none; outline: none; background: transparent; }
a { color: var(--primary); text-decoration: none; }
ul, ol { list-style: none; }

/* ---------------- 页面骨架 ---------------- */
.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); }
.page-body { flex: 1; }
.page-body.pad-nav { padding-bottom: calc(var(--nav-h) + var(--safe-bottom)); }
.page-body.pad-fix { padding-bottom: calc(84px + var(--safe-bottom)); } /* 底部固定操作区 */
.scroll-area { padding-bottom: 28px; }

/* ---------------- 图标尺寸 ---------------- */
.chev svg { width: 18px; height: 18px; display: block; }
.btn svg { width: 18px; height: 18px; }
.ph-back svg { width: 22px; height: 22px; }
.ph-right svg { width: 16px; height: 16px; }
.sheet-close svg { width: 18px; height: 18px; }
.st-more svg { width: 15px; height: 15px; }
.duo-title svg { width: 14px; height: 14px; }

/* ---------------- 页面标题栏 ---------------- */
.page-header {
  display: flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 12px; position: relative; flex: none;
}
.page-header .ph-title { font-size: 20px; font-weight: 600; color: var(--text-1); }
.page-header .ph-back {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: var(--text-1); border-radius: 50%;
}
.page-header .ph-back:active { background: #EFF2F6; }
.page-header .ph-right {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px;
}

/* ---------------- 底部一级导航 ---------------- */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 480px;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff; border-top: 1px solid var(--line);
  display: flex; z-index: 40;
  box-shadow: 0 -2px 12px rgba(23, 45, 89, 0.04);
}
.bottom-nav .bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--text-3); font-size: 11px; position: relative;
}
.bottom-nav .bn-item svg { width: 23px; height: 23px; }
.bottom-nav .bn-item.active { color: var(--primary); font-weight: 600; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); margin: 0 16px 12px; padding: 14px 16px;
}
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--text-1);
}
.card-title::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--primary);
}

/* ---------------- 标签 ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; padding: 2px 9px; border-radius: 999px; font-weight: 500; white-space: nowrap;
}
.tag.green { color: var(--green); background: var(--green-weak); }
.tag.orange { color: var(--orange); background: var(--orange-weak); }
.tag.red { color: var(--red); background: var(--red-weak); }
.tag.blue { color: var(--primary); background: var(--primary-weak); }
.tag.gray { color: #7A8292; background: #F1F3F6; }
.tag.gold { color: #A97F1E; background: var(--gold-weak); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 50px; border-radius: 999px;
  font-size: 16px; font-weight: 600; transition: opacity .15s, transform .05s;
}
.btn:active { transform: scale(0.985); opacity: 0.92; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary.gold { background: linear-gradient(135deg, #F3D98A, #E3B956); color: #5C4305; }
.btn.ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn.gray { background: #E9EDF2; color: #9AA2AF; }
.btn.red { background: var(--red); color: #fff; }
.btn.sm { width: auto; height: 38px; padding: 0 18px; font-size: 14px; border-radius: 999px; }
.btn.mini { width: auto; height: 30px; padding: 0 14px; font-size: 13px; border-radius: 999px; }

/* ---------------- 列表行 ---------------- */
.list-row {
  display: flex; align-items: center; gap: 12px; min-height: 56px;
  padding: 12px 16px; background: #fff; cursor: pointer;
}
.list-row:active { background: #F7F9FB; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-title { font-size: 16px; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .lr-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.list-row .chev { color: #C4CAD3; flex: none; }
.list-row .chev svg { width: 18px; height: 18px; display: block; }
.list-container { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 16px 12px; overflow: hidden; }
.list-container > .list-row + .list-row { border-top: 1px solid var(--line); }

/* ---------------- Tab ---------------- */
.tabs { display: flex; background: #fff; flex: none; }
.tabs .tab {
  flex: 1; text-align: center; padding: 12px 0 10px; font-size: 16px;
  color: var(--text-2); position: relative; cursor: pointer;
}
.tabs .tab.active { color: var(--primary); font-weight: 700; }
.tabs .tab.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--primary);
}

/* ---------------- 表单 ---------------- */
.form-section { padding: 0 16px 12px; }
.form-label { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; color: var(--text-1); margin: 18px 0 8px; }
.form-label .fl-count { font-size: 12px; color: var(--text-3); font-weight: 400; }
.input-box {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 0 14px; min-height: 50px;
}
.input-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.10); }
.input-box input { flex: 1; height: 48px; }
.input-box .ib-icon { color: var(--text-3); display: flex; }
.input-box .ib-icon svg { width: 19px; height: 19px; }
.input-box .ib-suffix { color: var(--text-3); font-size: 13px; flex: none; }
textarea.input-box { padding: 12px 14px; min-height: 130px; line-height: 1.6; resize: none; width: 100%; display: block; }
textarea.input-box::placeholder, input::placeholder { color: #B7BEC8; }

/* 选择行（点击弹选项） */
.pick-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 0 14px; min-height: 50px; cursor: pointer;
}
.pick-row .pr-value { color: var(--text-2); }
.pick-row .pr-value.empty { color: #B7BEC8; }
.pick-row .chev { color: var(--text-3); }

/* ---------------- 提示条 ---------------- */
.notice-bar {
  display: flex; gap: 8px; align-items: flex-start; border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 13px; line-height: 1.55;
}
.notice-bar.blue { background: var(--primary-weak2); color: #3570C9; }
.notice-bar.orange { background: var(--orange-weak); color: #B26A1C; }
.notice-bar.red { background: var(--red-weak); color: #C43E39; }
.notice-bar.green { background: var(--green-weak); color: #178354; }
.notice-bar svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* ---------------- 底部固定操作区 ---------------- */
.fixed-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 480px; z-index: 40;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + var(--safe-bottom));
  box-shadow: 0 -4px 16px rgba(23, 45, 89, 0.05);
}

/* ---------------- 首页 Banner ---------------- */
.banner-wrap { padding: 14px 16px 0; }
.banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 172px;
  display: flex; flex-direction: column; justify-content: center; padding: 0 20px;
  cursor: pointer; user-select: none; -webkit-user-select: none;
}
.banner .bn-tag { position: absolute; top: 14px; left: 20px; font-size: 11px; color: rgba(255,255,255,.85); letter-spacing: 1px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 2px 8px; }
.banner .bn-title { font-size: 26px; font-weight: 800; color: #FFF3D2; line-height: 1.25; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.banner .bn-sub { font-size: 18px; font-weight: 700; color: #FFE9B0; margin-top: 2px; }
.banner .bn-slogan { display: inline-flex; margin-top: 10px; font-size: 12.5px; color: #F7E3B4; border: 1px solid rgba(247,227,180,.55); border-radius: 999px; padding: 3px 12px; width: fit-content; }
.banner .bn-btn {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #F6DE94, #E9C05B); color: #5C4305;
  font-size: 13.5px; font-weight: 700; padding: 7px 16px; border-radius: 999px; width: fit-content;
}
.banner .bn-deco { position: absolute; right: -14px; top: -18px; width: 170px; height: 210px; pointer-events: none; }
.banner .bn-deco .suit { position: absolute; font-size: 34px; opacity: .9; text-shadow: 0 4px 10px rgba(0,0,0,.3); }
.banner.t-blue { background: linear-gradient(120deg, #0B2C66 0%, #13469B 45%, #1E63D8 100%); }
.banner.t-red { background: linear-gradient(120deg, #5C1220 0%, #9E2436 45%, #D24A3C 100%); }
.banner.t-green { background: linear-gradient(120deg, #0B3D2E 0%, #147258 45%, #1F9E7C 100%); }
.banner.t-purple { background: linear-gradient(120deg, #2A1A5E 0%, #4C2C9B 45%, #7A4DD8 100%); }
.banner.t-gold { background: linear-gradient(120deg, #4A3608 0%, #8A6A14 45%, #C99B2E 100%); }
.banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(240px 130px at 85% 20%, rgba(255,255,255,.14), transparent 60%),
              radial-gradient(320px 200px at 10% 110%, rgba(255,255,255,.08), transparent 60%);
}
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.banner-dots .dot { width: 6px; height: 6px; border-radius: 3px; background: #C9CFD9; transition: all .25s; }
.banner-dots .dot.on { width: 16px; background: var(--primary); }

/* 轮播滑轨 */
.banner-track { display: flex; transition: transform .35s ease; }
.banner-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.banner-track .banner { flex: 0 0 100%; }

/* ---------------- 首页消息列表 ---------------- */
.news-item { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; }
.news-item:active { background: #F7F9FB; }
.news-item + .news-item { border-top: 1px solid var(--line); }
.news-item .ni-main { flex: 1; min-width: 0; }
.news-item .ni-title {
  font-size: 16px; font-weight: 500; color: var(--text-1); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.news-item .ni-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--text-3); font-size: 12px; }
.news-item .ni-meta .org { display: flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 12.5px; }
.news-item .ni-meta .org svg { width: 13px; height: 13px; }
.section-title { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; margin: 20px 0 10px; }
.section-title .st-left { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; }
.section-title .st-more { font-size: 14px; color: var(--text-3); display: flex; align-items: center; }

/* ---------------- 搜索框 ---------------- */
.search-box {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  margin: 12px 16px; padding: 0 14px; height: 46px;
}
.search-box svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.search-box input { flex: 1; height: 44px; font-size: 14.5px; }

/* ---------------- 分类栏 ---------------- */
.cat-bar { display: flex; gap: 6px; padding: 2px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar .cat {
  flex: none; font-size: 14.5px; color: var(--text-2); padding: 7px 16px;
  border-radius: 999px; background: #EDF0F4;
}
.cat-bar .cat.active { background: var(--primary); color: #fff; font-weight: 600; }

/* ---------------- 比赛卡片 ---------------- */
.tour-card { display: flex; gap: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 16px 12px; padding: 12px; cursor: pointer; }
.tour-card:active { opacity: .94; }
.tc-cover {
  width: 76px; height: 96px; border-radius: var(--radius-sm); flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #fff; overflow: hidden; position: relative;
}
.tc-cover .suit { position: absolute; font-size: 30px; opacity: .35; }
.tc-cover .tc-date-big { font-size: 20px; font-weight: 800; z-index: 1; }
.tc-cover .tc-date-small { font-size: 11px; opacity: .9; z-index: 1; }
.tc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tc-head { display: flex; align-items: flex-start; gap: 6px; }
.tc-name { font-size: 16px; font-weight: 700; flex: 1; line-height: 1.35; }
.tc-club { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); margin-top: 5px; }
.tc-club svg { width: 13px; height: 13px; color: var(--text-3); }
.tc-info { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-2); margin-top: 5px; }
.tc-info svg { width: 13px; height: 13px; color: var(--text-3); flex: none; }
.tc-info .sep { color: var(--line-2); margin: 0 2px; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.tc-people { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); }
.tc-people svg { width: 14px; height: 14px; color: var(--text-3); }
.tc-people .cur { color: var(--green); font-weight: 700; }
.tc-people.full .cur { color: var(--red); }

/* ---------------- 排名 ---------------- */
.update-note { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 4px; font-size: 12px; color: var(--text-3); }
.update-note .un-left { display: flex; align-items: center; gap: 5px; }
.update-note svg { width: 14px; height: 14px; }
.rank-table { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 10px 16px 12px; overflow: hidden; }
.rank-head { display: flex; padding: 10px 16px 8px; font-size: 13px; color: var(--text-3); border-bottom: 1px solid var(--line); }
.rank-head .rh-rank { width: 44px; }
.rank-head .rh-name { flex: 1; }
.rank-row { display: flex; align-items: center; padding: 11px 16px; position: relative; }
.rank-row + .rank-row { border-top: 1px solid var(--line); }
.rank-row .rr-rank { width: 44px; display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 700; color: var(--text-2); }
.rank-row .rr-rank svg { width: 20px; height: 20px; }
.rank-row .rr-name { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.rank-row .rr-name .nm { font-size: 15.5px; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .rr-pts { font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.rank-row.me { background: var(--primary-weak2); }
.rank-row.me .rr-rank, .rank-row.me .nm, .rank-row.me .rr-pts { color: var(--primary); }
.rank-row.top1 { background: linear-gradient(90deg, #FBF4E2, #FFFDF6 70%); }
.rank-row.top2 { background: linear-gradient(90deg, #EFF3F9, #FBFDFF 70%); }
.rank-row.top3 { background: linear-gradient(90deg, #FAF0E8, #FFFCF8 70%); }
.rank-row.top1 .rr-pts { color: #D9842A; }
.rank-row.top2 .rr-pts { color: #4A7BC0; }
.rank-row.top3 .rr-pts { color: #C9824C; }
.rr-medal {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6);
}
.rr-medal.gold { background: linear-gradient(135deg, #F3D98A, #C9A24B); }
.rr-medal.silver { background: linear-gradient(135deg, #E4E9F2, #9FB0C7); }
.rr-medal.bronze { background: linear-gradient(135deg, #E8B58C, #B97B4A); }

/* 我的排名固定信息条 */
.my-rank-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--safe-bottom)); width: 100%; max-width: 480px;
  background: #fff; border-top: 1px solid var(--line); border-radius: 14px 14px 0 0;
  box-shadow: 0 -6px 18px rgba(23, 45, 89, 0.08); z-index: 39;
  display: flex; align-items: center; gap: 10px; padding: 10px 18px 12px;
}
.my-rank-bar .mrb-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--primary-weak);
  display: flex; align-items: center; justify-content: center; color: var(--primary); flex: none;
}
.my-rank-bar .mrb-icon svg { width: 20px; height: 20px; }
.my-rank-bar .mrb-label { font-size: 14px; font-weight: 600; flex: 1; }
.my-rank-bar .mrb-val { font-size: 17px; font-weight: 800; color: var(--primary); }
.my-rank-bar .mrb-val .unit { font-size: 12px; font-weight: 600; margin-left: 2px; }
.my-rank-bar .mrb-val small { font-size: 12px; color: var(--text-3); font-weight: 500; }
.my-rank-bar.clickable { cursor: pointer; }
.my-rank-bar.clickable:active { background: #F7F9FB; }

/* ---------------- 头像 ---------------- */
.avatar {
  border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; flex: none; overflow: hidden; background-size: cover;
}
.avatar.sm { width: 36px; height: 36px; font-size: 15px; }
.avatar.md { width: 44px; height: 44px; font-size: 18px; }
.avatar.lg { width: 80px; height: 80px; font-size: 32px; }
.avatar.xl { width: 96px; height: 96px; font-size: 38px; }
.av-0 { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.av-1 { background: linear-gradient(135deg, #F59E0B, #EA580C); }
.av-2 { background: linear-gradient(135deg, #10B981, #059669); }
.av-3 { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.av-4 { background: linear-gradient(135deg, #EC4899, #DB2777); }
.av-5 { background: linear-gradient(135deg, #06B6D4, #0284C7); }
.av-6 { background: linear-gradient(135deg, #64748B, #334155); }
.av-7 { background: linear-gradient(135deg, #EF4444, #B91C1C); }

/* ---------------- Bottom Sheet ---------------- */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45);
  z-index: 90; animation: fadeIn .2s ease;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 480px; background: #fff; border-radius: 20px 20px 0 0;
  max-height: 78vh; display: flex; flex-direction: column;
  padding-bottom: var(--safe-bottom);
  animation: slideUp .28s cubic-bezier(.2,.9,.3,1);
}
.sheet .sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: #E3E7ED; margin: 10px auto 2px; }
.sheet .sheet-head { display: flex; align-items: center; justify-content: center; padding: 8px 16px 10px; position: relative; flex: none; }
.sheet .sheet-title { font-size: 18px; font-weight: 700; }
.sheet .sheet-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--text-2); border-radius: 50%; background: #F2F4F7; }
.sheet .sheet-body { overflow-y: auto; padding: 4px 16px 12px; }
.sheet .sheet-foot { padding: 10px 16px 14px; flex: none; border-top: 1px solid var(--line); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(60px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.sheet { animation: slideUp .22s cubic-bezier(.2,.9,.3,1); }

/* 省市双栏 */
.region-picker { display: flex; height: 320px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.region-picker .rp-col { width: 50%; overflow-y: auto; }
.region-picker .rp-col + .rp-col { border-left: 1px solid var(--line); }
.region-picker .rp-item { padding: 12px 16px; font-size: 15px; color: var(--text-2); cursor: pointer; position: relative; }
.region-picker .rp-item.active { background: var(--primary-weak2); color: var(--primary); font-weight: 600; }
.region-picker .rp-item.active::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; background: var(--primary); border-radius: 0 3px 3px 0; }
.region-picker .rp-item .check { float: right; }
.region-picker .rp-item .check svg { width: 16px; height: 16px; }
.rp-col-title { position: sticky; top: 0; background: #F7F9FB; font-size: 12px; color: var(--text-3); padding: 8px 16px; border-bottom: 1px solid var(--line); }

/* 2x2 名次选择 */
.rank-pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rank-pick {
  border: 2px solid var(--line-2); border-radius: 14px; padding: 18px 0 14px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; position: relative; background: #fff;
}
.rank-pick .rp-emoji { font-size: 30px; }
.rank-pick .rp-name { font-size: 16px; font-weight: 700; color: var(--text-1); }
.rank-pick .rp-check { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; display: none; align-items: center; justify-content: center; }
.rank-pick .rp-check svg { width: 12px; height: 12px; }
.rank-pick.sel { border-color: var(--primary); background: var(--primary-weak2); }
.rank-pick.sel .rp-name { color: var(--primary); }
.rank-pick.sel .rp-check { display: flex; }

/* ---------------- 正式比赛 ---------------- */
.table-card { text-align: center; padding: 22px 16px 20px; }
.table-card .tc-label { font-size: 13px; color: var(--text-3); letter-spacing: 2px; }
.table-card .tc-table-no { font-size: 64px; font-weight: 800; line-height: 1.1; color: var(--text-1); }
.table-card .tc-table-no .unit { font-size: 22px; font-weight: 700; color: var(--text-2); margin-left: 4px; }
.table-card .tc-seat { font-size: 44px; font-weight: 800; color: var(--primary); margin-top: 6px; line-height: 1.1; }
.table-card .tc-seat-hint { font-size: 12px; color: var(--text-3); }
.duo-col { display: flex; gap: 12px; }
.duo-col .duo { flex: 1; border-radius: 12px; padding: 12px 14px; }
.duo-col .duo.blue { background: var(--primary-weak2); }
.duo-col .duo.red { background: var(--red-weak); }
.duo-col .duo .duo-title { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.duo-col .duo .duo-name { font-size: 16px; font-weight: 700; }
.duo-col .duo.blue .duo-name { color: var(--primary); }
.duo-col .duo.red .duo-name { color: #C0433E; }

/* 提交进度 */
.submit-progress { display: flex; }
.submit-progress .sp-col { flex: 1; text-align: center; }
.sp-node {
  width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  background: #EDF0F4; color: #B4BAC4;
}
.sp-col.done .sp-node { background: var(--green); color: #fff; }
.sp-col.done-red .sp-node { background: var(--red); color: #fff; }
.sp-col.me .sp-node { outline: 2px solid var(--primary-weak); outline-offset: 2px; }
.sp-col .sp-seat { font-size: 11.5px; color: var(--text-3); }
.sp-col .sp-name { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.sp-col .sp-rank { font-size: 11.5px; font-weight: 700; margin-top: 2px; }
.sp-col.done .sp-rank { color: var(--green); }
.sp-col.done-red .sp-rank { color: var(--red); }
.sp-link { display: block; width: 100%; height: 2px; background: #EDF0F4; margin-top: 10px; }
.sp-links { display: flex; flex: 1; padding-top: 11px; }
.sp-links .sp-link { flex: 1; height: 2px; background: #EDF0F4; }
.sp-links .sp-link.done { background: var(--green); }
.sp-row { display: flex; align-items: flex-start; }

/* 状态横幅 */
.state-banner {
  display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.state-banner .sb-emoji { font-size: 24px; flex: none; }
.state-banner .sb-title { font-weight: 700; font-size: 15px; }
.state-banner .sb-desc { font-size: 12.5px; opacity: .85; margin-top: 2px; }
.state-banner.blue { background: var(--primary-weak2); color: #2B64C0; }
.state-banner.green { background: var(--green-weak); color: #178354; }
.state-banner.red { background: var(--red-weak); color: #C43E39; }
.state-banner.gray { background: #F1F3F6; color: #7A8292; }

/* ---------------- 空状态 ---------------- */
.empty-state { text-align: center; padding: 52px 30px 30px; }
.empty-state .es-illus {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 22px;
  background: linear-gradient(150deg, #E8F1FF, #D6E7FF);
  display: flex; align-items: center; justify-content: center; position: relative;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.6), 0 8px 24px rgba(22,119,255,.14);
}
.empty-state .es-illus svg { width: 62px; height: 62px; color: var(--primary); }
.empty-state .es-title { font-size: 22px; font-weight: 800; }
.empty-state .es-desc { font-size: 14px; color: var(--text-3); margin-top: 10px; line-height: 1.7; }
.empty-state .es-actions { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; padding: 0 8px; }

/* ---------------- Toast ---------------- */
.toast-root { position: fixed; left: 50%; transform: translateX(-50%); top: 84px; z-index: 120; width: max-content; max-width: 86%; }
.toast {
  background: rgba(24, 30, 42, 0.92); color: #fff; border-radius: 10px;
  padding: 10px 18px; font-size: 14px; box-shadow: var(--shadow-lg);
  animation: toastIn .25s ease; display: flex; align-items: center; gap: 8px;
}
.toast .t-ico { display: flex; }
.toast .t-ico svg { width: 17px; height: 17px; }
.toast.success .t-ico { color: #5BE49B; }
.toast.error .t-ico { color: #FF8A85; }
.toast.info .t-ico { color: #7FB4FF; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- 弹窗 ---------------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 110; display: flex; align-items: center; justify-content: center; animation: fadeIn .2s; }
.modal { width: 78%; max-width: 320px; background: #fff; border-radius: 16px; padding: 22px 20px 16px; text-align: center; animation: slideUp .25s ease; }
.modal .m-title { font-size: 17px; font-weight: 700; }
.modal .m-desc { font-size: 14px; color: var(--text-2); margin-top: 8px; line-height: 1.6; }
.modal .m-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal .m-actions .btn { flex: 1; height: 44px; font-size: 15px; }

/* ---------------- 段位 ---------------- */
.rank-badge {
  width: 74px; height: 74px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 30% 25%, #5A97F5, #1D5FCE 70%);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.35), inset 0 0 0 3px rgba(255,255,255,.35);
}
.rank-badge .rb-code { font-size: 17px; font-weight: 800; line-height: 1.1; }
.rank-badge .rb-text { font-size: 9px; opacity: .9; letter-spacing: 1px; }
.progress { height: 10px; border-radius: 5px; background: #EAF0F7; overflow: hidden; }
.progress .pro-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #4D9AFF, #1677FF); transition: width .4s; }
.seg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.seg-table th { text-align: left; color: var(--text-3); font-weight: 500; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.seg-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.seg-table tr.me td { background: var(--primary-weak2); color: var(--primary); font-weight: 600; }

/* ---------------- 阅读正文 ---------------- */
.article { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 12px 16px; padding: 22px 20px; }
.article .a-title { font-size: 24px; font-weight: 800; line-height: 1.4; }
.article .a-meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.article .a-meta .org { color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.article .a-divider { height: 1px; background: var(--line); margin: 16px 0; }
.article .a-body { font-size: 15.5px; line-height: 1.8; color: #2A3040; }
.article .a-body p { margin: 0 0 12px; }
.article .a-body h3 { font-size: 16.5px; font-weight: 700; margin: 18px 0 8px; color: var(--text-1); }
.article .a-body li { margin: 0 0 8px; padding-left: 4px; display: flex; gap: 8px; }
.article .a-body li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); flex: none; margin-top: 10px; }
.article .a-body ol li { counter-increment: olc; }
.article .a-body ol li::before { content: counter(olc); width: 18px; height: 18px; border-radius: 50%; background: var(--primary-weak); color: var(--primary); font-size: 11px; display: flex; align-items: center; justify-content: center; margin-top: 4px; flex: none; }
.article .a-body ol { counter-reset: olc; }
.article .a-body .kv { display: flex; border-bottom: 1px dashed var(--line); padding: 7px 0; font-size: 14.5px; }
.article .a-body .kv .k { color: var(--text-3); width: 92px; flex: none; }
.article .a-body .kv .v { color: var(--text-1); font-weight: 500; }

/* ---------------- 个人中心 ---------------- */
.me-hero { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 12px 16px; position: relative; overflow: hidden; }
.me-hero::after { content: "♠"; position: absolute; right: -14px; top: -30px; font-size: 110px; color: rgba(22,119,255,.06); pointer-events: none; }
.me-hero .mh-name { font-size: 24px; font-weight: 800; }
.me-hero .mh-club { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); margin-top: 5px; }
.me-hero .mh-club svg { width: 14px; height: 14px; color: var(--text-3); }
.me-hero .mh-sig { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---------------- 俱乐部 ---------------- */
.club-logo {
  width: 66px; height: 66px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, #2E5FA3, #10294F 75%);
  color: #E9C25C; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(10, 30, 70, 0.3), inset 0 0 0 3px rgba(233,194,92,.35);
}
.club-logo svg { width: 32px; height: 32px; }
.func-card { display: flex; align-items: center; gap: 13px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 16px 12px; padding: 16px; cursor: pointer; }
.func-card:active { opacity: .94; }
.func-card .fc-ico { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.func-card .fc-ico svg { width: 23px; height: 23px; }
.func-card .fc-ico.blue { background: var(--primary-weak); color: var(--primary); }
.func-card .fc-ico.green { background: var(--green-weak); color: var(--green); }
.func-card .fc-ico.orange { background: var(--orange-weak); color: var(--orange); }
.func-card .fc-ico.purple { background: #F1EAFF; color: #7C3AED; }
.func-card .fc-main { flex: 1; min-width: 0; }
.func-card .fc-title { font-size: 16.5px; font-weight: 700; }
.func-card .fc-sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

/* ---------------- 报名审核 ---------------- */
.review-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; }
.review-row + .review-row { border-top: 1px solid var(--line); }
.review-row .rr-info { flex: 1; min-width: 0; }
.review-row .rr-name { font-size: 15.5px; font-weight: 600; }
.review-row .rr-pts { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.review-row .rr-actions { display: flex; gap: 8px; flex: none; }

/* ---------------- 登录注册 ---------------- */
.auth-hero { text-align: center; padding: 26px 0 18px; }
.auth-hero .ah-logo {
  width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 20px;
  background: linear-gradient(140deg, #2B6BE8, #0F3E96); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 10px 22px rgba(22, 119, 255, 0.3);
}
.auth-hero .ah-title { font-size: 22px; font-weight: 800; }
.auth-hero .ah-sub { font-size: 13.5px; color: var(--text-3); margin-top: 6px; }
.auth-link { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-2); }
.auth-link a { color: var(--primary); font-weight: 600; }

/* 验证码按钮 */
.code-btn { flex: none; color: var(--primary); font-size: 14px; font-weight: 600; padding-left: 10px; border-left: 1px solid var(--line); }
.code-btn.disabled { color: var(--text-3); }

/* ---------------- 步进器 ---------------- */
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper .st-btn { width: 32px; height: 32px; border-radius: 9px; background: #F0F3F7; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--text-2); }
.stepper .st-btn:active { background: #E4E9F0; }
.stepper .st-val { font-size: 17px; font-weight: 700; min-width: 34px; text-align: center; }

/* ---------------- 分割小字 ---------------- */
.bottom-note { text-align: center; font-size: 12px; color: var(--text-3); padding: 14px 0 20px; }
.hr-note { display: flex; align-items: center; gap: 10px; color: #B9C0CA; font-size: 12px; padding: 8px 0 4px; }
.hr-note::before, .hr-note::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

/* 其他辅助 */
.row-between { display: flex; align-items: center; justify-content: space-between; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.flex1 { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.tc { text-align: center; }
