:root {
  /* 配色：M+ Tennis 的深绿、卡其棕、米灰（麦麦老师 2026-10-11 选定） */
  --brown: #8a7d60;
  --brown-dark: #3b2a1a;
  --green: #1f3b2d;
  --green-2: #2e6b4f;
  --bg: #f3eee2;
  --card: #fffdf8;
  --line: #e2d9c6;
  --text: #2a2620;
  --muted: #7a7266;
  --red: #c0392b;
  --red-bg: #fdecea;
  --amber: #b26a00;
  --amber-bg: #fff4e0;
  --blue: #1f5fa8;
  --blue-bg: #e8f0fb;
  --ok: #1d7a46;
  --ok-bg: #e6f4ec;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
main { max-width: 760px; margin: 0 auto; padding: 12px; }
h1 { font-size: 20px; margin: 8px 0 12px; }
h2 { font-size: 17px; margin: 18px 0 8px; }
h3 { font-size: 15px; margin: 12px 0 6px; }
p { line-height: 1.55; }
a { color: var(--green-2); }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.small { font-size: 12px; }
.pre { white-space: pre-wrap; }

#topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--green); color: #fff; }
#topbar .brand { color: #fff; font-weight: 700; text-decoration: none; }
#topbar #venue-name { flex: 1; font-size: 13px; opacity: .9; }
#topbar #venue-name a { color: inherit; }
#topbar #venue-switch { flex: 1; width: auto; min-width: 0; padding: 5px 8px; font-size: 13px; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
#topbar #venue-switch option { color: #000; }
#topbar #venue-name[hidden], #topbar #venue-switch[hidden] { display: none; }
#topbar .link { color: #fff; }

#tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
#tabbar a { flex: 1; text-align: center; padding: 9px 0 8px; font-size: 12px; color: var(--muted); text-decoration: none; }
#tabbar a.on { color: var(--green-2); font-weight: 700; }
#tabbar a .ico { display: block; font-size: 18px; line-height: 1.1; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; }
.card.tight { padding: 10px 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ledger-form .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.ledger-form .ledger-field { min-width: 0; }
.ledger-form input, .ledger-form select, .ledger-form textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; }
.ledger-table { width: 100%; table-layout: fixed; }
.ledger-table th { width: 7em; }
.ledger-table th, .ledger-table td { overflow-wrap: anywhere; vertical-align: top; }
@media (max-width: 600px) { .ledger-form .grid2 { grid-template-columns: minmax(0, 1fr); } }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

button, .btn { font: inherit; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 8px; padding: 9px 14px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
button.primary, .btn.primary { background: var(--green-2); border-color: var(--green-2); color: #fff; }
button.danger { background: var(--red); border-color: var(--red); color: #fff; }
button.block, .btn.block { display: block; width: 100%; }
button.link { border: 0; background: none; padding: 0; color: var(--green-2); }
button:disabled { opacity: .5; cursor: default; }
.btn.big { padding: 14px; font-size: 16px; font-weight: 600; }

label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea { font: inherit; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; background: #fff; color: var(--text); }
textarea { min-height: 70px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; flex: none; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }

.tag { display: inline-block; font-size: 12px; line-height: 1; padding: 4px 7px; border-radius: 999px; background: #ece5d6; color: var(--muted); white-space: nowrap; }
.tag.red { background: var(--red-bg); color: var(--red); }
.tag.amber { background: var(--amber-bg); color: var(--amber); }
.tag.blue { background: var(--blue-bg); color: var(--blue); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.dark { background: var(--green); color: #fff; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.seg button { padding: 10px 0; }
.seg button.on-PASS { background: var(--ok); border-color: var(--ok); color: #fff; }
.seg button.on-FAIL { background: var(--red); border-color: var(--red); color: #fff; }
.seg button.on-NA { background: #7d847f; border-color: #7d847f; color: #fff; }

.item.FAIL { border-left: 4px solid var(--red); }
.item.PASS { border-left: 4px solid var(--ok); }
.item.NA { border-left: 4px solid #9aa19c; }
.item .code { font-weight: 700; color: var(--green-2); margin-right: 6px; }
.item .std { font-size: 14px; color: #3c443f; margin: 6px 0 0; }
.prior { margin-top: 8px; padding: 8px; border-radius: 8px; background: var(--amber-bg); color: var(--amber); font-size: 13px; }

.photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; }
.photos .add { width: 72px; height: 72px; border: 1px dashed #b9beb8; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; cursor: pointer; position: relative; overflow: hidden; }
.photos .add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photos .ph { position: relative; }
.photos .ph button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; padding: 0; border-radius: 50%; font-size: 12px; line-height: 20px; background: #333; color: #fff; border: 0; }

.dimnav { position: sticky; top: 44px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; background: var(--bg); }
.dimnav a { flex: none; font-size: 13px; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.progress { height: 6px; background: #e6dfcf; border-radius: 3px; overflow: hidden; margin: 6px 0; }
.progress div { height: 100%; background: var(--green-2); }

.score { font-size: 40px; font-weight: 800; line-height: 1; }
.grade { font-size: 22px; font-weight: 800; padding: 6px 12px; border-radius: 8px; background: var(--green); color: #fff; }
.grade.E, .grade.D { background: var(--red); }
.grade.C { background: var(--amber); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
td.num, th.num { text-align: right; white-space: nowrap; }

.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; }
.chips a { flex: none; font-size: 13px; padding: 6px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.chips a.on { background: var(--green-2); border-color: var(--green-2); color: #fff; }

.issue-row { display: block; color: inherit; text-decoration: none; }
.issue-row .fact { margin: 6px 0 4px; font-size: 14px; }

.timeline { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 12px; }
.timeline .ev { position: relative; margin-bottom: 12px; }
.timeline .ev::before { content: ""; position: absolute; left: -18px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--green-2); }
.timeline .ev .who { font-size: 12px; color: var(--muted); }

.panel { border: 2px solid var(--green-2); }
.panel h3 { margin-top: 0; color: var(--green-2); }
.alert { padding: 10px 12px; border-radius: 8px; background: var(--red-bg); color: var(--red); font-size: 14px; margin: 8px 0; }
.alert.amber { background: var(--amber-bg); color: var(--amber); }
.alert.blue { background: var(--blue-bg); color: var(--blue); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.kpi .v { font-size: 22px; font-weight: 800; }
.kpi .l { font-size: 12px; color: var(--muted); }
.bar { height: 8px; background: #e6dfcf; border-radius: 4px; overflow: hidden; }
.bar div { height: 100%; background: var(--green-2); }
.bar.self div { background: #8fb7a5; }
.trend { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 10px; }
.trend .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 11px; color: var(--muted); }
.trend .col div { width: 100%; max-width: 36px; background: var(--green-2); border-radius: 4px 4px 0 0; }
.trend .col b { color: var(--text); font-size: 12px; }

#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: rgba(20, 24, 22, .92); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; max-width: 90vw; display: none; z-index: 50; white-space: pre-wrap; }
#toast.show { display: block; }

.viewer { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); z-index: 60; display: flex; align-items: center; justify-content: center; }
.viewer img { max-width: 100%; max-height: 100%; }

@media (min-width: 700px) {
  .kpis { grid-template-columns: repeat(6, 1fr); }
}
/* 顶部栏：工作台名称不换行；用户名太长时省略（如前台共用账号） */
#topbar .brand { white-space: nowrap; }
#user-btn { max-width: 6.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 工作台首页的项目入口 */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--text); text-decoration: none; min-height: 84px; }
.tile .ico { font-size: 20px; color: var(--green-2); line-height: 1.1; }
.tile b { font-size: 15px; }
.tile .muted { font-size: 11px; line-height: 1.35; }

/* 卡其棕点缀：图标、选中状态、进度条、小标题 */
.tile .ico { color: var(--brown); }
.chips a.on { background: var(--brown); border-color: var(--brown); }
#tabbar a.on { color: var(--brown); }
.bar div { background: var(--brown); }
.kpi .v { color: var(--green); }
h2 { color: var(--brown-dark); }

/* 每页右下角的反馈按钮 */
#fb-btn { position: fixed; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 20; padding: 7px 12px; border-radius: 999px; font-size: 13px; background: var(--card); color: var(--brown-dark); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* 粘贴的 Excel 表格（2026-10-13） */
table.rich { font-size: 13px; min-width: 100%; }
table.rich th, table.rich td { border: 1px solid var(--line); padding: 4px 6px; white-space: nowrap; }
table.rich th { background: #f1ede3; }

/* 附件（2026-10-13） */
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.att-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; display: block; }
.att-file { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.att-file:first-of-type { border-top: 0; }
.att-ico { font-size: 24px; width: 32px; text-align: center; }
.att-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.btn.small { padding: 5px 10px; font-size: 13px; }
/* 附件按钮：拍照 / 相册 / 录音 / 文件 一样大、排齐（2026-10-16 麦麦） */
.att-btns { display: grid; grid-template-columns: repeat(4, auto); gap: 6px; align-items: stretch; }
.att-btns > .btn { margin: 0; width: auto; min-width: 56px; padding: 5px 10px; font-size: 13px; line-height: 1.4; display: flex; align-items: center; justify-content: center; white-space: nowrap; box-sizing: border-box; }
.att-btns > .btn.primary { color: #fff; }
/* 一键回首页（2026-10-16） */
#topbar #home-btn { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; padding: 4px 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; }
#topbar #home-btn[hidden], #topbar .brand[hidden] { display: none; }

#topbar { flex-wrap: wrap; }
@media (max-width: 480px) {
  #topbar .brand { font-size: 15px; }
  #topbar #venue-name { flex: 1 1 auto; font-size: 12px; }
}

/* 今日网球课程：仅作用于本人首页概览，不影响其他业务卡片。 */
#tennis-day-home .tennis-day h2 { margin:0 0 8px; font-size:1.2rem; }
#tennis-day-home .day-counts { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
#tennis-day-home .day-counts > * { padding:9px 14px; border-radius:10px; background:var(--bg,#f4f7f2); }
#tennis-day-home .day-lesson { padding:14px 0; border-top:1px solid var(--line,#dce5da); overflow-wrap:anywhere; }
#tennis-day-home .day-lesson p { margin:6px 0; }
#tennis-day-home .day-lesson small { display:block; color:var(--muted,#647a6c); }
@media(max-width:480px) {
  #tennis-day-home .day-counts { gap:8px; }
  #tennis-day-home .day-counts > * { flex:1 1 auto; padding:9px 10px; }
  #tennis-day-home .row { flex-wrap:wrap; }
}
/* AI 共创：与中台共用导航、表单和主题。 */
.ai-co { width: min(100%, 680px); margin-inline: auto; display: grid; gap: 14px; }
.ai-co-nav { padding-block: 2px; }
.ai-co-nav a { display: inline-flex; min-height: 44px; align-items: center; }
.ai-co-head { border-radius: 16px; padding: 20px; color: #173d2b; background: #e7f2ea; }
.ai-co-head h1 { margin: 6px 0; }
.ai-co-head p { margin: 4px 0 0; }
.ai-co-kicker { font-size: 13px; color: #3d6651; }
.ai-co-panel { display: grid; gap: 12px; min-width: 0; margin: 0; }
.ai-co-panel h2 { margin: 0; font-size: 18px; }
.ai-co-form { display: grid; gap: 12px; min-width: 0; }
.ai-co-form:empty { display: none; }
.ai-co-field { display: grid; gap: 6px; min-width: 0; margin: 0; }
.ai-co-field :is(select, textarea) { width: 100%; min-height: 44px; margin: 0; font-size: 16px; }
.ai-co-form button { min-height: 44px; }
.ai-co-status { justify-self: start; border-radius: 999px; background: #e7efe9; color: #254b37; padding: 4px 10px; font-size: 13px; }
.ai-co-status:is([data-state=NEW], [data-state=TRY], [data-state=EXTERNAL_PENDING], [data-state=VENUE_PENDING], [data-state=REPORTER_PENDING]) { color: #68410d; background: #f8ecd5; }
.ai-co-record { display: grid; gap: 6px; padding: 11px 12px; border: 1px solid #dce5dc; border-radius: 10px; overflow-wrap: anywhere; text-decoration: none; }
.ai-co-record-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; flex-wrap: wrap; }
.ai-co-topic { display: grid; gap: 3px; margin: 0; }
.ai-co-topic dt { font-size: 13px; color: #4a6254; }
.ai-co-topic dd { margin: 0 0 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-co-action { border: 1px solid #dce5dc; padding: 0 12px; border-radius: 10px; min-width: 0; }
.ai-co-action > summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-weight: 600; }
.ai-co-action[open] { padding-bottom: 12px; }
.ai-co-history { margin: 0; list-style: none; padding: 0; }
.ai-co-event { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid #dce5dc; overflow-wrap: anywhere; }
.ai-co-event small { color: #4a6254; }
.ai-co-event p { margin: 0; white-space: pre-wrap; }
.ai-co-event b { display: block; font-size: 13px; }
.ai-co-members { display: grid; gap: 4px; }
.ai-co-members label { display: flex; gap: 10px; align-items: center; min-height: 44px; margin: 0; }
.ai-co-members input { width: auto; }

/* ---------- 首页美化（2026-11-11）：只改显示，配色沿用深绿 / 卡其棕 / 米色 ---------- */
:root { --shadow-1: 0 1px 2px rgba(59, 42, 26, .05), 0 1px 1px rgba(59, 42, 26, .03); --tint: #f1eadb; }
.card { border-radius: 12px; box-shadow: var(--shadow-1); }
h1 { font-size: 22px; letter-spacing: .2px; }

/* 分区标题：前面一道卡其色条 */
h2.tiles-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-size: 16px; }
h2.tiles-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--brown); }

/* 入口方块：图标放进浅色圆角底，标题加粗，说明最多两行 */
.tiles { gap: 10px; }
.tile { gap: 4px; padding: 12px; border-radius: 12px; min-height: 96px; box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .15s, transform .1s; }
.tile .ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 12px; background: var(--tint); color: var(--green-2); font-size: 18px; line-height: 1; }
.tile .ico svg { display: block; }
.tile b { font-size: 15px; line-height: 1.3; color: var(--text); }
.tile .muted { font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile:hover { border-color: #cdbf9f; box-shadow: 0 3px 10px rgba(59, 42, 26, .08); }
.tile:active { transform: scale(.98); }
.tile:focus-visible { outline: 3px solid #e3c87e; outline-offset: 2px; }
@media (max-width: 420px) {
  .tiles { gap: 8px; }
  .tile { padding: 10px 9px; min-height: 90px; }
  .tile .ico { width: 36px; height: 36px; border-radius: 10px; }
  .tile .ico svg { width: 20px; height: 20px; }
  .tile b { font-size: 14px; }
  .tile .muted { font-size: 11px; }
}

/* 分区底色：场馆绿、培训卡其、赛事琥珀、线上运营蓝灰，其余中性（都在中台现有配色里） */
.tiles[data-group=venue] .ico { background: #e2ede4; color: #2e6b4f; }
.tiles[data-group=training] .ico { background: #f0e6d0; color: #7d5f24; }
.tiles[data-group=event] .ico { background: #f9e7cc; color: #a35d12; }
.tiles[data-group=media] .ico { background: #e2e9ef; color: #3b5a73; }
.tiles[data-group=misc] .ico { background: #ece7dc; color: #4f4637; }

/* 通知卡片的两个操作按钮 */
.note-actions { display: inline-flex; gap: 8px; flex: none; }
.note-btn { padding: 6px 14px; font-size: 13px; line-height: 1.3; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); min-height: 32px; }
.note-btn.go { border-color: var(--green-2); color: var(--green-2); font-weight: 600; }
.note-btn:active { transform: scale(.97); }

/* 底部导航：线条图标 */
#tabbar { box-shadow: 0 -1px 6px rgba(59, 42, 26, .05); }
#tabbar a .ico { display: flex; justify-content: center; height: 22px; margin-bottom: 2px; font-size: 18px; }
#tabbar a .ico svg { width: 21px; height: 21px; }
#tabbar a.on .ico { color: var(--brown); }

/* ---------- 电脑端适配（2026-11-16）：≥1100px 左侧导航 + 宽内容区；手机/平板保持原样 ---------- */
/* hidden 属性兜底：#topbar/#tabbar 等被写成 display:flex 后，hidden 会失效（登录页一直漏显导航，2026-11-16 修复） */
[hidden] { display: none !important; }

/* 手机端：左导航标题、分组入口都不显示 */
#tabbar .side-brand, #tabbar .side-groups { display: none; }

@media (min-width: 1100px) {
  body { padding-left: 216px; padding-bottom: 0; }
  /* 未登录（首页/登录页）时 tabbar 隐藏，内容回到整屏居中 */
  body:has(#tabbar[hidden]) { padding-left: 0; }

  /* 左侧导航：由原底部 tabbar 变身，白底 + 品牌名 + 图标菜单 */
  #tabbar {
    position: fixed; top: 0; bottom: 0; left: 0; right: auto;
    width: 216px; flex-direction: column; align-items: stretch; gap: 2px;
    border-top: 0; border-right: 1px solid var(--line);
    box-shadow: 1px 0 8px rgba(59, 42, 26, .05);
    padding: 18px 12px calc(18px + env(safe-area-inset-bottom));
    overflow: hidden; /* 分组区单独滚动，品牌与主导航常驻 */
  }
  #tabbar .side-brand {
    display: block; padding: 4px 12px 18px; flex: none;
    font-size: 16px; font-weight: 800; letter-spacing: .3px;
    color: var(--green); text-decoration: none; white-space: nowrap;
  }
  #tabbar a {
    flex: none; display: flex; align-items: center; gap: 12px;
    text-align: left; padding: 11px 12px; border-radius: 10px;
    font-size: 14px; color: #4f4637; text-decoration: none;
  }
  #tabbar a .ico { display: inline-flex; height: auto; margin: 0; font-size: 17px; }
  #tabbar a .ico svg { width: 20px; height: 20px; }
  #tabbar a:hover { background: #f1eadb; }
  #tabbar a.on { background: #ece5d6; color: var(--brown); font-weight: 700; }

  /* 分组入口：与首页入口同一份数据，按业务分类排列；区域内部滚动 */
  #tabbar .side-groups {
    display: block; flex: 1; min-height: 0; overflow-y: auto;
    margin-top: 6px; padding-top: 10px; padding-bottom: 6px;
    border-top: 1px solid var(--line);
  }
  #tabbar .side-group-title {
    padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
    color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #tabbar .side-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 12px; border-radius: 8px;
    font-size: 13px; color: #5b5344; text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #tabbar .side-item .ico { display: inline-flex; width: 16px; justify-content: center; font-size: 14px; color: var(--brown); }
  #tabbar .side-item .ico svg { width: 15px; height: 15px; }
  #tabbar .side-item:hover { background: #f1eadb; }
  #tabbar .side-item.on { background: #ece5d6; color: var(--brown); font-weight: 700; }

  /* 顶栏让出左侧导航的宽度，账号与场馆切换仍在右上 */
  #topbar { padding: 12px 20px; }

  /* 内容区：放宽并居中（居中范围是左侧导航以外的区域） */
  main { max-width: 1120px; margin: 0 auto; padding: 24px 32px; }
  h1 { font-size: 24px; }

  /* 入口方块：宽屏自动多列铺满 */
  .tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
  .grid2 { gap: 12px; }

  /* 反馈按钮和提示不再被底部导航挡住 */
  #fb-btn { right: 24px; bottom: 24px; }
  #toast { left: calc(50% + 108px); bottom: 32px; }

  /* 登录卡片：宽屏下限宽居中，避免一整条大白卡 */
  .login-card { max-width: 480px; margin-left: auto !important; margin-right: auto !important; }

  /* 长表格在宽屏下横向滚动，不挤压布局 */
  table.rich { display: block; overflow-x: auto; }
}
