/* 汇成团队数据管理系统 —— 移动端样式 */
:root {
  --primary: #2456E6;
  --primary-2: #4C8DFF;
  --primary-soft: #EAF1FF;
  --accent: #FF8A3D;
  --accent-soft: #FFF1E6;
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --text: #1B2437;
  --text-2: #55617A;
  --muted: #8B96AA;
  --line: #EBEFF7;
  --success: #12B76A;
  --success-soft: #E7F8F0;
  --warn: #F79009;
  --warn-soft: #FFF6E5;
  --danger: #F04438;
  --danger-soft: #FEECEB;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(28, 50, 110, .07);
  --shadow-lg: 0 10px 30px rgba(28, 50, 110, .13);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #E9EDF6;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
button { border: none; background: none; cursor: pointer; }
a { color: var(--primary); text-decoration: none; }

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 40px rgba(20, 40, 90, .08);
  display: flex;
  flex-direction: column;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  padding: calc(var(--safe-t) + 10px) 16px 10px;
  background: var(--card);
  display: flex; align-items: center; gap: 10px;
  min-height: 52px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar.hero {
  background: linear-gradient(135deg, #1B47C4 0%, var(--primary) 45%, #4C8DFF 100%);
  color: #fff;
  border-bottom: none;
  padding-bottom: 46px;
}
.topbar-title { font-size: 17px; font-weight: 700; flex: 1; letter-spacing: .3px; }
.topbar-sub { font-size: 12px; opacity: .8; font-weight: 400; }
.topbar-btn {
  width: 34px; height: 34px; border-radius: 10px; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: inherit; background: rgba(0, 0, 0, .04);
}
.topbar.hero .topbar-btn { background: rgba(255, 255, 255, .18); }
.topbar-dot {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: #FF3B30; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #fff; box-sizing: content-box;
}
.topbar-back { font-size: 22px; line-height: 1; margin-right: 2px; }

/* ---------------- 主区域 ---------------- */
.view {
  flex: 1;
  padding: 14px 14px calc(84px + var(--safe-b));
  min-height: 60vh;
}
.view.no-tabbar { padding-bottom: calc(24px + var(--safe-b)); }
.view.hero-view { margin-top: -38px; }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 40;
  display: none;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tabbar.show { display: flex; }
.tab-item {
  flex: 1; padding: 8px 0 7px; text-align: center;
  color: var(--muted); font-size: 11px; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.tab-item .tab-ico { font-size: 20px; line-height: 1; }
.tab-item.active { color: var(--primary); font-weight: 600; }
.tab-item .tab-badge {
  position: absolute; top: 4px; right: 50%; margin-right: -22px;
  background: var(--danger); color: #fff; font-size: 10px; line-height: 1;
  padding: 3px 5px; border-radius: 9px; font-weight: 600;
}

/* ---------------- 通用卡片 ---------------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px;
}
.card.tight { padding: 12px; }
.card-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 700; margin-bottom: 12px;
}
.card-title .more { font-size: 12px; color: var(--muted); font-weight: 400; }
.section-title {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  margin: 16px 4px 8px; display: flex; align-items: center; justify-content: space-between;
}

/* ---------------- 首页英雄区 ---------------- */
.hero-card {
  background: linear-gradient(150deg, #1B47C4 0%, #2C62F0 50%, #4C8DFF 100%);
  color: #fff; border-radius: 22px; padding: 18px 18px 20px;
  box-shadow: 0 12px 28px rgba(36, 86, 230, .28);
  position: relative; overflow: hidden; margin-bottom: 14px;
}
.hero-card::after {
  content: ""; position: absolute; right: -40px; top: -60px;
  width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255, 255, 255, .10);
}
.hero-card::before {
  content: ""; position: absolute; right: 30px; bottom: -70px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.hero-hello { font-size: 13px; opacity: .88; position: relative; z-index: 1; }
.hero-name { font-size: 19px; font-weight: 700; margin-top: 2px; position: relative; z-index: 1; }
.hero-points { display: flex; align-items: flex-end; gap: 6px; margin-top: 16px; position: relative; z-index: 1; }
.hero-points .num { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.hero-points .unit { font-size: 13px; opacity: .9; padding-bottom: 4px; }
.hero-meta { display: flex; gap: 18px; margin-top: 14px; position: relative; z-index: 1; }
.hero-meta .m { font-size: 12px; opacity: .92; }
.hero-meta .m b { font-size: 15px; font-weight: 700; display: block; }

/* ---------------- 数据格 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.stat-box {
  background: var(--card); border-radius: 14px; padding: 12px 8px;
  text-align: center; box-shadow: var(--shadow);
}
.stat-box .v { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-box .k { font-size: 11px; color: var(--muted); margin-top: 3px; }
.stat-box.blue .v { color: var(--primary); }
.stat-box.orange .v { color: var(--accent); }
.stat-box.green .v { color: var(--success); }
.stat-box.red .v { color: var(--danger); }

/* ---------------- 公告 ---------------- */
.notice {
  display: flex; gap: 8px; align-items: flex-start;
  background: linear-gradient(90deg, #FFF8E8, #FFFDF7);
  border: 1px solid #FFE7B8; border-radius: 12px;
  padding: 10px 12px; font-size: 12.5px; color: #8A5B00; margin-bottom: 12px;
}
.notice .ico { font-size: 14px; }

/* ---------------- 快捷动作 ---------------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-item {
  background: var(--card); border-radius: 14px; padding: 12px 4px 10px;
  text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: transform .12s;
}
.quick-item:active { transform: scale(.95); }
.quick-item .qi { font-size: 21px; line-height: 1; }
.quick-item .qn { font-size: 11px; color: var(--text-2); line-height: 1.25; }
.quick-more {
  background: var(--primary-soft); color: var(--primary);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
}

/* ---------------- 趋势条 ---------------- */
.trend { display: flex; align-items: flex-end; gap: 6px; height: 96px; padding-top: 6px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; }
.trend-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.trend-bar {
  width: 100%; border-radius: 6px 6px 3px 3px; min-height: 3px;
  background: linear-gradient(180deg, #6FA0FF, var(--primary));
  transition: height .4s ease;
}
.trend-bar.empty { background: var(--line); }
.trend-label { font-size: 10px; color: var(--muted); }
.trend-label.today { color: var(--primary); font-weight: 700; }

/* ---------------- 列表项 ---------------- */
.list { }
.list-item {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: none; }
.list-item:first-child { padding-top: 2px; }
.li-ico {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; background: var(--primary-soft); color: var(--primary);
}
.li-main { flex: 1; min-width: 0; }
.li-title {
  font-size: 14.5px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.li-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.li-right { text-align: right; flex-shrink: 0; }
.li-points { font-size: 16px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.li-points.zero { color: var(--muted); font-size: 14px; }

/* ---------------- 徽标 ---------------- */
.badge {
  display: inline-block; font-size: 10.5px; padding: 1px 7px; border-radius: 8px;
  font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.badge.pending { background: var(--warn-soft); color: #B45309; }
.badge.approved { background: var(--success-soft); color: #04703F; }
.badge.rejected { background: var(--danger-soft); color: #B42318; }
.badge.grey { background: #F1F4FA; color: var(--text-2); }
.badge.blue { background: var(--primary-soft); color: var(--primary); }
.badge.orange { background: var(--accent-soft); color: #C25710; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border-radius: 12px; font-size: 15px; font-weight: 600;
  background: var(--primary); color: #fff; transition: opacity .15s, transform .12s;
  border: 1px solid transparent;
}
.btn:active { transform: scale(.98); opacity: .9; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: var(--primary-soft); color: var(--primary); }
.btn.grey { background: #F1F4FA; color: var(--text-2); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger-ghost { background: var(--danger-soft); color: var(--danger); }
.btn.green { background: var(--success); }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn.xs { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field-label { font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 7px; display: block; }
.field-label .req { color: var(--danger); margin-left: 2px; }
.input, .textarea, .select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #FAFBFE;
  transition: border-color .15s, background .15s; font-size: 15px;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); background: #fff; }
.textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B96AA' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input-hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

/* 登录页 */
.login-page { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 22px; }
.login-brand { text-align: center; margin-bottom: 26px; }
.login-logo {
  width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 20px;
  background: linear-gradient(140deg, #1B47C4, #4C8DFF);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff; font-weight: 800;
  box-shadow: 0 10px 24px rgba(36, 86, 230, .3);
}
.login-name { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.login-sub { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.login-card { background: var(--card); border-radius: 20px; padding: 20px 18px; box-shadow: var(--shadow-lg); }
.login-foot { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 22px; line-height: 1.7; }

/* ---------------- 分段切换 ---------------- */
.segment {
  display: flex; background: #EDF1F9; border-radius: 12px; padding: 3px; margin-bottom: 12px;
}
.segment .seg {
  flex: 1; text-align: center; padding: 8px 4px; font-size: 13px;
  color: var(--text-2); border-radius: 10px; font-weight: 500; transition: all .18s;
}
.segment .seg.active { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 2px 6px rgba(28, 50, 110, .1); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 7px 14px; border-radius: 20px; font-size: 13px;
  background: var(--card); color: var(--text-2); box-shadow: var(--shadow); white-space: nowrap;
}
.chip.active { background: var(--primary); color: #fff; font-weight: 600; }

/* ---------------- 动作卡片（上报页） ---------------- */
.action-card {
  background: var(--card); border-radius: 14px; padding: 13px 14px;
  box-shadow: var(--shadow); margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
  transition: transform .12s;
}
.action-card:active { transform: scale(.985); }
.ac-main { flex: 1; min-width: 0; }
.ac-name { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ac-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.ac-points { text-align: center; flex-shrink: 0; }
.ac-points .p { font-size: 19px; font-weight: 800; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ac-points .u { font-size: 10.5px; color: var(--muted); }

/* ---------------- 排行榜 ---------------- */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 14px 0 4px; }
.podium-item { flex: 1; text-align: center; }
.podium-avatar {
  width: 52px; height: 52px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, #9DB6E6, #7A9BD8);
  border: 3px solid #fff; box-shadow: var(--shadow);
}
.podium-item.p1 .podium-avatar { width: 62px; height: 62px; font-size: 22px; background: linear-gradient(140deg, #FFB43D, #F79009); }
.podium-item.p2 .podium-avatar { background: linear-gradient(140deg, #B8C6DC, #94A6C2); }
.podium-item.p3 .podium-avatar { background: linear-gradient(140deg, #E0A579, #CE8B5B); }
.podium-name { font-size: 12.5px; font-weight: 600; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-pts { font-size: 13px; color: var(--accent); font-weight: 700; margin-top: 1px; }
.podium-base {
  margin-top: 8px; height: 30px; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #DCE6FA, #EEF3FC);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #9AABCB;
}
.podium-item.p1 .podium-base { height: 46px; background: linear-gradient(180deg, #FFE0AE, #FFF3DE); color: #D18A00; }
.podium-item.p2 .podium-base { height: 36px; }
.podium-item.p3 .podium-base { height: 30px; }

.rank-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.rank-row:last-child { border-bottom: none; }
.rank-no {
  width: 26px; text-align: center; font-size: 14px; font-weight: 800;
  color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.rank-no.top { color: var(--accent); }
.rank-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, #6FA0FF, var(--primary));
}
.rank-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.rank-name .sub { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.rank-pts { font-size: 16px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.my-rank-bar {
  position: sticky; bottom: calc(76px + var(--safe-b));
  background: linear-gradient(120deg, #1B47C4, #3B76F5); color: #fff;
  border-radius: 14px; padding: 11px 14px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 20px rgba(36, 86, 230, .3); margin-top: 10px;
}
.my-rank-bar .n { font-size: 20px; font-weight: 800; }
.my-rank-bar .t { flex: 1; font-size: 13px; opacity: .92; }

/* ---------------- 个人中心 ---------------- */
.profile-head {
  background: linear-gradient(150deg, #1B47C4, #4C8DFF); color: #fff;
  border-radius: 20px; padding: 20px 18px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 12px 26px rgba(36, 86, 230, .25);
}
.profile-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255, 255, 255, .22); border: 2px solid rgba(255, 255, 255, .5);
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; font-weight: 700;
}
.profile-info { flex: 1; min-width: 0; }
.profile-info .n { font-size: 18px; font-weight: 700; }
.profile-info .t { font-size: 12px; opacity: .88; margin-top: 4px; }
.profile-tags { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.profile-tags span {
  font-size: 10.5px; padding: 2px 8px; border-radius: 8px;
  background: rgba(255, 255, 255, .22); font-weight: 600;
}

.menu-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #FAFBFE; }
.menu-ico {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; background: var(--primary-soft); color: var(--primary);
}
.menu-text { flex: 1; font-weight: 500; }
.menu-arrow { color: #C3CCDD; font-size: 17px; }
.menu-item .sub { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ---------------- 弹层 ---------------- */
.sheet-mask, .dialog-mask {
  position: fixed; inset: 0; background: rgba(15, 25, 50, .45);
  z-index: 100; opacity: 0; transition: opacity .22s; backdrop-filter: blur(2px);
}
#sheet-root, #dialog-root { display: none; }
#sheet-root.show, #dialog-root.show { display: block; }
#sheet-root.show .sheet-mask, #dialog-root.show .dialog-mask { opacity: 1; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: 480px; background: var(--card);
  border-radius: 22px 22px 0 0; z-index: 101;
  max-height: 88vh; display: flex; flex-direction: column;
  transition: transform .28s cubic-bezier(.32, .72, 0, 1);
  padding-bottom: var(--safe-b);
}
#sheet-root.show .sheet { transform: translateX(-50%) translateY(0); }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 10px; font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.sheet-close {
  width: 28px; height: 28px; border-radius: 50%; background: #F1F4FA;
  color: var(--text-2); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.sheet-body { padding: 4px 18px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.dialog {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.92);
  width: calc(100% - 56px); max-width: 340px; background: var(--card);
  border-radius: 18px; z-index: 101; padding: 20px 18px 16px;
  transition: transform .22s; opacity: 0;
}
#dialog-root.show .dialog { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.dialog-title { font-size: 16.5px; font-weight: 700; text-align: center; }
.dialog-text { font-size: 14px; color: var(--text-2); text-align: center; margin-top: 9px; line-height: 1.6; }
.dialog-body { margin-top: 14px; }
.dialog-btns { display: flex; gap: 10px; margin-top: 18px; }
.dialog-btns .btn { flex: 1; }

/* ---------------- 提示 ---------------- */
#toast-wrap {
  position: fixed; top: 14%; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px;
  align-items: center; width: 100%; max-width: 480px; padding: 0 20px; pointer-events: none;
}
.toast {
  background: rgba(24, 33, 52, .93); color: #fff; font-size: 13.5px;
  padding: 11px 18px; border-radius: 12px; max-width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22); animation: toastIn .22s ease;
  text-align: center; line-height: 1.5;
}
.toast.success { background: rgba(6, 118, 71, .95); }
.toast.error { background: rgba(180, 35, 24, .95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.loading-mask {
  position: fixed; inset: 0; z-index: 400; background: rgba(244, 246, 251, .72);
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px;
  backdrop-filter: blur(1px);
}
.loading-mask.show { display: flex; }
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid #D6E0F5; border-top-color: var(--primary);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 12.5px; color: var(--text-2); }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .ico { font-size: 40px; opacity: .5; margin-bottom: 10px; }
.empty .t { font-size: 14px; }
.empty .s { font-size: 12px; margin-top: 5px; opacity: .85; }

/* ---------------- 上传凭证 ---------------- */
.upload-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.upload-add {
  width: 76px; height: 76px; border-radius: 12px; border: 1.5px dashed #C6D2E8;
  background: #FAFBFE; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; color: var(--muted); font-size: 11px;
}
.upload-add .p { font-size: 22px; line-height: 1; }
.upload-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; position: relative; }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-thumb .del {
  position: absolute; top: -5px; right: -5px; width: 21px; height: 21px;
  border-radius: 50%; background: var(--danger); color: #fff; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.evidence-view { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.evidence-view img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }

/* ---------------- 管理端 ---------------- */
.admin-head {
  background: linear-gradient(150deg, #17203A, #2B3A5F); color: #fff;
  border-radius: 18px; padding: 16px 18px; margin-bottom: 12px;
}
.admin-head .t { font-size: 17px; font-weight: 700; }
.admin-head .s { font-size: 12px; opacity: .75; margin-top: 4px; }
.mgr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mgr-card {
  background: var(--card); border-radius: 15px; padding: 15px 14px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 7px;
  transition: transform .12s;
}
.mgr-card:active { transform: scale(.975); }
.mgr-card .ico { font-size: 22px; }
.mgr-card .n { font-size: 14.5px; font-weight: 650; }
.mgr-card .d { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.mgr-card .cnt { font-size: 11.5px; color: var(--danger); font-weight: 700; }

.rule-row {
  background: var(--card); border-radius: 14px; padding: 13px 14px;
  box-shadow: var(--shadow); margin-bottom: 10px;
}
.rule-top { display: flex; align-items: center; gap: 8px; }
.rule-name { font-size: 15px; font-weight: 650; flex: 1; }
.rule-pts { font-size: 17px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.rule-meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.rule-acts { display: flex; gap: 8px; margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--line); }
.rule-acts .btn { flex: 1; }

.audit-card {
  background: var(--card); border-radius: 14px; padding: 14px;
  box-shadow: var(--shadow); margin-bottom: 10px;
}
.audit-top { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.audit-check { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }
.audit-who { flex: 1; font-size: 13.5px; font-weight: 600; }
.audit-who .t { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.audit-body { background: #FAFBFE; border-radius: 11px; padding: 10px 12px; }
.audit-act { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.audit-line { font-size: 12px; color: var(--text-2); margin-top: 5px; }
.audit-line b { color: var(--text); }

.member-row {
  display: flex; align-items: center; gap: 11px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.member-row:last-child { border-bottom: none; }
.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.member-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.member-pts { text-align: right; flex-shrink: 0; }

.filter-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.filter-bar .input, .filter-bar .select { padding: 9px 12px; font-size: 13.5px; border-radius: 11px; }

.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-item .bar-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.bar-item .bar-top .n { font-weight: 600; }
.bar-item .bar-top .v { color: var(--muted); }
.bar-track { height: 8px; background: #EDF1F9; border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #6FA0FF, var(--primary)); transition: width .4s; }

.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th, .data-table td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-cell { background: #FAFBFE; border-radius: 11px; padding: 10px 12px; }
.info-cell .k { font-size: 11.5px; color: var(--muted); }
.info-cell .v { font-size: 15px; font-weight: 700; margin-top: 3px; }

.hint-box {
  background: var(--primary-soft); color: #1E45B8; font-size: 12px;
  padding: 10px 12px; border-radius: 11px; line-height: 1.6;
}
.hint-box.warn { background: var(--warn-soft); color: #8A5B00; }

/* ---------------- 团队树与二维码 ---------------- */
.qr-box {
  display: inline-block; padding: 10px; background: #fff;
  border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.qr-box svg { width: 208px; height: 208px; display: block; }
.team-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.team-node:last-child > .team-row { border-bottom: none; }
.team-name { flex: 1; font-size: 14px; font-weight: 600; min-width: 0; }
.team-pts { font-size: 15px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.upload-file-box {
  border: 1.5px dashed #C6D2E8; background: #FAFBFE; border-radius: 14px;
  padding: 22px 16px; text-align: center; color: var(--muted); font-size: 13px;
}
.upload-file-box .p { font-size: 30px; display: block; margin-bottom: 6px; }
.upload-file-box.picked { border-color: var(--success); background: var(--success-soft); color: #04703F; }
.result-list { margin-top: 10px; }
.result-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; padding: 6px 0; border-bottom: 1px dashed var(--line);
}
.result-row:last-child { border-bottom: none; }

/* 桌面端微调 */
@media (min-width: 520px) {
  body { padding: 0; }
  .view { padding-left: 18px; padding-right: 18px; }
}
