:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-deep: #0b3d38;
  --brand-soft: #e6f4f1;
  --accent: #22c55e;
  --gold: #d97706;
  --bg: #f1f5f3;
  --card: #ffffff;
  --line: #e2ebe6;
  --line-strong: #cfdcd6;
  --ink: #12211d;
  --ink-2: #52645f;
  --ink-3: #8b9b96;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 34, .04), 0 6px 18px -14px rgba(16, 40, 34, .35);
  --tab-h: 62px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

a { color: var(--brand); }

.hidden { display: none !important; }

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: calc(10px + env(safe-area-inset-top));
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.logo {
  width: 36px; height: 36px; flex: none;
  border-radius: 11px;
  background: linear-gradient(145deg, #12857b, #0b4f47);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px; letter-spacing: .02em;
  box-shadow: 0 4px 10px -4px rgba(15, 118, 110, .7);
}

.brand-name { font-size: 15px; font-weight: 750; letter-spacing: -.01em; line-height: 1.15; }
.brand-sub { font-size: 11px; color: var(--ink-3); font-weight: 500; margin-top: 1px; }

.role-chip {
  margin-left: auto;
  flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: 12px; font-weight: 650;
  padding: 6px 10px;
  border-radius: 999px;
  max-width: 46vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.role-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); flex: none; }
.role-chip.is-admin { border-color: #bfe3dc; background: var(--brand-soft); color: var(--brand-dark); }
.role-chip.is-admin .dot { background: var(--brand); }
.role-chip.is-offline .dot { background: var(--danger); }

/* ---------- 主区域 ---------- */

.view {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 16px 26px;
}
.view.view-wide { max-width: none; padding-left: 0; padding-right: 0; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.page-title { font-size: 21px; font-weight: 780; letter-spacing: -.02em; margin: 0; }
.page-desc { font-size: 12.5px; color: var(--ink-3); margin: 3px 0 0; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 21px; font-weight: 780; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat > span { display: block; font-size: 11px; color: var(--ink-3); font-weight: 600; margin-top: 3px; }
.stat.is-brand b { color: var(--brand); }

/* ---------- 搜索与筛选 ---------- */

.search {
  position: relative;
  margin-bottom: 10px;
}
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 38px 0 38px;
  font-size: 14px;
  outline: none;
  box-shadow: var(--shadow);
  transition: border-color .15s;
}
.search input:focus { border-color: #9fd3c9; }
.search .clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; background: transparent; color: var(--ink-3);
  display: grid; place-items: center; border-radius: 8px;
}

.chip-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: .15s;
}
.chip:active { transform: scale(.97); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .n { opacity: .65; font-size: 11px; margin-left: 3px; }

.filter-label { font-size: 11px; color: var(--ink-3); font-weight: 700; letter-spacing: .04em; margin: 2px 0 -2px 2px; }

.result-note { font-size: 12px; color: var(--ink-3); margin: 0 0 8px 2px; }

/* ---------- 比赛卡片 ---------- */

.day-group { margin-top: 16px; }
.day-head {
  display: flex; align-items: baseline; gap: 8px;
  margin: 0 2px 8px;
}
.day-head h2 { font-size: 15px; font-weight: 750; margin: 0; letter-spacing: -.01em; }
.day-head span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

.match {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px 10px 15px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .12s, border-color .12s;
  cursor: pointer;
}
.match::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--c, var(--brand));
  opacity: .85;
}
.match:active { transform: scale(.995); border-color: var(--line-strong); }
.match.is-done { background: #fcfefd; }

.m-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.m-time { font-size: 12.5px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.m-court {
  font-size: 11px; font-weight: 650; color: var(--ink-2);
  background: #f2f6f4; border: 1px solid #e6eeea; border-radius: 6px;
  padding: 1px 6px;
}
.m-status { margin-left: auto; }
.m-meta { font-size: 11.5px; color: var(--ink-3); font-weight: 550; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sides { margin-top: 7px; display: flex; flex-direction: column; gap: 3px; }
.side {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  min-width: 0;
}
.side .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .mark { width: 5px; height: 5px; border-radius: 50%; background: #cbd8d3; flex: none; }
.side.win { color: var(--brand-deep); font-weight: 750; }
.side.win .mark { background: var(--accent); box-shadow: 0 0 0 3px rgba(34, 197, 94, .14); }
.side.tbd .nm { color: var(--ink-3); font-weight: 550; font-style: normal; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.badge.done { background: #e7f6ee; color: #137a4a; }
.badge.pending { background: #eef2f1; color: #5b6d67; }
.badge.tbd { background: #fdf3e3; color: #a05a0b; }

.empty {
  text-align: center;
  padding: 44px 20px;
  color: var(--ink-3);
}
.empty .big { font-size: 30px; margin-bottom: 8px; opacity: .5; }
.empty p { margin: 0; font-size: 13px; }

.more-btn {
  width: 100%; margin-top: 10px;
  border: 1px dashed var(--line-strong);
  background: #fff; color: var(--ink-2);
  border-radius: 12px; padding: 11px; font-size: 13px; font-weight: 650;
}

/* ---------- 冠军榜 ---------- */

.section { margin-top: 22px; }
.section-head { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 9px; }
.section-head h2 { font-size: 15px; margin: 0; font-weight: 750; }
.section-head span { font-size: 11.5px; color: var(--ink-3); }

.champ-list { display: flex; flex-direction: column; gap: 7px; }
.champ {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px;
}
.champ .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: #f2f6f4; flex: none; }
.champ .txt { min-width: 0; flex: 1; }
.champ .t1 { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.champ .t2 { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.champ .t2.pending { color: var(--ink-3); font-weight: 550; }
.champ .cup { color: var(--gold); flex: none; }

/* ---------- 对阵图 ---------- */

.bracket-bar { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
.bracket-bar::-webkit-scrollbar { display: none; }
.view-wide .bracket-bar { padding-left: 16px; padding-right: 16px; }

.bracket-meta { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 10px; font-size: 12px; color: var(--ink-3); }

.bye-line {
  margin: 0 16px 10px;
  font-size: 12px; color: #7a5a12;
  background: #fdf6e7; border: 1px solid #f4e3bd;
  border-radius: 10px; padding: 8px 10px;
  line-height: 1.5;
}

.bracket-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 16px 18px;
  max-height: calc(100vh - 250px);
  min-height: 320px;
  overscroll-behavior: contain;
}
.bracket {
  position: relative;
  margin: 0 auto;
}
.bracket-lines { position: absolute; inset: 0; pointer-events: none; }
.bracket-lines path { fill: none; stroke: #c9d9d3; stroke-width: 1.5; }

.bnode {
  position: absolute;
  width: 186px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 7px 9px;
  box-shadow: 0 1px 2px rgba(16, 40, 34, .05);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  overflow: hidden;
}
.bnode:active { border-color: var(--brand); }
.bnode.is-done { border-color: #cfe9df; }
.bnode.is-hit { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 119, 6, .14); }
.bnode .bn-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 9.5px; color: var(--ink-3); font-weight: 650; margin-bottom: 3px; }
.bnode .bn-no { background: #f2f6f4; border-radius: 4px; padding: 0 4px; }
.bnode .bn-row { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.bnode .bn-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.bnode .bn-row.win { color: var(--brand-deep); font-weight: 750; }
.bnode .bn-row .dot { width: 4px; height: 4px; border-radius: 50%; background: #cbd8d3; flex: none; }
.bnode .bn-row.win .dot { background: var(--accent); }
.bnode .bn-row.lose .nm { color: var(--ink-3); font-weight: 500; }

.bnode.champ-node { border-color: #f0d7a8; background: #fffdf7; }
.bnode.champ-node .bn-head { color: var(--gold); }

.round-col-title {
  position: absolute;
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  letter-spacing: .03em;
  white-space: nowrap;
}

.scroll-hint { font-size: 11px; color: var(--ink-3); text-align: center; padding: 0 16px 6px; }

/* ---------- 我的 ---------- */

.profile {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(120deg, #0f766e, #0b4f47);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 24px -18px rgba(15, 118, 110, .9);
}
.profile .avatar {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: rgba(255, 255, 255, .16);
  display: grid; place-items: center;
  font-size: 17px; font-weight: 750;
}
.profile .p-name { font-size: 16px; font-weight: 750; }
.profile .p-sub { font-size: 11.5px; color: rgba(255, 255, 255, .78); margin-top: 2px; }
.profile .p-act { margin-left: auto; flex: none; }
.profile .p-act button {
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .12);
  color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 650;
}

.tool-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.tool {
  display: flex; align-items: center; gap: 11px;
  width: 100%; border: 0; background: #fff; text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid #eef3f1;
}
.tool:last-child { border-bottom: 0; }
.tool:active { background: #f7faf9; }
.tool .tico { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; flex: none; }
.tool .tmain { flex: 1; min-width: 0; display: block; }
.tool .t1 { display: block; font-size: 14px; font-weight: 650; }
.tool .t2 { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.tool .chev { color: #b6c6c0; flex: none; }
.tool.danger .tico { background: #fdecec; color: var(--danger); }
.tool.danger .t1 { color: var(--danger); }

.info-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; margin-bottom: 12px; }
.info-card h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.info-card p { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 4px 0; color: var(--ink-2); }
.kv b { font-weight: 650; color: var(--ink); }

/* ---------- 底部导航 ---------- */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  border: 0; background: transparent;
  height: var(--tab-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-3);
  font-size: 10.5px; font-weight: 650;
  position: relative;
}
.tab svg { width: 21px; height: 21px; }
.tab.active { color: var(--brand); }
.tab.active::before {
  content: ""; position: absolute; top: 0; width: 26px; height: 2.5px; border-radius: 0 0 3px 3px;
  background: var(--brand);
}

/* ---------- 弹层 ---------- */

.scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10, 24, 20, .44);
  animation: fade .18s ease;
}
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 51;
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  max-height: 90vh;
  display: flex; flex-direction: column;
  animation: up .24s cubic-bezier(.22, .8, .28, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet-grip { width: 38px; height: 4px; border-radius: 4px; background: #d6e0dc; margin: 8px auto 2px; flex: none; }
.sheet-head {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 18px 12px;
  flex: none;
}
.sheet-title { font-size: 17px; font-weight: 760; margin: 0; letter-spacing: -.01em; }
.sheet-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.sheet-close {
  margin-left: auto; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: #e8efec; color: var(--ink-2);
  display: grid; place-items: center;
}
.sheet-body { padding: 0 18px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-foot { padding: 10px 18px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); flex: none; }

.hero-match {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 13px; margin-bottom: 12px;
}
.hero-match .hm-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.hero-match .hm-side {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px; margin-top: 6px;
  background: #f7faf9; font-size: 15px; font-weight: 650;
}
.hero-match .hm-side.win { background: #eaf7f0; color: var(--brand-deep); font-weight: 780; }
.hero-match .hm-side .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hero-match .hm-side .tag { font-size: 10.5px; font-weight: 700; color: var(--brand); background: #dff3e9; padding: 1px 6px; border-radius: 5px; flex: none; }
.hero-match .hm-vs { text-align: center; font-size: 10px; color: var(--ink-3); font-weight: 700; letter-spacing: .08em; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 650; color: var(--ink-2); margin: 0 0 5px 2px; }
.field .hint { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.5; }
.input, select.input, textarea.input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  padding: 11px 12px;
  font-size: 15px;
  outline: none;
  min-height: 44px;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, .1); }
textarea.input { resize: vertical; min-height: 120px; font-size: 12px; line-height: 1.5; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14px; font-weight: 700;
  background: #fff; color: var(--ink);
  transition: .15s;
}
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:active { background: var(--brand-dark); }
.btn.soft { background: var(--brand-soft); color: var(--brand-dark); border-color: #cbe7e1; }
.btn.ghost { background: #fff; border-color: var(--line-strong); color: var(--ink-2); }
.btn.danger { background: #fdecec; color: var(--danger); border-color: #f6d3d3; }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn:disabled { opacity: .5; pointer-events: none; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1; min-width: 120px; }

.alert {
  border-radius: 11px; padding: 9px 11px; font-size: 12px; line-height: 1.55;
  margin-bottom: 12px;
}
.alert.warn { background: #fdf6e7; color: #805a12; border: 1px solid #f4e3bd; }
.alert.info { background: #eef6f4; color: var(--brand-dark); border: 1px solid #d3eae4; }
.alert.error { background: #fdecec; color: #a31d1d; border: 1px solid #f6d3d3; }

.people { display: flex; flex-direction: column; gap: 7px; }
.person {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px;
}
.person .pn { flex: 1; min-width: 0; font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .pbye { font-size: 10.5px; color: #8a6a1d; background: #fdf3df; border-radius: 5px; padding: 1px 6px; flex: none; }
.person .pd { font-size: 10.5px; color: var(--ink-3); flex: none; }

.list-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 2px; border-bottom: 1px solid #edf2f0;
  font-size: 13px;
}
.list-row:last-child { border-bottom: 0; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .lr-s { font-size: 11px; color: var(--ink-3); margin-top: 1px; }

.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; }
.qr-box svg, .qr-box img { width: min(240px, 64vw); height: auto; display: block; margin: 0 auto; }
.qr-url {
  margin-top: 10px; font-size: 12px; color: var(--brand-dark); word-break: break-all;
  background: var(--brand-soft); border-radius: 8px; padding: 7px 9px; font-weight: 600;
}
.qr-note { font-size: 11.5px; color: var(--ink-3); margin-top: 9px; line-height: 1.55; text-align: left; }

.modal-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(10, 24, 20, .5); display: grid; place-items: center; padding: 22px; animation: fade .15s; }
.modal {
  width: 100%; max-width: 360px;
  background: #fff; border-radius: 16px; padding: 18px;
  animation: pop .18s ease;
}
.modal h3 { margin: 0 0 6px; font-size: 16px; }
.modal p { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }

.toast {
  position: fixed;
  left: 50%;
  top: auto;
  bottom: calc(var(--tab-h) + 22px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  z-index: 90;
  background: rgba(16, 33, 29, .94);
  color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  max-width: 86vw;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 24px -12px rgba(16, 33, 29, .8);
}
body.has-sheet .toast {
  top: calc(70px + env(safe-area-inset-top));
  bottom: auto;
  transform: translate(-50%, -8px);
}
body.has-sheet .toast.show { transform: translate(-50%, 0); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #991b1b; }

.skeleton {
  height: 74px; border-radius: 14px;
  background: linear-gradient(100deg, #eef3f1 30%, #f6faf8 50%, #eef3f1 70%);
  background-size: 220% 100%;
  animation: shimmer 1.1s infinite linear;
  margin-bottom: 8px;
}

.conn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--ink-3); font-weight: 600;
}
.conn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.conn.off .dot { background: var(--danger); }

/* ---------- 动画 ---------- */

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(26px); opacity: .6; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
@keyframes shimmer { to { background-position: -120% 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- 小屏适配 ---------- */

@media (max-width: 359px) {
  .view { padding-left: 12px; padding-right: 12px; }
  .stat { padding: 9px 10px; }
  .stat b { font-size: 18px; }
  .brand-sub { display: none; }
  .tab { font-size: 10px; }
  .match { padding-left: 13px; }
}

@media (min-width: 761px) {
  body { background: #eef3f1; }
  .app { max-width: 760px; margin: 0 auto; background: var(--bg); min-height: 100vh; box-shadow: 0 0 0 1px #e4ece8; }
  .topbar, .tabbar { max-width: 760px; }
}

/* ---------- 分段切换 ---------- */

.segmented {
  display: flex;
  gap: 2px;
  background: #e7efeb;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 12px;
}
.segmented button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 9px;
  transition: .15s;
}
.segmented button.active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 1px 3px rgba(16, 40, 34, .1);
}

/* ---------- 按项目查看 ---------- */

.project {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project-head {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  background: #fff;
  padding: 12px 13px;
  text-align: left;
}
.project-head .p-ico {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  background: #f2f7f5;
  display: grid; place-items: center;
  font-size: 19px;
}
.project-head .p-main { flex: 1; min-width: 0; }
.project-head .p-name { font-size: 14.5px; font-weight: 720; }
.project-head .p-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-head .p-right { flex: none; text-align: right; }
.project-head .p-right b { display: block; font-size: 15px; color: var(--brand); font-variant-numeric: tabular-nums; }
.project-head .p-right span { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.project-head .p-chev { flex: none; color: #b6c6c0; transition: transform .18s; }
.project.open .p-chev { transform: rotate(90deg); }
.project-body { display: none; border-top: 1px solid #eef3f1; padding: 8px 11px 12px; background: #fbfdfc; }
.project.open .project-body { display: block; }
.project-body .match:last-child { margin-bottom: 0; }
.round-label {
  font-size: 10.5px;
  font-weight: 750;
  color: var(--ink-3);
  letter-spacing: .06em;
  margin: 10px 2px 6px;
}
.round-label:first-child { margin-top: 2px; }

/* ---------- 按场地 ---------- */

.court-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.court-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  background: linear-gradient(180deg, #f7fbf9, #fff);
  border-bottom: 1px solid #eef3f1;
}
.court-pic {
  width: 56px; height: 42px; flex: none;
  border-radius: 9px;
  background: #e8f3ee;
  display: grid; place-items: center;
  color: #4d7d6f;
}
.court-pic svg { width: 48px; height: 34px; }
.court-title { font-size: 15px; font-weight: 760; }
.court-sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.court-count {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 3px 8px;
  border-radius: 999px;
  flex: none;
}
.court-list { padding: 2px 13px 6px; }
.court-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #f2f6f4;
  cursor: pointer;
}
.court-row:last-child { border-bottom: 0; }
.court-row .cr-time { width: 42px; flex: none; font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
.court-row .cr-main { flex: 1; min-width: 0; }
.court-row .cr-t { font-size: 12.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.court-row .cr-s { font-size: 10.5px; color: var(--ink-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.court-row .badge { flex: none; }

/* ---------- 公告 ---------- */

.notice {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: #fffaf0;
  border: 1px solid #f2e2bb;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: #7a5a12;
  line-height: 1.5;
}
.notice .n-icon { flex: none; color: var(--gold); margin-top: 1px; }
.notice b { color: #9a5b0b; }

.announce-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.announce-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  color: var(--gold);
  margin-bottom: 4px;
}
.announce-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px dashed #eef3f1;
  font-size: 13px;
  line-height: 1.55;
}
.announce-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.announce-item .a-text { flex: 1; min-width: 0; }
.announce-item .a-time { flex: none; font-size: 10.5px; color: var(--ink-3); }
.announce-item .a-del { flex: none; border: 0; background: transparent; color: var(--ink-3); padding: 2px; }

/* ---------- 评奖评优 ---------- */

.award-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.award-title { font-size: 16.5px; font-weight: 780; letter-spacing: -.01em; }
.award-desc { font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
.award-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; font-size: 11.5px; color: var(--ink-2); }
.award-winner {
  margin-top: 10px;
  background: #fdf7e8;
  border: 1px solid #f2e2bb;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12.5px;
  color: #7a5a12;
}
.award-winner b { color: #9a5b0b; }
.award-list {
  margin-top: 11px;
  border-top: 1px solid #eef3f1;
  max-height: 46vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid #f3f7f5;
}
.opt:last-child { border-bottom: 0; }
.opt .o-main { flex: 1; min-width: 0; }
.opt .o-name { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt .o-note { font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }
.opt .o-bar { height: 4px; border-radius: 4px; background: #eef3f1; margin-top: 5px; overflow: hidden; }
.opt .o-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transition: width .3s; }
.opt .o-count { width: 30px; flex: none; text-align: right; font-size: 12px; font-weight: 750; color: var(--brand); font-variant-numeric: tabular-nums; }
.opt .o-btn { flex: none; }
.opt.mine .o-name { color: var(--brand-dark); }
.opt.mine .o-btn { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- 留言板 ---------- */

.post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 13px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.post .po-head { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.post .po-avatar {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 750;
}
.post .po-name { font-weight: 700; font-size: 12.5px; }
.post .po-time { margin-left: auto; font-size: 10.5px; color: var(--ink-3); }
.post .po-text { font-size: 13.5px; line-height: 1.6; margin-top: 7px; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.post .po-del { border: 0; background: transparent; color: var(--ink-3); font-size: 11px; padding: 2px 0 0; }

/* ---------- 放大版时间场地编辑 ---------- */

.editor-lg label { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.editor-lg .input { font-size: 16px; min-height: 48px; padding: 12px 13px; }
.editor-lg .btn { font-size: 15px; min-height: 48px; }
.editor-lg .grid-2 { gap: 12px; }
.editor-lg select.input { font-size: 16px; }

@media (max-width: 359px) {
  .tab { font-size: 9.5px; }
  .tab svg { width: 19px; height: 19px; }
  .court-pic { width: 46px; height: 36px; }
  .court-pic svg { width: 40px; height: 28px; }
}

.project-head .p-name, .project-head .p-sub { display: block; }
.court-row .cr-t, .court-row .cr-s { display: block; }
.a-empty { font-size: 12.5px; color: var(--ink-3); }
.award-item-title { font-size: 13px; font-weight: 700; }

/* ---------- 赛程入口卡片 ---------- */

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}
.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px 15px;
  box-shadow: var(--shadow);
  min-height: 92px;
}
.entry:active { transform: scale(.985); }
.entry-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.entry-name { font-size: 16px; font-weight: 760; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-ico { font-size: 18px; line-height: 1; flex: none; }
.entry-meta { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.entry-sub { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-go { position: absolute; right: 10px; bottom: 11px; color: #b6c6c0; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 2px 2px 10px;
}

/* ---------- 周六安排 ---------- */

.activity-list { display: flex; flex-direction: column; gap: 8px; }
.activity {
  display: flex;
  gap: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.ac-time {
  flex: none;
  width: 52px;
  font-size: 13px;
  font-weight: 750;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.ac-time i { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.ac-main { flex: 1; min-width: 0; }
.ac-main b { font-size: 14px; }
.ac-court {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: var(--ink-2);
  background: #f2f6f4;
  border-radius: 5px;
  padding: 1px 6px;
}
.ac-main p { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.5; }

.sat-row {
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 11px;
  margin-bottom: 10px;
  background: #fbfdfc;
}
.sat-row label { font-size: 11.5px; }
.sat-row .sat-del { margin-top: 8px; }

/* ---------- 留言照片 ---------- */

.post-photo {
  display: block;
  margin-top: 9px;
  max-width: 340px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.post-photo img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.preview-img {
  display: block;
  max-width: 220px;
  max-height: 220px;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
input[type="file"].input { padding: 9px 10px; font-size: 12.5px; }

.round-list { margin-top: 4px; }

@media (max-width: 359px) {
  .entry { padding: 12px 12px 14px; min-height: 88px; }
  .entry-name { font-size: 14.5px; }
  .entry-meta { font-size: 10.5px; }
}

.file-input { display: none; }
.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 650;
}
.file-btn:active { background: #f4f8f6; }
.post-photo img { max-height: 280px; }

.round-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 12px;
}
.round-tabs .chip { font-size: 13px; padding: 7px 13px; }

/* ---------- 管理员赛程 ---------- */

.admin-project-head { margin: 2px 0 10px; }
.aph-title { font-size: 19px; font-weight: 780; letter-spacing: -.01em; }
.aph-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

.admin-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 12px;
}
.admin-fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 9px;
}
.admin-fact b { display: block; font-size: 15px; font-weight: 780; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-fact span { display: block; font-size: 10px; color: var(--ink-3); margin-top: 2px; font-weight: 600; }

.admin-note {
  background: #f7faf9;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 10px;
}
.admin-note.bye { background: #fdf6e7; border-color: #f4e3bd; color: #7a5a12; }

.admin-day { margin-top: 14px; }
.admin-day h2 { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 760; margin: 0 2px 8px; }
.admin-day h2 small { font-size: 11px; font-weight: 600; color: var(--ink-3); }

.admin-slot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  margin-bottom: 9px;
  box-shadow: 0 1px 2px rgba(16, 40, 34, .04);
}
.admin-slot-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 12px;
  background: linear-gradient(180deg, #f8fbf9, #fff);
  border-bottom: 1px solid #eef3f1;
  font-size: 11px;
}
.as-time { font-weight: 780; font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.as-sport { color: var(--ink-2); font-weight: 600; }
.as-round { color: var(--brand-dark); font-weight: 700; }
.as-courts { color: var(--ink-2); font-weight: 600; }
.as-count { margin-left: auto; background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 2px 8px; font-weight: 750; }

.admin-rows { display: flex; flex-direction: column; }
.adm-match {
  display: grid;
  grid-template-columns: 22px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #f3f7f5;
  background: #fff;
  text-align: left;
  font-size: 12px;
}
.adm-match:last-child { border-bottom: 0; }
.adm-match:active { background: #f7faf9; }
.am-no { font-size: 10px; font-weight: 700; color: var(--ink-3); }
.am-court { font-size: 10px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.am-names { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; }
.am-names b { flex: 1; min-width: 0; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-names b.win { color: var(--brand-deep); font-weight: 780; }
.am-names i { font-style: normal; font-size: 9px; color: var(--ink-3); flex: none; }
.adm-match .badge { font-size: 9px; padding: 1px 5px; }

@media (max-width: 359px) {
  .admin-fact { padding: 7px; }
  .admin-fact b { font-size: 13px; }
  .adm-match { grid-template-columns: 20px 38px minmax(0, 1fr) auto; gap: 5px; padding: 7px 9px; }
}

.entry-bye { font-size: 10.5px; color: #a05a0b; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aph-bye { font-size: 11px; color: #a05a0b; font-weight: 600; margin-top: 4px; }
.bye-small { font-size: 11.5px; color: #a05a0b; font-weight: 600; margin: 4px 0 0; }

/* 场地图折叠 */
.court-head {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.court-main { display: flex; flex-direction: column; min-width: 0; }
.court-main .court-title { display: block; }
.court-main .court-sub { display: block; }
.court-chev { margin-left: 6px; flex: none; color: #b6c6c0; transition: transform .18s; }
.court-card.open .court-chev { transform: rotate(90deg); }
.court-list { display: none; }
.court-list.open { display: block; }

/* 申请卡片 */
.request-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 13px;
  margin-bottom: 9px;
  box-shadow: var(--shadow);
}
.rq-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rq-time { margin-left: auto; font-size: 10.5px; color: var(--ink-3); }
.rq-title { font-size: 13.5px; font-weight: 700; margin-top: 7px; }
.rq-reason { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; margin-top: 4px; }
.rq-pref { font-size: 11.5px; color: var(--brand-dark); margin-top: 3px; }
.rq-handled { font-size: 11px; color: var(--ink-3); margin-top: 7px; }

.bye-note { font-size: 11px; color: var(--ink-3); line-height: 1.65; margin: 18px 2px 0; }
.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 11px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  padding: 0 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.back-btn:active { background: #f4f8f6; }
.sheet-close { width: 38px; height: 38px; }

#updateBar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 82px;
  z-index: 60;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--brand-deep);
  color: #fff;
  font: 700 13px/1.2 inherit;
  box-shadow: 0 10px 30px -12px rgba(6, 48, 43, .6);
}

/* 操作旁撤销条 */
.undo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff8e8;
  border: 1px solid #f2dfb6;
  border-radius: 11px;
  padding: 7px 8px 7px 12px;
  margin: 0 0 12px;
  font-size: 11.5px;
  color: #7a5a12;
}
.undo-bar.inline { margin: 8px 0; }
.undo-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undo-bar .btn { flex: none; }

/* 管理员进入页 */
.admin-enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #0b5d54, #0f766e);
  color: #fff;
  text-align: left;
  box-shadow: 0 14px 30px -18px rgba(11, 93, 84, .85);
  margin: 2px 0 14px;
}
.admin-enter:active { transform: scale(.995); }
.ae-title { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.ae-sub { display: block; font-size: 12px; opacity: .82; margin-top: 4px; }
.ae-arrow { opacity: .75; flex: none; }
.admin-manage-head { display: flex; align-items: baseline; gap: 8px; margin: 4px 2px 8px; }
.admin-manage-head b { font-size: 15px; font-weight: 760; }
.admin-manage-head small { font-size: 10.5px; color: var(--ink-3); }

.admin-logout { text-align: center; margin: 14px 0 4px; }
.admin-logout button {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-3);
  border-radius: 10px;
  padding: 9px 22px;
  font: 600 12.5px/1 inherit;
}

/* 比分 */
.score-row { display: flex; align-items: center; gap: 8px; }
.score-row .input { text-align: center; font-size: 18px; font-weight: 750; }
.score-row span { font-size: 18px; font-weight: 800; color: var(--ink-3); }
.m-score { font-size: 11px; font-weight: 750; color: var(--brand-dark); background: var(--brand-soft); border-radius: 6px; padding: 1px 5px; }
.hm-score { text-align: center; font-size: 18px; font-weight: 800; color: var(--brand-deep); letter-spacing: .06em; margin-top: 2px; }

/* 切换普通用户 */
.admin-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #bfe0d8;
  background: #eef8f4;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 16px;
  text-align: left;
  color: var(--brand-deep);
}
.ap-ico { width: 34px; height: 34px; border-radius: 10px; background: #d9f0e8; display: flex; align-items: center; justify-content: center; flex: none; }
.ap-text { flex: 1; min-width: 0; }
.ap-text b { display: block; font-size: 15.5px; font-weight: 780; }
.ap-text small { display: block; font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.ap-arrow { color: #7fb3a7; flex: none; }

#previewBar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 82px;
  z-index: 61;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #12211d;
  color: #fff;
  border-radius: 12px;
  padding: 9px 10px 9px 14px;
  font-size: 12px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .55);
}
#previewBar span { flex: 1; font-weight: 650; }
#previewBar button {
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #12211d;
  font: 750 12.5px/1 inherit;
  padding: 8px 12px;
}

/* 普通用户项目规则 */
.rule-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 13px;
  margin: 10px 0 4px;
}
.rule-box summary { cursor: pointer; font-size: 12.5px; font-weight: 750; color: var(--brand-dark); list-style: none; }
.rule-box summary::-webkit-details-marker { display: none; }
.rule-box summary::after { content: '▾'; float: right; color: var(--ink-3); }
.rule-box[open] summary::after { content: '▴'; }
.rule-box p { margin: 8px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--ink-2); }

#previewBar .pb-close {
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font: 400 18px/1 -apple-system, "PingFang SC", sans-serif;
  padding: 0;
  flex: none;
}
