/* 188BET – pages.css
   页面级组件：首屏 / 记分卡 / 沙盒 / 赛程 / 票券 / 文章 / 指南 / 联系 / 法务 / 404 */

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; padding: 46px 0 58px; }
.hero::before {
  content: ""; position: absolute; right: -140px; top: -120px; width: 480px; height: 480px;
  border: 1px solid rgba(20, 32, 43, .14); border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: 90px; top: 60px; width: 140px; height: 140px;
  border: 1px dashed rgba(201, 48, 44, .35); border-radius: 50%; pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 46px; align-items: center; position: relative; z-index: 1; }
.dateline {
  display: flex; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding-bottom: 8px;
  border-bottom: 2px solid var(--ink); font-family: var(--mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.hero h1 { margin-bottom: .34em; }
.hero__lead { font-size: 1.02rem; color: var(--ink-2); max-width: 56ch; }
.hero__lead b { color: var(--ink); }
.hero .btn-row { margin-top: 24px; }

/* ---------- 记分卡 ---------- */
.sheet {
  position: relative; background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 0 12px;
  transform: rotate(.6deg);
}
.sheet::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: -7px; height: 13px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 9px);
}
.sheet__head {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px;
  background: var(--ink); color: var(--paper); border-radius: var(--radius) var(--radius) 0 0;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
}
.sheet__tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
.sheet__tabs button {
  padding: 10px 4px; border: 0; border-right: 1px solid var(--line); background: var(--paper-2);
  font-family: var(--mono); font-size: .74rem; font-weight: 700; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.sheet__tabs button:last-child { border-right: 0; }
.sheet__tabs button:hover { color: var(--red); }
.sheet__tabs button.is-on { background: var(--red); color: #fff; }
.sheet__rows { width: 100%; border-collapse: collapse; font-size: .86rem; }
.sheet__rows th, .sheet__rows td { padding: 9px 18px; text-align: left; border-bottom: 1px dashed var(--line); }
.sheet__rows th {
  width: 46%; font-family: var(--mono); font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.sheet__rows td { font-weight: 700; }
.sheet__note { margin: 12px 18px 0; padding: 10px 12px; background: var(--paper-2); border-left: 3px solid var(--red); font-size: .8rem; color: var(--ink-2); }
.sheet__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 14px 18px 0; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.sheet__code {
  flex: 1; height: 22px; max-width: 160px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 11px);
  opacity: .72;
}

/* ---------- 沙盒列表 ---------- */
.lanes { display: grid; gap: 8px; }
.lane {
  display: grid; grid-template-columns: 34px 34px 1fr 210px 54px; gap: 14px; align-items: center;
  padding: 14px 16px; background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--lane); border-radius: var(--radius-sm); color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.lane:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); color: var(--ink); border-color: var(--line-2); border-left-color: var(--lane); }
.lane__no { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); }
.lane img { width: 30px; height: 30px; }
.lane__body { display: flex; flex-direction: column; line-height: 1.3; }
.lane__body strong { font-family: var(--serif); font-size: 1.02rem; }
.lane__body small { font-size: .72rem; color: var(--ink-3); }
.lane__blurb { font-size: .8rem; color: var(--ink-2); line-height: 1.5; }
.lane__time { font-family: var(--mono); font-size: .78rem; font-weight: 700; text-align: right; color: var(--lane); }

/* ---------- 账本行 ---------- */
.ledger { border-top: 2px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 56px 1fr 300px; gap: 22px;
  padding: 18px 6px; border-bottom: 1px dashed var(--line-2);
  transition: background .16s ease;
}
.row:hover { background: rgba(251, 248, 240, .75); }
.row__no { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--line-2); line-height: 1; }
.row__main h3 { margin: 0 0 3px; font-family: var(--serif); font-size: 1.16rem; }
.row__main p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.row__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; }
.row__meta dt {
  font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.row__meta dd { margin: 0; font-size: .82rem; font-weight: 700; }
.rules { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 7px; }
.rules summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--red);
}
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: "+"; font-size: .95rem; color: var(--ink-3); }
.rules[open] summary::after { content: "–"; }
.rules ul { margin: 8px 0 0; padding-left: 16px; font-size: .82rem; color: var(--ink-2); }
.rules li { margin-bottom: 4px; }

/* ---------- 分块 ---------- */
.lane-block { padding: 32px 0 4px; border-top: 1px solid var(--line-2); }
.lane-block:first-of-type { border-top: 0; padding-top: 4px; }
.lane-block__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.lane-block__head h2 { margin: 0; }
.lane-block__no {
  padding: 3px 9px; border: 1px solid var(--lane); color: var(--lane); border-radius: 3px;
  font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .06em;
}
.lane-block__sport { margin-left: auto; font-family: var(--mono); font-size: .74rem; color: var(--ink-3); }
.lane-block > p { color: var(--ink-2); max-width: 68ch; margin: 8px 0 14px; }

/* ---------- 点数计算 ---------- */
.calc { display: grid; grid-template-columns: 1.04fr .96fr; gap: 40px; align-items: start; }
.calc__copy h2 { margin-bottom: .4em; }
.calc__copy p { color: var(--ink-2); }
.calc__copy .table-wrap { margin-top: 20px; }
.calc__card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 0 22px 22px; box-shadow: var(--shadow); display: grid; gap: 12px;
}
.calc__head {
  display: flex; justify-content: space-between; gap: 10px; margin: 0 -22px;
  padding: 12px 22px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
}
.calc__card .field { margin-top: 4px; }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.calc__out div { border-top: 2px solid var(--ink); padding-top: 8px; display: grid; gap: 2px; }
.calc__out span { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.calc__out b { font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.calc__room { margin: 0; padding: 10px 12px; background: var(--paper-2); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); font-size: .84rem; font-weight: 700; }
.calc__note { margin: 0; font-size: .76rem; color: var(--ink-3); }
.calc__card .btn { justify-self: start; }

/* ---------- 赛程 ---------- */
.sched td:first-child { white-space: nowrap; }
.sched tbody tr.is-today { background: var(--red-soft); }
.sched tbody tr.is-today td { border-bottom-color: var(--line-2); }
.sched tbody tr.is-today td:first-child::after {
  content: " · hôm nay"; font-family: var(--mono); font-size: .62rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--red);
}

/* ---------- 票券 ---------- */
.tickets { display: grid; gap: 12px; }
.ticket {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: start;
  padding: 18px 20px 18px 0; background: var(--card);
  border: 1px solid var(--line); border-left: 0; border-radius: var(--radius-sm);
  position: relative; overflow: hidden;
}
.ticket::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: repeating-linear-gradient(0deg, var(--red) 0 6px, transparent 6px 12px);
}
.ticket__no { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--red); text-align: center; padding-top: 2px; }
.ticket h3 { margin: 0 0 3px; font-family: var(--serif); font-size: 1.1rem; }
.ticket p { margin: 0; font-size: .86rem; color: var(--ink-2); }
.ticket__meta {
  font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-2);
  border-radius: 3px; padding: 4px 8px; white-space: nowrap;
}
.tickets--big { grid-template-columns: repeat(3, 1fr); }
.tickets--big .ticket { grid-template-columns: 1fr; padding: 22px 20px 20px 24px; border-left: 1px solid var(--line); }
.tickets--big .ticket::before { left: 0; right: 0; bottom: auto; width: auto; height: 5px; }
.tickets--big .ticket__no { text-align: left; }
.tickets--big .ticket__meta { justify-self: start; margin-top: 6px; }

/* ---------- 文章条目 ---------- */
.entries { border-top: 2px solid var(--ink); }
.entry {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: start;
  padding: 18px 4px; border-bottom: 1px dashed var(--line-2); color: var(--ink);
  transition: background .16s ease, padding .16s ease;
}
.entry:hover { background: rgba(251, 248, 240, .8); color: var(--ink); padding-inline: 10px 6px; }
.entry__date { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--ink-3); padding-top: 3px; }
.entry__body { display: block; }
.entry__cat { font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.entry h3 { margin: 3px 0 4px; font-family: var(--serif); font-size: 1.22rem; }
.entry p { margin: 0; font-size: .86rem; color: var(--ink-2); max-width: 76ch; }
.entry__read { font-family: var(--mono); font-size: .68rem; color: var(--ink-3); white-space: nowrap; padding-top: 3px; }

/* ---------- 简讯与订阅 ---------- */
.briefs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brief {
  display: flex; gap: 14px; align-items: flex-start; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px;
}
.brief span { font-family: var(--mono); font-size: .72rem; font-weight: 700; color: var(--red); white-space: nowrap; }
.brief p { margin: 0; font-size: .84rem; color: var(--ink-2); }
.subscribe {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.subscribe h2 { margin-bottom: 6px; }
.subscribe p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.subscribe__form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.subscribe__form .field { grid-column: 1; }
.subscribe__form .btn { grid-column: 2; }
.subscribe__form .form-msg { grid-column: 1 / -1; margin: 0; }

/* ---------- 内页头部 ---------- */
.pagehero {
  position: relative; overflow: hidden; padding: 30px 0 42px;
  background: var(--paper-2); border-bottom: 1px solid var(--line-2);
}
.pagehero::after {
  content: ""; position: absolute; right: -100px; top: -130px; width: 340px; height: 340px;
  border: 1px dashed rgba(20, 32, 43, .18); border-radius: 50%;
}
.pagehero > .shell { position: relative; z-index: 1; }
.pagehero h1 { max-width: 22ch; }
.pagehero__lead { font-size: 1rem; color: var(--ink-2); max-width: 70ch; }
.pagehero--plain { background: var(--paper-2); }
.pagehero--article { background: var(--paper); border-bottom: 3px double var(--line-2); }
.pagehero--blue { background: var(--blue); border-bottom-color: #163a5b; color: var(--paper); }
.pagehero--red { background: var(--red); border-bottom-color: var(--red-2); color: var(--paper); }
.pagehero--blue h1, .pagehero--red h1 { color: var(--paper); }
.pagehero--blue h1 em, .pagehero--red h1 em { color: var(--paper); background: linear-gradient(transparent 82%, rgba(251, 248, 240, .35) 82%); }
.pagehero--blue .pagehero__lead, .pagehero--red .pagehero__lead { color: rgba(251, 248, 240, .82); }
.pagehero--blue .kicker, .pagehero--red .kicker { color: rgba(251, 248, 240, .6); }
.pagehero--blue .kicker b, .pagehero--red .kicker b { background: var(--paper); color: var(--red); }
.pagehero--blue .crumbs a, .pagehero--red .crumbs a { color: rgba(251, 248, 240, .85); }
.pagehero--blue .crumbs span, .pagehero--red .crumbs span { color: rgba(251, 248, 240, .55); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .76rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--red); }
.pagehero--red .crumbs a:hover, .pagehero--blue .crumbs a:hover { color: var(--paper); }

/* ---------- 文章正文 ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 44px; align-items: start; }
.prose { max-width: 74ch; font-size: .98rem; }
.prose h2 { margin: 1.7em 0 .5em; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose > p:first-of-type { font-size: 1.05rem; color: var(--ink); }
.article__meta {
  display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 14px;
  font-family: var(--mono); font-size: .72rem; color: var(--ink-3);
}
.article__meta span + span::before { content: "/"; color: var(--line-2); margin-right: 10px; }
.article__meta span:first-child { font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.article__side { display: grid; gap: 12px; position: sticky; top: 130px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.side-card h2 {
  font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px;
}
.side-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .86rem; }
.side-card ul a { font-weight: 600; }
.side-card p { font-size: .86rem; color: var(--ink-2); }
.side-card p + .btn { margin-top: 4px; }
.side-card--red { background: var(--red); border-color: var(--red-2); }
.side-card--red h2 { color: rgba(251, 248, 240, .7); }
.side-card--red p { color: rgba(251, 248, 240, .88); }
.callout {
  background: var(--paper-2); border-left: 4px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 15px 18px; margin: 22px 0;
}
.callout b {
  display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 4px;
}
.callout p { margin: 0; color: var(--ink); font-size: .92rem; }
.checklist { margin-top: 26px; background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 20px 22px; }
.checklist h2 { font-family: var(--font); font-size: 1rem; margin: 0 0 8px; }
.checklist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.checklist li { padding-left: 24px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.related { margin-top: 34px; border-top: 2px solid var(--ink); padding-top: 20px; }
.related h2 { font-size: 1.1rem; margin-bottom: 4px; }
.related .entries { border-top: 0; }

/* ---------- 步骤与提示 ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: step; }
.steps li {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 20px 16px 68px; margin: 0; counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 15px;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--red);
}
.steps li::after { content: ""; position: absolute; left: 34px; top: 46px; bottom: 16px; border-left: 1px dashed var(--line-2); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-size: .98rem; margin-bottom: 2px; }
.steps span { font-size: .87rem; color: var(--ink-2); }
.notice { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 30px; }
.notice > h2 { font-size: 1.15rem; }
.glossary td:first-child { white-space: nowrap; }

/* ---------- 联系 ---------- */
.contact { display: grid; grid-template-columns: 1.12fr .88fr; gap: 26px; align-items: start; }
.contact__form {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 26px; display: grid; gap: 14px; box-shadow: var(--shadow-sm);
}
.contact__form h2 { margin: 0; font-size: 1.2rem; }
.contact__form .btn { justify-self: start; }
.contact__side { display: grid; gap: 12px; }
.contact__side .side-card { position: static; }
.contact__side .table { min-width: 0; }
.contact__side .table-wrap { box-shadow: none; }

/* ---------- 法务 ---------- */
.legal {
  max-width: 80ch; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.legal h2 { font-family: var(--font); font-size: 1.08rem; margin: 1.6em 0 .4em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: .93rem; color: var(--ink-2); }
.legal__note { margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: .78rem; color: var(--ink-3); }

/* ---------- 404 ---------- */
.err { padding: 76px 0; }
.err__in { text-align: center; max-width: 720px; }
.err__code {
  font-family: var(--serif); font-size: clamp(5rem, 18vw, 10rem); line-height: 1; font-weight: 700;
  color: rgba(201, 48, 44, .12); letter-spacing: -.05em; margin-bottom: -16px;
}
.err__lead { color: var(--ink-2); max-width: 52ch; margin-inline: auto; }
.err .btn-row { justify-content: center; }
.err__links { margin-top: 34px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: left; }
.err__links h2 { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.err__links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.err__links a { font-weight: 700; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .sheet { transform: none; max-width: 620px; }
  .calc { grid-template-columns: 1fr; gap: 28px; }
  .article { grid-template-columns: 1fr; }
  .article__side { position: static; grid-template-columns: 1fr 1fr; }
  .subscribe { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .tickets--big { grid-template-columns: 1fr; }
  .tickets--big .ticket { grid-template-columns: 54px 1fr; }
  .tickets--big .ticket__meta { grid-column: 2; margin-top: 0; }
}
@media (max-width: 900px) {
  .lane { grid-template-columns: 30px 30px 1fr 48px; }
  .lane__blurb { display: none; }
  .row { grid-template-columns: 44px 1fr; }
  .row__meta { grid-column: 2; }
}
@media (max-width: 760px) {
  .briefs { grid-template-columns: 1fr; }
  .article__side { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr auto; }
  .entry__date { grid-column: 1; }
  .entry__body { grid-column: 1 / -1; }
  .entry__read { grid-column: 2; grid-row: 1; }
  .lane-block__sport { margin-left: 0; }
  .calc__card { padding-inline: 16px; }
  .calc__head { margin-inline: -16px; padding-inline: 16px; }
}
@media (max-width: 620px) {
  .hero { padding: 30px 0 40px; }
  .hero::after { display: none; }
  .pagehero h1 { max-width: none; }
  .subscribe { padding: 22px; }
  .subscribe__form { grid-template-columns: 1fr; }
  .subscribe__form .btn { grid-column: 1; }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .row__no { font-size: 1.1rem; }
  .row__meta { grid-column: 1; }
  .lane { grid-template-columns: 26px 1fr 44px; }
  .lane img { display: none; }
  .ticket { grid-template-columns: 40px 1fr; }
  .ticket__meta { grid-column: 2; justify-self: start; }
  .legal { padding: 22px; }
  .contact__form { padding: 20px; }
  .steps li { padding: 14px 16px 14px 56px; }
  .steps li::before { left: 15px; }
  .steps li::after { left: 29px; }
  .err { padding: 52px 0; }
}
