/* 188BET – base.css
   主题：Sổ trận（纸张米色 + 墨蓝 + 记分朱红 + 衬线标题）
   结构：变量 → 重置 → 版式 → 通用件 → 页头/抽屉 → 页脚/底栏 */

:root {
  --paper: #f3efe4;
  --paper-2: #e9e2d2;
  --paper-3: #ded5c0;
  --card: #fbf8f0;
  --ink: #14202b;
  --ink-2: #3c4854;
  --ink-3: #6f7a86;
  --line: #d8d0be;
  --line-2: #c4bba6;
  --red: #c9302c;
  --red-2: #a52420;
  --red-soft: #f6e2df;
  --green: #1f7a4d;
  --blue: #1f4e79;
  --amber: #c9781f;
  --violet: #6b3fa0;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 22px 44px -34px rgba(20, 32, 43, .55);
  --shadow-sm: 0 10px 22px -18px rgba(20, 32, 43, .5);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Cambria, Georgia, "Times New Roman", serif;
  --mono: Consolas, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.66;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(0deg, rgba(20, 32, 43, .035) 0 1px, transparent 1px 32px);
}
img, svg { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .34em; }
strong, b { font-weight: 700; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid rgba(201, 48, 44, .45); outline-offset: 2px; }

h1, h2, h3, h4 {
  margin: 0 0 .45em;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.018em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.45rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-family: var(--font); font-size: 1.08rem; font-weight: 800; letter-spacing: -.012em; line-height: 1.3; }
h1 em, h2 em {
  font-style: italic;
  color: var(--red);
  background: linear-gradient(transparent 82%, rgba(201, 48, 44, .22) 82%);
  padding: 0 .04em;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 18px;
  border-radius: var(--radius-sm); font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.shell { width: min(1180px, 100% - 48px); margin-inline: auto; }
.sec { padding: 64px 0; position: relative; }
.sec--rule { background: rgba(233, 226, 210, .55); border-block: 1px solid var(--line); }
.sec-lead { color: var(--ink-2); max-width: 74ch; margin: -6px 0 24px; }
.sec-note { color: var(--ink-3); font-size: .88rem; margin: 16px 0 0; }
.sec-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 标题组 ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.sec-head h2 { margin-bottom: 0; }
.sec-head--center { justify-content: center; text-align: center; }
.sec-head--center .kicker { justify-content: center; }
.kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font-family: var(--mono); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.kicker b {
  display: inline-grid; place-items: center; min-width: 30px; height: 21px; padding: 0 7px;
  background: var(--ink); color: var(--paper); font-size: .66rem; letter-spacing: .06em;
}
.more {
  font-family: var(--mono); font-size: .76rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; border-bottom: 2px solid var(--red); padding-bottom: 3px; white-space: nowrap;
}
.more:hover { color: var(--red-2); border-color: var(--ink); }
.stamp {
  display: inline-block; padding: 7px 12px; transform: rotate(-3deg);
  border: 2px double var(--red); color: var(--red); border-radius: 3px;
  font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(251, 248, 240, .7);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 2px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .92rem; line-height: 1.2; letter-spacing: .01em;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #0b141c; color: var(--paper); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-2); color: #fff; }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: #fff; color: var(--red); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { background: transparent; border-color: rgba(251, 248, 240, .55); color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn--sm { padding: 8px 15px; font-size: .8rem; border-width: 1px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 记分行 ---------- */
.scoreline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 28px 0 0; padding: 0; }
.scoreline > div { border-top: 2px solid var(--ink); padding: 10px 14px 0 0; }
.scoreline dt {
  font-family: var(--mono); font-size: .64rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.scoreline dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.scoreline--page { max-width: 660px; margin-top: 24px; }
.pagehero--red .scoreline > div, .cta .scoreline > div { border-color: var(--paper); }
.pagehero--red .scoreline dt, .cta .scoreline dt { color: rgba(251, 248, 240, .65); }
.pagehero--red .scoreline dd, .cta .scoreline dd { color: var(--paper); }

/* ---------- 顶栏 ---------- */
.strip { background: var(--ink); color: rgba(251, 248, 240, .78); }
.strip__in {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding: 7px 0; font-family: var(--mono); font-size: .64rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.strip__brand { color: var(--paper); font-weight: 700; }
.strip__brand::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--red); }

/* ---------- 页头 ---------- */
.mast {
  position: sticky; top: 0; z-index: 60;
  background: rgba(243, 239, 228, .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.mast__top { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.mast__meta {
  margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  background: var(--red); color: var(--paper); font-family: var(--serif);
  font-size: 1.16rem; font-weight: 700; letter-spacing: -.02em;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 rgba(20, 32, 43, .14);
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt strong { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .01em; }
.brand__txt small {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: var(--card); place-items: center;
}
.mast__nav { border-top: 1px solid var(--line); }
.mast__navin { display: flex; align-items: center; gap: 22px; }
.tabs { display: flex; flex-wrap: wrap; gap: 20px; }
.tabs a {
  padding: 12px 0 10px; font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-bottom: 3px solid transparent;
}
.tabs a:hover { color: var(--red); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.tabs--sub { margin-left: auto; gap: 16px; }
.tabs--sub a { color: var(--ink-3); font-weight: 400; }
.mast__cta { white-space: nowrap; }

/* ---------- 抽屉 ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 120; width: min(370px, 92vw);
  background: var(--paper); border-left: 1px solid var(--line-2);
  padding: 18px 22px 26px; transform: translateX(102%); transition: transform .28s ease;
  display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
  box-shadow: -30px 0 60px -40px rgba(20, 32, 43, .6);
}
.drawer.is-open { transform: none; }
body.menu-open { overflow: hidden; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.drawer__close { width: 38px; height: 38px; border: 1px solid var(--line-2); background: var(--card); border-radius: var(--radius-sm); }
.drawer__list { display: flex; flex-direction: column; }
.drawer__list a {
  display: flex; align-items: center; gap: 14px; padding: 13px 2px;
  border-bottom: 1px dashed var(--line-2); font-weight: 700;
}
.drawer__list a span { font-family: var(--mono); font-size: .68rem; color: var(--ink-3); }
.drawer__list a[aria-current="page"] { color: var(--red); }
.drawer__list a[aria-current="page"] span { color: var(--red); }
.drawer__cta { justify-content: center; }
.drawer__meta { margin: auto 0 0; font-family: var(--mono); font-size: .68rem; line-height: 1.7; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- 页脚 ---------- */
.foot { background: var(--ink); color: rgba(251, 248, 240, .74); padding: 54px 0 24px; }
.foot a { color: rgba(251, 248, 240, .84); }
.foot a:hover { color: var(--paper); }
.foot .brand { color: var(--paper); }
.foot .brand:hover { color: var(--paper); }
.foot .brand__mark { background: var(--paper); color: var(--red); border-color: rgba(251, 248, 240, .5); box-shadow: 4px 4px 0 rgba(0, 0, 0, .25); }
.foot .brand__txt strong { color: var(--paper); }
.foot .brand__txt small { color: rgba(251, 248, 240, .5); }
.foot__grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; gap: 34px; }
.foot__about { margin: 16px 0; font-size: .88rem; color: rgba(251, 248, 240, .62); max-width: 36ch; }
.foot__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.foot__facts span {
  padding: 4px 10px; border: 1px solid rgba(251, 248, 240, .3); border-radius: 3px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase;
}
.foot__col h3 {
  color: var(--paper); font-family: var(--mono); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px;
}
.foot__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .88rem; }
.foot__stripe {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  margin-top: 34px; padding-top: 16px; border-top: 1px solid rgba(251, 248, 240, .2);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; color: rgba(251, 248, 240, .5);
}
.foot__bottom {
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  margin-top: 12px; font-size: .76rem; color: rgba(251, 248, 240, .5);
}
.foot__bottom nav { display: flex; gap: 16px; }
.foot__legal { margin-top: 16px; font-size: .72rem; line-height: 1.7; color: rgba(251, 248, 240, .4); max-width: 94ch; }

/* ---------- 移动底栏 ---------- */
.dock {
  display: none; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70;
  grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px;
  background: rgba(251, 248, 240, .98); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.dock a { display: grid; gap: 1px; place-items: center; padding: 6px 2px; border-radius: var(--radius-sm); font-size: .62rem; font-weight: 700; color: var(--ink-3); }
.dock a span { font-family: var(--mono); font-size: .56rem; color: var(--line-2); }
.dock a[aria-current="page"] { background: var(--red-soft); color: var(--red); }
.dock a[aria-current="page"] span { color: var(--red); }

/* ---------- 表单 ---------- */
.field { display: grid; gap: 6px; font-size: .84rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: var(--card); font-weight: 400;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(201, 48, 44, .2); outline-offset: 1px; border-color: var(--red);
}
.field.has-error input, .field.has-error select, .field.has-error textarea, .check.has-error span {
  border-color: var(--red); color: var(--red);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { background: #fdf3f1; }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--ink-2); line-height: 1.55; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--red); }
.form-msg { min-height: 1.2em; margin: 4px 0 0; font-size: .84rem; font-weight: 700; color: var(--green); }
.form-msg.is-error { color: var(--red); }
.form-note { font-size: .74rem; color: var(--ink-3); margin: 2px 0 0; }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm);
}
.table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 520px; }
.table caption { text-align: left; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th {
  background: var(--paper-2); font-family: var(--mono); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  border-bottom: 2px solid var(--ink);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(233, 226, 210, .45); }
.table td:first-child { font-weight: 700; }
.table--line th + th, .table--line td + td { border-left: 1px solid rgba(216, 208, 190, .7); }
.table--tight th, .table--tight td { padding: 8px 10px; font-size: .82rem; }

/* ---------- 标签 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chips--sticky {
  position: sticky; top: 118px; z-index: 40; padding: 10px 0; margin-bottom: 8px;
  background: rgba(243, 239, 228, .97); backdrop-filter: blur(8px);
  border-bottom: 1px dashed var(--line-2);
}
.chip {
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 3px;
  background: var(--card); font-family: var(--mono); font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; color: var(--ink-2); transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-note { font-size: .8rem; color: var(--ink-3); min-height: 1.4em; margin: 0 0 16px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; max-width: 880px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; background: none; border: 0; text-align: left; font-weight: 700; font-size: .94rem;
}
.faq__q:hover { color: var(--red); }
.faq__sign { position: relative; width: 14px; height: 14px; flex: none; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 2px; background: var(--red); border-radius: 2px; transform: translateY(-50%);
}
.faq__sign::after { transform: translateY(-50%) rotate(90deg); transition: transform .2s; }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: translateY(-50%) rotate(0); }
.faq__a { display: none; padding: 0 16px 15px; font-size: .9rem; color: var(--ink-2); }
.faq__item.is-open .faq__a { display: block; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 44px 46px;
}
.cta h2 { color: var(--paper); }
.cta h2 em { color: var(--paper); background: none; font-style: italic; }
.cta p { color: rgba(251, 248, 240, .74); max-width: 58ch; margin-bottom: 0; }
.cta .btn-row { margin-top: 20px; }
.cta__mark {
  font-family: var(--serif); font-size: clamp(5rem, 12vw, 8.5rem); line-height: .8;
  color: rgba(251, 248, 240, .08); letter-spacing: -.06em; user-select: none;
}
.cta--soft { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); margin-top: 38px; }
.cta--soft h2 { color: var(--ink); }
.cta--soft h2 em { color: var(--red); }
.cta--soft p { color: var(--ink-2); }
.cta--soft .cta__mark { color: rgba(20, 32, 43, .06); }

/* ---------- 杂项 ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 86px; z-index: 80; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top.is-on { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--red); }
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 150; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: 11px 20px; border-radius: var(--radius-sm);
  font-size: .84rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.reveal, [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in, [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- 响应式页头/页脚 ---------- */
@media (max-width: 1080px) {
  .tabs--sub { display: none; }
}
@media (max-width: 900px) {
  .tabs { display: none; }
  .burger { display: grid; }
  .mast__cta { display: none; }
  .mast__nav { display: none; }
  .mast__meta { font-size: .6rem; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .dock { display: grid; }
  body { padding-bottom: 76px; }
  .to-top { bottom: 96px; }
  .chips--sticky { top: 78px; }
}
@media (max-width: 620px) {
  .shell { width: min(1180px, 100% - 28px); }
  .sec { padding: 44px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .foot__grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 30px 22px; }
  .cta__mark { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .table { min-width: 470px; }
  .strip__in { font-size: .58rem; gap: 4px 14px; }
  .mast__meta { display: none; }
}
