/* 比赛网 stylesheet. Tokens and rules: docs/SPEC-ALI.md (§2 colors, §6 tags, §7 fees, §8 covers, §9 frame).
   v0.0.2: tokens (V002-PLAN §3.22), shared base, the site frame (sf-) and the small pages (pg-); each big page has its own file
   (home.css detail.css org.css biz.css list.css me.css), loaded by layouts/site.php's $css. Conventions: docs/CODE-CONVENTIONS.md. */
:root {
  --brand: #FF6A00; --btn: #D43D0A; --btn-press: #B3330A; --brand-text: #B3330A; --deep: #8F2B08; --tint: #FFF0E8; --tint2: #FFF7F2; --line-brand: #F5C4AC;
  --ok: #146C43; --ok-bg: #E8F5EE; --info: #1D4FA3; --info-bg: #EEF4FF; --notice: #6B4E00; --notice-bg: #FFF6D6; --err: #B42318;
  --t1: #1A1A1A; --t2: #3D3D3D; --t3: #555555; --bd-input: #8C8C8C; --bd: #D9D9D9; --div: #EBEBEB; --fill: #F0F0F0; --ground: #F2F2F2; --card: #FFFFFF; --bar: #FAFAFA;
  --font: -apple-system, 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --num: 'DIN Alternate', Roboto, -apple-system, 'PingFang SC', sans-serif;
  /* v0.0.2 (V002-PLAN §3.22): the colors the inline styles used, the mono stack, radii. Spacing stays literal. */
  --t4: #4D4D4D; --t5: #5F5F5F; --bg-soft: #F7F7F7; --line-soft: #E0E0E0; --ok-line: #A9D8BC; --ok-soft: #F3FAF5; --notice-line: #E8CF7A; --gold: #F5B400;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r4: 4px; --r6: 6px; --r8: 8px; --r12: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--t1); font: 15px/1.6 var(--font); display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
a { color: inherit; text-decoration: none; } a:hover { color: var(--brand-text); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.lnk { color: var(--info); text-decoration: underline; text-underline-offset: 2px; }
.muted { color: var(--t3); font-size: 14px; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }

/* frame */
.trust { background: var(--bar); color: var(--t3); font-size: 13px; text-align: center; padding: 4px 12px; border-bottom: 1px solid var(--div); }
.head { background: #fff; }
.headrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding-top: 16px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brand .word, .footbrand .word { font-size: 26px; font-weight: 900; letter-spacing: 1px; color: var(--brand-text); }
.brand .tag { font-size: 13px; color: var(--t3); flex-basis: 100%; margin-top: -6px; }
.search { flex: 1 1 420px; max-width: 720px; display: flex; border: 2px solid var(--brand); border-radius: 8px; background: #fff; padding: 3px; }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 10px; min-height: 40px; outline: none; font-size: 15px; }
.search button { border: 0; border-radius: 6px; background: var(--btn); color: #fff; font-weight: 700; padding: 0 22px; min-height: 40px; cursor: pointer; }
.chan { display: flex; gap: 0 26px; overflow-x: auto; font-size: 16px; scrollbar-width: none; }
.chan a { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; color: var(--t2); border-bottom: 3px solid transparent; }
.chan a[aria-current] { color: var(--t1); font-weight: 700; border-bottom-color: var(--brand); }
.main { padding-top: 16px; padding-bottom: 32px; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.finish { height: 8px; background: repeating-conic-gradient(#1A1A1A 0 25%, #FFFFFF 0 50%) 0 0 / 8px 8px; margin-top: auto; }
.foot { background: #fff; color: var(--t3); font-size: 14px; padding: 18px 0 24px; }
.foot p { margin: 4px 0; } .footbrand { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.footbrand .word { font-size: 18px; }
.foot .links a { display: inline-flex; min-height: 32px; align-items: center; }

/* blocks */
.box { background: #fff; border-radius: 8px; padding: 16px; }
.boxhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
h1 { font-size: 26px; line-height: 1.35; margin: 0; }
h2 { font-size: 18px; line-height: 1.4; margin: 0; }
.sub { color: var(--t3); font-size: 14px; margin: 4px 0 0; }
.crumb { font-size: 14px; color: var(--t3); display: flex; flex-wrap: wrap; gap: 4px; }
.crumb a { color: var(--t3); } .crumb a:hover { color: var(--brand-text); }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols > .main-col { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cols > .side-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.empty { background: #fff; border-radius: 8px; padding: 32px 16px; text-align: center; color: var(--t3); }

/* chips (SPEC-ALI §6) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 4px; font-size: 13px; font-weight: 600; line-height: 20px; }
.chip.open { background: var(--ok-bg); color: var(--ok); } .chip.soon { background: var(--tint); color: var(--deep); }
.chip.early { background: var(--info-bg); color: var(--info); } .chip.moved { background: var(--notice-bg); color: var(--notice); }
.chip.done { background: var(--fill); color: var(--t3); } .chip.off { background: var(--t2); color: #fff; }
.chip.org { border: 1px solid var(--bd-input); color: var(--t2); font-weight: 400; line-height: 18px; }
.chip.perk { border: 1px solid var(--line-brand); color: var(--brand-text); font-weight: 400; line-height: 18px; }
.chip.note { border: 1px dashed var(--bd-input); background: var(--bar); color: var(--t2); font-weight: 400; line-height: 18px; }
.chip.soon::before { content: ''; width: 12px; height: 12px; background: repeating-conic-gradient(currentColor 0 25%, transparent 0 50%) 0 0 / 6px 6px; border-left: 2px solid currentColor; }
.chip.note::before { content: 'i'; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 10px; line-height: 11px; text-align: center; font-weight: 700; }

/* covers: ticket with right notch + 6 white squares + glyph (SPEC-ALI §8); size via font-size = width */
.cv { flex: none; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.tk { position: relative; width: 1em; height: .64em; border-radius: .12em; display: inline-block;
  -webkit-mask: radial-gradient(circle at 100% 50%, transparent .1em, #000 .102em); mask: radial-gradient(circle at 100% 50%, transparent .1em, #000 .102em); }
.tk::before { content: attr(data-g); position: absolute; left: .44em; top: .38em; color: #fff; font-size: .36em; font-weight: 900; line-height: 1; }
.tk::after { content: ''; position: absolute; left: .58em; top: .08em; width: .08em; height: .08em; background: #fff;
  box-shadow: .08em .08em 0 #fff, 0 .16em 0 #fff, .08em .24em 0 #fff, 0 .32em 0 #fff, .08em .40em 0 #fff; }
.S1 .tk { background: #9A3412; } .S1.cv { background: #FFF1EA; } .S2 .tk { background: #1F6FB2; } .S2.cv { background: #EAF2FB; }
.S3 .tk { background: #2F7D32; } .S3.cv { background: #EDF6EC; } .S4 .tk { background: #0B7A6F; } .S4.cv { background: #E6F4F2; }
.S5 .tk { background: #8A5A00; } .S5.cv { background: #FBF3E2; } .S6 .tk { background: #B0306A; } .S6.cv { background: #FBEAF1; }
.S7 .tk { background: #2E4A9E; } .S7.cv { background: #ECEFF8; } .S8 .tk { background: #6B3FA0; } .S8.cv { background: #F2ECF8; }
.S9 .tk { background: #8C4A2F; } .S9.cv { background: #F6EEEA; } .S10 .tk { background: #4D4D4D; } .S10.cv { background: #F2F2F2; }

/* cards */
.list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; gap: 14px; background: #fff; border-radius: 8px; padding: 14px; }
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.card .cv { width: 120px; height: 90px; font-size: 64px; }
.card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.card .t { font-size: 17px; font-weight: 700; line-height: 1.4; }
.card .d { font-size: 14px; color: var(--t2); }
.card .d strong { color: var(--deep); font-weight: 600; }
.card .price { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; min-width: 120px; text-align: right; }
.fee { display: inline-flex; align-items: baseline; gap: 2px; color: var(--t3); font-size: 14px; }
.fee b { font: 700 20px/1.1 var(--num); color: var(--brand-text); } .fee b.free { font: 700 17px var(--font); color: var(--ok); }
.extra { font-size: 14px; color: var(--t2); } .extra b { color: var(--t1); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gcard { background: #fff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.gcard .cv { height: 120px; border-radius: 0; font-size: 84px; }
.gcard .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.gcard .t { font-weight: 700; line-height: 1.4; }

/* home */
.hero { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 8px; font-size: 14px; text-align: center; }
.cat:hover { background: var(--tint2); } .cat .cv { width: 64px; height: 64px; font-size: 44px; }
.topic { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--tint2); border-radius: 8px; padding: 22px; }
.topic h2 { font-size: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 0 20px; border-radius: 6px; background: var(--btn); color: #fff; font-weight: 700; border: 0; cursor: pointer; }
.btn:hover { background: var(--btn-press); color: #fff; }
.btn2 { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1.5px solid var(--btn); color: var(--brand-text); background: #fff; font-weight: 700; cursor: pointer; }
.btn3 { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--bd-input); color: var(--t2); background: #fff; cursor: pointer; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a, .pills span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--bd-input); border-radius: 999px; background: #fff; font-size: 14px; color: var(--t2); }
.pills a[aria-current] { border-color: var(--btn); background: var(--tint2); color: var(--deep); font-weight: 700; }
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.promise div { background: #fff; border-radius: 8px; padding: 12px 14px; }
.promise b { display: block; } .promise span { font-size: 14px; color: var(--t3); }

/* detail */
.facts { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 10px 14px; margin: 0; }
.facts dt { color: var(--t3); } .facts dd { margin: 0; }
.facts .big { font-size: 18px; font-weight: 600; } .facts .hot { color: var(--deep); }
.items { width: 100%; border-collapse: collapse; font-size: 15px; }
.items th, .items td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--div); vertical-align: top; }
.items th { color: var(--t3); font-weight: 400; font-size: 14px; background: var(--bar); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; position: relative; }
.timeline li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bd-input); background: #fff; margin-top: 5px; }
.timeline li.past::before { background: var(--btn); border-color: var(--btn); }
.timeline li.next::before { border-color: var(--btn); box-shadow: 0 0 0 4px var(--tint); }
.timeline li::after { content: ''; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--div); }
.timeline li:last-child::after { display: none; }
.timeline .w { font-size: 16px; } .timeline li.next .w { font-size: 18px; font-weight: 600; color: var(--deep); }
.notebox { background: var(--bar); border: 1px solid #E0E0E0; border-radius: 8px; padding: 14px 16px; }
.notebox h2 { font-size: 16px; display: flex; align-items: center; gap: 6px; }
.notebox ul { margin: 8px 0 6px; padding-left: 20px; color: var(--t2); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share { white-space: pre-line; background: var(--bar); border: 1px dashed var(--bd); border-radius: 6px; padding: 10px 12px; font-size: 14px; color: var(--t2); }
.req { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.req li { display: flex; gap: 8px; } .req .k { flex: none; width: 4.5em; color: var(--t3); }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.form input, .form select, .form textarea { border: 1px solid var(--bd-input); border-radius: 6px; padding: 10px 12px; min-height: 44px; font-weight: 400; background: #fff; }
.form textarea { min-height: 120px; }
.form .err { color: var(--err); font-size: 14px; font-weight: 400; } .form .bad { border-color: var(--err); border-width: 1.5px; }
.flash { background: var(--ok-bg); color: var(--ok); border-radius: 8px; padding: 12px 16px; }
.pager { display: flex; gap: 8px; justify-content: center; }
table.admin { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.admin th, table.admin td { padding: 8px 10px; border-bottom: 1px solid var(--div); text-align: left; }

/* phone */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .headrow { gap: 10px; padding-top: 10px; }
  .brand .word { font-size: 20px; } .brand .tag { display: none; }
  .search { flex-basis: 100%; }
  .chan { gap: 0 18px; }
  h1 { font-size: 22px; }
  .card { padding: 12px; gap: 10px; flex-wrap: wrap; }
  .card .cv { width: 76px; height: 76px; font-size: 52px; }
  .card .body { flex-basis: calc(100% - 90px); }
  .card .price { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; min-width: 0; }
  .facts { grid-template-columns: 5.5em minmax(0, 1fr); }
}
.lift:hover{box-shadow:0 4px 14px rgba(0,0,0,0.10)}
[hidden]{display:none !important}
.bz-cat[aria-expanded="true"]{background:#FFF0E8;color:#8F2B08;font-weight:700;box-shadow:inset 0 -3px 0 #FF6A00}

/* ==== 共用组件（多页共用的规则只写这里一次；docs/CODE-CONVENTIONS.md「复用规则」） ====
   写成 :root .ui-x（0,2,0），和页面类 .bz-d .hm-x 一样压过 a:hover（0,1,1）和 content-box 区（0,1,3）；
   页面 CSS 在后加载，同权重时页面规则胜出。 */
/* 弹层（sheet / dialog） */
:root .ui-sheet-x { flex: none; width: 44px; height: 44px; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; color: var(--t3); cursor: pointer; }
:root .ui-sheet-cancel { min-height: 44px; border: 0; background: none; color: var(--t2); font-size: 16px; cursor: pointer; }
:root .ui-sheet-title { margin: 0; font-size: 18px; font-weight: 700; }
:root .ui-sheet-sec { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--div); }
:root .ui-dialog { position: fixed; z-index: 51; top: 50%; left: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); max-width: 520px; max-height: calc(100vh - 48px); overflow: auto; box-sizing: border-box; background: #FFFFFF; border-radius: var(--r12); padding: 20px 24px 24px; flex-direction: column; gap: 12px; box-shadow: 0 6px 16px rgba(0,0,0,0.08), 0 3px 6px -4px rgba(0,0,0,0.12), 0 9px 28px 8px rgba(0,0,0,0.05); }
:root .ui-menu-li { min-height: 48px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--div); font-size: 16px; }
/* 标题 */
:root .ui-h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; }
:root .ui-h1-m { margin: 0; font-size: 21px; line-height: 29px; font-weight: 700; }
:root .ui-h2 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 700; }
:root .ui-h2-lg { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
:root .ui-h2-mb { margin: 0 0 4px; font-size: 18px; line-height: 26px; font-weight: 700; }
:root .ui-h3 { margin: 0; font-size: 16px; font-weight: 700; }
:root .ui-h3-lh { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; }
:root .ui-h3-m { margin: 4px 0 0; font-size: 16px; font-weight: 700; }
:root .ui-card-h { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; }
:root .ui-h-aside { font-size: 14px; font-weight: 400; color: var(--t3); }
/* 段落和文字 */
:root .ui-p { margin: 0; font-size: 15px; color: var(--t2); }
:root .ui-p-loose { margin: 0; font-size: 15px; line-height: 1.6; color: var(--t2); }
:root .ui-p-sub { margin: 0; font-size: 14px; color: var(--t2); }
:root .ui-p-small { margin: 0; font-size: 14px; line-height: 1.55; color: var(--t2); }
:root .ui-p-note { margin: 0; font-size: 14px; color: var(--t3); }
:root .ui-p-tip { margin: 0; font-size: 14px; line-height: 1.5; color: var(--t3); }
:root .ui-p-faint { margin: 0; font-size: 14px; line-height: 1.6; color: var(--t3); }
:root .ui-p16 { margin: 0; font-size: 16px; line-height: 1.6; color: var(--t1); }
:root .ui-empty-text { margin: 0; font-size: 16px; color: var(--t1); }
:root .ui-sub { font-size: 14px; color: var(--t2); }
:root .ui-muted { font-size: 14px; color: var(--t3); }
:root .ui-text14 { font-size: 14px; line-height: 1.5; color: var(--t2); }
:root .ui-text155 { font-size: 14px; line-height: 1.55; color: var(--t2); }
:root .ui-body15 { font-size: 15px; color: var(--t1); }
:root .ui-sub15 { font-size: 15px; color: var(--t2); }
:root .ui-body16 { font-size: 16px; color: var(--t1); }
:root .ui-small { font-size: 13px; color: var(--t3); }
:root .ui-count { flex: none; font-size: 14px; color: var(--t3); }
:root .ui-card-title { font-size: 16px; font-weight: 600; line-height: 1.4; }
:root .ui-card-title-b { font-size: 16px; font-weight: 700; line-height: 1.4; }
:root .ui-title15 { font-size: 15px; font-weight: 600; line-height: 1.4; }
:root .ui-bold16 { font-size: 16px; font-weight: 700; }
:root .ui-semi16 { font-size: 16px; font-weight: 600; }
:root .ui-semi18 { font-size: 18px; font-weight: 600; }
:root .ui-em { color: var(--t1); font-weight: 600; }
:root .ui-brand-word { font-size: 18px; font-weight: 900; color: var(--brand-text); }
:root .ui-logo-word { font-size: 19px; font-weight: 900; letter-spacing: 1px; }
:root .ui-follow-title { margin: 0; font-size: 18px; font-weight: 900; color: var(--brand-text); }
:root .ui-when-next { font-size: 18px; font-weight: 600; color: var(--deep); }
/* 状态标签（chip）和圆点 */
:root .ui-chip-open { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: var(--r4); background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 600; line-height: 20px; }
:root .ui-chip-hot { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: var(--r4); background: #FFF0E8; color: var(--deep); font-size: 13px; font-weight: 600; line-height: 20px; }
:root .ui-chip-early { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: var(--r4); background: var(--info-bg); color: var(--info); font-size: 13px; font-weight: 600; line-height: 20px; }
:root .ui-chip-gray { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: var(--r4); background: var(--fill); color: var(--t3); font-size: 13px; font-weight: 600; line-height: 20px; }
:root .ui-chip-perk { display: inline-flex; align-items: center; padding: 0 6px; border: 1px solid var(--line-brand); border-radius: var(--r4); background: #FFFFFF; color: var(--brand-text); font-size: 13px; line-height: 18px; }
:root .ui-chip-org { display: inline-flex; align-items: center; padding: 0 6px; border: 1px solid var(--bd-input); border-radius: var(--r4); background: #FFFFFF; color: var(--t2); font-size: 13px; line-height: 18px; }
:root .ui-chip-cert { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border: 1px solid var(--ok-line); border-radius: var(--r4); background: #FFFFFF; color: var(--ok); font-size: 13px; line-height: 18px; }
:root .ui-chip-note { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border: 1px dashed var(--bd-input); border-radius: var(--r4); background: var(--bar); color: var(--t2); font-size: 13px; line-height: 20px; }
:root .ui-ad-tag { display: inline-flex; padding: 0 6px; border-radius: var(--r4); background: var(--t5); color: #FFFFFF; font-size: 13px; font-weight: 700; line-height: 20px; }
:root .ui-chip-days { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 700; }
:root .ui-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
:root .ui-chiprow { display: flex; flex-wrap: wrap; gap: 4px 6px; }
:root .ui-dot-ok { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
:root .ui-dot-gray { width: 6px; height: 6px; border-radius: 50%; background: var(--bd-input); }
:root .ui-dot-early { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--info); box-sizing: border-box; }
/* 费用和数字 */
:root .ui-fee { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
:root .ui-feebox { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
:root .ui-feebox-m { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
:root .ui-fee-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
:root .ui-fee-amt { color: var(--brand-text); font-weight: 700; font-family: var(--num); font-variant-numeric: tabular-nums; }
:root .ui-amt { color: var(--t1); font-weight: 700; font-family: var(--num); font-variant-numeric: tabular-nums; }
:root .ui-fee-free { color: var(--ok); font-size: 16px; font-weight: 700; }
:root .ui-fee-zero { color: var(--t1); font-size: 16px; font-weight: 700; }
:root .ui-fee-unknown { color: var(--t2); font-size: 15px; font-weight: 600; }
:root .ui-stat-hot { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 700; color: var(--deep); }
:root .ui-stat { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 700; color: var(--t1); }
:root .ui-num-t3 { font-family: var(--num); font-variant-numeric: tabular-nums; color: var(--t3); }
/* 按钮和链接 */
:root .ui-tap { min-height: 44px; display: inline-flex; align-items: center; }
:root .ui-tap14 { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
:root .ui-tap6 { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
:root .ui-more { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
:root .ui-card-btn { min-height: 36px; padding: 0 14px; border: 1px solid var(--btn); border-radius: var(--r6); color: var(--brand-text); font-size: 14px; display: inline-flex; align-items: center; }
:root .ui-copy-btn { align-self: flex-start; min-height: 44px; padding: 0 16px; border: 1px solid var(--bd-input); border-radius: 999px; background: #fff; color: var(--t1); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
:root .ui-btn-line { width: 100%; min-height: 48px; border: 1px solid var(--btn); border-radius: 999px; background: #FFFFFF; color: var(--brand-text); font-size: 17px; font-weight: 600; cursor: pointer; }
:root .ui-mbtn { flex: none; width: 44px; height: 48px; display: inline-flex; align-items: center; justify-content: center; color: var(--t1); }
:root .ui-mlogo { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--brand-text); }
:root .ui-btn-go { min-height: 48px; border-radius: 999px; background: var(--btn); color: #FFFFFF; font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
:root .ui-btn-call { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--btn); border-radius: 999px; color: var(--brand-text); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
:root .ui-pill { min-height: 44px; padding: 0 16px; border: 1px solid var(--bd-input); border-radius: 999px; display: inline-flex; align-items: center; color: var(--t1); font-size: 15px; }
:root .ui-pill-sm { min-height: 44px; padding: 0 14px; border: 1px solid var(--bd-input); border-radius: 999px; display: inline-flex; align-items: center; color: var(--t1); }
:root .ui-all { flex: none; min-height: 44px; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--t3); }
:root .ui-more-link { min-height: 44px; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--t3); }
:root .ui-checkbox { width: 18px; height: 18px; margin: 0; accent-color: var(--btn); }
/* 卡片、面板、封面 */
:root .ui-hcard { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px; background: #fff; border-radius: var(--r8); color: var(--t1); }
:root .ui-gcard { display: flex; flex-direction: column; background: #FFFFFF; border-radius: var(--r8); overflow: hidden; color: var(--t1); }
:root .ui-mcard-row { display: flex; gap: 12px; padding: 12px; background: #FFFFFF; border-radius: var(--r12); color: var(--t1); }
:root .ui-past-row { min-height: 52px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--div); color: var(--t1); }
:root .ui-ad { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--r12); color: var(--t1); }
:root .ui-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
:root .ui-card-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; min-width: 150px; }
:root .ui-card-body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
:root .ui-card-cv { flex: none; width: 120px; height: 90px; border-radius: var(--r6); background: var(--tint); display: flex; align-items: center; justify-content: center; }
:root .ui-mcard-cv { flex: none; width: 76px; height: 76px; border-radius: var(--r8); background: var(--tint); display: flex; align-items: center; justify-content: center; }
:root .ui-cover150 { height: 150px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
:root .ui-cover-rel { position: relative; height: 150px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
:root .ui-gbody { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
:root .ui-cbody { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
:root .ui-mcard { background: #FFFFFF; border-radius: var(--r12); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
:root .ui-mcard8 { background: #FFFFFF; border-radius: var(--r12); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
:root .ui-panel12 { background: #FFFFFF; border-radius: var(--r8); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
:root .ui-panel10 { background: #FFFFFF; border-radius: var(--r8); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
:root .ui-panel8 { background: #FFFFFF; border-radius: var(--r8); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
:root .ui-mbody { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 16px; }
:root .ui-strip { background: #FFFFFF; border-bottom: 1px solid var(--div); }
:root .ui-mhead { position: sticky; top: 0; z-index: 30; background: #FFFFFF; display: flex; align-items: center; padding: 0 4px; min-height: 48px; box-shadow: 0 1px 0 var(--div); }
:root .ui-tablewrap { overflow-x: auto; border: 1px solid var(--div); border-radius: var(--r8); }
/* 空状态 */
:root .ui-empty { background: #fff; border-radius: var(--r8); padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
:root .ui-mempty { background: #fff; border-radius: var(--r12); padding: 32px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
:root .ui-empty-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--ground); color: var(--t3); display: flex; align-items: center; justify-content: center; }
/* 二维码、关注、分享、提醒 */
:root .ui-qr96w { flex: none; width: 96px; height: 96px; border: 1px dashed var(--bd-input); border-radius: var(--r8); background: #FFFFFF; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; line-height: 1.4; color: var(--t3); }
:root .ui-qr96 { flex: none; width: 96px; height: 96px; border: 1px dashed var(--bd-input); border-radius: var(--r8); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; line-height: 1.4; color: var(--t3); }
:root .ui-qr88 { flex: none; width: 88px; height: 88px; border: 1px dashed var(--bd-input); border-radius: var(--r8); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; line-height: 1.4; color: var(--t3); }
:root .ui-qr-bar { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: var(--r8); background: var(--bar); }
:root .ui-brand-row { display: inline-flex; align-items: center; gap: 8px; }
:root .ui-col-tight { display: flex; flex-direction: column; line-height: 1.2; }
:root .ui-ad-img { flex: none; width: 76px; height: 76px; border: 1px dashed var(--bd-input); border-radius: var(--r8); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--t3); }
:root .ui-ad-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
:root .ui-url { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r8); background: var(--ground); font-size: 15px; color: var(--t1); word-break: break-all; }
:root .ui-sharetext { padding: 12px; border-radius: var(--r8); background: var(--ground); font-size: 15px; line-height: 1.6; color: var(--t1); white-space: pre-line; }
:root .ui-sharecard { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--div); border-radius: var(--r8); }
:root .ui-promise-ico { flex: none; width: 32px; height: 32px; border-radius: var(--r8); background: #FFF0E8; color: var(--brand-text); display: flex; align-items: center; justify-content: center; }
:root .ui-ico40 { flex: none; width: 40px; height: 40px; border-radius: var(--r8); background: var(--ground); color: var(--t2); display: flex; align-items: center; justify-content: center; }
:root .ui-ico56 { flex: none; width: 56px; height: 56px; border-radius: var(--r8); background: var(--ground); display: flex; align-items: center; justify-content: center; }
:root .ui-notebox { background: var(--bar); border: 1px solid var(--line-soft); border-radius: var(--r8); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
:root .ui-notebox-h { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--t1); }
:root .ui-notebox-ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.6; color: var(--t2); }
/* 时间线 */
:root .ui-tl-item { display: flex; gap: 10px; align-items: stretch; }
:root .ui-tl-rail { flex: none; width: 16px; display: flex; flex-direction: column; align-items: center; }
:root .ui-tl-line { flex: 1; width: 2px; background: var(--div); }
:root .ui-tl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; }
/* 面包屑和表单 */
:root .ui-crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--t3); }
:root .ui-crumb-cur { color: var(--t1); min-height: 44px; display: inline-flex; align-items: center; }
:root .ui-fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
/* 排版：行 */
:root .ui-row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
:root .ui-row-between12 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
:root .ui-row-between-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
:root .ui-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
:root .ui-row12 { display: flex; align-items: center; gap: 12px; }
:root .ui-row8 { display: flex; align-items: center; gap: 8px; }
:root .ui-media { display: flex; gap: 12px; align-items: flex-start; }
:root .ui-media10 { display: flex; gap: 10px; align-items: flex-start; }
:root .ui-media8 { display: flex; gap: 8px; align-items: flex-start; }
:root .ui-media6 { display: flex; gap: 6px; align-items: flex-start; }
:root .ui-inline6 { display: inline-flex; align-items: center; gap: 6px; }
:root .ui-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--t3); }
:root .ui-entry { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--t3); }
:root .ui-cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
:root .ui-pair { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
:root .ui-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
:root .ui-wrap8 { display: flex; flex-wrap: wrap; gap: 8px; }
:root .ui-wrap8-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
:root .ui-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
:root .ui-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
:root .ui-flex8 { display: flex; gap: 8px; }
:root .ui-flex10 { display: flex; gap: 10px; }
:root .ui-flex12 { display: flex; gap: 12px; }
:root .ui-flex6 { display: flex; gap: 6px; }
:root .ui-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
:root .ui-grid220 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
/* 排版：列 */
:root .ui-col { display: flex; flex-direction: column; }
:root .ui-stack2 { display: flex; flex-direction: column; gap: 2px; }
:root .ui-stack2m { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
:root .ui-stack4 { display: flex; flex-direction: column; gap: 4px; }
:root .ui-stack6 { display: flex; flex-direction: column; gap: 6px; }
:root .ui-stack8 { display: flex; flex-direction: column; gap: 8px; }
:root .ui-stack10 { display: flex; flex-direction: column; gap: 10px; }
:root .ui-stack12 { display: flex; flex-direction: column; gap: 12px; }
:root .ui-col-snug { display: flex; flex-direction: column; line-height: 1.3; }
:root .ui-col-loose { display: flex; flex-direction: column; line-height: 1.45; }
:root .ui-grow-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
:root .ui-grow-col2 { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
:root .ui-grow-col4 { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
:root .ui-grow-col6 { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
:root .ui-grow-col8 { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
:root .ui-text-col { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
:root .ui-text-col14 { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
:root .ui-grow300 { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
:root .ui-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
:root .ui-main16 { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
:root .ui-side { flex: 1 1 272px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
:root .ui-side-wide { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
:root .ui-hero-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
:root .ui-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
/* 小工具 */
:root .ui-fixed { flex: none; }
:root .ui-grow { flex: 1; }
:root .ui-tick3 { flex: none; margin-top: 3px; }
:root .ui-tick2 { flex: none; margin-top: 2px; }
:root .ui-nowrap { white-space: nowrap; }
:root .ui-contents { display: contents; }
:root .ui-m0 { margin: 0; }
:root .ui-bb { border-bottom: 1px solid var(--div); }
:root .ui-deep { color: var(--deep); }
:root .ui-deep.is-muted { color: var(--t2); }
:root .ui-brand { color: var(--brand-text); }
:root .ui-t1 { color: var(--t1); }
:root .ui-t2 { color: var(--t2); }
:root .ui-t3 { color: var(--t3); }
:root .ui-fs14 { font-size: 14px; }
:root .ui-fs15 { font-size: 15px; }
:root .ui-fs16 { font-size: 16px; }
:root .ui-fs20 { font-size: 20px; }
:root .ui-fs12 { font-size: 12px; }

/* 详情页：项目切换和目录高亮（画板 AWebDetail 的选中态；未选中态在 detail.css） */
.bz-sku[aria-pressed="true"]{border:1.5px solid #D43D0A;background:#FFF7F2;color:#8F2B08;font-weight:700}
.bz-sku .bz-sku-ck,.bz-colbtn .bz-sku-ck{display:none}
.bz-sku[aria-pressed="true"] .bz-sku-ck,.bz-colbtn[aria-pressed="true"] .bz-sku-ck{display:inline-flex}
.bz-colbtn{color:#1A1A1A;font-weight:600;text-decoration:underline;text-underline-offset:4px}
.bz-colbtn[aria-pressed="true"]{color:#8F2B08;font-weight:700;text-decoration:none}
th.bz-col{background:#FAFAFA}th.bz-col.on{background:#FFF0E8}td.bz-col.on{background:#FFF7F2}
/* 目录链接：detail.css 的 .ev-toc-a:hover 是 0,2,0，所以当前项连 :hover 一起写（0,3,0），悬停时仍是选中样子 */
.bz-toc[aria-current="true"],.bz-toc[aria-current="true"]:hover{font-weight:700;color:#1A1A1A;border-bottom-color:#FF6A00}
/* 合作中心 pages/biz.php（画板 AWebBiz 的选中态；未选中态在 biz.css 的 .bz-biz .cb-x（0,2,0），这里的 :has(input:checked) 是 0,2,1） */
.bz-slot[aria-pressed="true"]{border-color:#F5C4AC;background:#FFF7F2;box-shadow:inset 3px 0 0 0 #FF6A00}
.bz-slot[aria-pressed="true"] .bz-slot-no{background:#D43D0A;color:#FFFFFF}
.bz-slot[aria-pressed="true"] .bz-slot-name{font-weight:700;color:#B3330A}
.bz-slot .bz-ck,.bz-chip .bz-ck{display:none}
.bz-slot[aria-pressed="true"] .bz-ck,.bz-chip[aria-pressed="true"] .bz-ck{display:inline}
.bz-chip[aria-pressed="true"],.bz-pick:has(input:checked){border-color:#D43D0A;background:#FFF7F2;color:#B3330A;font-weight:700}
.bz-method:has(input:checked){border-color:#D43D0A;background:#FFF7F2}
.bz-method:has(input:checked) strong{color:#B3330A}
.bz-biz details>summary::-webkit-details-marker{display:none}
/* 画板按浏览器默认 content-box 画（按钮和下拉框浏览器默认 border-box），页面类里没写 box-sizing 的照画板算 */
.bz-biz,.bz-biz *:not(input):not(select):not(button){box-sizing:content-box}
/* 列表页 layouts/list.php（画板 AWebSearch）：画板按浏览器默认 content-box 画，页面类里没写 box-sizing 的照画板算 */
.bz-list,.bz-list *:not(input):not(select):not(button){box-sizing:content-box}

/* 主办方页 pages/o.php（画板 AWebOrg）：窄屏隐藏头图条右侧的装饰方格，给“主办方主页”和网址让位 */
@media (max-width: 640px) { .o-banner-art { display: none; } }
/* 手机版切换（v4 手机画板，720px）：桌面外框和页面是 .bz-d，手机外框和页面是 .bz-m。和 [hidden] 一样是开关，必须压过页面 CSS 里
   写了 display 的类，所以这三条保留 !important（docs/CODE-CONVENTIONS.md）。#citySheet 是 id 选择器，压过 .sf-sheet 不需要它。 */
@media (min-width: 721px) { .bz-m { display: none !important; } }
@media (max-width: 720px) {
  .bz-d { display: none !important; }
  #citySheet { position: fixed; top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; padding: 16px 16px max(24px, env(safe-area-inset-bottom)); }
}
/* 长辈版（AMHome 画板的“长辈版”按钮，存在 localStorage bz_elder=1）：手机版整体放大 */
@media (max-width: 720px) { html.bz-elder .bz-m:not(.bz-chrome) { zoom: 1.15; } }
/* 首页手机版 pages/index.php（画板 AMHome）：频道和专题的选中态（home.css 末尾有同值的规则）、长辈版切换、横滑条不显示滚动条 */
.bz-m .m-chan[aria-selected="true"]{color:#1A1A1A;font-size:17px;font-weight:700}
.bz-m .m-chan[aria-selected="false"] .m-chan-bar{display:none}
.bz-m .m-topic[aria-pressed="true"]{border:1.5px solid #D43D0A;color:#8F2B08;font-weight:700}
.bz-m .m-topic[aria-pressed="false"] .m-topic-ck{display:none}
html:not(.bz-elder) .bz-m .m-elder-on,html.bz-elder .bz-m .m-elder-off{display:none}
.bz-m .m-scroll{scrollbar-width:none}.bz-m .m-scroll::-webkit-scrollbar{display:none}
/* 列表页手机版 layouts/list.php（手机画板 AMList）：画板按浏览器默认 content-box 画；门类标签行横向滑动不显示滚动条；常问的 details 不画默认三角 */
.bz-mlist,.bz-mlist *:not(input):not(select):not(button){box-sizing:content-box}
.bz-mlist .bz-mtabs{scrollbar-width:none}
.bz-mlist .bz-mtabs::-webkit-scrollbar{display:none}
.bz-mlist summary::-webkit-details-marker{display:none}
.bz-mlist details[open]>summary>svg{transform:rotate(180deg)}
.bz-mlist details[open]>summary>span:last-child>svg{transform:rotate(180deg)}
.bz-mlist .bz-mbar svg{flex:none}
/* 320–359px：筛选条仍是一行（画板 48px），时间/地区名字过长时省略号截断 */
@media (max-width: 359px) { .bz-mlist .bz-mbar { gap: 4px; } .bz-mlist .bz-mbar > span { display: none; } .bz-mlist .bz-mopen { margin-left: auto; padding: 0 6px; font-size: 14px; } .bz-mlist .bz-mopen svg { display: none; } }

/* 主办方页手机版 pages/o.php（画板 AMOrg）：画板按浏览器默认 content-box 画，页面类里没写 box-sizing 的照画板算 */
.o-m,.o-m *:not(input):not(select):not(button){box-sizing:content-box}
/* 我的比赛 pages/me.php（手机画板 AMMine 的选中态；me.css 末尾有同值、权重更高的规则）。手机版按画板的 content-box 算。 */
.bz-me,.bz-me *:not(input):not(select):not(button){box-sizing:content-box}
.bz-me-tab[aria-selected="true"]{font-weight:700;color:#B3330A}
.bz-me-tab[aria-selected="true"] .bz-me-bar{background:#FF6A00}
.bz-me-dtab[aria-selected="true"]{font-weight:700;color:#1A1A1A;border-bottom-color:#FF6A00}
.bz-me-plan[aria-pressed="true"]{border:1.5px solid #D43D0A;background:#FFF7F2;color:#8F2B08;font-weight:700}
.bz-me-plan .bz-me-ck{display:none}
.bz-me-plan[aria-pressed="true"] .bz-me-ck{display:inline}
/* 详情页手机版 pages/e.php（画板 AMFish、AMDetail）：画板按 content-box 画；项目、分段、锚点的选中态和复制后的状态（未选中态在 detail.css；
   detail.css 的项目按钮是 .bzm-e .ev-m-sku3（0,2,0），所以选中态写成 .bzm-e .bzm-sku[…]（0,3,0）） */
.bzm-e, .bzm-e *:not(input):not(select):not(button) { box-sizing: content-box; }
.bzm-e [id^="m-sec"] { scroll-margin-top: 100px; }
.bzm-e details > summary::-webkit-details-marker { display: none; }
.bzm-e .bzm-sku[aria-pressed="true"] { border: 1.5px solid #D43D0A; background: #FFF7F2; color: #8F2B08; }
.bzm-sku .bzm-ck { display: none; }
.bzm-sku[aria-pressed="true"] .bzm-ck { display: inline-flex; }
.bzm-sku[aria-pressed="true"] .bzm-sku-n { font-weight: 700; }
.bzm-sku[aria-pressed="true"] .bzm-sku-p { color: inherit; }
.bzm-sku[aria-pressed="true"] .bzm-sku-pw { font-weight: 600; }
.bzm-toc[aria-current], .bzm-toc[aria-current]:hover { font-weight: 700; color: #1A1A1A; }
.bzm-toc .bzm-bar { display: none; }
.bzm-toc[aria-current] .bzm-bar { display: block; }
.bzm-st[aria-pressed="true"] { background: #FFFFFF; color: #8F2B08; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.bzm-rt[aria-pressed="true"] { border: 1.5px solid #D43D0A; background: #FFF7F2; color: #8F2B08; font-weight: 700; }
.bzm-copy .bzm-c1 { display: none; }
.bzm-copy.is-done .bzm-c0 { display: none; }
.bzm-copy.is-done .bzm-c1 { display: inline-flex; }
.bzm-copy.is-done { border-color: #A9D8BC; background: #F3FAF5; color: #146C43; font-weight: 700; }
/* 我的比赛 pages/me.php（续）：没存过投稿计划时，“想投”按画板的默认样子画出来，但不报告为已按下。 */
.bz-me-plan[data-def]{border:1.5px solid #D43D0A;background:#FFF7F2;color:#8F2B08;font-weight:700}
.bz-me-plan[data-def] .bz-me-ck{display:inline}
/* 首页手机版 pages/index.php（画板 AMHome）：画板按浏览器默认 content-box 画，页面类里没写 box-sizing 的照画板算；
   长辈版画板本身已放大（18px 四列宫格），首页手机内容不再叠加长辈版整体放大 */
.bz-mhome,.bz-mhome *:not(input):not(select):not(button){box-sizing:content-box}
@media (max-width: 720px) { html.bz-elder .bz-m.bz-mhome { zoom: 1; } }
/* 详情页手机版 pages/e.php（续）：项目之间收费/免费/未写不同时，报名费块按 data-fk 切换（包裹层的类写了 display: contents；上面的 [hidden] 已经压过它，这条留作说明） */
.bz-d [data-fk][hidden],.bzm-e [data-fk][hidden]{display:none}

/* ---- 外框 layouts/site.php（v0.0.2 瘦身，前缀 sf-）：原来的行内样式一字不改搬成类，前后截图逐像素一致（tools/shotdiff.sh）。
   写了 color 的链接同时写 :hover（.sf-x:hover 是 0,2,0），和行内样式一样压过上面的 a:hover（0,1,1）。
   #citySheet 的手机版底部弹层规则是 id 选择器，自然压过 .sf-sheet，不需要。 */
.sf-root { position: relative; width: 100%; overflow-x: clip; min-height: 100vh; background: var(--ground); color: var(--t1); font-family: var(--font); font-size: 15px; line-height: 1.6; display: flex; flex-direction: column; }
.sf-a-on, .sf-a-on:hover { color: var(--t1); font-weight: 700; }
.sf-ul { text-decoration: underline; }
/* 手机：信任条、内页头 */
.sf-mtrust { background: var(--bar); border-bottom: 1px solid var(--div); color: var(--t3); font-size: 14px; line-height: 20px; padding: 6px 12px; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.sf-mtitle { flex: 1; min-width: 0; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; font-weight: 600; text-align: right; }
/* 桌面：工具条 */
.sf-tools { background: var(--ground); border-bottom: 1px solid var(--div); font-size: 14px; color: var(--t3); }
.sf-tools-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }
.sf-toolnav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.sf-citybtn { min-height: 44px; border: 0; background: none; padding: 0; display: inline-flex; align-items: center; gap: 2px; color: var(--t1); cursor: pointer; }
/* 选城市浮层（手机版见文件中部 #citySheet） */
.sf-anchor { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; height: 0; }
.sf-sheet { position: absolute; z-index: 51; top: 8px; left: 50%; transform: translateX(-50%); width: 520px; max-width: calc(100% - 32px); max-height: 720px; overflow: auto; box-sizing: border-box; background: #FFFFFF; border-radius: var(--r12); padding: 20px 24px 24px; flex-direction: column; gap: 12px; box-shadow: 0 6px 16px rgba(0,0,0,0.08), 0 3px 6px -4px rgba(0,0,0,0.12), 0 9px 28px 8px rgba(0,0,0,0.05); }
.sf-sheet-yes { min-height: 44px; border: 0; border-radius: var(--r6); background: var(--btn); color: #FFFFFF; font-size: 16px; font-weight: 700; cursor: pointer; }
.sf-city { min-height: 44px; padding: 0 14px; border: 1px solid var(--bd-input); border-radius: 999px; background: #FFFFFF; display: inline-flex; align-items: center; color: var(--t1); cursor: pointer; }
/* 桌面：页头（logo、合作中心标题、搜索框、服务号卡片） */
.sf-head { background: #FFFFFF; }
.sf-head-in { max-width: 1200px; margin: 0 auto; padding: 20px 16px 14px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.sf-brand, .sf-brand:hover { flex: none; display: inline-flex; align-items: center; gap: 10px; color: var(--t1); }
.sf-brand-col { display: flex; flex-direction: column; line-height: 1.15; }
.sf-word { font-size: 26px; font-weight: 900; color: var(--brand-text); letter-spacing: 1px; }
.sf-sec { flex: none; display: inline-flex; align-items: center; gap: 16px; margin-left: -24px; }
.sf-sec-bar { width: 1px; height: 32px; background: var(--bd); }
.sf-sec-col { display: flex; flex-direction: column; line-height: 1.25; }
.sf-sec-t { font-size: 20px; font-weight: 700; color: var(--t1); }
.sf-find { flex: 1 1 480px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 6px; }
.sf-find.sf-find-sec { flex: 1 1 420px; max-width: 640px; }
.sf-form { position: relative; z-index: 41; margin: 0; }
.sf-box { display: flex; align-items: center; gap: 4px; border: 2px solid var(--brand); border-radius: var(--r8); padding: 4px; background: #FFFFFF; }
.sf-glass { flex: none; width: 36px; display: flex; align-items: center; justify-content: center; color: var(--t3); }
.sf-q { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; font-size: 15px; color: var(--t1); padding: 0 8px 0 0; outline-offset: -2px; }
.sf-go { flex: none; min-height: 44px; padding: 0 24px; border: 0; border-radius: var(--r6); display: inline-flex; align-items: center; justify-content: center; background: var(--btn); color: #FFFFFF; font-size: 16px; font-weight: 700; cursor: pointer; }
.sf-hot { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 14px; color: var(--t3); }
.sf-follow, .sf-follow:hover { flex: none; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--div); border-radius: var(--r8); color: var(--t1); }
.sf-follow-name { color: var(--brand-text); }    /* 和首页“比赛宝”同一个深红（用户 2026-11-03） */
/* 桌面：频道条 */
.sf-chan-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 16px; }
.sf-ch { min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; border-bottom: 3px solid transparent; }
.sf-ch-on, .sf-ch-on:hover { font-weight: 700; color: var(--t1); border-bottom: 3px solid var(--brand); }
/* 收尾条和页脚 */
.sf-finish { flex: none; height: 8px; background: repeating-conic-gradient(#1A1A1A 0 25%, #FFFFFF 0 50%) 0 0 / 8px 8px; margin-top: auto; }
.sf-foot { background: #FFFFFF; font-size: 14px; color: var(--t3); }
.sf-foot-in { max-width: 1200px; margin: 0 auto; padding: 32px 16px 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; }
.sf-foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--div); }
.sf-fbrand, .sf-fbrand:hover { display: inline-flex; align-items: center; gap: 8px; color: var(--t1); }
.sf-fword { font-size: 20px; font-weight: 900; color: var(--brand-text); letter-spacing: 1px; }
.sf-promise { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--t2); }
.sf-fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.sf-fnav { display: flex; flex-direction: column; align-items: flex-start; }
.sf-qr-img { flex: none; width: 80px; height: 80px; border: 1px dashed var(--bd-input); border-radius: var(--r6); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.sf-qr-t { line-height: 1.5; }
.sf-qr-name { font-size: 18px; font-weight: 900; color: var(--brand-text); }
.sf-legal { border-top: 1px solid var(--div); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; line-height: 1.7; }
/* 手机：页脚、底部标签栏、遮罩 */
.sf-mfoot { padding: 16px 12px 20px; font-size: 14px; line-height: 1.7; color: var(--t3); display: flex; flex-direction: column; gap: 6px; background: #FFFFFF; }
.sf-ma { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; }
.sf-ma-mute, .sf-ma-mute:hover { color: var(--t3); font-size: 14px; }
.sf-tabs { position: sticky; bottom: 0; z-index: 20; margin-top: auto; background: #FFFFFF; box-shadow: 0 -1px 0 var(--div), 0 -4px 12px rgba(0,0,0,0.04); padding: 0 0 max(24px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sf-tab, .sf-tab:hover { position: relative; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 14px; color: var(--t2); }
.sf-tab-on, .sf-tab-on:hover { font-weight: 700; color: var(--brand-text); }
.sf-tab-bar { position: absolute; top: 0; left: 50%; width: 24px; height: 3px; margin-left: -12px; border-radius: 0 0 3px 3px; background: var(--brand); }
.sf-mask { position: fixed; inset: 0; z-index: 50; border: 0; padding: 0; background: rgba(0,0,0,0.5); cursor: pointer; }

/* ---- 小页面（v0.0.2 瘦身，前缀 pg-）：about、privacy、rules、remind 的窄栏，remind 的二维码占位 */
.pg-w760 { max-width: 760px; }
.pg-w640 { max-width: 640px; }
.pg-qr { width: 120px; height: 120px; font-size: 13px; color: var(--t3); }
/* 全部门类 pages/t.php（画板 AWebSearch 的页头和卡片）：在 .bz-list 的 content-box 区里，只有 main 自己写 border-box
   （.bz-list.pg-t 是 0,2,0，压过上面的 .bz-list）；写了 color 的链接同时写 :hover */
.bz-list.pg-t { width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px 16px 32px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; }
.pg-t-head { background: #FFFFFF; border-radius: var(--r8); padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.pg-t-hero-cv { flex: none; width: 72px; height: 72px; border-radius: var(--r12); background: var(--ground); display: flex; align-items: center; justify-content: center; }
.pg-t-top, .pg-t-top:hover { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--t1); }
.pg-t-top-cv { flex: none; width: 48px; height: 48px; border-radius: var(--r12); background: var(--tint); display: flex; align-items: center; justify-content: center; }
.pg-t-top-name { font-size: 16px; line-height: 24px; font-weight: 700; }
.pg-t-top-all { font-size: 14px; color: var(--t3); display: inline-flex; align-items: center; gap: 2px; }
/* City picker (bz_city_picker): search box, then the cities that have events, one row per province. */
.bz-city-find { width: 100%; min-height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--bd-input); border-radius: var(--r6); font-size: 16px; }
[data-city-found]:empty { display: none; }
.bz-city-grp { display: flex; gap: 12px; align-items: baseline; }
.bz-city-prov { flex: 0 0 3em; font-size: 14px; color: var(--t3); }
.bz-city-pick { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 520px; text-align: left; }
.bz-city-grp > .ui-wrap8 { flex: 1; }
.bz-city-pick { margin: 0 auto; }

/* 真二维码：去掉占位的虚线框 */
:root img.qr-real { border: 0; padding: 0; display: block; object-fit: contain; background: #fff; }

/* 前台搜索框：输入框本身不画焦点框、不要原生清除叉，焦点只体现在外层胶囊上（光标 + 淡光晕）。 */
.sf-q, .hm-m-q, .ls-msearch-in { -webkit-appearance: none; appearance: none; outline: none; }
.sf-q:focus, .sf-q:focus-visible, .hm-m-q:focus, .hm-m-q:focus-visible, .ls-msearch-in:focus, .ls-msearch-in:focus-visible { outline: none; box-shadow: none; }
.sf-q::-webkit-search-cancel-button, .sf-q::-webkit-search-decoration,
.hm-m-q::-webkit-search-cancel-button, .hm-m-q::-webkit-search-decoration,
.ls-msearch-in::-webkit-search-cancel-button, .ls-msearch-in::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.sf-box:focus-within, .bz-mhome .hm-m-search:focus-within, .bz-mlist .ls-msearch:focus-within { box-shadow: 0 0 0 3px rgba(255, 106, 0, .15); }
