/* ==========================================================
   MT2027 — 子页通用样式
   依赖 style.css（token / topbar / footer / toast）
   包含：页头、数字条、内容区、表格、时间轴、签位表、
        计分与条件计算器、规则卡、奖金、赞助、事项
   ========================================================== */

/* ==========================================================
   MT2027 — 子页通用样式（pages.css 的前半部分）
   ========================================================== */

/* ==========================================================
   PAGE HEAD
   ========================================================== */
.phead {
  position: relative;
  padding: calc(var(--topbar-h) + clamp(34px, 5.6vw, 66px)) 0 0;
  background: linear-gradient(180deg, #fbf9f5 0%, var(--paper) 68%);
  overflow: hidden;
}
.phead .wrap { position: relative; z-index: 1; }

.phead__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(12, 11, 9, 0.04) 1px, transparent 1px);
  background-size: 25% 100%;
  mask-image: radial-gradient(130% 100% at 50% 0%, #000 0%, transparent 82%);
  -webkit-mask-image: radial-gradient(130% 100% at 50% 0%, #000 0%, transparent 82%);
}

.phead__crumb {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 clamp(22px, 3vw, 34px);
  font-size: 11px; letter-spacing: 0.16em; color: var(--muted-2);
}
.phead__crumb a { transition: color 0.2s; }
.phead__crumb a:hover { color: var(--ink); }
.phead__crumb em { font-style: normal; color: var(--ink); }
.phead__crumb-sep { color: var(--line); }

.phead__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(20px, 4vw, 48px);
}
.phead__main { min-width: 0; }

.phead__kicker {
  display: flex; align-items: center; gap: 9px;
  margin: 0;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; color: var(--muted);
}
.phead__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  flex: 0 0 auto;
}

.phead__title {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(44px, 6.6vw, 86px);
  font-weight: 800; line-height: 0.98; letter-spacing: 0.01em;
}
.phead__title span {
  display: block; margin-top: clamp(12px, 1.6vw, 18px);
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.34em;
  color: var(--muted-2);
}

.phead__lead {
  max-width: min(100%, 40em);
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  font-size: clamp(15px, 1.2vw, 16.5px);
  line-height: 2; color: var(--muted);
}
.phead__lead b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.phead__lead b.is-red { color: var(--red); }

.phead__meta {
  margin: 14px 0 0;
  font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.phead__mark {
  flex: 0 0 auto;
  width: clamp(110px, 14vw, 190px);
  align-self: center;
  padding-bottom: 6px;
}
.phead__mark img { width: 100%; height: auto; opacity: 0.07; }

/* spec strip */
.specstrip {
  list-style: none;
  margin: clamp(34px, 4.4vw, 56px) 0 0;
  padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.specstrip li { padding: 18px 0 16px 20px; border-left: 1px solid var(--line); }
.specstrip li:first-child { border-left: 0; padding-left: 0; }
.specstrip span { display: block; font-size: 10px; letter-spacing: 0.2em; color: var(--muted-2); }
.specstrip b {
  display: block; margin-top: 7px;
  font-family: var(--display); font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 800; letter-spacing: 0.02em; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================
   STATS / 数字条（数字滚动）
   ========================================================== */
.stats {
  list-style: none;
  margin: clamp(30px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(20px, 2.6vw, 32px) 0 clamp(18px, 2.2vw, 26px) clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line);
  min-width: 0;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 800; line-height: 0.95; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat b i {
  font-style: normal; font-size: 0.44em; font-weight: 700;
  vertical-align: 0.5em; margin-left: 3px; color: var(--muted);
}
.stat > span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.stat b .n { font: inherit; color: inherit; }
.stat em {
  display: block; margin-top: 3px; font-style: normal;
  font-size: 9.5px; letter-spacing: 0.26em; color: var(--muted-2);
}

/* 奖金数字：放大 + 标红 */
.stat--prize b {
  color: var(--red);
  font-size: clamp(50px, 6.2vw, 84px);
  letter-spacing: -0.02em;
}
.stat--prize b i { color: var(--red); opacity: 0.7; font-size: 0.38em; }
.stat--prize em { color: var(--red-deep); opacity: 0.7; }

/* ==========================================================
   SECTION
   ========================================================== */
.sec { padding: clamp(52px, 7vw, 86px) 0; }
.sec--paper { background: var(--paper-2); border-top: 1px solid var(--line); }
.sec--dark { background: var(--ink); color: #f2efe8; }
.sec--dark .sec-lead { color: rgba(242, 239, 232, 0.72); }
.sec--dark .sec-lead b { color: #fff; }

.sec-head {
  display: flex; align-items: flex-start; gap: 16px;
  padding-bottom: 16px; margin-bottom: clamp(24px, 3.2vw, 38px);
  border-bottom: 1px solid var(--line);
}
.sec--dark .sec-head, .sec-head--light { border-bottom-color: rgba(255, 255, 255, 0.16); }
.sec-num {
  padding-top: 7px;
  font-family: var(--display); font-size: 12px; font-weight: 800;
  letter-spacing: 0.12em; color: var(--red);
}
.sec-titles h2 {
  margin: 0;
  font-family: var(--display); font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800; line-height: 1.05; letter-spacing: 0.02em;
}
.sec-titles p { margin: 8px 0 0; font-size: 10px; letter-spacing: 0.28em; color: var(--muted-2); }
.sec--dark .sec-titles p, .sec-head--light .sec-titles p { color: rgba(255, 255, 255, 0.42); }
.sec--dark .sec-titles h2, .sec-head--light .sec-titles h2 { color: #fff; }

.sec-lead {
  margin: -6px 0 clamp(22px, 2.8vw, 30px);
  font-size: 14.5px; line-height: 1.95; color: var(--muted);
  max-width: 76ch;
}
.sec-lead b { color: var(--ink); font-weight: 700; }

.block { margin-top: clamp(38px, 5vw, 60px); }
.block:first-child { margin-top: 0; }

/* ---------- 01 简介 ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
}
.prose .lead {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.15vw, 16px);
  line-height: 2.05; color: #332f2a;
}

.quote-strip {
  margin-top: clamp(24px, 3vw, 32px);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: 13px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.quote-strip__k {
  margin-right: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em; color: var(--red);
}
.quote-strip .sep { color: var(--line); }

/* 参赛资格 */
.qual { background: #fff; border: 1px solid var(--line); }
.sub-head {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0; padding: 12px 18px;
  background: var(--ink); color: #fff;
}
.sub-head span {
  font-family: var(--display); font-size: 14.5px; font-weight: 800;
  letter-spacing: 0.08em;
}
.sub-head em {
  font-style: normal; font-size: 9px; letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.42);
}
.sub-head--light { background: transparent; padding: 0; margin: 0 0 18px; color: #fff; }
.sub-head--light em { color: rgba(255, 255, 255, 0.42); }

.qual-list { list-style: none; margin: 0; padding: 4px 18px 0; }
.qual-list li {
  display: flex; gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-2);
}
.qual-list li:last-child { border-bottom: 0; }
.qual-num {
  padding-top: 4px;
  font-family: var(--display); font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; color: var(--red);
}
.qual-list p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--muted); }

.tiny { font-size: 11.5px; line-height: 1.75; color: var(--muted-2); margin: 12px 18px 0; }
.qual .tiny { margin: 0; padding: 10px 18px 18px; }

/* ---------- 02 团体与席位 ---------- */
.seats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(20px, 2.6vw, 32px);
  align-items: start;
}

.table-wrap { background: #fff; border: 1px solid var(--line); overflow-x: auto; }
.table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 13.5px; }
.table thead th {
  background: #f6f2ea;
  padding: 10px 14px;
  text-align: left; white-space: nowrap;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted);
}
.table thead th.ta-r { text-align: right; }
.table thead th.ta-c { text-align: center; }
.table tbody td, .table tbody th {
  padding: 12px 14px;
  border-top: 1px solid var(--line-2);
  color: var(--ink-2);
  text-align: left;
}
.table tbody th { font-weight: 600; color: var(--ink); }
.table tbody tr:first-child td, .table tbody tr:first-child th { border-top: 0; }
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover { background: #faf7f1; }
.table .ta-r { text-align: right; }
.table .ta-c { text-align: center; }
.table .num {
  font-family: var(--display); font-size: 15.5px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.table tbody th em {
  display: block; font-style: normal; font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--muted-2); margin-top: 2px;
}
.table tbody th .chip { margin-right: 8px; }
.table .row-total td, .table .row-total th {
  background: #f4f0e7; font-weight: 700;
  border-top: 2px solid var(--ink); color: var(--ink);
}
.table .row-champ td, .table .row-champ th { background: #fdf2f0; }
.table .row-champ th b { color: var(--red); }
.table--hover tbody tr { cursor: pointer; }
.table--hover tbody tr:hover { background: #faf7f1; }

.table-note {
  margin: 0; padding: 11px 14px;
  border-top: 1px solid var(--line-2);
  font-size: 11.5px; line-height: 1.7; color: var(--muted-2);
}

/* 席位分配图 */
.seats-chart { background: #fff; border: 1px solid var(--line); padding-bottom: 16px; }
.bars { list-style: none; margin: 0; padding: 6px 18px 0; }
.bars li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(84px, 1.05fr) 26px;
  align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-2);
}
.bars li:last-child { border-bottom: 0; }
.bars__label {
  font-size: 12.5px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bars__track { display: block; height: 8px; background: #e6dfcd; overflow: hidden; }
.bars__track i {
  display: block; height: 100%; width: 0;
  background: var(--ink);
  transition: width 0.95s var(--ease);
}
.bars li.is-wild .bars__track i { background: var(--red); }
.bars__val {
  text-align: right;
  font-family: var(--display); font-size: 13px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.seats-total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 12px 18px 0; padding-top: 12px;
  border-top: 2px solid var(--ink);
}
.seats-total span { font-size: 11px; letter-spacing: 0.18em; color: var(--muted); }
.seats-total b {
  font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================
   赛程时间轴
   ========================================================== */
.timeline {
  background: #fff; border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px) clamp(16px, 2.2vw, 26px) clamp(20px, 2.6vw, 30px);
}
.tl__axis {
  display: grid;
  grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
  gap: 0 14px;
  margin-bottom: 4px;
}
.tl__monthbar {
  position: relative; height: 18px;
  font-size: 10px; letter-spacing: 0.16em; color: var(--muted);
}
.tl__monthbar span { position: absolute; top: 0; white-space: nowrap; }
.tl__ticks {
  position: relative; height: 22px;
  border-top: 1px solid var(--line);
}
.tl__tick {
  position: absolute; top: 0; translate: -50% 0;
  padding-top: 5px;
  font-size: 9.5px; color: var(--muted-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tl__tick::before {
  content: ""; position: absolute; left: 50%; top: 0;
  width: 1px; height: 4px; background: var(--line); translate: -50% 0;
}
.tl__rows { display: flex; flex-direction: column; }
.tl__row {
  display: grid;
  grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
}
.tl__row:first-child { border-top: 0; }
.tl__label { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.tl__no {
  font-family: var(--display); font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.1em; color: var(--muted-2);
}
.tl__name {
  font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: 0.03em;
  white-space: nowrap;
}
.tl__sub {
  display: block;
  font-size: 10px; letter-spacing: 0.04em; color: var(--muted-2);
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
.tl__track {
  position: relative; height: 26px;
  background: linear-gradient(180deg, transparent 0 50%, var(--line-2) 50% calc(50% + 1px), transparent calc(50% + 1px));
}
.tl__dot {
  position: absolute; top: 50%; translate: -50% -50%;
  width: 9px; height: 9px; border-radius: 1px;
}
.tl__dot--r1 { background: var(--r1); }
.tl__dot--r2 { background: var(--r2); }
.tl__dot--r3 { background: var(--r3); }
.tl__dot--r4 { background: var(--r4); }
.tl__dot--r5 { background: var(--r5); }

/* 赛制要点条 */
.factbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 24px;
  margin-top: clamp(20px, 2.6vw, 28px);
  padding: clamp(16px, 2vw, 22px) clamp(16px, 2.2vw, 24px);
  background: var(--ink); color: rgba(255, 255, 255, 0.72);
}
.factbar__k {
  display: block; font-size: 10px; letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.4); margin-bottom: 6px;
}
.factbar p { margin: 0; font-size: 12.5px; line-height: 1.75; }
.factbar__prize { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.factbar__prize span { font-size: 11px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.45); }
.factbar__prize b {
  font-family: var(--display); font-size: clamp(26px, 3vw, 34px); font-weight: 800;
  color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums;
}
.factbar__prize b i { font-style: normal; font-size: 0.45em; margin-left: 3px; }

/* ==========================================================
   签位表（bracket）
   ========================================================== */
.bracket {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  overflow-x: auto;
}
.bracket__inner { position: relative; }
.bracket__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bracket__svg path { fill: none; stroke: #d6cebd; stroke-width: 1; }
.bracket__svg path.is-hot { stroke: var(--red); }

.brk-col { position: absolute; top: 0; width: 128px; }
.brk-col__title {
  position: absolute; top: 0; left: 0; right: 0;
  font-size: 9.5px; letter-spacing: 0.16em; color: var(--muted-2);
  text-align: center; white-space: nowrap;
}
.brk-table {
  position: absolute; left: 0; width: 100%;
  border: 1px solid var(--line);
  background: #fff;
}
.brk-table__head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 2px 6px;
  background: #f6f2ea;
  border-bottom: 1px solid var(--line-2);
  font-size: 9.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.brk-table__head b {
  font-family: var(--display); font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.06em; color: var(--ink);
}
.brk-seats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.brk-seats span {
  padding: 3px 0;
  text-align: center;
  font-size: 10px; letter-spacing: 0.02em; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.brk-seats span + span { border-left: 1px solid var(--line-2); }
.brk-final {
  padding: 2px 0; text-align: center;
  background: var(--red); color: #fff;
  font-size: 9px; letter-spacing: 0.18em;
}
.brk-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 14px 0 0; padding: 0; list-style: none;
  font-size: 11.5px; color: var(--muted);
}
.brk-legend li { display: flex; align-items: center; gap: 7px; }
.brk-legend i { width: 16px; height: 3px; background: var(--line); }
.brk-legend i.is-hot { background: var(--red); }

/* ==========================================================
   赞助人卡片
   ========================================================== */
.sponsor-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(24px, 3vw, 34px);
}
.sponsor-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 32px) clamp(18px, 2vw, 24px);
  background: #fff; border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.sponsor-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.sponsor-card__avatar {
  width: clamp(84px, 9vw, 108px); height: clamp(84px, 9vw, 108px);
  border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 28px -22px rgba(12, 11, 9, 0.6);
  background: var(--paper-2);
}
.sponsor-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.sponsor-card__name {
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 800;
  letter-spacing: 0.04em; line-height: 1.2;
}
.sponsor-card__k {
  font-size: 9px; letter-spacing: 0.26em; color: var(--muted-2);
  margin-top: -8px;
}
.sponsor-card p {
  margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--muted);
}

/* 特别注意（放大版） */
.callout--lg { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: clamp(18px, 2.2vw, 24px) clamp(18px, 2.4vw, 26px); }
.callout--lg .callout__tag { font-size: 11px; padding: 5px 12px; }
.callout--lg p { font-size: clamp(15px, 1.5vw, 17px) !important; line-height: 1.8; font-weight: 500; }

/* ==========================================================
   EMPTY STATE（模板页占位，内容补齐后可整块删掉）
   ========================================================== */
.empty {
  position: relative;
  border: 1px dashed rgba(12, 11, 9, 0.2);
  background: rgba(255, 255, 255, 0.55);
  padding: clamp(34px, 5.6vw, 64px) clamp(20px, 4vw, 48px);
  text-align: center;
}
.empty::before {
  content: "";
  position: absolute; left: 50%; top: 0; translate: -50% 0;
  width: 56px; height: 2px; background: var(--red);
}
.empty__k {
  margin: 0 0 14px;
  font-family: var(--display); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.26em; color: var(--muted-2);
}
.empty h3 {
  margin: 0 0 12px;
  font-family: var(--display); font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 800; letter-spacing: -0.01em; color: var(--ink);
}
.empty__d {
  margin: 0 auto; max-width: 58ch;
  font-size: 13.5px; line-height: 1.95; color: var(--muted);
}
.empty__d a { color: var(--ink); border-bottom: 1px solid var(--red); padding-bottom: 1px; }
.empty__d a:hover { color: var(--red); }
.empty__list {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.empty__list li {
  font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted);
  padding: 5px 13px; background: #fff; border: 1px solid var(--line);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .seats-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .phead__mark { display: none; }
  .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat b { font-size: clamp(34px, 10vw, 44px); }
  .stat--prize b { font-size: clamp(40px, 12vw, 54px); }

  .specstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specstrip li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .specstrip li:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .sec-head { gap: 12px; }
  .empty__list { margin-top: 20px; gap: 6px; }
  .empty__list li { font-size: 11px; padding: 4px 10px; }
  .quote-strip { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 0; font-size: 12.5px; }
  .quote-strip__k { margin: 0 0 2px; }
  .quote-strip .sep { display: none; }
  .quote-strip span:not(.quote-strip__k)::before { content: "·"; margin-right: 7px; color: var(--muted-2); }

  .bars li { grid-template-columns: minmax(0, 1fr) minmax(56px, 0.8fr) 22px; gap: 8px; }
  .bars__label { font-size: 12px; }
  .table { min-width: 0; font-size: 12px; }
  .table thead th, .table tbody td, .table tbody th { padding: 9px 10px; }
  .table .num { font-size: 14px; }

  .tl__axis, .tl__row { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .tl__name { font-size: 13px; }
  .tl__sub { font-size: 9px; }
  .tl__dot { width: 7px; height: 7px; }
  .sponsor-grid { grid-template-columns: minmax(0, 1fr); }

  .bracket { margin-inline: calc(var(--pad) * -1); border-radius: 0; border-left: 0; border-right: 0; }
}

@media (max-width: 480px) {
  .table { min-width: 400px; }
}


/* ---------- 移植：轮次色标 / 标签页 / 晋级路径 ---------- */
.chip {
  display: inline-block; width: 8px; height: 8px; border-radius: 1px; background: var(--ink);
  flex: 0 0 auto;
}
.chip--r1 { background: var(--r1); }
.chip--r2 { background: var(--r2); }
.chip--r3 { background: var(--r3); }
.chip--r4 { background: var(--r4); }
.chip--r5 { background: var(--r5); }
.chip--all { background: linear-gradient(90deg, var(--r1) 0 20%, var(--r2) 20% 40%, var(--r3) 40% 60%, var(--r4) 60% 80%, var(--r5) 80% 100%); }
/* ==========================================================
   tabs & panels
   ========================================================== */
.tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; font-size: 14px; font-weight: 600; color: var(--muted);
  white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tab em {
  font-style: normal; font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.08em;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--red); }
.tab.is-active em { color: var(--red); }

.panels { background: #fff; border: 1px solid var(--line); border-top: 0; }
.panel { padding: clamp(22px, 3vw, 34px); }
.panel__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 16px; }
.panel__head h4 {
  margin: 0; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: 0.02em;
}
.panel__head h4 em { font-style: normal; font-size: 12px; letter-spacing: 0.18em; color: var(--muted-2); }
.panel__date {
  margin: 0; font-size: 12.5px; color: var(--red); font-weight: 600;
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}
.panel__body { display: grid; grid-template-columns: 1fr 260px; gap: clamp(20px, 3vw, 40px); }
.panel__main p { margin: 0 0 14px; font-size: 15px; line-height: 1.85; color: #33302a; }
.panel__dates { font-size: 13px !important; color: var(--muted) !important; line-height: 1.9 !important; }
.panel__dates b { color: var(--ink); }
.panel__facts { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.panel__facts li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 9px 0 9px 18px; border-bottom: 1px dashed var(--line-2); font-size: 12px;
  color: var(--muted);
}
.panel__facts li:last-child { border-bottom: 0; }
.panel__facts b { font-family: var(--display); font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.panel[hidden] { display: none; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.panel.is-active:not([hidden]) { animation: panelIn 0.34s var(--ease) both; }

/* path */
.path {
  display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin;
}
.path__node {
  flex: 1 1 0; min-width: 108px; background: #fff; border: 1px solid var(--line);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  transition: all 0.25s var(--ease); text-align: left; position: relative;
}
.path__node b {
  font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1;
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.path__stage { font-size: 10.5px; letter-spacing: 0.16em; color: var(--muted-2); }
.path__sub { font-size: 11.5px; color: var(--muted); }
.path__flow { margin-top: 8px; font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.1em; }
.path__node:hover, .path__node:focus-visible {
  background: var(--red); border-color: var(--red); color: #fff; outline: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -14px rgba(200,32,22,.8);
}
.path__node:hover .path__stage, .path__node:hover .path__sub,
.path__node:hover .path__flow, .path__node:focus-visible .path__stage,
.path__node:focus-visible .path__sub, .path__node:focus-visible .path__flow { color: rgba(255,255,255,.72); }
.path__node.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.path__node.is-active .path__stage,
.path__node.is-active .path__sub,
.path__node.is-active .path__flow { color: rgba(255,255,255,.72); }
.path__node--champ { background: var(--ink); border-color: var(--ink); color: #fff; cursor: default; }
.path__node--champ .path__stage { color: var(--gold); }
.path__node--champ .path__sub,
.path__node--champ .path__flow { color: rgba(255,255,255,.55); }
.path__arrow {
  flex: 0 0 26px; align-self: center; height: 1px; background: var(--line); position: relative;
}
.path__arrow::after {
  content: ""; position: absolute; right: 1px; top: -3.5px;
  border-left: 7px solid var(--muted-2); border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.path__note { font-size: 12.5px; line-height: 1.85; color: var(--muted); margin: 18px 0 0; }
/* ---------- 移植：计分与 pt 计算器（深色区） ---------- */
/* ==========================================================
   04 scoring (dark)
   ========================================================== */
.score-layout {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(26px, 4vw, 52px);
  align-items: start;
}
.formula { list-style: none; margin: 0; padding: 0; }
.formula li {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.formula li:last-child { border-bottom: 0; }
.formula__k { font-size: 12.5px; color: rgba(255,255,255,.45); letter-spacing: 0.06em; }
.formula__v { font-size: 14px; line-height: 1.7; color: #f0ece4; }
.formula__v b { font-variant-numeric: tabular-nums; font-weight: 700; }
.formula__v b.up { color: #ff8f7f; }
.formula__v b.down { color: #9ecfb0; }
.section--dark .tiny { color: rgba(255,255,255,.42); }

.calc {
  background: #16140f; border: 1px solid rgba(255,255,255,.12);
  padding: clamp(20px, 2.8vw, 30px); position: relative;
}
.calc::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 70%);
}
.calc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.calc__head .sub-head { color: #fff; }
.calc__reset {
  font-size: 11.5px; color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.2);
  padding: 4px 11px; border-radius: 2px; transition: all 0.2s;
}
.calc__reset:hover { color: #fff; border-color: var(--red); background: rgba(200,32,22,.16); }

.calc__rows { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.calc__row { border: 1px solid rgba(255,255,255,.1); padding: 14px 14px 12px; background: rgba(255,255,255,.02); }
.calc__label {
  margin: 0 0 10px; font-size: 12px; color: rgba(255,255,255,.72); font-weight: 600;
  display: flex; align-items: baseline; gap: 8px;
}
.calc__label em { font-style: normal; font-size: 9px; letter-spacing: 0.18em; color: rgba(255,255,255,.3); }
.calc__inputs { display: grid; grid-template-columns: 1fr 108px; gap: 10px; }
.calc__inputs label { display: flex; flex-direction: column; gap: 5px; }
.calc__inputs span { font-size: 10.5px; letter-spacing: 0.1em; color: rgba(255,255,255,.4); }
.calc__inputs input, .calc__inputs select {
  width: 100%; background: #0e0d0a; border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-family: var(--display); font-size: 17px; font-weight: 700;
  padding: 8px 10px; border-radius: 2px; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s;
  appearance: none;
}
.calc__inputs select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.5) 50%),
    linear-gradient(135deg, rgba(255,255,255,.5) 50%, transparent 50%);
  background-position: calc(100% - 14px) 18px, calc(100% - 9px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.calc__inputs input:focus, .calc__inputs select:focus {
  outline: none; border-color: var(--red); background-color: #12100d;
}
.calc__out {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed rgba(255,255,255,.12);
  font-size: 11.5px; color: rgba(255,255,255,.42);
}
.calc__out b {
  font-family: var(--display); font-size: 14px; color: rgba(255,255,255,.85);
  font-variant-numeric: tabular-nums; margin-left: 3px;
}
.calc__pt { margin-left: auto; display: flex; align-items: baseline; gap: 4px; }
.calc__pt b {
  font-size: 24px; color: #fff; margin: 0; letter-spacing: 0.01em;
}
.calc__pt b.is-pos { color: #ff8f7f; }
.calc__pt b.is-neg { color: #9ecfb0; }
.calc__pt i { font-style: normal; font-size: 10.5px; color: rgba(255,255,255,.4); }

.calc__total {
  margin-top: 14px; padding: 14px 16px; background: var(--red);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.calc__total span { font-size: 12px; color: rgba(255,255,255,.85); letter-spacing: 0.06em; }
.calc__total span em { display: block; font-style: normal; font-size: 9px; letter-spacing: 0.2em; color: rgba(255,255,255,.55); }
.calc__total b {
  font-family: var(--display); font-size: 34px; font-weight: 800; color: #fff;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.calc__presets {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 11px; color: rgba(255,255,255,.4);
}
.calc__presets button {
  font-size: 11px; padding: 4px 9px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 2px; color: rgba(255,255,255,.7); transition: all 0.2s;
}
.calc__presets button:hover { border-color: var(--red); color: #fff; background: rgba(200,32,22,.2); }
.calc__note { margin: 12px 0 0; font-size: 11px; line-height: 1.7; color: rgba(255,255,255,.32); }

.example {
  margin-top: clamp(30px, 4vw, 48px); border: 1px solid rgba(255,255,255,.14);
  padding: clamp(18px, 2.4vw, 26px); display: grid; grid-template-columns: 80px 1fr;
  gap: 18px; align-items: start; background: rgba(255,255,255,.02);
}
.example__k {
  margin: 0; font-size: 11px; letter-spacing: 0.2em; color: var(--red);
  font-weight: 700; padding-top: 3px;
}
.example__t { margin: 0; font-size: 14.5px; line-height: 1.9; color: rgba(255,255,255,.75); }
.example__t b { color: #fff; font-variant-numeric: tabular-nums; }
.example__t b.hl {
  color: #fff; background: var(--red); padding: 1px 7px; font-weight: 700;
}

/* ==========================================================
   05 condition tool
   ========================================================== */
.section--tool { background: var(--paper-2); }

.tool {
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -50px rgba(12, 11, 9, 0.5);
}
.tool__top {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: #fff; padding: 16px 22px;
}
.tool__logo {
  display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto;
  background: var(--red); color: #fff; font-family: var(--display);
  font-size: 17px; font-weight: 800; letter-spacing: 0.04em;
}
.tool__titles h3 {
  margin: 0; font-family: var(--display); font-size: 19px; font-weight: 800;
  letter-spacing: 0.06em;
}
.tool__titles p {
  margin: 2px 0 0; font-size: 9.5px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.45);
}
.tool__hint {
  margin: 0 0 0 auto; font-size: 11px; color: rgba(255, 255, 255, 0.42);
  display: flex; align-items: center; gap: 6px;
}
.tool__hint::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 126, 50, 0.22);
}

.tool__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.tool__form { padding: 22px; border-right: 1px solid var(--line); min-width: 0; }
.tool__result {
  padding: 22px; background: #fbf9f5; display: flex; flex-direction: column; min-width: 0;
}

.tool__opts { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 18px; }
.opt { display: flex; flex-direction: column; gap: 4px; }
.opt > span:first-child {
  font-size: 10px; letter-spacing: 0.14em; color: var(--muted-2); font-weight: 600;
}
.opt select,
.opt input[type="number"],
.opt input[type="text"] {
  height: 34px; min-width: 96px; padding: 0 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; border-radius: 2px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.opt select { min-width: 118px; padding-right: 6px; }
.opt input[type="number"] { width: 84px; }
.opt input:focus, .opt select:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px rgba(12, 11, 9, 0.07);
}
.opt__unit { display: flex; align-items: center; gap: 5px; }
.opt__unit em { font-style: normal; font-size: 10.5px; color: var(--muted-2); }
.opt--check { flex-direction: row; align-items: center; gap: 6px; align-self: flex-end; height: 34px; }
.opt--check input { width: 15px; height: 15px; accent-color: var(--red); }
.opt--check span:first-child { font-size: 12px; letter-spacing: 0; color: var(--ink); font-weight: 600; }

.tool__seats-wrap { border: 1px solid var(--line); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tool__seats { width: 100%; border-collapse: collapse; }
.tool__seats thead th {
  background: #f4f0e7; font-size: 9.5px; letter-spacing: 0.12em; color: var(--muted);
  font-weight: 700; text-align: left; padding: 8px 8px; white-space: nowrap;
}
.tool__seats tbody th { width: 46px; padding: 5px 8px; }
.tool__seats tbody td { padding: 4px 6px; }
.tool__seats tbody tr + tr th,
.tool__seats tbody tr + tr td { border-top: 1px solid var(--line-2); }
.tool__seats tbody input {
  width: 100%; height: 30px; padding: 0 7px;
  border: 1px solid transparent; background: transparent; border-radius: 2px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.tool__seats tbody td:nth-child(3) input,
.tool__seats tbody td:nth-child(4) input { text-align: right; }
.tool__seats tbody input:hover { background: #faf7f1; }
.tool__seats tbody input:focus {
  outline: none; background: #fff; border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(12, 11, 9, 0.07);
}

.seat-chip {
  display: inline-grid; place-items: center; width: 17px; height: 17px;
  font-style: normal; font-size: 10px; font-weight: 700; color: #fff;
  border-radius: 2px; background: #14120f; flex: 0 0 auto; line-height: 1;
}
.seat-chip--1 { background: #3a352e; }
.seat-chip--2 { background: #6f6a62; }
.seat-chip--3 { background: #928c82; }

.tool__tip { font-size: 11px; line-height: 1.7; color: var(--muted-2); margin: 12px 0 0; }

.tool__rules { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.tool__rules-t {
  margin: 0 0 8px; font-size: 9.5px; letter-spacing: 0.2em; color: var(--muted-2);
  font-weight: 700;
}
.tool__rules ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.tool__rules li {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px;
  font-size: 11.5px; color: var(--muted); line-height: 1.6;
}
.tool__rules b { color: var(--ink); font-weight: 600; }
.tool__rules span { font-variant-numeric: tabular-nums; }
.tool__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tool__ghost {
  font-size: 12px; padding: 8px 13px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); border-radius: 2px;
  transition: all 0.2s var(--ease);
}
.tool__ghost:hover { border-color: var(--ink); color: var(--ink); }
.tool__warn { font-size: 11px; color: var(--red); }

/* --- result --- */
.tool__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mt-tab {
  display: flex; flex-direction: column; gap: 1px; padding: 8px 9px;
  border: 1px solid var(--line); background: #fff; text-align: left;
  transition: all 0.22s var(--ease); min-width: 0;
}
.mt-tab:hover { border-color: var(--ink); }
.mt-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.mt-tab__seat { font-size: 9px; letter-spacing: 0.16em; color: var(--muted-2); }
.mt-tab.is-active .mt-tab__seat { color: rgba(255, 255, 255, 0.45); }
.mt-tab__name {
  font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.mt-tab__pt {
  font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.mt-tab.is-active .mt-tab__pt { color: var(--gold); }

.tool__panels { margin-top: 16px; flex: 1; }
.mt-panel__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.mt-panel__head h4 {
  margin: 0; font-family: var(--display); font-size: 21px; font-weight: 800;
  letter-spacing: 0.03em; display: flex; align-items: center;
}
.mt-panel__head p { margin: 0; font-size: 11.5px; color: var(--muted); }
.mt-panel__head b { color: var(--ink); font-variant-numeric: tabular-nums; }

.mt-group { margin-top: 16px; }
.mt-group h5 {
  margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  display: flex; align-items: baseline; gap: 8px;
}
.mt-group h5 em {
  font-style: normal; font-size: 9.5px; letter-spacing: 0.1em;
  color: var(--muted-2); font-weight: 500;
}
.mt-group--need h5::before,
.mt-group--safe h5::before {
  content: ""; width: 3px; height: 11px; display: block; align-self: center;
}
.mt-group--need h5::before { background: var(--red); }
.mt-group--safe h5::before { background: var(--green); }

.mt-sub {
  display: flex; align-items: center; gap: 6px; margin: 9px 0 4px;
  font-size: 11.5px; color: var(--muted);
}
.mt-sub .seat-chip { margin-right: 2px; }
.mt-sub b { color: var(--ink); font-weight: 600; }
.mt-sub span { font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.04em; }

.mt-locked {
  margin: 10px 0 0; padding: 7px 10px; font-size: 11.5px; color: #14612a;
  background: #edf5ef; border-left: 2px solid var(--green);
}

.mt-ranges { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mt-ranges li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 6px 10px; background: #fff; border-left: 2px solid var(--line);
}
.mt-group--need .mt-ranges li { border-left-color: var(--red); }
.mt-group--safe .mt-ranges li { border-left-color: #bcd6c2; }
.mt-ranges b {
  font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
}
.mt-ranges em {
  font-style: normal; font-size: 10.5px; color: var(--muted-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.mt-none { margin: 4px 0 0; padding-left: 10px; font-size: 11.5px; color: var(--muted-2); }

.tool__foot {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.tool__copied { font-size: 11px; color: var(--green); }

/* --- extras --- */
.tool__extras { border-top: 1px solid var(--line); padding: 0 22px 18px; }
.tool__extra { border-bottom: 1px solid var(--line-2); }
.tool__extra:last-child { border-bottom: 0; }
.tool__extra summary {
  cursor: pointer; list-style: none; padding: 14px 0 14px 20px; position: relative;
  font-size: 13px; font-weight: 600; display: flex; flex-wrap: wrap;
  align-items: baseline; gap: 10px;
}
.tool__extra summary::-webkit-details-marker { display: none; }
.tool__extra summary::before {
  content: "＋"; position: absolute; left: 0; top: 13px;
  font-size: 13px; color: var(--red); font-weight: 700;
}
.tool__extra[open] summary::before { content: "－"; }
.tool__extra summary em {
  font-style: normal; font-size: 10.5px; color: var(--muted-2); font-weight: 400;
}
.tool__extra-body { padding: 2px 0 18px; }

.mt-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mt-table th {
  background: var(--ink); color: #fff; font-size: 10px; letter-spacing: 0.12em;
  font-weight: 700; text-align: left; padding: 8px 10px; white-space: nowrap;
}
.mt-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); }
.mt-table tbody tr.is-good td { background: #fdf2f0; font-weight: 700; }
.mt-table tbody tr:last-child td { border-bottom: 0; }
.mt-tag {
  font-style: normal; font-size: 9.5px; color: var(--muted-2);
  border: 1px solid var(--line); padding: 0 5px; margin-left: 8px; border-radius: 2px;
}

.mt-danger { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mt-danger li {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px;
  align-items: baseline; padding: 8px 10px; background: #fff;
  border-left: 2px solid var(--red);
}
.mt-danger__who { font-size: 11.5px; color: var(--muted); }
.mt-danger b { font-size: 13px; font-variant-numeric: tabular-nums; }
.mt-danger em {
  font-style: normal; font-size: 10.5px; color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.tool-credit { margin: 16px 0 0; font-size: 11.5px; color: var(--muted-2); }

@media (max-width: 1080px) {
  .tool__grid { grid-template-columns: minmax(0, 1fr); }
  .tool__form { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .tool__top { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
  .tool__hint { width: 100%; margin-left: 0; }
  .tool__form, .tool__result { padding: 16px; }
  .tool__extras { padding: 0 16px 14px; }
  .tool__tabs { grid-template-columns: repeat(2, 1fr); }
  .tool__opts { gap: 8px; }
  .opt select { min-width: 104px; }
  .mt-danger li { grid-template-columns: 1fr; gap: 2px; }
  .tool__seats-wrap { overflow-x: auto; }
  .tool__seats { min-width: 420px; }
}

/* ---------- 移植：规则卡 / 守则 / 奖金 / 赞助 / 事项 / 附录 ---------- */
/* ==========================================================
   06 rules cards
   ========================================================== */
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rule-card { background: #fff; padding: 24px 22px; transition: background 0.25s var(--ease); }
.rule-card h4 {
  margin: 0 0 10px; font-family: var(--display); font-size: 17px; font-weight: 800;
  letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px;
}
.rule-card h4::before {
  content: ""; width: 3px; height: 14px; background: var(--red); display: block;
}
.rule-card p { margin: 0; font-size: 13.5px; line-height: 1.85; color: #4a453d; }
.rule-card:hover { background: #fdfbf7; }

/* ==========================================================
   06 conduct
   ========================================================== */
.conduct-grid {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.conduct {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px 26px;
  padding: 26px 0 30px; border-bottom: 1px solid var(--line);
  background: transparent; position: relative;
}
.conduct__body { min-width: 0; }
.conduct__n {
  font-family: var(--display); font-size: 40px; font-weight: 800;
  color: var(--line); line-height: 0.9; letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}
.conduct:hover .conduct__n { color: var(--red); }
.conduct h4 {
  margin: 0 0 8px; font-size: 16.5px; font-weight: 700;
  font-family: var(--display); letter-spacing: 0.08em;
}
.conduct p { margin: 0; font-size: 14px; line-height: 1.85; color: #4a453d; max-width: 82ch; }

.penalty {
  list-style: none; margin: 18px 0 0; padding: 0; max-width: 860px;
  display: flex; flex-direction: column; gap: 0;
  border-left: 2px solid var(--line);
}
.penalty li { padding: 11px 0 11px 18px; border-top: 1px dashed var(--line); }
.penalty li:first-child { border-top: 0; }
.penalty b {
  display: block; margin-top: 4px; font-size: 13.4px; font-weight: 600;
  color: var(--ink); line-height: 1.7;
}
.penalty__tag {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 2px;
}
.penalty__tag.ok { background: #e8f3ea; color: #177e32; }
.penalty__tag.warn { background: #fdf3dc; color: #8a6410; }
.penalty__tag.bad { background: #fbe7e4; color: var(--red-deep); }

/* ==========================================================
   07 prize
   ========================================================== */
.prize-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
.prize-side { display: flex; flex-direction: column; gap: 16px; }
.prize-big { background: var(--ink); color: #fff; padding: clamp(20px, 2.6vw, 28px); }
.prize-big p { margin: 0; font-size: 11.5px; letter-spacing: 0.16em; color: rgba(255,255,255,.45); }
.prize-big b {
  display: flex; align-items: baseline; gap: 6px; margin: 6px 0 10px;
  font-family: var(--display); font-size: clamp(52px, 6vw, 70px); font-weight: 800;
  line-height: 0.9; font-variant-numeric: tabular-nums;
}
.prize-big b i { font-style: normal; font-size: 15px; color: rgba(255,255,255,.55); font-weight: 600; }
.prize-big__sub { font-size: 12px !important; letter-spacing: 0 !important; line-height: 1.7; color: rgba(255,255,255,.6) !important; }
.prize-big__sub b { display: inline; font-family: var(--display); font-size: 13px; color: var(--gold); margin: 0; }
.prize-bonus { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.prize-bonus li { background: #fff; padding: 13px 16px; display: flex; flex-direction: column; gap: 1px; }
.prize-bonus span { font-size: 10.5px; letter-spacing: 0.18em; color: var(--red); font-weight: 700; }
.prize-bonus b { font-size: 14.5px; font-weight: 700; }
.prize-bonus em { font-style: normal; font-size: 11.5px; color: var(--muted); }

/* ==========================================================
   08 sponsor
   ========================================================== */
.sponsors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sponsor {
  background: #fff; border: 1px solid var(--line); padding: clamp(22px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 4px; position: relative;
  transition: all 0.28s var(--ease);
}
.sponsor:hover { border-color: var(--ink); transform: translateY(-3px); }
.sponsor__mark {
  font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--muted-2);
}
.sponsor b { font-family: var(--display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: 0.04em; }
.sponsor em { font-style: normal; font-size: 9.5px; letter-spacing: 0.24em; color: var(--muted-2); }
.sponsor-cta {
  margin-top: 18px; background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--red); padding: 18px 22px;
}
.sponsor-cta p { margin: 0; font-size: 14px; line-height: 1.8; color: #3f3a33; }
.sponsor-cta b { color: var(--red); }

/* ==========================================================
   09 notes
   ========================================================== */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.note { background: var(--paper); padding: clamp(20px, 2.6vw, 30px); }
.note__n {
  display: inline-block; font-family: var(--display); font-size: 11px; font-weight: 800;
  color: #fff; background: var(--ink); padding: 1px 7px; margin-bottom: 10px;
}
.note h4 { margin: 0 0 8px; font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: 0.04em; }
.note p { margin: 0; font-size: 13.6px; line-height: 1.85; color: #4a453d; }

.callout {
  margin-top: 22px; border: 1px solid var(--red); background: #fdf4f2;
  padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
}
.callout__tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: #fff;
  background: var(--red); padding: 3px 9px;
}
.callout p { margin: 0; font-size: 13.8px; color: #4a2520; }

/* ==========================================================
   10 appendix
   ========================================================== */
.appendix-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.figure { margin: 0; }
.figure__zoom {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
  border: 1px solid var(--line); background: #fff; cursor: zoom-in;
}
.figure__zoom img { width: 100%; height: auto; display: block; transition: transform 0.5s var(--ease); }
.figure__zoom:hover img { transform: scale(1.015); }
.figure__hint {
  position: absolute; right: 10px; bottom: 10px; font-size: 11px; letter-spacing: 0.08em;
  background: rgba(12,11,9,.82); color: #fff; padding: 4px 10px; border-radius: 2px;
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.figure__zoom:hover .figure__hint { opacity: 1; }
.figure figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }

.appendix-side { display: flex; flex-direction: column; gap: 16px; }
.doc-card { background: #fff; border: 1px solid var(--line); padding: clamp(20px, 2.6vw, 28px); }
.doc-card__k { margin: 0 0 6px; font-size: 10px; letter-spacing: 0.22em; color: var(--red); font-weight: 700; }
.doc-card h4 { margin: 0 0 10px; font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: 0.03em; }
.doc-card__d { margin: 0 0 18px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.doc-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-card--muted { background: transparent; border-style: dashed; }
.doc-card--muted .doc-card__d { margin-bottom: 0; }


/* ==========================================================
   覆盖：奖金大数字（800+）
   ========================================================== */
.prize-big { position: relative; overflow: hidden; }
.prize-big::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--red) 0 40%, var(--green) 40% 50%, rgba(255,255,255,.16) 50% 100%);
}
.prize-big b {
  font-size: clamp(52px, 6.6vw, 88px) !important;
  color: #ff5a45;
  letter-spacing: -0.02em;
}
.prize-big b i { color: rgba(255,255,255,.55) !important; }
.prize-big b span { font: inherit; color: inherit; }
.prize-big .prize-big__sub b { font-size: 13px !important; color: var(--gold) !important; }

/* 计分示例块 */
.example {
  margin-top: clamp(22px, 3vw, 30px);
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px);
  border: 1px dashed rgba(255,255,255,.18);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px;
}
.example__k {
  margin: 0; font-size: 10px; letter-spacing: 0.22em;
  color: rgba(255,255,255,.4); flex: 0 0 auto;
}
.example__t { margin: 0; font-size: 13.5px; line-height: 1.9; color: rgba(255,255,255,.7); }
.example__t b { color: #ff8f7f; font-weight: 700; }
.example__t b.hl { color: #fff; }


/* 按钮补全（style.css 只含 ghost 变体） */
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }

/* 举例块：去掉移植带来的红底 */
.example__t b.hl { background: transparent; padding: 0; color: #fff; }

/* 条件计算器所在区 */
.sec--tool { background: linear-gradient(180deg, var(--paper) 0%, #f2ede2 100%); }

/* 附录文档卡 */
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px); }
@media (max-width: 720px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } }

/* 锚点跳转避开吸顶导航 */
[id] { scroll-margin-top: 96px; }

/* 窄屏：计分方式一栏堆叠（原版无此断点，会把计算器挤到 220px） */
@media (max-width: 980px) {
  .score-layout { grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 34px); }
  .rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .rule-grid { grid-template-columns: minmax(0, 1fr); }
  .calc__inputs { grid-template-columns: minmax(0, 1fr) 96px; }
  .calc__total b { font-size: 30px; }
  .formula li { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
}
